[geeklog-devel] Small language change
Tom Willett
tomw at pigstye.net
Mon Sep 15 11:35:03 EDT 2003
I wish to propose a small change to the language system of 1.3 series
Geeklog that will aleviate the problem of incomplete translations.
The change only requires a small format change (which can be handled by any
good editor's search and replace quickly). Leave the english.php as is and
always include the english.php. Change the format of the other language
files from the format of
$LANG_PL00 = array (
'some string' => 'some string',
etc .....
)
to
$LANG_PL00['some string'] = 'some string';
In lib-common (or a plugin's functions.inc) check the language and include
the file if the language is not english.
That way phrases missing from the translation will simply be replaced with
the english equivelant. This would allow partial translations to work
without errors.
--
Tom Willett
tomw at pigstye.net
More information about the geeklog-devel
mailing list