Add Danish

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

View file

@ -66,6 +66,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_DA // Community Danish language
//#define COMMUNITY_LANG_GROUP1_QR // Community new language //..use this as a template and replace 'QR'
#endif

View file

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

View file

@ -101,6 +101,9 @@ typedef struct
#ifdef COMMUNITY_LANG_GROUP1_SV
#define LANG_CODE_SV 0x7376 //!<'sv'
#endif // COMMUNITY_LANG_GROUP1_SV
#ifdef COMMUNITY_LANG_GROUP1_DA
#define LANG_CODE_DA 0x6461 //!<'da'
#endif // COMMUNITY_LANG_GROUP1_DA
//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

@ -57,6 +57,8 @@ lang_code_hex_data()
*nl*) echo '\x6c\x6e' ;;
#Swedish
*sv*) echo '\x76\x73' ;;
#Danish
*da*) echo '\x61\x64' ;;
#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|sv)")
help="Check lang file (en|cs|da|de|es|fr|nl|it|pl|sv)")
parser.add_argument(
"--no-warning", action="store_true",
help="Disable warnings")

View file

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

View file

@ -195,6 +195,13 @@ sed -i 's/\xc3\x85/Aa/g' $LNG'_filtered.po'
sed -i 's/\xc3\xA5/aa/g' $LNG'_filtered.po'
fi
if [ "$LGN" = "da" ]; 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_da.txt Normal file

File diff suppressed because it is too large Load diff

1772
lang/po/Firmware_da.po Normal file

File diff suppressed because it is too large Load diff

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

File diff suppressed because it is too large Load diff