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
Next revisionBoth sides next revision
translation [2019_04_29 09:12] – [Translation management] kam3 minor edit kamrantranslation [2022_06_10 10:21] dan
Line 1: Line 1:
 ====== Translation / Localization ====== ====== Translation / Localization ======
 +== last updated on June 10, 2022 ==
  
 The Enterprise File Fabric Web interface supports translation/localization, allowing you to customize the strings displayed in your File Fabric. The Enterprise File Fabric Web interface supports translation/localization, allowing you to customize the strings displayed in your File Fabric.
Line 6: Line 7:
  
   * English   * English
-  * Italian +  * Russian
-  * Polish+
  
 At its core, the File Fabric uses the [gettext](https://en.wikipedia.org/wiki/Gettext) standard to handle translations.   At its core, the File Fabric uses the [gettext](https://en.wikipedia.org/wiki/Gettext) standard to handle translations.  
Line 49: Line 49:
 When prompted, select the language you wish to translate to. When prompted, select the language you wish to translate to.
  
-{{::translation_language_and_sme_code_pot_and_/_translation___localization_-_storage_made_easy/_documentation.png?400|}}+{{::select_language.png?400|}}
  
 The tool will then allow you to input translations.  The tool will then allow you to input translations. 
Line 95: Line 95:
  
 Once done, follow the previous instructions for uploading your PO files to the File Fabric. Once done, follow the previous instructions for uploading your PO files to the File Fabric.
 +
 +## Troubleshooting
 +
 +PO and POT Files can be found under
 +
 +    /var/www/smestorage/public_html/languages
 +
 +==== Replacing text in the English ("en") language ====
 +    
 +English ("en") is the File Fabric's base language.  You cannot change the strings for English directly but you can add a new language and force that language to be used.  At a high level the steps are:
 +
 +  * Download the .pot files for the current language ("en") using the link at the top of the Languages page.
 +  * Copy the .pot files to .po files(s), adding the language code to the names of the files as described on the doc. page, for example: "sme_code_en.po".
 +  * Edit the .po files that contain the strings strings that you want to change, replacing the empty message strings with the new values you want.
 +  * Compile all three .po files, producing three .mo files. All of these files should sit together.
 +  * Zip the six files (.po and .mo) and upload them to the File Fabric.
 +  * Set the newly uploaded language as the default language.
 +
 +The .po files that you will be starting with are the base files for the File Fabric.  In these files the message IDs are the strings that the File Fabric displays in its base language (English) by default, and the message strings are all empty.
 +
 +You should find the message IDs that match the strings you want to replace and put the replacement values between the quotes of the associated message strings.  You will probably have to make changes in all three .po files.  Also, you will probably want to search the files for messages where the text you want to change is a substring of the message ID and change those message strings as well. You only need to edit the messages you want to change; leave the remainder as empty quotes.