Add Swedish

This commit is contained in:
3d-gussner 2021-12-21 14:33:35 +01:00
parent ba54dc3d35
commit 5bce397fab
10 changed files with 4966 additions and 1 deletions

View file

@ -65,6 +65,7 @@
#if (COMMUNITY_LANG_GROUP == 1)
#define COMMUNITY_LANG_GROUP1_NL // Community Dutch language
#define COMMUNITY_LANG_GROUP1_SV // Community Swedish language
//#define COMMUNITY_LANG_GROUP1_QR // Community new language //..use this as a template and replace 'QR'
#endif

View file

@ -215,6 +215,9 @@ const char* lang_get_name_by_code(uint16_t code)
#ifdef COMMUNITY_LANG_GROUP1_NL
case LANG_CODE_NL: return _n("Nederlands"); //community Dutch contribution
#endif // COMMUNITY_LANG_GROUP1_NL
#ifdef COMMUNITY_LANG_GROUP1_SV
case LANG_CODE_SV: return _n("Svenska"); //community Swedish contribution
#endif // COMMUNITY_LANG_GROUP1_SV
//Use the 3 lines below as a template and replace 'QR' and 'New language'
//#ifdef COMMUNITY_LANG_GROUP1_QR

View file

@ -98,6 +98,9 @@ typedef struct
#ifdef COMMUNITY_LANG_GROUP1_NL
#define LANG_CODE_NL 0x6e6c //!<'nl'
#endif // COMMUNITY_LANG_GROUP1_NL
#ifdef COMMUNITY_LANG_GROUP1_SV
#define LANG_CODE_SV 0x7376 //!<'sv'
#endif // COMMUNITY_LANG_GROUP1_SV
//Use the 3 lines below as a template and replace 'QR', '0X7172' and 'qr'
//#ifdef COMMUNITY_LANG_GROUP1_QR
//#define LANG_CODE_QR 0x7172 //!<'qr'

View file

@ -55,6 +55,8 @@ lang_code_hex_data()
#Community language support
#Dutch
*nl*) echo '\x6c\x6e' ;;
#Swedish
*sv*) echo '\x76\x73' ;;
#Use the 2 lines below as a template and replace 'qr' and `\x71\x72`
##New language
# *qr*) echo '\x71\x72' ;;

View file

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

View file

@ -69,6 +69,8 @@ else
#Community language support
#Dutch
*nl*) echo "Dutch" ;;
#Swedish
*sv*) echo "Swedish" ;;
#Use the 2 lines below as a template and replace 'qr' and 'New language'
##New language
# *qr*) echo "New language" ;;

View file

@ -188,6 +188,13 @@ if [ "$LNG" = "nl" ]; then
sed -i 's/\xc3\x85/A/g' $LNG'_filtered.po'
fi
if [ "$LGN" = "sv" ]; then
#repace 'Å' with 'Aa'
sed -i 's/\xc3\x85/Aa/g' $LNG'_filtered.po'
#repace 'å' with 'aa'
sed -i 's/\xc3\xA5/aa/g' $LNG'_filtered.po'
fi
#replace in polish translation
#if [ "$LNG" = "pl" ]; then
#fi

1403
lang/lang_en_sv.txt Normal file

File diff suppressed because it is too large Load diff

1772
lang/po/Firmware_sv.po Normal file

File diff suppressed because it is too large Load diff

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

File diff suppressed because it is too large Load diff