For Ubuntu, adding a new locale (language) is a two-step process. First, determine the UTF8-encoded locale name, then generate the UTF8-encoded locale.
<br>
Determine Locale Name
Open a command line window and type:
less /user/share/i18n/SUPPORTED
This will list all of the locales Ubuntu supports. Scroll down to find the one that matches the ISO 639-1/ISO 3369-1 language codes of the language you are wanting to add.
Please be aware that some of the locales will not have a suffix (look closely – there is no period (‘.’) between the xx_YY language code and the following characters). Others will have a suffix of ‘.UTF-8.’ Still others will have suffixes like ‘@euro’ and ‘.EUC-KR.’ For ExacqVision, you must use the locale with the ‘UTF-8’ suffix.
For example, Irish in Ireland has these three locales:
...
ga_IE.UTF-8 UTF-8
ga_IE ISO-8859-1
ga_IE@euro ISO-8859-15
...
The first one has a ‘UTF-8’ suffix and should be used. The second and third ones do not have the ‘UTF-8’ suffix and should NOT be used.
<br>
Generate Locale
Since we’ve now determined the proper locale to generate, head back to the command prompt and type (once for each locale you wish to generate):
sudo locale-gen ga_IE.UTF-8
To actually trigger Ubuntu to generate the locale(s), type:
sudo dpkg-reconfigure locales
To verify that the locale(s) were generated, type:
locale -a
<br>
Change the Locale
For any given run of any program
Also, you may run the exacqVision Client from the command line preceded by an env setting. For example:
env LANG=es_CL.utf8 /usr/local/exacq/client/edvrclient
will cause the exacqVision Client to run with the Chilean Spanish translation.
<br>
Permanently
To change the locale, you may change the entire operating system by going to System->Administration->Language Support and changing the default language dropdown. This will require a reboot.
<br>