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