Structure of Language Property Files
- 1 minute to read
Languages support for a particular business account is activated by Whatfix on request. Once activated you can download the related files using your Whatfix business login. See Updating Language Files for more information.
The downloaded file (.zip) contains a set of language property files for all the languages supported in your account. These files are in UTF-8 encoding. Each file includes properties for all the walkthroughs. There are 2 sets of language property files in the downloaded zip file:
- full : This folder contains the full set of all the properties files.
- delta : This folder contains only those properties that were modified after the previous translation.
- Here is an example of what a property file looks like.
- The first line contains the language that this property file deals with. In the above screenshot,'fr' represents the French language code. For a list of supported languages and their codes, see Languages Supported by Whatfix
- The second line marks the time of the creation of this file.
- Each line represents a key-value pair where key=value
- Each key starts with a flow id followed by a corresponding field name.
E.g.: fb1703d0-47f4-11e5-b962-448a5b5dd5b8_step_1_description represents Step 1 Description of flow having flow_id "fb1703d0-47f4-11e5- b962-448a5b5dd5b8".
- Each value is either:
- English text of the corresponding field, if there is no existing translation OR
- Translated text of that field, if a translation exists
- Here Vous êtes ici sur 'Home' is the french translation of Step 1
- When the file is downloaded the first time, all the values are in the language that the walkthrough was were created in.
- Lines beginning with "property" represent text for Whatfix elements appearing during flow run.
- File with the name "default.properties" contains the default values for all the properties in Whatfix, including the default language in which all the flows were published in the business account.
- Ensure that all translated content is saved only in UTF-8 encoding.
- Character limit restrictions apply to the translations.
- Rich Text Formatting remains the same in the language property file.
- Use \n character to start content on a new line.
E.g. fb1703d0-47f4-11e5-b962-448a5b5dd5b8_step_1_description=Vous êtes ici sur \n 'Home'
The output for the line above is displayed as shown below.