]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2F_WikiTranslationPlugin
Harmonize documentation
[SourceForge/phpwiki.git] / pgsrc / Help%2F_WikiTranslationPlugin
1 Date: Mon, 16 Jun 2008 14:15:24 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id: Help%2F_WikiTranslationPlugin,v 1.5 2008-06-18 01:12:39 vargenau Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2F_WikiTranslationPlugin;
6   flags=PAGE_LOCKED;
7   markup=2;
8   charset=iso-8859-1
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 <verbatim>
18   <?plugin _WikiTranslation languages=de,en,sv string="" page="" 
19                             what=pages from_lang=0 nolinks=0 noT=0 debug=0
20   ?>
21 </verbatim>
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 <verbatim>
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 </verbatim>
58
59 !!! Author
60 [Reini Urban|PhpWiki:ReiniUrban]
61
62 !!! See Also
63
64 ----
65 [PhpWikiDocumentation] [CategoryWikiPlugin]