From 0f0402929397bc020fa6e8f3fd9b78185cf76318 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 19 Jan 2005 21:43:15 +0000 Subject: New way of handling the builtin language strings. Now the string pointers are no longer stored as initialised data, but calculated by walking one long string containing all language strings separated by \0. While this doesn't need more RAM, it fixes the problem that loading incomplete .lng files after complete ones did not reset the missing strings to the default, and it also decreases the binary size by >1700 bytes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5608 a1c6a512-1295-4272-9138-f99709370657 --- tools/genlang | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tools/genlang') diff --git a/tools/genlang b/tools/genlang index e13cd3faf9..2677735d2e 100755 --- a/tools/genlang +++ b/tools/genlang @@ -30,8 +30,11 @@ print HFILE <) { } else { push @hfile, $set{'id'}; - print CFILE " $value,\n"; + $value =~ s/\"$/\\0\"/; + print CFILE " $value\n"; } undef %set; @@ -118,7 +125,7 @@ MOO ; print CFILE <