Add Hungarian
Fix typo
This commit is contained in:
parent
4d664cedf4
commit
17301872cf
@ -68,6 +68,7 @@
|
|||||||
#define COMMUNITY_LANG_GROUP1_SV // Community Swedish language
|
#define COMMUNITY_LANG_GROUP1_SV // Community Swedish language
|
||||||
#define COMMUNITY_LANG_GROUP1_DA // Community Danish language
|
#define COMMUNITY_LANG_GROUP1_DA // Community Danish language
|
||||||
#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_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
|
||||||
|
|
||||||
|
@ -219,12 +219,14 @@ const char* lang_get_name_by_code(uint16_t code)
|
|||||||
case LANG_CODE_SV: return _n("Svenska"); //community Swedish contribution
|
case LANG_CODE_SV: return _n("Svenska"); //community Swedish contribution
|
||||||
#endif // COMMUNITY_LANG_GROUP1_SV
|
#endif // COMMUNITY_LANG_GROUP1_SV
|
||||||
#ifdef COMMUNITY_LANG_GROUP1_DA
|
#ifdef COMMUNITY_LANG_GROUP1_DA
|
||||||
case LANG_CODE_DA: return _n("Dansk"); //community Swedish contribution
|
case LANG_CODE_DA: return _n("Dansk"); //community Danish contribution
|
||||||
#endif // COMMUNITY_LANG_GROUP1_DA
|
#endif // COMMUNITY_LANG_GROUP1_DA
|
||||||
#ifdef COMMUNITY_LANG_GROUP1_SL
|
#ifdef COMMUNITY_LANG_GROUP1_SL
|
||||||
case LANG_CODE_SL: return _n("Slovenscina"); //community Slovanian contribution
|
case LANG_CODE_SL: return _n("Slovenscina"); //community Slovanian contribution
|
||||||
#endif // COMMUNITY_LANG_GROUP1_SL
|
#endif // COMMUNITY_LANG_GROUP1_SL
|
||||||
|
#ifdef COMMUNITY_LANG_GROUP1_HU
|
||||||
|
case LANG_CODE_HU: return _n("Magyar"); //community Hungarian contribution
|
||||||
|
#endif // COMMUNITY_LANG_GROUP1_HU
|
||||||
//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
|
||||||
|
@ -107,6 +107,9 @@ typedef struct
|
|||||||
#ifdef COMMUNITY_LANG_GROUP1_SL
|
#ifdef COMMUNITY_LANG_GROUP1_SL
|
||||||
#define LANG_CODE_SL 0x736C //!<'sl'
|
#define LANG_CODE_SL 0x736C //!<'sl'
|
||||||
#endif // COMMUNITY_LANG_GROUP1_SL
|
#endif // COMMUNITY_LANG_GROUP1_SL
|
||||||
|
#ifdef COMMUNITY_LANG_GROUP1_HU
|
||||||
|
#define LANG_CODE_HU 0x6875 //!<'hu'
|
||||||
|
#endif // COMMUNITY_LANG_GROUP1_HU
|
||||||
//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'
|
||||||
|
@ -61,6 +61,8 @@ lang_code_hex_data()
|
|||||||
*da*) echo '\x61\x64' ;;
|
*da*) echo '\x61\x64' ;;
|
||||||
#Slovanian
|
#Slovanian
|
||||||
*sl*) echo '\x6C\x73' ;;
|
*sl*) echo '\x6C\x73' ;;
|
||||||
|
#Hungarian
|
||||||
|
*hu*) echo '\x75\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' ;;
|
||||||
|
@ -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|nl|it|pl|sl|sv)")
|
help="Check lang file (en|cs|da|de|es|fr|hu|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")
|
||||||
|
@ -75,6 +75,8 @@ else
|
|||||||
*da*) echo "Danish" ;;
|
*da*) echo "Danish" ;;
|
||||||
#Slovanian
|
#Slovanian
|
||||||
*sl*) echo "Slovanian" ;;
|
*sl*) echo "Slovanian" ;;
|
||||||
|
#Hugarian
|
||||||
|
*hu*) echo "Hugarian" ;;
|
||||||
#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" ;;
|
||||||
|
@ -211,6 +211,15 @@ if [ "$LGN" = "sl" ]; 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" = "hu" ]; 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_hu.txt
Normal file
1403
lang/lang_en_hu.txt
Normal file
File diff suppressed because it is too large
Load Diff
1772
lang/po/Firmware_hu.po
Normal file
1772
lang/po/Firmware_hu.po
Normal file
File diff suppressed because it is too large
Load Diff
1772
lang/po/new/hu.po
Normal file
1772
lang/po/new/hu.po
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user