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 revisionPrevious revision
localization [2023-12-11 14:56] 114.122.69.23localization [2023-12-11 20:15] (current) – old revision restored (2023-09-24 01:09) oiv
Line 17: Line 17:
   * As DokuWiki wants to be **standards-compliant**, consider learning about these regarding your language first. You can learn about correct spelling and interpunction from dictionaries or webpages maintained by public institutions.   * As DokuWiki wants to be **standards-compliant**, consider learning about these regarding your language first. You can learn about correct spelling and interpunction from dictionaries or webpages maintained by public institutions.
   * Always **keep the format strings intact**, i.e. identical. Strings like these ''<nowiki>%1$d</nowiki>'' and ''%%<i>%s</i>%%'' and ''%%<strong>Update:</strong>%%''. The word ''Update:'' should be translated but the word ''%%<strong>%%'' **not**.   * Always **keep the format strings intact**, i.e. identical. Strings like these ''<nowiki>%1$d</nowiki>'' and ''%%<i>%s</i>%%'' and ''%%<strong>Update:</strong>%%''. The word ''Update:'' should be translated but the word ''%%<strong>%%'' **not**.
 +
 +==== Howto add a new language ====
 +To prevent spam, https://translate.dokuwiki.org/ only has languages which exist in the source code DokuWiki. To initiate a new language you can send a pull request with some translated lines or if you do not program you can open an issue in our Bug tracker. Please use ISO 639-1 (2-letter) and ISO 639-3 (3-letter) language code format, see... When accepted the language becomes available for easier translation via the translation tool.
  
 ==== Directions for consistent translations ==== ==== Directions for consistent translations ====
Line 26: Line 29:
 ==== Plugins ==== ==== Plugins ====
  
-Plugin authors can register their plugin at the [[https://translate.dokuwiki.org/|DokuWiki Localization Hub]] where you can easily help to translate the plugin.+Plugin authors can register their plugin at [[https://translate.dokuwiki.org/]] where you can easily help to translate the plugin.
  
-If a plugin is not translatable via the hub you can do it manually:+If a plugin is not translatable via the translation tool you can do it manually:
  
   * Copy the content of ''lib/plugins/<pluginname>/lang/en/'' to\\ ''lib/plugins/<pluginname>/lang/<ISO-lang-code>/''   * Copy the content of ''lib/plugins/<pluginname>/lang/en/'' to\\ ''lib/plugins/<pluginname>/lang/<ISO-lang-code>/''
Line 54: Line 57:
 Copy only strings from ''lang.php'' which you will modify. The remaining strings are read from the original file. Copy only strings from ''lang.php'' which you will modify. The remaining strings are read from the original file.
  
-Translating txt-files is possible since "Rincewind" 2011-04-22. Translating some strings from ''lang.php'' since Release 2014-09-29 "Hrun". 
  
 === Example === === Example ===
Line 98: Line 100:
   * Directions for [[teams:i18n:consistenttranslations|consistent translations]]   * Directions for [[teams:i18n:consistenttranslations|consistent translations]]
   * The [[teams:I18N]] Team (translation team)   * The [[teams:I18N]] Team (translation team)
 +
localization.txt · Last modified: 2023-12-11 20:15 by oiv

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