Next: , Previous: , Up: Top   [Index]

17 Internationalization

Chart is written in English, but has support for various localizations, selected by the usual system mechanisms.


Numbers are shown with the locale decimal point and thousands separator. You can also customize these in your


Dates are shown in the locale format, or the usual C language default is ‘mm/dd/yy’. You can also customize this in your to set a personal preference, like the month as a name instead of a number.


Message strings are translated into the selected language, when a translation is available. Gtk has a good set of translations for the standard menus and dialogs, but for Chart specifics there’s almost nothing yet.

Stock and commodity names

Names are downloaded in the selected or highest preference language, when there’s a choice. Weblinks to company information or the exchange home page likewise.


Annotation notes (see Annotations) can be entered with unicode characters.

17.1 Locale Selection

On a typical Unix/POSIX-style system the locale is selected with the LANG environment variable, set to a language code and optional territory and charset. For example US English,

export LANG

This is often set by the system administrator, but you can do it yourself in your ~/.profile (see Bash Startup Files in Bash Features).

Language and country codes can be found in Language Codes in GNU gettext utilities, and Country Codes in GNU gettext utilities. Usually there’s only a few combinations available on a system, run ‘locale -a’ to see them.

Additionally, on a GNU system the LANGUAGE environment variable gives a list of language preferences for message translations (see User influence on gettext in GNU C Library Reference Manual). For example to have Italian preferred, otherwise Spanish, otherwise English,


Chart looks at LANGUAGE too (on all systems) for the preferred language for stock and commodity names.

Next: , Previous: , Up: Top   [Index]

Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2016, 2017 Kevin Ryde

Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.