path: root/apps/lang/lang.make
AgeCommit message (Collapse)AuthorFilesLines
2020-07-21build: Tweaks to better support non-English as primary languageSolomon Peachy1-3/+4
* get rid of $(LANGUAGE) in top-level makefile (and configure script) * un-hardcode English-as-primary-language in a couple more places * allow DEFAULT_VOICE_LANG to be overriden To actually change the primary from English, one must change: * $english in * hardcoded 'english' in rbutil * $ENGLISH in apps/lang/lang.make * DEFAULT_VOICE_LANG in apps/talk.c * configure script (default prompt) Of course, if one wants to change the default UI language, it's simpler to change the default language setting variable at compile time, or perhaps by adding a configuration file with the desired value into the .rockbox directory when the .zip is assembled. Change-Id: If5cf76019d416e838628a2eccd4ec7d6cbaeeb74
2020-07-21genlang: More voice-related fixes.Solomon Peachy1-1/+1
* Use consistent ID numbering * Use consistent logic for voicelist and voicebin files * Fix situations where English <-> English would fail in strange ways * Delete leftover tmpfile. * Off-by-one error in voice validation code * Off-by-one error in voicelist generation Change-Id: Ib3cea2c6612138b1cbe614dacbe51000199cc9ad
2020-07-13lang: Fix boneheaded mistake in ca31bad8Solomon Peachy1-2/+2
Change-Id: Iee3842ab7b5d4660855b683141a45a09c187b29f
2020-07-13voice: Ensure all voicelist files in are completeSolomon Peachy1-1/+3
Backfill all missing strings from the English master translation. Change-Id: Ie28f4cf804c22141a2c62f82ed8b2d71c822c74a
2019-07-20FS#7704 - Talk support for pluginsSolomon Peachy1-0/+2
Original patch by Mario Lang Heavily updated by Igor Poretsky Further updated by myself This patch breaks binary API compatibility by placing the new functions where they make the most logical sense. IMO this is the better approach to take given the scope of the changes needed for talk support. Since binary API is changing, the patch also moves some other functions around to more logical locations. As well as voice support in plugins, this patch voice-enables several simple plugins. There will be follow-up patches for many plugins that build on this one. Change-Id: I18070c06e77e8a3c016c2eb6b6c5dbe6633b9b54
2017-09-24Fix make race conditions reharding lang.hAmaury Pouly1-1/+9
The bug is due to a stupid make misfeature. The article [1] contains much more information but in a nutshell, the following code: a b: c bla is equivalent to: a: c bla b: c bla This is bad because in parallel runs (make -j typically), "bla" can be run TWICE and even worse, twice in PARALLEL. Obviously the result will be completely unexpected. This is a real bummer because on the other hand, the following code: %.c %.h: %:in bla actually expresses the fact that bla produces two files. For some reasons, pattern rules work differently from implicit rules. This commit attempts to fix the problem with lang.h by rewriting (simplified): lang.c lang.h: genlang as lang.h: genlang lang.c: lang.h This works (it correctly expresses the dependency chain and ensures genlang runs once) but as one drawback: if one manually removes lang.c, then genlang will not re-run since the second rule does nothing. This is minor drawback since no one ever removes lang.c manually and "clean" removes lang.h which triggers a rebuild. [1]: Change-Id: Ic0bf7c7c203dc599b00fde457946d2316c70474e
2017-09-22Print "GEN lang.h" when generated language header.Amaury Pouly1-0/+1
Hopefully this will help narrow down the problem with LANG_* error message, I have the feeling that lang.h is not generated in time but it's very hard to reproduce. Change-Id: I02b6c98ed9c7e7168fad10dcf1142e307fbc6093
2016-08-21Attempt to fix dependencies for lang.h, lang_core.c and lang_core.oFrank Gevaerts1-4/+4
This hopefully fixes occasional build failures Change-Id: Iff79d2066d6421cca78cc3ecb6cb8db57351ab1f
2012-06-09Only check lng files for MAX_LANGUAGE_SIZE.Dominik Riebeling1-1/+1
Since the build system now creates files holding the voice strings and an archive holding those creating MAX_LANGUAGE_SIZE needs to be created using a more specific wildcard. Change-Id: Ia424533a8053e4817f23b8dd99f6ab3c324d584d
2012-06-09Create binary voice string archive on target.Dominik Riebeling1-3/+8
Extend genlang to create files holding the voice strings in a binary format similar to lng. Create such files for all languages during a normal build, put them in a zip file and add them to so they are installed with a main build. Creating a voice file requires access to the voice strings, which are currently not distributed with Rockbox. Therefore it is necessary to either have access to the source code of the installed build or to use a build the genlang service on can retrieve the strings for, making it impossible for normal users to generate a voice file for custom builds, test builds and older builds that aren't supported by the script. It also requires a network connection when creating voice files with Rockbox Utility even if creating a voice file by itself isn't network related. Furthermore, putting the voice strings on the target is also a prerequisite for eventually supporting a TTS on the player. Strip voice strings path. Change-Id: Ic2f86130909b3b257986a348e5cfcf618c4500c3
2010-07-17Prettier genlang-features output. Use the same style for max_language_size.h.Thomas Martitz1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-07-13Oops, one explicit colon is enough (though an extra one doesn't hurt).Jens Arnold1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-07-13The simplification from r27406 changed the format of 'genlang-features': it ↵Jens Arnold1-1/+1
used to have a leading colon. Fix missing target and feature specific strings resulting from that (mashed target name and first feature) by inserting a colon into the command line explicitly. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-17change dependencies in make files:Teruaki Kawashima1-0/+2
* apps.make: depends on ctype.o instead of errno.o to depend on config-*.h so that it works for simulator. * lang.make: add dependency of lang.h to make it sure that the file is updated properly when needed. * plugins.make: object files don't depend on libpluginbitmaps.a. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-10-18Change the .lng files to contain strings from multiple users. Still ↵Tom Ross1-1/+6
hard-coded to only output the core strings for now. Should be the majority of the core changes needed for translatable plugins. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-03-02Move generated lang-related files to their own directory in preparation of ↵Tom Ross1-5/+5
localizable plugins. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-25Added 'keywords' and 'eol-style' properties.Björn Stenberg1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-21Altered mkdepfile to use a single gcc call and post-process the output. This ↵Björn Stenberg1-2/+1
speeds up the dependency generation, especially in cygwin. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-11-20New makefile solution: A single invocation of 'make' to build the entire ↵Björn Stenberg1-0/+34
tree. Fully controlled dependencies give faster and more correct recompiles. Many #include lines adjusted to conform to the new standards. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657