Add Norwegian
This commit is contained in:
parent
c5999888e6
commit
715f466fda
@ -70,6 +70,7 @@
|
|||||||
#define COMMUNITY_LANG_GROUP1_HR // Community Croatian language
|
#define COMMUNITY_LANG_GROUP1_HR // Community Croatian language
|
||||||
#define COMMUNITY_LANG_GROUP1_SK // Community Slovak language
|
#define COMMUNITY_LANG_GROUP1_SK // Community Slovak language
|
||||||
//#define COMMUNITY_LANG_GROUP1_SV // Community Swedish language
|
//#define COMMUNITY_LANG_GROUP1_SV // Community Swedish language
|
||||||
|
#define COMMUNITY_LANG_GROUP1_NO // Community Norwegian 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_SL // Community Slovanian language
|
||||||
//#define COMMUNITY_LANG_GROUP1_LB // Community Luxembourgish language
|
//#define COMMUNITY_LANG_GROUP1_LB // Community Luxembourgish language
|
||||||
|
@ -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_NO
|
||||||
|
case LANG_CODE_NO: return _n("Norsk"); //community Swedish contribution
|
||||||
|
#endif // COMMUNITY_LANG_GROUP1_NO
|
||||||
#ifdef COMMUNITY_LANG_GROUP1_DA
|
#ifdef COMMUNITY_LANG_GROUP1_DA
|
||||||
case LANG_CODE_DA: return _n("Dansk"); //community Danish contribution
|
case LANG_CODE_DA: return _n("Dansk"); //community Danish contribution
|
||||||
#endif // COMMUNITY_LANG_GROUP1_DA
|
#endif // COMMUNITY_LANG_GROUP1_DA
|
||||||
|
@ -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_NO
|
||||||
|
#define LANG_CODE_NO 0x6E6F //!<'no'
|
||||||
|
#endif // COMMUNITY_LANG_GROUP1_NO
|
||||||
#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
|
||||||
|
@ -105,6 +105,8 @@ lang_code_hex_data()
|
|||||||
*nl*) echo '\x6c\x6e' ;;
|
*nl*) echo '\x6c\x6e' ;;
|
||||||
#Swedish
|
#Swedish
|
||||||
*sv*) echo '\x76\x73' ;;
|
*sv*) echo '\x76\x73' ;;
|
||||||
|
#Norwegian
|
||||||
|
*no*) echo '\x6f\x6e' ;;
|
||||||
#Danish
|
#Danish
|
||||||
*da*) echo '\x61\x64' ;;
|
*da*) echo '\x61\x64' ;;
|
||||||
#Slovak
|
#Slovak
|
||||||
|
@ -342,7 +342,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|lt|nl|it|pl|ro|sk|sl|sv)")
|
help="Check lang file (en|cs|da|de|es|fr|hr|hu|it|lb|lt|nl|no|pl|ro|sk|sl|sv)")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--no-warning", action="store_true",
|
"--no-warning", action="store_true",
|
||||||
help="Disable warnings")
|
help="Disable warnings")
|
||||||
|
@ -85,6 +85,8 @@ else
|
|||||||
*nl*) echo "Dutch" ;;
|
*nl*) echo "Dutch" ;;
|
||||||
#Swedish
|
#Swedish
|
||||||
*sv*) echo "Swedish" ;;
|
*sv*) echo "Swedish" ;;
|
||||||
|
#Norwegian
|
||||||
|
*no*) echo "Norgewian" ;;
|
||||||
#Danish
|
#Danish
|
||||||
*da*) echo "Danish" ;;
|
*da*) echo "Danish" ;;
|
||||||
#Slovak
|
#Slovak
|
||||||
|
@ -271,6 +271,36 @@ 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
|
||||||
|
|
||||||
|
#https://en.wikipedia.org/wiki/Norwegian_orthography éèêóòôù ÅåÆæØø
|
||||||
|
if [ "$LNG" = "no" ]; then
|
||||||
|
#repace 'Å' with 'A'
|
||||||
|
sed -i 's/\xc3\x85/A/g' $LNG'_filtered.po'
|
||||||
|
#repace 'å' with 'a'
|
||||||
|
sed -i 's/\xc3\xA5/a/g' $LNG'_filtered.po'
|
||||||
|
#repace 'Æ' with 'Ae'
|
||||||
|
sed -i 's/\xc3\x86/A/g' $LNG'_filtered.po'
|
||||||
|
#repace 'æ' with 'ae'
|
||||||
|
sed -i 's/\xc3\xa6/a/g' $LNG'_filtered.po'
|
||||||
|
#repace 'Ø' with 'O'
|
||||||
|
sed -i 's/\xc3\x98/O/g' $LNG'_filtered.po'
|
||||||
|
#repace 'ø' with 'o'
|
||||||
|
sed -i 's/\xc3\xb8/o/g' $LNG'_filtered.po'
|
||||||
|
#replace 'é' with 'e'
|
||||||
|
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
|
||||||
|
#replace 'è' with 'e'
|
||||||
|
sed -i 's/\xc3\xa8/e/g' $LNG'_filtered.po'
|
||||||
|
#replace 'ê' with 'e'
|
||||||
|
sed -i 's/\xc3\xaa/e/g' $LNG'_filtered.po'
|
||||||
|
#replace 'ó' with 'o'
|
||||||
|
sed -i 's/\xc3\xb3/o/g' $LNG'_filtered.po'
|
||||||
|
#replace 'ò' with 'o'
|
||||||
|
sed -i 's/\xc3\xb2/o/g' $LNG'_filtered.po'
|
||||||
|
#replace 'ô' with 'o'
|
||||||
|
sed -i 's/\xc3\xb4/o/g' $LNG'_filtered.po'
|
||||||
|
#replace 'ù' with 'u'
|
||||||
|
sed -i 's/\xc3\xb9/u/g' $LNG'_filtered.po'
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$LNG" = "da" ]; then
|
if [ "$LNG" = "da" ]; then
|
||||||
#repace 'Å' with 'Aa'
|
#repace 'Å' with 'Aa'
|
||||||
sed -i 's/\xc3\x85/Aa/g' $LNG'_filtered.po'
|
sed -i 's/\xc3\x85/Aa/g' $LNG'_filtered.po'
|
||||||
|
1403
lang/lang_en_no.txt
Normal file
1403
lang/lang_en_no.txt
Normal file
File diff suppressed because it is too large
Load Diff
1772
lang/po/Firmware_no.po
Normal file
1772
lang/po/Firmware_no.po
Normal file
File diff suppressed because it is too large
Load Diff
1772
lang/po/new/no.po
Normal file
1772
lang/po/new/no.po
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user