Commit graph

18 commits

Author SHA1 Message Date
Nils Wallménius
a01996436d Use file_exists and dir_exists functions where appropriate, fix one wrong file descriptor check and one possible dir descriptor leak
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17147 a1c6a512-1295-4272-9138-f99709370657
2008-04-16 19:51:43 +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
Marcoen Hirschberg
87c6f546cf don't load the language file into the buffer untill we know it is not too big and of the right version (files can now be 3 bytes bigger ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8164 a1c6a512-1295-4272-9138-f99709370657
2005-12-06 00:44:57 +00:00
Daniel Stenberg
f981ea93fb kill gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657
2005-12-05 22:44:42 +00:00
Daniel Stenberg
5c834871aa removed debug output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6034 a1c6a512-1295-4272-9138-f99709370657
2005-02-22 12:55:21 +00:00
Jens Arnold
d66139cdfb I intended to fix it, really\!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5610 a1c6a512-1295-4272-9138-f99709370657
2005-01-19 22:27:48 +00:00
Jens Arnold
92af557257 Tweaked to compile with older gcc.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5609 a1c6a512-1295-4272-9138-f99709370657
2005-01-19 22:24:15 +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
8fb336148f Const policed pointer arguments to functions, part 3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4999 a1c6a512-1295-4272-9138-f99709370657
2004-08-18 01:09:31 +00:00
Daniel Stenberg
a91dfd53be Henrik Backe's english language file cleanup. This ups the language file
version number from 1 to 2, making *ALL* old language files obsolete.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4270 a1c6a512-1295-4272-9138-f99709370657
2004-01-23 11:41:11 +00:00
Mats Lidell
74cc9e41fa Remove use of rockbox-mode.el in local variables list.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
2003-01-24 10:56:06 +00:00
Daniel Stenberg
ab0dce0264 blatantly stupid proto added for mingw simulator compiles to get rid of
the darned warning


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2805 a1c6a512-1295-4272-9138-f99709370657
2002-11-04 22:53:22 +00:00
Daniel Stenberg
4ce3f72cc6 made the language loader output all new strings on stdout when loaded in
the simulator, as it really helps to detect language-loading related
problems


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2777 a1c6a512-1295-4272-9138-f99709370657
2002-10-29 12:31:34 +00:00
Daniel Stenberg
c7e0bea57a prevent storing IDs that are higher than we have knowledge about!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2620 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 12:20:53 +00:00
Daniel Stenberg
2d8aef9ab7 lang_load() returns an int to signal success
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2396 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 13:53:41 +00:00
Daniel Stenberg
6823fe8bd7 updated comments for the function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2394 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 12:50:45 +00:00
Daniel Stenberg
571e8a26e0 code-policed my own code ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2393 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 12:48:23 +00:00
Daniel Stenberg
8d38c965dd binary language load support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2388 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 12:39:33 +00:00