]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FWikiTranslationPlugin
Update PHP Doc
[SourceForge/phpwiki.git] / pgsrc / Help%2FWikiTranslationPlugin
1 Date: Fri,  7 Dec 2012 14:58:45 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FWikiTranslationPlugin;
5   flags=PAGE_LOCKED;
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 Display pagenames and other internal strings in various languages.
10
11 Can also be used to let a favorite translation service translate a whole page.
12 Current favorite: translate.google.com if from_lang = en or fr
13
14 == Usage ==
15 {{{
16   <<WikiTranslation languages=de,en,sv string="" page=""
17                             what=pages from_lang=0 nolinks=0 noT=0 debug=0
18  >>
19 }}}
20
21 == Arguments ==
22
23 All [[Help:PageList|PageList]] arguments, plus the following ones:
24
25 languages:
26   comma delimited string of de,en,sv,...
27 string:
28   string defined in a <lang>.po file to be translated
29 page:
30   A whole page to translate by the currently defined external translation service.
31 what:
32   One of pages, buttons, plugins or wikiwords
33 match:
34   Filter. Default: *
35 from_lang:
36   Override the current lang.
37 nolinks:
38   Do not display any links (for development only)
39 noT:
40   Do not display the T link (for development only)
41
42 == Example ==
43
44 {{{
45   <<WikiTranslation page=HomePage languages=fr>>
46      Translation service for HomePage into french (redirect to translate.google.com)
47   <<WikiTranslation what=pages>>
48      Translation matrix of all pages with proper translations (all in pgsrc)
49   <<WikiTranslation what=wikiwords match="W*" limit=20>>
50      Translation matrix of the first 20 wikiwords matching "W*"
51   <<WikiTranslation string=HomePage languages=fr,de,sv>>
52      Translation matrix for all given languages
53   <<WikiTranslation string=HomePage>>
54      Translation matrix for all supported languages
55   <<WikiTranslation string=HomePage languages=fr>>
56      Just return the translated string for this language.
57 }}}
58
59 == Author ==
60 * [[Help:Reini Urban|Reini Urban]]
61
62 == See Also ==
63
64 <noinclude>
65 ----
66 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
67 </noinclude>