]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2F_WikiTranslationPlugin
Use UTF-8 so that display is correct on sf.net
[SourceForge/phpwiki.git] / pgsrc / Help%2F_WikiTranslationPlugin
1 Date: Thu, 26 Mar 2009 11:34:32 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
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   <?plugin _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 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   <?plugin _WikiTranslation page=HomePage languages=fr ?>
46      Translation service for HomePage into french (redirect to translate.google.com)
47   <?plugin _WikiTranslation what=pages ?>
48      Translation matrix of all pages with proper translations (all in pgsrc)
49   <?plugin _WikiTranslation what=wikiwords match="W*" limit=20 ?>
50      Translation matrix of the first 20 wikiwords matching "W*"
51   <?plugin _WikiTranslation string=HomePage languages=fr,de,sv ?>
52      Translation matrix for all given languages
53   <?plugin _WikiTranslation string=HomePage ?>
54      Translation matrix for all supported languages
55   <?plugin _WikiTranslation string=HomePage languages=fr ?>
56      Just return the translated string for this language.
57 }}}
58
59 == Author
60 * [[PhpWiki:ReiniUrban|Reini Urban]]
61
62 == See Also
63
64 <noinclude>
65 ----
66 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
67 </noinclude>