Diff: Help/WikiTranslationPlugin

Differences between current version and predecessor to the previous major change of Help/WikiTranslationPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 3 Last edited on 17 January 2022 3:00 by harold
Older page: version 2 Last edited on 22 May 2014 3:01 by harold Revert
@@ -13,24 +13,46 @@
 == Arguments == 
  
 All [[Help:PageList|PageList]] arguments, plus the following ones: 
  
-languages:  
- comma delimited string of de,en,sv,...  
-string:  
- string defined in a <lang>.po file to be translated  
-page:  
- A whole page to translate by the currently defined external translation service.  
-what:  
- One of pages, buttons, plugins or wikiwords  
-match:  
- Filter. Default: *  
-from_lang:  
- Override the current lang.  
-nolinks:  
- Do not display any links (for development only)  
-noT:  
- Do not display the T link (for development only) 
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| ** languages**  
+| comma delimited string of de,en,sv,...  
+|  
+|-  
+| ** string**  
+| string defined in a <lang>.po file to be translated  
+|  
+|-  
+| ** page**  
+| A whole page to translate by the currently defined external translation service.  
+|  
+|-  
+| ** what**  
+| One of pages, buttons, plugins or wikiwords  
+|  
+|-  
+| ** match**  
+| Filter  
+| *  
+|-  
+| ** from_lang**  
+| Override the current lang.  
+|  
+|-  
+| ** nolinks**  
+| Do not display any links (for development only)  
+|  
+|-  
+| ** noT**  
+| Do not display the T link (for development only)  
+|  
+|}  
  
 == Example == 
  
 {{{ 

current version

Display pagenames and other internal strings in various languages.

Can also be used to let a favorite translation service translate a whole page. Current favorite: translate.google.com if from_lang = en or fr

Usage

  <<WikiTranslation languages=de,en,sv string="" page=""
                            what=pages from_lang=0 nolinks=0 noT=0 debug=0
 >>

Arguments

All PageList arguments, plus the following ones:

Argument

Description

Default value

languages

comma delimited string of de,en,sv,...

string

string defined in a <lang>.po file to be translated

page

A whole page to translate by the currently defined external translation service.

what

One of pages, buttons, plugins or wikiwords

match

Filter

*

from_lang

Override the current lang.

nolinks

Do not display any links (for development only)

noT

Do not display the T link (for development only)

Example

  <<WikiTranslation page=HomePage languages=fr>>
     Translation service for HomePage into french (redirect to translate.google.com)
  <<WikiTranslation what=pages>>
     Translation matrix of all pages with proper translations (all in pgsrc)
  <<WikiTranslation what=wikiwords match="W*" limit=20>>
     Translation matrix of the first 20 wikiwords matching "W*"
  <<WikiTranslation string=HomePage languages=fr,de,sv>>
     Translation matrix for all given languages
  <<WikiTranslation string=HomePage>>
     Translation matrix for all supported languages
  <<WikiTranslation string=HomePage languages=fr>>
     Just return the translated string for this language.

Author

See Also