Personal tools
You are here: Home gvSIG Projects gvSIG Desktop Documentation User documentation gvSIG-Desktop 1.9. User manual
gvSIG Desktop
gvSIG Desktop

Cached time 11/21/13 15:31:35 Clear cache and reload

 
Document Actions

gvSIG-Desktop 1.9. User manual

by Victor Acevedo last modified 2011-04-19 16:42

A compressed file with ZIP format will be used to install or export translations.

This file should always have, at least a file locales.csv with the list of translations that are contained in the ZIP file, as well as a .properties file with the labels and the translations for each of the languages contained in the locales.csv file.

Note: the files must obligatorily be on the root of the ZIP file and not inside any folder.

For example, a file with the translations to the German and English languages should have the following files:

gestion-de-traducciones.img/English.zip.png

Import or export translations file.

The locales.csv file serves to show the list of available translations in the ZIP file, indicating for each one of them those that are used as translation or updating reference, and those that are not.

The locales.csv file is in text format, with every language indicated in a line and the values separated by comma with the following format:

FILE_NAME,LANGUAGE_CODE,COUNTRY_CODE,VARIANT_CODE,REFERENCE (whether it is a reference language or not)

  • File name: Properties that contain the translation to the language.
  • Language Code: Two characters language ID according to the ISO 639 standard.
  • Country Code: Two character country ID according to the ISO 3166 standard. Optional.
  • Variant code: Variant ID. Optional.
  • Reference: True in case it is a language used as reference, false if not. Upon importing a file, those with a true value will be ignored. Optional.

Optional fields are allowed to remain empty, but all fields must be separated by commas. If we would like to edit this file we could use any regular text editor or spreadsheet, as long as we keep the CSV comma delimited format.

The content of the locales.csv file in the initial example would be:

text.properties,es,,,true
text_en.properties,en,,,false

Cached time 11/21/13 07:22:33 Clear cache and reload

Get freemind document

View source document Get permanent link


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: