Merge pull request #3425 from 3d-gussner/MK3_3.11.0_Norwegian

PFW-1296: Add Norwegian basis
This commit is contained in:
3d-gussner 2022-02-23 09:32:12 +01:00 committed by GitHub
commit 9d2f3acd13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 4990 additions and 2 deletions

View File

@ -70,6 +70,7 @@
#define COMMUNITY_LANG_GROUP1_HR // Community Croatian language
#define COMMUNITY_LANG_GROUP1_SK // Community Slovak 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_SL // Community Slovanian language
//#define COMMUNITY_LANG_GROUP1_LB // Community Luxembourgish language

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_NO
case LANG_CODE_NO: return _n("Norsk"); //community Swedish contribution
#endif // COMMUNITY_LANG_GROUP1_NO
#ifdef COMMUNITY_LANG_GROUP1_DA
case LANG_CODE_DA: return _n("Dansk"); //community Danish contribution
#endif // COMMUNITY_LANG_GROUP1_DA

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_NO
#define LANG_CODE_NO 0x6E6F //!<'no'
#endif // COMMUNITY_LANG_GROUP1_NO
#ifdef COMMUNITY_LANG_GROUP1_DA
#define LANG_CODE_DA 0x6461 //!<'da'
#endif // COMMUNITY_LANG_GROUP1_DA

View File

@ -105,10 +105,12 @@ lang_code_hex_data()
*nl*) echo '\x6c\x6e' ;;
#Swedish
*sv*) echo '\x76\x73' ;;
#Norwegian
*no*) echo '\x6f\x6e' ;;
#Danish
*da*) echo '\x61\x64' ;;
#Slovak
*sk*) echo '\x6b\x73' ;;
*sk*) echo '\x6b\x73' ;;
#Slovanian
*sl*) echo '\x6c\x73' ;;
#Hungarian

View File

@ -342,7 +342,7 @@ def main():
usage="%(prog)s lang")
parser.add_argument(
"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(
"--no-warning", action="store_true",
help="Disable warnings")

View File

@ -85,6 +85,8 @@ else
*nl*) echo "Dutch" ;;
#Swedish
*sv*) echo "Swedish" ;;
#Norwegian
*no*) echo "Norwegian" ;;
#Danish
*da*) echo "Danish" ;;
#Slovak

View File

@ -271,6 +271,36 @@ sed -i 's/\xc3\x85/Aa/g' $LNG'_filtered.po'
sed -i 's/\xc3\xA5/aa/g' $LNG'_filtered.po'
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
#repace 'Å' with 'Aa'
sed -i 's/\xc3\x85/Aa/g' $LNG'_filtered.po'

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

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff