Page 1 of 1

Italian translation contribute

Posted: Sat Jun 15, 2019 2:33 pm
by Jvan83
Hello!

How can I make an italian version of er9x?

Re: Italian translation contribute

Posted: Sat Jun 15, 2019 7:07 pm
by MikeB
Edit "language.h" to:

Code: Select all

#ifdef LANG_DE
 #include "de.h"
#else 
 #ifdef LANG_FR
  #include "fr.h"
 #else
  #ifdef LANG_NO
   #include "no.h"
  #else
   #ifdef LANG_IT
    #include "it.h"
  #else
   #include "en.h"
   #endif
  #endif
 #endif
#endif
Edit the "Makefile" to:

Code: Select all

ifeq ($(LANG), FR)
 CPPDEFS += -DLANG_FR
else
 ifeq ($(LANG), DE)
  CPPDEFS += -DLANG_DE
 else
  ifeq ($(LANG), NO)
   CPPDEFS += -DLANG_NO
  else
   ifeq ($(LANG), IT)
    CPPDEFS += -DLANG_IT
   endif
  endif
 endif
endif

Take a copy of "en.h" and rename it to "it.h", then change the text to Italian!

Note that some of the text is a list of options e.g.
#define STR_OFF_PLUS_EQ "\003off += :="
The "\003" indicates each option is 3 characters long (do NOT change this length), then follows the options "off", " +=" and " :-".

Build using the command:
make EXT=FRSKY TEMPLATES=NO PHASES=YES LANG=IT

Mike