]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FWikiTranslationPlugin
Produced by PhpWiki 1.5.5
[SourceForge/phpwiki.git] / pgsrc / Help%2FWikiTranslationPlugin
1 Date: Thu, 10 Dec 2015 18:48:03 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.5.5)
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 {| class="bordered"
26 |-
27 ! Argument
28 ! Description
29 ! Default value
30 |-
31 | **languages**
32 | comma delimited string of de,en,sv,...
33 |
34 |-
35 | **string**
36 | string defined in a <lang>.po file to be translated
37 |
38 |-
39 | **page**
40 | A whole page to translate by the currently defined external translation service.
41 |
42 |-
43 | **what**
44 | One of pages, buttons, plugins or wikiwords
45 |
46 |-
47 | **match**
48 | Filter
49 | *
50 |-
51 | **from_lang**
52 | Override the current lang.
53 |
54 |-
55 | **nolinks**
56 | Do not display any links (for development only)
57 |
58 |-
59 | **noT**
60 | Do not display the T link (for development only)
61 |
62 |}
63
64 == Example ==
65
66 {{{
67   <<WikiTranslation page=HomePage languages=fr>>
68      Translation service for HomePage into french (redirect to translate.google.com)
69   <<WikiTranslation what=pages>>
70      Translation matrix of all pages with proper translations (all in pgsrc)
71   <<WikiTranslation what=wikiwords match="W*" limit=20>>
72      Translation matrix of the first 20 wikiwords matching "W*"
73   <<WikiTranslation string=HomePage languages=fr,de,sv>>
74      Translation matrix for all given languages
75   <<WikiTranslation string=HomePage>>
76      Translation matrix for all supported languages
77   <<WikiTranslation string=HomePage languages=fr>>
78      Just return the translated string for this language.
79 }}}
80
81 == Author ==
82 * [[Help:Reini Urban|Reini Urban]]
83
84 == See Also ==
85
86 <noinclude>
87 ----
88 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
89 </noinclude>