DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:translation2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:translation2 [2010-07-07 00:11] 90.178.35.185plugin:translation2 [2023-12-14 18:05] (current) Aleksandr
Line 7: Line 7:
 type       : Action type       : Action
 lastupdate : 2009-02-12 lastupdate : 2009-02-12
-compatible : rc2009-02-06, previous and newer+compatible : 2009-02-14+
 depends    : jquery depends    : jquery
 conflicts  conflicts 
 similar    : translation similar    : translation
 tags       : language tags       : language
 +
 +downloadurl: http://www.pcwdld.com/translation2.tar.gz
 ---- ----
  
-[[http://wiki.birth-online.de/software/php/dw-translation2-plugin|Information and Download]]+[[http://www.pcwdld.com/dokuwiki-translation-plugin|Information and Download]]
  
-====== How to install ====== +===== How to install ===== 
-open main.php of your template (for ex lib/tpl/default/main.php)+open main.php of your template (for example lib/tpl/default/main.php)
 insert this line at the top of the script insert this line at the top of the script
 <PHP> <PHP>
 plugin_load('action','translation2'); plugin_load('action','translation2');
 </PHP> </PHP>
-====== Problems =====+ 
 +===== How it works ===== 
 + 
 +This plugin depends on the [[jquery]]. It uses the ''JQUERY_READY'' hook to add a set of country flags to the top bar. This way you don't have to modify any template. These flags are linked to namespaces according to their 2-letter language code. 
 + 
 +This way, you can easily provide translated versions of your pages. (Already translated languages are shown 60% visible, whereas non-translated languages are shown 30% visible.) 
 + 
 +{{http://www.pcwdld.com/wp-content/uploads/translation2.png|The English page is currently shown and there's a German translation available. Belgian is not yet translated (less visible than the German flag).}} 
 + 
 +The shown flags can be configured in the [[doku>plugin:config|Configuration Manager]]. 
 + 
 +It basically works the same way as the original [[doku>plugin:translation|Translation plugin]]. 
 + 
 + 
 + 
 + 
 +===== Problems =====
 **[xtian, 22 July 2009]** **[xtian, 22 July 2009]**
 When the translation for the browser language doesn't exist, the plugin shows the default language page (which is good) but clicking on the selected flag (the browser language flag is selected, not the default language flag) is uneffective, so a user can't add a page in the browser language (which should be what all translators do). When the translation for the browser language doesn't exist, the plugin shows the default language page (which is good) but clicking on the selected flag (the browser language flag is selected, not the default language flag) is uneffective, so a user can't add a page in the browser language (which should be what all translators do).
Line 39: Line 57:
  
  
-====== Requests ======+===== Requests =====
 Please implement an option like suggested for [[plugin:translation]] too "no pages in the top namespace and all languages in sub namespaces", or please describe how to configure your plugin manually for that. Sincerely Please implement an option like suggested for [[plugin:translation]] too "no pages in the top namespace and all languages in sub namespaces", or please describe how to configure your plugin manually for that. Sincerely
 //[[hemmerling@gmx.net|Rolf Hemmerling]] 2009-10-11 12:00// //[[hemmerling@gmx.net|Rolf Hemmerling]] 2009-10-11 12:00//
- 
  
  
plugin/translation2.1278454282.txt.gz · Last modified: 2010-07-07 00:11 by 90.178.35.185

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki