[geeklog-translations] How to set the Geeklog language from English to anything else globally?

geeklog-translations-admin at lists.geeklog.net geeklog-translations-admin at lists.geeklog.net
Sun Dec 28 15:26:34 EST 2003


Victor,

>$_CONF['language']  = 'english';

This tells Geeklog which language file to use per default. So just pick
one from the language directory, leave off the ".php" and insert the name
here, e.g.

$_CONF['language'] = 'french_canada';


>$_CONF['locale']    = 'en-gb';  

This is the locale to use. The locale consists of a language and a
country (so 'en-gb' means the English spoken in Great Britain). I'm still
looking for a good list that has all the locales, but searching Google
for "locale" and the country you're after will usually turn something up.

Please note that for some reason non-english locales use an underscore
'_' character instead of the dash, e.g. 'de_DE' (German / Germany). Also,
on a Unix of the BSD variant, you'll often have to add the character set
to use, e.g. 'de_DE.ISO_8859-1'. And on Windows, the locale consists of
entire words, e.g. 'German_Germany'.


>$_CONF['rdf_language']    = 'en-gb';

The above locale is for switching PHP's locale settings. The RSS feeds
use a slightly different locale notation. Here, it's always the version
using two shortcuts (and nothing else, i.e. no character set), even on
Windows. Also, here you always use the dash instead of the underscore.

So, for example, a site running on a Windows server that would like to
use German (as spoken in Germany) would set

$_CONF['language']     = 'german';
$_CONF['locale']       = 'German_Germany';
$_CONF['rdf_language'] = 'de-DE';

The Geeklog tarballs available on geeklog.info are actually pre-
configured for use in Germany, in case you happen to need a German
localisation. The config.php has the proper locale and language settings
and also a list of German states and event types.

bye, Dirk


-- 
http://www.haun-online.de/
http://geeklog.info/




More information about the geeklog-translations mailing list