Add Croatian

This commit is contained in:
3d-gussner 2021-12-21 15:36:34 +01:00
parent 75dc5bd410
commit 54d7e9331b
10 changed files with 4968 additions and 1 deletions

View File

@ -70,6 +70,7 @@
#define COMMUNITY_LANG_GROUP1_SL // Community Slovanian language #define COMMUNITY_LANG_GROUP1_SL // Community Slovanian language
#define COMMUNITY_LANG_GROUP1_HU // Community Hungarian language #define COMMUNITY_LANG_GROUP1_HU // Community Hungarian language
#define COMMUNITY_LANG_GROUP1_LB // Community Luxembourgish language #define COMMUNITY_LANG_GROUP1_LB // Community Luxembourgish language
#define COMMUNITY_LANG_GROUP1_HR // Community Croatian language
//#define COMMUNITY_LANG_GROUP1_QR // Community new language //..use this as a template and replace 'QR' //#define COMMUNITY_LANG_GROUP1_QR // Community new language //..use this as a template and replace 'QR'
#endif #endif

View File

@ -230,6 +230,10 @@ const char* lang_get_name_by_code(uint16_t code)
#ifdef COMMUNITY_LANG_GROUP1_LB #ifdef COMMUNITY_LANG_GROUP1_LB
case LANG_CODE_LB: return _n("Letzebuergesch"); //community Luxembourgish contribution case LANG_CODE_LB: return _n("Letzebuergesch"); //community Luxembourgish contribution
#endif // COMMUNITY_LANG_GROUP1_LB #endif // COMMUNITY_LANG_GROUP1_LB
#ifdef COMMUNITY_LANG_GROUP1_HR
case LANG_CODE_HR: return _n("Hrvatski"); //community Croatian contribution
#endif // COMMUNITY_LANG_GROUP1_HR
//Use the 3 lines below as a template and replace 'QR' and 'New language' //Use the 3 lines below as a template and replace 'QR' and 'New language'
//#ifdef COMMUNITY_LANG_GROUP1_QR //#ifdef COMMUNITY_LANG_GROUP1_QR
// case LANG_CODE_QR: return _n("New language"); //community contribution // case LANG_CODE_QR: return _n("New language"); //community contribution

View File

@ -113,6 +113,9 @@ typedef struct
#ifdef COMMUNITY_LANG_GROUP1_LB #ifdef COMMUNITY_LANG_GROUP1_LB
#define LANG_CODE_LB 0x6C62 //!<'lb' #define LANG_CODE_LB 0x6C62 //!<'lb'
#endif // COMMUNITY_LANG_GROUP1_LB #endif // COMMUNITY_LANG_GROUP1_LB
#ifdef COMMUNITY_LANG_GROUP1_HR
#define LANG_CODE_HR 0x6872 //!<'hr'
#endif // COMMUNITY_LANG_GROUP1_HR
//Use the 3 lines below as a template and replace 'QR', '0X7172' and 'qr' //Use the 3 lines below as a template and replace 'QR', '0X7172' and 'qr'
//#ifdef COMMUNITY_LANG_GROUP1_QR //#ifdef COMMUNITY_LANG_GROUP1_QR
//#define LANG_CODE_QR 0x7172 //!<'qr' //#define LANG_CODE_QR 0x7172 //!<'qr'

View File

@ -65,6 +65,8 @@ lang_code_hex_data()
*hu*) echo '\x75\x68' ;; *hu*) echo '\x75\x68' ;;
#Luxembourgish #Luxembourgish
*lb*) echo '\x62\x6C' ;; *lb*) echo '\x62\x6C' ;;
#Croatian
*hr*) echo '\x72\x68' ;;
#Use the 2 lines below as a template and replace 'qr' and `\x71\x72` #Use the 2 lines below as a template and replace 'qr' and `\x71\x72`
##New language ##New language
# *qr*) echo '\x71\x72' ;; # *qr*) echo '\x71\x72' ;;

View File

@ -246,7 +246,7 @@ def main():
usage="%(prog)s lang") usage="%(prog)s lang")
parser.add_argument( parser.add_argument(
"lang", nargs='?', default="en", type=str, "lang", nargs='?', default="en", type=str,
help="Check lang file (en|cs|da|de|es|fr|hu|lb|nl|it|pl|sl|sv)") help="Check lang file (en|cs|da|de|es|fr|hr|hu|lb|nl|it|pl|sl|sv)")
parser.add_argument( parser.add_argument(
"--no-warning", action="store_true", "--no-warning", action="store_true",
help="Disable warnings") help="Disable warnings")

View File

@ -79,6 +79,8 @@ else
*hu*) echo "Hugarian" ;; *hu*) echo "Hugarian" ;;
#Luxembourgish #Luxembourgish
*lb*) echo "Luxembourgish" ;; *lb*) echo "Luxembourgish" ;;
#Croatian
*hr*) echo "Croatian" ;;
#Use the 2 lines below as a template and replace 'qr' and 'New language' #Use the 2 lines below as a template and replace 'qr' and 'New language'
##New language ##New language
# *qr*) echo "New language" ;; # *qr*) echo "New language" ;;

View File

@ -229,6 +229,14 @@ if [ "$LGN" = "lb" ]; then
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
fi fi
if [ "$LGN" = "hr" ]; then
#replace 'ë' with 'e'
sed -i 's/\xc3\xab/e/g' $LNG'_filtered.po'
#replace 'ä' with 'a'
sed -i 's/\xc3\xa4/a/g' $LNG'_filtered.po'
#replace 'é' with 'e'
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
fi
#replace in polish translation #replace in polish translation
#if [ "$LNG" = "pl" ]; then #if [ "$LNG" = "pl" ]; then
#fi #fi

1403
lang/lang_en_hr.txt Normal file

File diff suppressed because it is too large Load Diff

1772
lang/po/Firmware_hr.po Normal file

File diff suppressed because it is too large Load Diff

1772
lang/po/new/hr.po Normal file

File diff suppressed because it is too large Load Diff