Italian translation contribute

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
Post Reply
Jvan83
Posts: 1
Joined: Sat Jun 15, 2019 12:58 pm
Country: -

Italian translation contribute

Post by Jvan83 » Sat Jun 15, 2019 2:33 pm

Hello!

How can I make an italian version of er9x?


User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Italian translation contribute

Post by MikeB » Sat Jun 15, 2019 7:07 pm

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

Post Reply

Return to “er9x”