Skip to content

Commit

Permalink
Add Luxembourgish
Browse files Browse the repository at this point in the history
  • Loading branch information
3d-gussner committed Jan 3, 2022
1 parent 8911161 commit 75dc5bd
Show file tree
Hide file tree
Showing 10 changed files with 4,968 additions and 1 deletion.
1 change: 1 addition & 0 deletions Firmware/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
#define COMMUNITY_LANG_GROUP1_DA // Community Danish language
#define COMMUNITY_LANG_GROUP1_SL // Community Slovanian language
#define COMMUNITY_LANG_GROUP1_HU // Community Hungarian language
#define COMMUNITY_LANG_GROUP1_LB // Community Luxembourgish language
//#define COMMUNITY_LANG_GROUP1_QR // Community new language //..use this as a template and replace 'QR'
#endif

Expand Down
3 changes: 3 additions & 0 deletions Firmware/language.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ const char* lang_get_name_by_code(uint16_t code)
#ifdef COMMUNITY_LANG_GROUP1_HU
case LANG_CODE_HU: return _n("Magyar"); //community Hungarian contribution
#endif // COMMUNITY_LANG_GROUP1_HU
#ifdef COMMUNITY_LANG_GROUP1_LB
case LANG_CODE_LB: return _n("Letzebuergesch"); //community Luxembourgish contribution
#endif // COMMUNITY_LANG_GROUP1_LB
//Use the 3 lines below as a template and replace 'QR' and 'New language'
//#ifdef COMMUNITY_LANG_GROUP1_QR
// case LANG_CODE_QR: return _n("New language"); //community contribution
Expand Down
3 changes: 3 additions & 0 deletions Firmware/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ typedef struct
#ifdef COMMUNITY_LANG_GROUP1_HU
#define LANG_CODE_HU 0x6875 //!<'hu'
#endif // COMMUNITY_LANG_GROUP1_HU
#ifdef COMMUNITY_LANG_GROUP1_LB
#define LANG_CODE_LB 0x6C62 //!<'lb'
#endif // COMMUNITY_LANG_GROUP1_LB
//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'
Expand Down
2 changes: 2 additions & 0 deletions lang/lang-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ lang_code_hex_data()
*sl*) echo '\x6C\x73' ;;
#Hungarian
*hu*) echo '\x75\x68' ;;
#Luxembourgish
*lb*) echo '\x62\x6C' ;;
#Use the 2 lines below as a template and replace 'qr' and `\x71\x72`
##New language
# *qr*) echo '\x71\x72' ;;
Expand Down
2 changes: 1 addition & 1 deletion lang/lang-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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|da|de|es|fr|hu|nl|it|pl|sl|sv)")
help="Check lang file (en|cs|da|de|es|fr|hu|lb|nl|it|pl|sl|sv)")
parser.add_argument(
"--no-warning", action="store_true",
help="Disable warnings")
Expand Down
2 changes: 2 additions & 0 deletions lang/lang-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ else
*sl*) echo "Slovanian" ;;
#Hugarian
*hu*) echo "Hugarian" ;;
#Luxembourgish
*lb*) echo "Luxembourgish" ;;
#Use the 2 lines below as a template and replace 'qr' and 'New language'
##New language
# *qr*) echo "New language" ;;
Expand Down
9 changes: 9 additions & 0 deletions lang/lang-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ if [ "$LGN" = "hu" ]; then
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
fi

if [ "$LGN" = "lb" ]; then
#replace 'ë' with 'e'
sed -i 's/\xc3\xab/e/g' $LNG'_filtered.po'
#replace 'ä' with 'a'
sed -i 's/\xc3\xa4/a/g' $LNG'_filtered.po'
#replace 'é' with 'e'
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
fi

#replace in polish translation
#if [ "$LNG" = "pl" ]; then
#fi
Expand Down
Loading

0 comments on commit 75dc5bd

Please sign in to comment.