diff options
author | Tom Ross <midgey@rockbox.org> | 2009-10-18 00:56:42 +0000 |
---|---|---|
committer | Tom Ross <midgey@rockbox.org> | 2009-10-18 00:56:42 +0000 |
commit | ec2737b2c24ac442d2b9fcf0f0222becb456d8ce (patch) | |
tree | a375c87ad5236558ded8169e4065b24a377875fc /apps/lang/lang.make | |
parent | bde02318035b9cad07a288b611f2b77fdf9cf1f8 (diff) | |
download | rockbox-ec2737b2c24ac442d2b9fcf0f0222becb456d8ce.tar.gz rockbox-ec2737b2c24ac442d2b9fcf0f0222becb456d8ce.tar.bz2 rockbox-ec2737b2c24ac442d2b9fcf0f0222becb456d8ce.zip |
Change the .lng files to contain strings from multiple users. Still 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://svn.rockbox.org/rockbox/trunk@23241 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/lang/lang.make')
-rw-r--r-- | apps/lang/lang.make | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/lang/lang.make b/apps/lang/lang.make index e32f084a29..f7366c9225 100644 --- a/apps/lang/lang.make +++ b/apps/lang/lang.make @@ -18,9 +18,14 @@ CLEANOBJS += $(BUILDDIR)/lang/max_language_size.h $(BUILDDIR)/lang/lang* # Therefore we create it here. #DUMMY := $(shell mkdir -p $(BUILDDIR)/apps/lang) +# Calculate the maximum language size. Currently based on the file size +# of the largest lng file. Subtract 10 due to HEADER_SIZE and +# SUBHEADER_SIZE. +# TODO: In the future generate this file within genlang or another script +# in order to only calculate the maximum size based on the core strings. $(BUILDDIR)/lang/max_language_size.h: $(LANGOBJ) $(call PRINTS,Create $(notdir $@)) - $(SILENT)echo "#define MAX_LANGUAGE_SIZE `ls -ln $(BUILDDIR)/apps/lang/* | awk '{print $$5}' | sort -n | tail -1`" > $@ + $(SILENT)echo "#define MAX_LANGUAGE_SIZE `ls -ln $(BUILDDIR)/apps/lang/* | awk '{print $$5-10}' | sort -n | tail -1`" > $@ $(BUILDDIR)/lang/lang_core.o: $(APPSDIR)/lang/$(LANGUAGE).lang $(BUILDDIR)/apps/features $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ |