Fix syntax

This commit is contained in:
3d-gussner 2019-09-14 15:52:59 +02:00
parent 2c174964da
commit 7a5aa352aa
1 changed files with 43 additions and 41 deletions

View File

@ -5,7 +5,9 @@ We will use Dutch as an example here.
## Prepare Prusa Firmware ## Prepare Prusa Firmware
YY = palceholder for language in upper case YY = palceholder for language in upper case
yy = placehodler for language in lower case yy = placehodler for language in lower case
AB = palceholder for hexadecial AB = palceholder for hexadecial
Files needs to be modified Files needs to be modified
@ -83,7 +85,7 @@ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
Example: Example:
``` ```
#replace in dutch translation according to https://nl.wikipedia.org/wiki/Accenttekens_in_de_Nederlandse_spelling #replace in dutch translation according to https://nl.wikipedia.org/wiki/Accenttekens_in_de_Nederlandse_spelling
if [ "$LNG" = "nl" ]; then if [ "$LNG" = "nl" ]; then
#replace 'ë' with 'e' #replace 'ë' with 'e'
sed -i 's/\xc3\xab/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xab/e/g' $LNG'_filtered.po'
#replace 'ï' with 'i' #replace 'ï' with 'i'
@ -122,8 +124,8 @@ if [ "$LNG" = "nl" ]; then
sed -i 's/\xc3\xa2/a/g' $LNG'_filtered.po' sed -i 's/\xc3\xa2/a/g' $LNG'_filtered.po'
#replace 'Å' with 'A' (left) #replace 'Å' with 'A' (left)
sed -i 's/\xc3\x85/A/g' $LNG'_filtered.po' sed -i 's/\xc3\x85/A/g' $LNG'_filtered.po'
fi fi
``` ```
- In `../lang/fw-build.sh` - In `../lang/fw-build.sh`