From geeklog-translations-admin at lists.geeklog.net Fri Dec 26 04:34:42 2003 From: geeklog-translations-admin at lists.geeklog.net (geeklog-translations-admin at lists.geeklog.net) Date: Fri, 26 Dec 2003 04:34:42 -0500 Subject: [geeklog-translations] How to set the Geeklog language from English to anything else globally? Message-ID: <16829916427.20031226043442@vbgunz.com> Hello, I would like to know how to change the Geeklog language from it's default state "English, en_gb" to any other language. I've noticed the language folder contains several language files. I checked in the config.php and saw what I believe might effect the locale. My questions are, what do I change in config.php so to change the language of the site on a global level? Are these lines the most important under locale settings and are the following lines the only lines needed to be tweaked so to effect the language? $_CONF['language'] = 'english'; $_CONF['locale'] = 'en-gb'; $_CONF['rdf_language'] = 'en-gb'; Do I replace english with let's say the title of the language file found in the language folder? e.g. to link to the german_formal.php file do I do this? $_CONF['language'] = 'german_formal'; If the above is correct, how do I find out the abbreviation to locale and rdf_language? If the above is wrong can someone help correct me? Sorry but I never had the need to change the language from it's default "English" as it was always good for me. I would like to look into changing the languages. Can someone help me out? Thank you for your time. -- Best regards, Victor B. Gonzalez GeekLog v1.3.8-1sr3 apache_2.0.48-win32-x86-no_src mysql-4.0.17-win-noinstall.zip php-4.3.4-Win32.zip Windows XP 5.1 Build 2600 Service Pack 1 From geeklog-translations-admin at lists.geeklog.net Sun Dec 28 15:26:34 2003 From: geeklog-translations-admin at lists.geeklog.net (geeklog-translations-admin at lists.geeklog.net) Date: Sun, 28 Dec 2003 21:26:34 +0100 Subject: [geeklog-translations] How to set the Geeklog language from English to anything else globally? In-Reply-To: <16829916427.20031226043442@vbgunz.com> References: <16829916427.20031226043442@vbgunz.com> Message-ID: <20031228202634.23831@smtp.haun-online.de> 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/