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
Next revision
Previous revision
plugin:viewinbrowser [2024/02/04 19:51] – [View in browser] duncancplugin:viewinbrowser [2026/07/27 22:21] (current) – [Translations] duncanc
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
 +
 description: Provides placeholders to view a campaign email in a browser and to display an archive page of all emails sent to a subscriber description: Provides placeholders to view a campaign email in a browser and to display an archive page of all emails sent to a subscriber
 author     : Duncan Cameron author     : Duncan Cameron
Line 27: 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.  
 + 
 +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 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.+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.