From 3c8fd3a51d50b6f18670869265d33fd4804cd8ac Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Thu, 27 Feb 2014 21:19:33 +0100 Subject: [PATCH] Delta character now requires en.h to go through translate.py --- radio/src/Makefile | 7 ++++++- radio/src/translations/{en.h => en.h.txt} | 0 radio/util/translate.py | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) rename radio/src/translations/{en.h => en.h.txt} (100%) diff --git a/radio/src/Makefile b/radio/src/Makefile index 8380a747e..e373abd7c 100644 --- a/radio/src/Makefile +++ b/radio/src/Makefile @@ -1086,7 +1086,7 @@ else build: stamp_header tra lbm allsrc.cpp elf remallsrc bin endif -tra: translations/cz.h translations/de.h translations/es.h translations/fi.h translations/fr.h translations/it.h translations/pl.h translations/pt.h translations/se.h +tra: translations/en.h translations/cz.h translations/de.h translations/es.h translations/fi.h translations/fr.h translations/it.h translations/pl.h translations/pt.h translations/se.h lbm: fonts bitmaps/sticks.lbm elf: $(TARGET).elf @@ -1140,6 +1140,11 @@ taranis-stamp: @echo "#define VERS_STR \"$(VERSION)\"" >> stamp-opentx-taranis.txt @cat stamp-opentx-taranis.txt +translations/en.h: translations/en.h.txt + @echo + @echo "Create English language specific header files" + $(TRANSLATE) translations/en.h.txt translations/en.h en + translations/cz.h: translations/cz.h.txt @echo @echo "Create Czech language specific header files" diff --git a/radio/src/translations/en.h b/radio/src/translations/en.h.txt similarity index 100% rename from radio/src/translations/en.h rename to radio/src/translations/en.h.txt diff --git a/radio/util/translate.py b/radio/util/translate.py index 6fb0f26e5..99f9468b8 100644 --- a/radio/util/translate.py +++ b/radio/util/translate.py @@ -106,8 +106,10 @@ translations = {'cz': [('\\200', u'á'), ('\\203', u'Å'), ('\\204', u'Ä'), ('\\205', u'Ö')], + + 'en': [], - 'all': [('\\306', u'Δ')], + 'all': [('\\306', u'Δ')], }