Add Danish
This commit is contained in:
parent
5bce397fab
commit
f8a0d3ad7b
10 changed files with 4966 additions and 1 deletions
|
@ -66,6 +66,7 @@
|
||||||
#if (COMMUNITY_LANG_GROUP == 1)
|
#if (COMMUNITY_LANG_GROUP == 1)
|
||||||
#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_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
|
||||||
|
|
||||||
|
|
|
@ -218,6 +218,9 @@ const char* lang_get_name_by_code(uint16_t code)
|
||||||
#ifdef COMMUNITY_LANG_GROUP1_SV
|
#ifdef COMMUNITY_LANG_GROUP1_SV
|
||||||
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
|
||||||
|
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'
|
//Use the 3 lines below as a template and replace 'QR' and 'New language'
|
||||||
//#ifdef COMMUNITY_LANG_GROUP1_QR
|
//#ifdef COMMUNITY_LANG_GROUP1_QR
|
||||||
|
|
|
@ -101,6 +101,9 @@ typedef struct
|
||||||
#ifdef COMMUNITY_LANG_GROUP1_SV
|
#ifdef COMMUNITY_LANG_GROUP1_SV
|
||||||
#define LANG_CODE_SV 0x7376 //!<'sv'
|
#define LANG_CODE_SV 0x7376 //!<'sv'
|
||||||
#endif // COMMUNITY_LANG_GROUP1_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'
|
//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'
|
||||||
|
|
|
@ -57,6 +57,8 @@ lang_code_hex_data()
|
||||||
*nl*) echo '\x6c\x6e' ;;
|
*nl*) echo '\x6c\x6e' ;;
|
||||||
#Swedish
|
#Swedish
|
||||||
*sv*) echo '\x76\x73' ;;
|
*sv*) echo '\x76\x73' ;;
|
||||||
|
#Danish
|
||||||
|
*da*) echo '\x61\x64' ;;
|
||||||
#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|de|es|fr|nl|it|pl|sv)")
|
help="Check lang file (en|cs|da|de|es|fr|nl|it|pl|sv)")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--no-warning", action="store_true",
|
"--no-warning", action="store_true",
|
||||||
help="Disable warnings")
|
help="Disable warnings")
|
||||||
|
|
|
@ -71,6 +71,8 @@ else
|
||||||
*nl*) echo "Dutch" ;;
|
*nl*) echo "Dutch" ;;
|
||||||
#Swedish
|
#Swedish
|
||||||
*sv*) echo "Swedish" ;;
|
*sv*) echo "Swedish" ;;
|
||||||
|
#Danish
|
||||||
|
*da*) echo "Danish" ;;
|
||||||
#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" ;;
|
||||||
|
|
|
@ -195,6 +195,13 @@ 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" = "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
|
#replace in polish translation
|
||||||
#if [ "$LNG" = "pl" ]; then
|
#if [ "$LNG" = "pl" ]; then
|
||||||
#fi
|
#fi
|
||||||
|
|
1403
lang/lang_en_da.txt
Normal file
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
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
1772
lang/po/new/da.po
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue