Translation / Localization

The Enterprise File Fabric Web interface supports translation/localization, allowing you to customize the strings displayed in your File Fabric.

Out of the box, the Enterprise File Fabric (appliance) ships with the following language support:

  • English
  • Italian
  • Polish

At its core, the File Fabric uses the gettext standard to handle translations.

When a user visits Enterprise File Fabric service's web interface, the users Browser will inform the File Fabric with a list of languages the user is happy to receive in order of preference. Typically, browsers will make the users current operating system locale the most highly preferred language. The File Fabric will take this list of preferred languages, and selects a language that is closest to the users most preferred language and one that is supported by the File Fabric.

Some browsers may also provide override settings, or extensions, that also allow users to select their desired language that may differ from their operating system's settings.

Translation management

The File Fabric provides an interface where the administrator can manage the translations. You must have the ApplAdmin account details to acces it.

To visit this interface, login as the ApplAdmin user, and click on Settings > Languages

The screen should look similar to the following:

From this screen you will notice the following controls:

  • Download current version of .pot files — To translate the File Fabric you will need the base “template” files. This link allows you to download these files
  • Force to use selected language — When this is set to anything other than “autodetect”, the File Fabric will not perform any language negotiation with the browser and will always display in the selected language.
  • Default language — This sets the default language that is served if no mutual language can be negotiated with the user's browser.
  • Active languages — This controls the active languages and download links to the translation files for available languages.

Translating the File Fabric

Before you begin any translation of the File Fabric, you should first ensure that you have suitable translation tools available. As the File Fabric uses the gettext standard, many free and paid tools exist, such as POEdit (Windows + Mac compatible) which can be used to ease the editing process. You should ensure you have something sufficient installed before proceeding.

If you are translating the File Fabric into language that does not exist, then you should start by clicking the Download current version of .pot files link.

In the download, you will receive a ZIP file that contains 3 POT files, each of which contain different translation strings used in different parts of the application.

The POT format stands for “PO Templates”. These templates are empty and in order to start translation, they will each need to be saved into .PO files.

With your tool, like POEdit, open one of the .POT files, for example, sme_code.pot.

As you are opening a POT file, most editors will not allow you to input any translations, and as highlighted, they will prompt you to convert it from a template file into a PO file. You should perform the conversion.

When prompted, select the language you wish to translate to.

The tool will then allow you to input translations.

Before going further, you should then save the file. You will need to ensure that the format is in line with the original. For example, as we opened sme_code.pot, and we are making French translations, we would save this as sme_code_fr.po (notice the appending of the language, and the file is now a PO).

The same procedure can be followed for the other files.

At this point you can make the translations inside of the PO files as you wish.

You may notice that some translation strings contain variables, like “%s”. These should be preserved in your translation strings as these contain variables that the application will insert.

Once you have completed the translations, you will have 3 .PO files containing translations.

Whilst you are saving changes to the PO files, some applications like POEdit automatically generate .MO files. These are compiled versions of the PO files and are also required by the File Fabric.

If your editor does not automatically compile the PO files into MO files, then most editors provide an option to convert into MO.

Once you have completed all translations, you should have 6 files (3 PO + 3 MO).

You should select these 6 files, and compress these into a single ZIP archive.

You can then revisit the Languages screen, and upload the ZIP file there. Once uploaded, your translations are then available and can be enabled.

Updating existing translations

The process for updating existing translations is similar to the process for creating new translations, however in this case the process will not start with POT files, it will start with PO files instead (already converted to PO).

You can then make you changes, compile, and upload to the File Fabric.

Updating translations with new File Fabric releases

When you update your File Fabric installation to new versions, your existing translations will be persisted with the updates.

However, as with any new release, it is likely that new strings will have been introduced. With each release, the File Fabric's POT (template) files are updated, and you should perform a merge with the POT files to ensure you have no missing strings.

To do this, download the new POT files. For each POT file, like sme_code.pot, you will need to merge it with our previous translated PO file.

To merge the files you can use the msgmerge command, part of the gettext package, like follows:

msgmerge sme_code_fr.po sme_code.pot > sme_code_fr_new.po

This will merge the old PO file with the new template (maintaining existing translations) and create a new file called sme_code_fr_new.po. You can check the new file, and once happy rename it to the original name. Repeat this process for each PO and relevant POT file that exists.

Once done, follow the previous instructions for uploading your PO files to the File Fabric.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies