Add Lithuanian
This commit is contained in:
parent
6dd7681f6b
commit
1544a79b4e
|
|
@ -71,6 +71,7 @@
|
||||||
#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_HR // Community Croatian language
|
||||||
|
#define COMMUNITY_LANG_GROUP1_LT // Community Lithuanian 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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,9 @@ const char* lang_get_name_by_code(uint16_t code)
|
||||||
#ifdef COMMUNITY_LANG_GROUP1_HR
|
#ifdef COMMUNITY_LANG_GROUP1_HR
|
||||||
case LANG_CODE_HR: return _n("Hrvatski"); //community Croatian contribution
|
case LANG_CODE_HR: return _n("Hrvatski"); //community Croatian contribution
|
||||||
#endif // COMMUNITY_LANG_GROUP1_HR
|
#endif // COMMUNITY_LANG_GROUP1_HR
|
||||||
|
#ifdef COMMUNITY_LANG_GROUP1_LT
|
||||||
|
case LANG_CODE_LT: return _n("Lietuviu"); //community Lithuanian contribution
|
||||||
|
#endif // COMMUNITY_LANG_GROUP1_LT
|
||||||
|
|
||||||
//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
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,9 @@ typedef struct
|
||||||
#ifdef COMMUNITY_LANG_GROUP1_HR
|
#ifdef COMMUNITY_LANG_GROUP1_HR
|
||||||
#define LANG_CODE_HR 0x6872 //!<'hr'
|
#define LANG_CODE_HR 0x6872 //!<'hr'
|
||||||
#endif // COMMUNITY_LANG_GROUP1_HR
|
#endif // COMMUNITY_LANG_GROUP1_HR
|
||||||
|
#ifdef COMMUNITY_LANG_GROUP1_LT
|
||||||
|
#define LANG_CODE_LT 0x6C74 //!<'lt'
|
||||||
|
#endif // COMMUNITY_LANG_GROUP1_LT
|
||||||
//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'
|
||||||
|
|
|
||||||
|
|
@ -60,13 +60,15 @@ lang_code_hex_data()
|
||||||
#Danish
|
#Danish
|
||||||
*da*) echo '\x61\x64' ;;
|
*da*) echo '\x61\x64' ;;
|
||||||
#Slovanian
|
#Slovanian
|
||||||
*sl*) echo '\x6C\x73' ;;
|
*sl*) echo '\x6c\x73' ;;
|
||||||
#Hungarian
|
#Hungarian
|
||||||
*hu*) echo '\x75\x68' ;;
|
*hu*) echo '\x75\x68' ;;
|
||||||
#Luxembourgish
|
#Luxembourgish
|
||||||
*lb*) echo '\x62\x6C' ;;
|
*lb*) echo '\x62\x6c' ;;
|
||||||
#Croatian
|
#Croatian
|
||||||
*hr*) echo '\x72\x68' ;;
|
*hr*) echo '\x72\x68' ;;
|
||||||
|
#Lithuanian
|
||||||
|
*lt*) echo '\x74\x6c' ;;
|
||||||
#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|hr|hu|lb|nl|it|pl|sl|sv)")
|
help="Check lang file (en|cs|da|de|es|fr|hr|hu|lb|lt|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")
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,8 @@ else
|
||||||
*lb*) echo "Luxembourgish" ;;
|
*lb*) echo "Luxembourgish" ;;
|
||||||
#Croatian
|
#Croatian
|
||||||
*hr*) echo "Croatian" ;;
|
*hr*) echo "Croatian" ;;
|
||||||
|
#Lithuanian
|
||||||
|
*lt*) echo "Lithuanian" ;;
|
||||||
#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" ;;
|
||||||
|
|
|
||||||
|
|
@ -224,6 +224,15 @@ if [ "$LGN" = "hr" ]; then
|
||||||
#replace 'é' with 'e'
|
#replace 'é' with 'e'
|
||||||
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
|
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$LGN" = "lt" ]; 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
|
||||||
|
|
|
||||||
|
|
@ -724,7 +724,7 @@
|
||||||
#MSG_SEL_PREHEAT_TEMP c=20 r=6
|
#MSG_SEL_PREHEAT_TEMP c=20 r=6
|
||||||
"Select nozzle preheat temperature which matches your material."
|
"Select nozzle preheat temperature which matches your material."
|
||||||
|
|
||||||
#MSG_SET_TEMPERATURE c=19
|
#MSG_SET_TEMPERATURE c=20
|
||||||
"Set temperature:"
|
"Set temperature:"
|
||||||
|
|
||||||
#MSG_SETTINGS c=18
|
#MSG_SETTINGS c=18
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue