Add Slovanian

This commit is contained in:
3d-gussner 2021-12-21 15:24:06 +01:00
parent 3e5452ef21
commit 4d664cedf4
10 changed files with 4968 additions and 1 deletions

View File

@ -67,6 +67,7 @@
#define COMMUNITY_LANG_GROUP1_NL // Community Dutch language #define COMMUNITY_LANG_GROUP1_NL // Community Dutch language
#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_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

@ -221,6 +221,9 @@ const char* lang_get_name_by_code(uint16_t code)
#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 Swedish contribution
#endif // COMMUNITY_LANG_GROUP1_DA #endif // COMMUNITY_LANG_GROUP1_DA
#ifdef COMMUNITY_LANG_GROUP1_SL
case LANG_CODE_SL: return _n("Slovenscina"); //community Slovanian contribution
#endif // COMMUNITY_LANG_GROUP1_SL
//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

View File

@ -104,6 +104,9 @@ typedef struct
#ifdef COMMUNITY_LANG_GROUP1_DA #ifdef COMMUNITY_LANG_GROUP1_DA
#define LANG_CODE_DA 0x6461 //!<'da' #define LANG_CODE_DA 0x6461 //!<'da'
#endif // COMMUNITY_LANG_GROUP1_DA #endif // COMMUNITY_LANG_GROUP1_DA
#ifdef COMMUNITY_LANG_GROUP1_SL
#define LANG_CODE_SL 0x736C //!<'sl'
#endif // COMMUNITY_LANG_GROUP1_SL
//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

@ -59,6 +59,8 @@ lang_code_hex_data()
*sv*) echo '\x76\x73' ;; *sv*) echo '\x76\x73' ;;
#Danish #Danish
*da*) echo '\x61\x64' ;; *da*) echo '\x61\x64' ;;
#Slovanian
*sl*) echo '\x6C\x73' ;;
#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|nl|it|pl|sv)") help="Check lang file (en|cs|da|de|es|fr|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

@ -73,6 +73,8 @@ else
*sv*) echo "Swedish" ;; *sv*) echo "Swedish" ;;
#Danish #Danish
*da*) echo "Danish" ;; *da*) echo "Danish" ;;
#Slovanian
*sl*) echo "Slovanian" ;;
#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

@ -202,6 +202,15 @@ sed -i 's/\xc3\x85/Aa/g' $LNG'_filtered.po'
sed -i 's/\xc3\xA5/aa/g' $LNG'_filtered.po' sed -i 's/\xc3\xA5/aa/g' $LNG'_filtered.po'
fi fi
if [ "$LGN" = "sl" ]; then
#replace 'ë' with 'e'
sed -i 's/\xc3\xab/e/g' $LNG'_filtered.po'
#replace 'ä' with 'a' (left)
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_sl.txt Normal file

File diff suppressed because it is too large Load Diff

1772
lang/po/Firmware_sl.po Normal file

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff