Commit graph

36 commits

Author SHA1 Message Date
Jonas Häggqvist
2c4438ac51 Make genlang ignore leading and trailing whitespace in source and desc lines (not the strings). If this behavior is unwanted, feel free to revert.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14567 a1c6a512-1295-4272-9138-f99709370657
2007-09-01 20:54:17 +00:00
Daniel Stenberg
59975ccf3c fix the -o output for indexes where there's no voice given, this is for
FS#7576, and it typically caused a bazillion of LANG_SET_BOOL_YES to get output
when -o was used with non-english


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14277 a1c6a512-1295-4272-9138-f99709370657
2007-08-10 23:08:29 +00:00
Daniel Stenberg
d71339bf44 Fix for FS#7574. It previously failed to properly deal with multiple dest
strings. I also added the numerical id number for strings in the generated
header file, which is useful when the new lngdump tool is used and you want to
compare the ids for the built-in strings to the ones in the generated binary
files.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14274 a1c6a512-1295-4272-9138-f99709370657
2007-08-10 22:08:44 +00:00
Nils Wallménius
b311367481 *** Lang v2 cleanup (FS#6574) ***
1) Introduces apps/features.txt that controls which strings are included 
for each target based on defines.
2) .lng and .voice files are now target specific and the format versions 
of both these file types have been bumped, which means that new voice 
files are needed. 
3) Use the 'features' mechanism to exclude strings for targets that 
didn't use them.
4) Delete unused and deprecated and duplicated strings, sort strings in 
english.lang

Some string IDs were changed so translations will be slightly worse than 
before.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14198 a1c6a512-1295-4272-9138-f99709370657
2007-08-05 19:19:39 +00:00
Daniel Stenberg
d0bc092e9e skip comments when trying to parse and compare phrases!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14169 a1c6a512-1295-4272-9138-f99709370657
2007-08-03 20:29:32 +00:00
Daniel Stenberg
a12c591ac3 when generating binary output, we now let the master language file properly
dictate when a certain phrase doesn't exist and should be ignored in the
output


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14150 a1c6a512-1295-4272-9138-f99709370657
2007-08-02 22:09:00 +00:00
Nils Wallménius
90ccc336b4 Make genlang output correct .lng files when the 'none' keyword is used but is not all lowercase
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13971 a1c6a512-1295-4272-9138-f99709370657
2007-07-24 18:49:33 +00:00
Daniel Stenberg
fcd3a49b50 attempt to fix -u
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13721 a1c6a512-1295-4272-9138-f99709370657
2007-06-26 08:44:59 +00:00
Daniel Stenberg
f22e6a5964 FS#6652 fix attempt. Make the phrase id counting take the dest pattern into
account so that the binary and source code output gets the same numbering.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13443 a1c6a512-1295-4272-9138-f99709370657
2007-05-20 13:20:45 +00:00
Daniel Stenberg
5b5162547c match target names more explicitly so that h10 won't match h100 etc
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12769 a1c6a512-1295-4272-9138-f99709370657
2007-03-14 23:02:36 +00:00
Daniel Stenberg
dd0e6e75a0 prevent the incorrect warnings displayed when -u was used, added additional
info to the warning output and moved a comment to the accurate place


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11371 a1c6a512-1295-4272-9138-f99709370657
2006-10-28 17:05:42 +00:00
Daniel Stenberg
537c90b286 Make -t support a range of "targets", which reallly should be one target
and a range of named features.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11254 a1c6a512-1295-4272-9138-f99709370657
2006-10-18 07:41:00 +00:00
Daniel Stenberg
a181a4c1eb Fixed a bug where it didn't warn on lack of quotes as it was supposed to.
Now this treats a string given without quotes as "" (but still warns about it).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9824 a1c6a512-1295-4272-9138-f99709370657
2006-04-27 22:49:36 +00:00
Miika Pekkarinen
991665bcdf More usable playlist generation, added "<All tracks>" entry to tag
browser.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9729 a1c6a512-1295-4272-9138-f99709370657
2006-04-19 11:03:37 +00:00
Daniel Stenberg
993a20a2ca * added more safety checks for failed open()s
* allow 'deprecated' as a keyword for strings marked as ... deprecated!
* warns on stderr if a given string is given without quotes


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9533 a1c6a512-1295-4272-9138-f99709370657
2006-04-06 09:08:11 +00:00
Daniel Stenberg
e5bef364f2 we're on langversion 3!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9472 a1c6a512-1295-4272-9138-f99709370657
2006-04-03 21:40:31 +00:00
Daniel Stenberg
c06e7772ff langv2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9470 a1c6a512-1295-4272-9138-f99709370657
2006-04-03 21:11:11 +00:00
Daniel Stenberg
e7bd73f5dc fixed comment in generated header file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7273 a1c6a512-1295-4272-9138-f99709370657
2005-07-31 21:58:49 +00:00
Jens Arnold
abfd29ab2c Bug fix: The trailing null byte wasn't added when there was whitespace after the closing quote in the .lang file, leading to garbled strings when doing non-english builds. Thanks to quelsaruk for tracking this down.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5730 a1c6a512-1295-4272-9138-f99709370657
2005-02-01 01:23:58 +00:00
Jens Arnold
19afad88f8 Fix: Deprecated voice-only entries were treated as (deprecated) standard LANG_ entries. Now they are detected by the id matching VOICE_*.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5720 a1c6a512-1295-4272-9138-f99709370657
2005-01-31 00:34:32 +00:00
Jens Arnold
0f04029293 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
2005-01-19 21:43:15 +00:00
Jens Arnold
3c2fefdb99 Bugfix: Due to the wrong position of the LANG_LAST_INDEX_IN_ARRAY marker, lang_load() was potentially unsafe. Loading a newer .lng file with an older rockbox build would have caused an out-of-bound access of language_strings[].
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5607 a1c6a512-1295-4272-9138-f99709370657
2005-01-19 21:12:38 +00:00
Linus Nielsen Feltzing
f84e93edfe binlang and genlang couldn't handle deprecated strings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4713 a1c6a512-1295-4272-9138-f99709370657
2004-06-03 08:23:05 +00:00
Linus Nielsen Feltzing
dfb5c6ed61 Spelling error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4690 a1c6a512-1295-4272-9138-f99709370657
2004-05-21 23:37:08 +00:00
Jörg Hohensohn
f9495cba65 Changed concept for voice IDs: the voice-only IDs now are in a separate range, don't generate an empty language string. This saves memory, but requires a new voice file format with 2 tables.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4463 a1c6a512-1295-4272-9138-f99709370657
2004-04-03 20:52:24 +00:00
Daniel Stenberg
8f72d9eeb1 make it deal with traling tabs as well as spaces
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3198 a1c6a512-1295-4272-9138-f99709370657
2003-01-31 09:04:34 +00:00
Daniel Stenberg
dade571a99 indent the generated code properly, add an end-of-array marker named
LANG_LAST_INDEX_IN_ARRAY


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2619 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 12:19:47 +00:00
Daniel Stenberg
1d7c10468f hm, it needs to be correct perl syntax too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2609 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 09:11:48 +00:00
Daniel Stenberg
36069b3506 treat "" 'new' strings as non-existing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2608 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 09:11:11 +00:00
Daniel Stenberg
17cf448f59 better error line, return non-zero on errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2607 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 08:49:25 +00:00
Daniel Stenberg
9e8a1c7759 one or more spaces after the terminating quote should be ok too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2602 a1c6a512-1295-4272-9138-f99709370657
2002-10-13 09:28:46 +00:00
Daniel Stenberg
1017e25438 check for quotes better and warn/skip bad ones
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2592 a1c6a512-1295-4272-9138-f99709370657
2002-10-11 22:01:24 +00:00
Daniel Stenberg
1b2db9ec3c get rid of DOS newlines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2345 a1c6a512-1295-4272-9138-f99709370657
2002-09-20 07:06:15 +00:00
Daniel Stenberg
20963dd801 spell fix, additional comment in the generated .h file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2340 a1c6a512-1295-4272-9138-f99709370657
2002-09-20 06:37:25 +00:00
Daniel Stenberg
8b06a013e0 it now generates one .c file and one .h file, and the strings are all
put in an array


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2310 a1c6a512-1295-4272-9138-f99709370657
2002-09-17 07:17:25 +00:00
Daniel Stenberg
e19f763d79 generate a lang.h file from a .lang input
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2301 a1c6a512-1295-4272-9138-f99709370657
2002-09-16 15:01:38 +00:00