DokuWiki

It's better when it's simple

User Tools

Site Tools


localization

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
localization [2016-03-07 21:28]
84.142.139.196
localization [2018-08-28 07:34] (current)
Samana Johann [Changing some localized texts and strings in your installation] ISO 639-1, right?
Line 29: Line 29:
 If a plugin is not translatable via the hub you can do it manually: If a plugin is not translatable via the hub you can do it manually:
  
-  * Copy the content of ''​lib/​plugins/<​pluginname>/​lang/​en/''​ to\\ ''​lib/​plugins/<​pluginname>/​lang/<​ISO-code>/''​+  * Copy the content of ''​lib/​plugins/<​pluginname>/​lang/​en/''​ to\\ ''​lib/​plugins/<​pluginname>/​lang/<​ISO-lang-code>/''​
   * Edit the contained ''​.php''​ and ''​.txt''​ files in a [[utf-8|UTF-8 capable]] text editor   * Edit the contained ''​.php''​ and ''​.txt''​ files in a [[utf-8|UTF-8 capable]] text editor
   * Zip up the new language folder and send it to the author for inclusion in future releases   * Zip up the new language folder and send it to the author for inclusion in future releases
Line 40: Line 40:
  
 You can change these texts by copying the ''<​name>​.txt''​ files or copying some strings from ''​lang.php'':​ You can change these texts by copying the ''<​name>​.txt''​ files or copying some strings from ''​lang.php'':​
-  * from ''​inc/​lang/<​ISO-code>/''​ +  * from ''​inc/​lang/<​[[https://​www.loc.gov/​standards/​iso639-2/​php/​English_list.php|ISO 639-1]]-lang-code>/''​ 
-  * to ''​**conf/​lang/​**<​ISO-code>/''​+  * to ''​**conf/​lang/​**<​ISO-lang-code>/''​
 and editing the copied content. ​ and editing the copied content. ​
  
 You can do the same thing for plugins and templates by copying ''<​name>​.txt''​ or some strings from ''​lang.php'':​ You can do the same thing for plugins and templates by copying ''<​name>​.txt''​ or some strings from ''​lang.php'':​
-  * from ''​lib/​plugins/<​plugin>/​lang/<​ISO-code>/''​ +  * from ''​lib/​plugins/<​plugin>/​lang/<​ISO-lang-code>/''​ 
-  * to ''​**conf/​plugin_lang/​**<​plugin>/<​ISO-code>/''​+  * to ''​**conf/​plugin_lang/​**<​plugin>/<​ISO-lang-code>/''​
  
-  * from ''​lib/​tpl/<​template>/​lang/<​ISO-code>/''​ +  * from ''​lib/​tpl/<​template>/​lang/<​ISO-lang-code>/''​ 
-  * to ''​**conf/​template_lang/​**<​template>/<​ISO-code>/''​+  * to ''​**conf/​template_lang/​**<​template>/<​ISO-lang-code>/''​
  
 :!: Copy only strings from ''​lang.php''​ which you will modify. The remains strings are read from the original file. :!: Copy only strings from ''​lang.php''​ which you will modify. The remains strings are read from the original file.
localization.1457382488.txt.gz · Last modified: 2016-03-07 21:28 by 84.142.139.196