[geeklog-translations] Script to merge language files with english.php

geeklog-translations-admin at lists.geeklog.net geeklog-translations-admin at lists.geeklog.net
Thu Feb 5 14:51:56 EST 2004


Hi,

I wrote a tiny little script that can merge a (foreign) language file
with english.php, thus (hopefully) helping in updating the language files
when a new version of Geeklog comes out.

I plan to run all of the existing language files through this script
prior to the release of the first release candidate for the next version
of Geeklog (which is still a few weeks away). I have done some tests, but
would like to hear some feedback, whether you consider it useful.

The script was written for Geeklog 1.3.9, but should work just fine with
older versions. So you can run it on the language files you already have
(it also does some source code beautifying as a side effect).

The script can be downloaded from geeklog.net:

    http://www.geeklog.net/filemgmt/singlefile.php?lid=290

I'm including the README below.

bye, Dirk

--- snip ---
lm.php v0.1

This little script merges a Geeklog (foreign) language file with the
english.php language file, so that new strings added to english.php are
automatically added to the other language file as well.

Usage:

    lm.php langfile.php > new-langfile.php

This script, while written in PHP, is supposed to be run from the command
line and thus requires the CLI version of PHP to be installed on your
computer. It also displays the merged language file on the screen, so you
should redirect the output to a new file. It also expects to find the
english.php language file in the current directory.

What it can do:

- add new individual strings and string arrays to the language file
- does some pretty printing

What it can not do:

- remove obsoleted strings
- detect changed strings

Since we don't usually remove obsoleted strings from Geeklog (in the hope
that they can be reused at a later date), the first issue shouldn't be a
problem.

For changes in existing strings, it is recommended that you subscribe to
the geeklog-translations mailing list, where such information will be posted
when a new version of Geeklog is about to be released.

You can subscribe to the Geeklog mailing lists at

    http://lists.geeklog.net/listinfo

This script was written for Geeklog 1.3.9, which has not been released at
the time of this writing. It should work just fine with language files
from older versions, though.

This script was written 2004 by Dirk Haun, <dirk at haun-online.de>,
and is released under the GNU General Public License v2.
--- snip ---


-- 
http://www.haun-online.de/
http://www.tinyweb.de/




More information about the geeklog-translations mailing list