[geeklog-devtalk] geeklog-devel digest, Vol 1 #198 - 1 msg

geeklog-devtalk-admin at lists.geeklog.net geeklog-devtalk-admin at lists.geeklog.net
Mon Sep 15 13:00:09 EDT 2003


Send geeklog-devel mailing list submissions to
geeklog-devel at lists.geeklog.net

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.geeklog.net/listinfo/geeklog-devel
or, via email, send a message with subject or body 'help' to
geeklog-devel-request at lists.geeklog.net

You can reach the person managing the list at
geeklog-devel-admin at lists.geeklog.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of geeklog-devel digest..."


Today's Topics:

1. Small language change (Tom Willett)

--__--__--

Message: 1
From: "Tom Willett" <tomw at pigstye.net>
To: "Geeklog Core List" <geeklog-devel at lists.geeklog.net>
Date: Mon, 15 Sep 2003 15:35:03 +0000
Subject: [geeklog-devel] Small language change
Reply-To: geeklog-devel at lists.geeklog.net

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



--__--__--

_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://lists.geeklog.net/listinfo/geeklog-devel


End of geeklog-devel Digest



More information about the geeklog-devtalk mailing list