meta data for this page
  •  

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
plugin:viewinbrowser [2024/06/22 20:31] duncancplugin:viewinbrowser [2026/07/27 22:21] (current) – [Translations] duncanc
Line 28: Line 28:
 ===== Translations ===== ===== Translations =====
  
-The text displayed by the plugin can be translated into other languages. See the file ''plugins/ViewBrowserPlugin/lan/translations_en.php'' for the English version that can be used as the basis for another language. Each line in the file contains the English text then the equivalent text in the target language.+The text displayed by the plugin can be translated into other languages. 
  
-To create a new language file, copy ''translations_en.php'' to ''translations_xx.php'', where xx is the language code, then change the texts for your target language. For the new translations to take effect you need to logout of phpList then login again.+Each language has a file for admin translations and a second file for public page translations. 
 +The admin translations are in files ''lan/translations_xx.php'' where ''xx'' is the two character language code such as ''es''. The public page translations are in the file ''lan/frontend_xxxx.php'' where ''xxxx'' is the language name, such as ''spanish''
 + 
 +Each line in each file contains the English text then the equivalent text in the target language. 
 + 
 +To create files for a new language, copy ''translations_en.php'' to ''translations_xx.php'', where xx is the language code, and ''frontend_english.php'' to ''frontend_xxxx.php'', where xxxx is the language name, then change the texts for your target language. For the new translations to take effect you need to logout of phpList then login again.
  
 You can share your new language file by submitting it for inclusion in the plugin. Please create a topic in the user forum or an issue on GitHub. You can share your new language file by submitting it for inclusion in the plugin. Please create a topic in the user forum or an issue on GitHub.