Merge pull request #3336 from 3d-gussner/MK3_3.11.0
Prepare for more Community languages
This commit is contained in:
commit
931e88022b
|
|
@ -61,13 +61,22 @@
|
|||
#define LANG_SIZE_RESERVED 0x3000 // reserved space for secondary language (12288 bytes)
|
||||
|
||||
//Community language support
|
||||
#define COMMUNITY_LANG_NL // Community Dutch language
|
||||
//#define COMMUNITY_LANG_QR // Community new language //..use this as a template and replace 'QR'
|
||||
#define COMMUNITY_LANG_GROUP 1
|
||||
|
||||
#if defined(COMMUNITY_LANG_NL) //|| defined(COMMUNITY_LANG_QR) //..use last part as a template and replace 'QR'
|
||||
#define COMMUNITY_LANG_SUPPORT
|
||||
#if (COMMUNITY_LANG_GROUP == 1)
|
||||
#define COMMUNITY_LANG_GROUP1_NL // Community Dutch language
|
||||
#define COMMUNITY_LANG_GROUP1_SV // Community Swedish language
|
||||
#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_HR // Community Croatian language
|
||||
//#define COMMUNITY_LANG_GROUP1_QR // Community new language //..use this as a template and replace 'QR'
|
||||
#endif
|
||||
|
||||
#if (COMMUNITY_LANG_GROUP >=1 )
|
||||
#define COMMUNITY_LANGUAGE_SUPPORT
|
||||
#endif
|
||||
// Sanity checks for correct configuration of XFLASH_DUMP options
|
||||
#if defined(XFLASH_DUMP) && !defined(XFLASH)
|
||||
#error "XFLASH_DUMP requires XFLASH support"
|
||||
|
|
|
|||
|
|
@ -211,16 +211,34 @@ const char* lang_get_name_by_code(uint16_t code)
|
|||
case LANG_CODE_FR: return _n("Francais");
|
||||
case LANG_CODE_IT: return _n("Italiano");
|
||||
case LANG_CODE_PL: return _n("Polski");
|
||||
#ifdef COMMUNITY_LANG_SUPPORT //Community language support
|
||||
#ifdef COMMUNITY_LANG_NL
|
||||
case LANG_CODE_NL: return _n("Nederlands"); //community contribution
|
||||
#endif // COMMUNITY_LANG_NL
|
||||
#ifdef COMMUNITY_LANGUAGE_SUPPORT //Community language support
|
||||
#ifdef COMMUNITY_LANG_GROUP1_NL
|
||||
case LANG_CODE_NL: return _n("Nederlands"); //community Dutch contribution
|
||||
#endif // COMMUNITY_LANG_GROUP1_NL
|
||||
#ifdef COMMUNITY_LANG_GROUP1_SV
|
||||
case LANG_CODE_SV: return _n("Svenska"); //community Swedish contribution
|
||||
#endif // COMMUNITY_LANG_GROUP1_SV
|
||||
#ifdef COMMUNITY_LANG_GROUP1_DA
|
||||
case LANG_CODE_DA: return _n("Dansk"); //community Danish contribution
|
||||
#endif // COMMUNITY_LANG_GROUP1_DA
|
||||
#ifdef COMMUNITY_LANG_GROUP1_SL
|
||||
case LANG_CODE_SL: return _n("Slovenscina"); //community Slovanian contribution
|
||||
#endif // COMMUNITY_LANG_GROUP1_SL
|
||||
#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
|
||||
#ifdef COMMUNITY_LANG_GROUP1_HR
|
||||
case LANG_CODE_HR: return _n("Hrvatski"); //community Croatian contribution
|
||||
#endif // COMMUNITY_LANG_GROUP1_HR
|
||||
|
||||
//Use the 3 lines below as a template and replace 'QR' and 'New language'
|
||||
//#ifdef COMMUNITY_LANG_QR
|
||||
//#ifdef COMMUNITY_LANG_GROUP1_QR
|
||||
// case LANG_CODE_QR: return _n("New language"); //community contribution
|
||||
//#endif // COMMUNITY_LANG_QR
|
||||
#endif // COMMUNITY_LANG_SUPPORT
|
||||
//#endif // COMMUNITY_LANG_GROUP1_QR
|
||||
#endif // COMMUNITY_LANGUAGE_SUPPORT
|
||||
}
|
||||
return _n("??");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,15 +94,33 @@ typedef struct
|
|||
#define LANG_CODE_FR 0x6672 //!<'fr'
|
||||
#define LANG_CODE_IT 0x6974 //!<'it'
|
||||
#define LANG_CODE_PL 0x706c //!<'pl'
|
||||
#ifdef COMMUNITY_LANG_SUPPORT //Community language support
|
||||
#ifdef COMMUNITY_LANG_NL
|
||||
#ifdef COMMUNITY_LANGUAGE_SUPPORT //Community language support
|
||||
#ifdef COMMUNITY_LANG_GROUP1_NL
|
||||
#define LANG_CODE_NL 0x6e6c //!<'nl'
|
||||
#endif // COMMUNITY_LANG_NL
|
||||
#endif // COMMUNITY_LANG_GROUP1_NL
|
||||
#ifdef COMMUNITY_LANG_GROUP1_SV
|
||||
#define LANG_CODE_SV 0x7376 //!<'sv'
|
||||
#endif // COMMUNITY_LANG_GROUP1_SV
|
||||
#ifdef COMMUNITY_LANG_GROUP1_DA
|
||||
#define LANG_CODE_DA 0x6461 //!<'da'
|
||||
#endif // COMMUNITY_LANG_GROUP1_DA
|
||||
#ifdef COMMUNITY_LANG_GROUP1_SL
|
||||
#define LANG_CODE_SL 0x736C //!<'sl'
|
||||
#endif // COMMUNITY_LANG_GROUP1_SL
|
||||
#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
|
||||
#ifdef COMMUNITY_LANG_GROUP1_HR
|
||||
#define LANG_CODE_HR 0x6872 //!<'hr'
|
||||
#endif // COMMUNITY_LANG_GROUP1_HR
|
||||
//Use the 3 lines below as a template and replace 'QR', '0X7172' and 'qr'
|
||||
//#ifdef COMMUNITY_LANG_QR
|
||||
//#ifdef COMMUNITY_LANG_GROUP1_QR
|
||||
//#define LANG_CODE_QR 0x7172 //!<'qr'
|
||||
//#endif // COMMUNITY_LANG_QR
|
||||
#endif // COMMUNITY_LANG_SUPPORT
|
||||
//#endif // COMMUNITY_LANG_GROUP1_QR
|
||||
#endif // COMMUNITY_LANGUAGE_SUPPORT
|
||||
///@}
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
|
|||
|
|
@ -4442,7 +4442,7 @@ void menu_setlang(unsigned char lang)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef COMMUNITY_LANG_SUPPORT
|
||||
#ifdef COMMUNITY_LANGUAGE_SUPPORT
|
||||
#ifdef XFLASH
|
||||
static void lcd_community_language_menu()
|
||||
{
|
||||
|
|
@ -4458,7 +4458,7 @@ static void lcd_community_language_menu()
|
|||
MENU_END();
|
||||
}
|
||||
#endif //XFLASH
|
||||
#endif //COMMUNITY_LANG_SUPPORT && W52X20CL
|
||||
#endif //COMMUNITY_LANGUAGE_SUPPORT && W52X20CL
|
||||
|
||||
|
||||
|
||||
|
|
@ -4492,11 +4492,11 @@ static void lcd_language_menu()
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef COMMUNITY_LANG_SUPPORT
|
||||
#ifdef COMMUNITY_LANGUAGE_SUPPORT
|
||||
#ifdef XFLASH
|
||||
MENU_ITEM_SUBMENU_P(_T(MSG_COMMUNITY_MADE), lcd_community_language_menu); ////MSG_COMMUNITY_MADE c=18
|
||||
#endif //XFLASH
|
||||
#endif //COMMUNITY_LANG_SUPPORT && W52X20CL
|
||||
#endif //COMMUNITY_LANGUAGE_SUPPORT && W52X20CL
|
||||
|
||||
MENU_END();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
# Some may argue that this is only used by a script, BUT as soon someone accidentally or on purpose starts Arduino IDE
|
||||
# it will use the default Arduino IDE folders and so can corrupt the build environment.
|
||||
#
|
||||
# Version: 2.0.0-Build_63
|
||||
# Version: 2.0.0-Build_66
|
||||
# Change log:
|
||||
# 12 Jan 2019, 3d-gussner, Fixed "compiler.c.elf.flags=-w -Os -Wl,-u,vfprintf -lprintf_flt -lm -Wl,--gc-sections" in 'platform.txt'
|
||||
# 16 Jan 2019, 3d-gussner, Build_2, Added development check to modify 'Configuration.h' to prevent unwanted LCD messages that Firmware is unknown
|
||||
|
|
@ -165,6 +165,7 @@
|
|||
# 23 Jun 2021, 3d-gussner, Improve MK404 usage
|
||||
# 24 Jun 2021, 3d-gussner, Fix MK404 user interaction not to show if compiling 'All' variants
|
||||
# 24 Jun 2021, 3d-gussner, MK404 is only supported on Linux at this moment.
|
||||
# 03 Jan 2022, 3d-gussner, Remove calling lang-community.sh as not needed anymore
|
||||
|
||||
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
|
||||
|
|
@ -220,7 +221,7 @@ while getopts b:c:d:g:h:i:j:l:m:n:o:p:v:x:y:?h flag
|
|||
# '?' 'h' argument usage and help
|
||||
if [ "$help_flag" == "1" ] ; then
|
||||
echo "***************************************"
|
||||
echo "* PF-build.sh Version: 2.0.0-Build_63 *"
|
||||
echo "* PF-build.sh Version: 2.0.0-Build_66 *"
|
||||
echo "***************************************"
|
||||
echo "Arguments:"
|
||||
echo "$(tput setaf 2)-b$(tput sgr0) Build/commit number"
|
||||
|
|
@ -1302,8 +1303,6 @@ create_multi_firmware()
|
|||
# build languages
|
||||
echo "$(tput setaf 3)"
|
||||
./lang-build.sh || failures 25
|
||||
# build community languages
|
||||
./lang-community.sh || failures 25
|
||||
# Combine compiled firmware with languages
|
||||
./fw-build.sh || failures 25
|
||||
cp not_tran.txt not_tran_$VARIANT.txt
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#
|
||||
# config.sh - multi-language support configuration script
|
||||
# Definition of absolute paths etc.
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# Arduino main folder:
|
||||
if [ -z "$ARDUINO" ]; then
|
||||
export ARDUINO=C:/arduino-1.8.5
|
||||
export ARDUINO=../../PF-build-env-1.0.6/1.8.5-1.0.4-linux-64 #C:/arduino-1.8.5
|
||||
fi
|
||||
#
|
||||
# Arduino builder:
|
||||
|
|
@ -29,7 +29,30 @@ export INOELF="$OUTDIR/Firmware.ino.elf"
|
|||
#
|
||||
# Generated hex file:
|
||||
export INOHEX="$OUTDIR/Firmware.ino.hex"
|
||||
#
|
||||
# Set default languages
|
||||
if [ -z "$LANGUAGES" ]; then
|
||||
export LANGUAGES="cz de es fr it pl"
|
||||
fi
|
||||
#
|
||||
# Check for community languages
|
||||
MAX_COMMINITY_LANG=10 # Total 16 - 6 default
|
||||
COMMUNITY_LANGUAGES=""
|
||||
#Search Firmware/config.h for active community group
|
||||
COMMUNITY_LANG_GROUP=$(grep --max-count=1 "^#define COMMUNITY_LANG_GROUP" ../Firmware/config.h| cut -d ' ' -f3)
|
||||
|
||||
# Search Firmware/config.h for active community languanges
|
||||
if [ "$COMMUNITY_LANG_GROUP" = "1" ]; then
|
||||
COMMUNITY_LANGUAGES=$(grep --max-count=$MAX_COMMINITY_LANG "^#define COMMUNITY_LANG_GROUP1_" ../Firmware/config.h| cut -d '_' -f4 |cut -d ' ' -f1 |tr '[:upper:]' '[:lower:]'| tr '\n' ' ')
|
||||
elif [ "$COMMUNITY_LANG_GROUP" = "2" ]; then
|
||||
COMMUNITY_LANGUAGES=$(grep --max-count=$MAX_COMMINITY_LANG "^#define COMMUNITY_LANG_GROUP2_" ../Firmware/config.h| cut -d '_' -f4 |cut -d ' ' -f1 |tr '[:upper:]' '[:lower:]'| tr '\n' ' ')
|
||||
elif [ "$COMMUNITY_LANG_GROUP" = "3" ]; then
|
||||
COMMUNITY_LANGUAGES=$(grep --max-count=$MAX_COMMINITY_LANG "^#define COMMUNITY_LANG_GROUP3_" ../Firmware/config.h| cut -d '_' -f4 |cut -d ' ' -f1 |tr '[:upper:]' '[:lower:]'| tr '\n' ' ')
|
||||
fi
|
||||
|
||||
if [ -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
export COMMUNITY_LANGUAGES="$COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
|
||||
echo "config.sh started" >&2
|
||||
|
||||
|
|
@ -59,6 +82,12 @@ if [ -e $INOELF ]; then echo 'OK' >&2; else echo 'NG!' >&2; _err=7; fi
|
|||
echo -n " Generated hex file: " >&2
|
||||
if [ -e $INOHEX ]; then echo 'OK' >&2; else echo 'NG!' >&2; _err=8; fi
|
||||
|
||||
echo -n " Languages: " >&2
|
||||
echo "$LANGUAGES" >&2
|
||||
|
||||
echo -n " Community languages: " >&2
|
||||
echo "$COMMUNITY_LANGUAGES" >&2
|
||||
|
||||
if [ $_err -eq 0 ]; then
|
||||
echo "config.sh finished with success" >&2
|
||||
export CONFIG_OK=1
|
||||
|
|
|
|||
|
|
@ -29,6 +29,16 @@ LNG=$1
|
|||
# Params:
|
||||
IGNORE_MISSING_TEXT=1
|
||||
|
||||
# List of supported languages
|
||||
if [ -z "$LANGUAGES" ]; then
|
||||
LANGUAGES="cz de es fr it pl"
|
||||
fi
|
||||
|
||||
# Community languages
|
||||
if [ ! -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
LANGUAGES+=" $COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
echo "fw-build languages:$LANGUAGES" >&2
|
||||
|
||||
finish()
|
||||
{
|
||||
|
|
@ -133,70 +143,20 @@ if [ ! -z "$LNG" ]; then
|
|||
finish 0
|
||||
else
|
||||
echo "Updating languages:" >&2
|
||||
if [ -e lang_cz.bin ]; then
|
||||
echo -n " Czech : " >&2
|
||||
./update_lang.sh cz 2>./update_lang_cz.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; finish 1; fi
|
||||
fi
|
||||
if [ -e lang_de.bin ]; then
|
||||
echo -n " German : " >&2
|
||||
./update_lang.sh de 2>./update_lang_de.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; finish 1; fi
|
||||
fi
|
||||
if [ -e lang_it.bin ]; then
|
||||
echo -n " Italian: " >&2
|
||||
./update_lang.sh it 2>./update_lang_it.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; finish 1; fi
|
||||
fi
|
||||
if [ -e lang_es.bin ]; then
|
||||
echo -n " Spanish: " >&2
|
||||
./update_lang.sh es 2>./update_lang_es.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; finish 1; fi
|
||||
fi
|
||||
if [ -e lang_fr.bin ]; then
|
||||
echo -n " French : " >&2
|
||||
./update_lang.sh fr 2>./update_lang_fr.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; finish 1; fi
|
||||
fi
|
||||
if [ -e lang_pl.bin ]; then
|
||||
echo -n " Polish : " >&2
|
||||
./update_lang.sh pl 2>./update_lang_pl.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; finish 1; fi
|
||||
fi
|
||||
#Community language support
|
||||
#Dutch
|
||||
if [ -e lang_nl.bin ]; then
|
||||
echo -n " Dutch : " >&2
|
||||
./update_lang.sh nl 2>./update_lang_nl.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; fi
|
||||
fi
|
||||
|
||||
#Use the 6 lines below as a template and replace 'qr' and 'New language'
|
||||
#New language
|
||||
# if [ -e lang_qr.bin ]; then
|
||||
# echo -n " New language : " >&2
|
||||
# ./update_lang.sh qr 2>./update_lang_qr.out 1>/dev/null
|
||||
# if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; fi
|
||||
# fi
|
||||
|
||||
# echo "skipped" >&2
|
||||
for lang in $LANGUAGES; do
|
||||
if [ -e lang_$lang.bin ]; then
|
||||
echo -n " $lang : " >&2
|
||||
./update_lang.sh $lang 2>./update_lang_$lang.out 1>/dev/null
|
||||
if [ $? -eq 0 ]; then echo 'OK' >&2; else echo 'NG!' >&2; finish 1; fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
#create binary file with all languages
|
||||
rm -f lang.bin
|
||||
if [ -e lang_cz.bin ]; then cat lang_cz.bin >> lang.bin; fi
|
||||
if [ -e lang_de.bin ]; then cat lang_de.bin >> lang.bin; fi
|
||||
if [ -e lang_es.bin ]; then cat lang_es.bin >> lang.bin; fi
|
||||
if [ -e lang_fr.bin ]; then cat lang_fr.bin >> lang.bin; fi
|
||||
if [ -e lang_it.bin ]; then cat lang_it.bin >> lang.bin; fi
|
||||
if [ -e lang_pl.bin ]; then cat lang_pl.bin >> lang.bin; fi
|
||||
#Community language support
|
||||
# Dutch
|
||||
if [ -e lang_nl.bin ]; then cat lang_nl.bin >> lang.bin; fi
|
||||
|
||||
#Use the 2 lines below as a template and replace 'qr'
|
||||
## New language
|
||||
#if [ -e lang_qr.bin ]; then cat lang_qr.bin >> lang.bin; fi
|
||||
for lang in $LANGUAGES; do
|
||||
if [ -e lang_$lang.bin ]; then cat lang_$lang.bin >> lang.bin; fi
|
||||
done
|
||||
|
||||
# Check that the language data doesn't exceed the reserved XFLASH space
|
||||
echo " checking language data size:"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,15 @@
|
|||
# Remove all firmware output files from lang folder.
|
||||
#
|
||||
|
||||
# Config:
|
||||
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
||||
if [ -z "$CONFIG_OK" ] | [ $CONFIG_OK -eq 0 ]; then echo 'Config NG!' >&2; exit 1; fi
|
||||
|
||||
if [ ! -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
LANGUAGES+=" $COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
echo "fw-clean languages:$LANGUAGES" >&2
|
||||
|
||||
result=0
|
||||
|
||||
rm_if_exists()
|
||||
|
|
@ -31,32 +40,17 @@ rm_if_exists progmem1.txt
|
|||
rm_if_exists textaddr.txt
|
||||
rm_if_exists firmware.bin
|
||||
rm_if_exists firmware.hex
|
||||
rm_if_exists firmware_cz.hex
|
||||
rm_if_exists firmware_de.hex
|
||||
rm_if_exists firmware_es.hex
|
||||
rm_if_exists firmware_fr.hex
|
||||
rm_if_exists firmware_it.hex
|
||||
rm_if_exists firmware_pl.hex
|
||||
rm_if_exists progmem.out
|
||||
rm_if_exists textaddr.out
|
||||
rm_if_exists update_lang.out
|
||||
rm_if_exists update_lang_cz.out
|
||||
rm_if_exists update_lang_de.out
|
||||
rm_if_exists update_lang_es.out
|
||||
rm_if_exists update_lang_fr.out
|
||||
rm_if_exists update_lang_it.out
|
||||
rm_if_exists update_lang_pl.out
|
||||
rm_if_exists lang.bin
|
||||
rm_if_exists lang.hex
|
||||
#Community language support
|
||||
#Dutch
|
||||
rm_if_exists firmware_nl.hex
|
||||
rm_if_exists update_lang_nl.out
|
||||
|
||||
#Use the 2 lines below as a template and replace 'qr'
|
||||
##New language
|
||||
#rm_if_exists firmware_qr.hex
|
||||
#rm_if_exists update_lang_qr.out
|
||||
|
||||
for lang in $LANGUAGES; do
|
||||
rm_if_exists firmware_$lang.hex
|
||||
rm_if_exists update_lang_$lang.out
|
||||
done
|
||||
|
||||
echo -n "fw-clean.sh finished" >&2
|
||||
if [ $result -eq 0 ]; then
|
||||
|
|
|
|||
|
|
@ -9,6 +9,15 @@
|
|||
# lang_en.txt and all lang_en_xx.txt
|
||||
#
|
||||
|
||||
# Config:
|
||||
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
||||
if [ -z "$CONFIG_OK" ] | [ $CONFIG_OK -eq 0 ]; then echo 'Config NG!' >&2; exit 1; fi
|
||||
|
||||
if [ ! -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
LANGUAGES+=" $COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
echo "fw-clean languages:$LANGUAGES" >&2
|
||||
|
||||
|
||||
# insert single text to english dictionary
|
||||
# $1 - text to insert
|
||||
|
|
@ -59,16 +68,10 @@ cat lang_add.txt | sed 's/^/"/;s/$/"/' | while read new_s; do
|
|||
echo "adding text:"
|
||||
echo "$new_s"
|
||||
echo
|
||||
insert_en "$new_s"
|
||||
insert_xx "$new_s" 'cz'
|
||||
insert_xx "$new_s" 'de'
|
||||
insert_xx "$new_s" 'es'
|
||||
insert_xx "$new_s" 'fr'
|
||||
insert_xx "$new_s" 'it'
|
||||
insert_xx "$new_s" 'pl'
|
||||
#Community language support
|
||||
#Dutch
|
||||
insert_xx "$new_s" 'nl'
|
||||
#insert_en "$new_s"
|
||||
for lang in $LANGUAGES; do
|
||||
insert_xx "$new_s" "$lang"
|
||||
done
|
||||
|
||||
#Use the 2 lines below as a template and replace 'qr'
|
||||
##New language
|
||||
|
|
@ -77,4 +80,4 @@ cat lang_add.txt | sed 's/^/"/;s/$/"/' | while read new_s; do
|
|||
done
|
||||
|
||||
read -t 5
|
||||
exit 0
|
||||
exit 0
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#
|
||||
# lang-build.sh - multi-language support script
|
||||
# generate lang_xx.bin (language binary file)
|
||||
|
|
@ -13,12 +13,21 @@
|
|||
# lang_xx.tmp
|
||||
# lang_xx.dat
|
||||
#
|
||||
# Config:
|
||||
#startup message
|
||||
echo "lang-build.sh started" >&2
|
||||
|
||||
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
||||
if [ -z "$CONFIG_OK" ] | [ $CONFIG_OK -eq 0 ]; then echo 'Config NG!' >&2; exit 1; fi
|
||||
|
||||
if [ ! -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
LANGUAGES+=" $COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
echo "lang-build languages:$LANGUAGES" >&2
|
||||
|
||||
#awk code to format ui16 variables for dd
|
||||
awk_ui16='{ h=int($1/256); printf("\\x%02x\\x%02x\n", int($1-256*h), h); }'
|
||||
|
||||
#startup message
|
||||
echo "lang-build.sh started" >&2
|
||||
|
||||
#exiting function
|
||||
finish()
|
||||
|
|
@ -46,6 +55,18 @@ lang_code_hex_data()
|
|||
#Community language support
|
||||
#Dutch
|
||||
*nl*) echo '\x6c\x6e' ;;
|
||||
#Swedish
|
||||
*sv*) echo '\x76\x73' ;;
|
||||
#Danish
|
||||
*da*) echo '\x61\x64' ;;
|
||||
#Slovanian
|
||||
*sl*) echo '\x6C\x73' ;;
|
||||
#Hungarian
|
||||
*hu*) echo '\x75\x68' ;;
|
||||
#Luxembourgish
|
||||
*lb*) echo '\x62\x6C' ;;
|
||||
#Croatian
|
||||
*hr*) echo '\x72\x68' ;;
|
||||
#Use the 2 lines below as a template and replace 'qr' and `\x71\x72`
|
||||
##New language
|
||||
# *qr*) echo '\x71\x72' ;;
|
||||
|
|
@ -126,22 +147,16 @@ generate_binary()
|
|||
chsum=$(cat lang_$1.bin | xxd | cut -c11-49 | tr ' ' "\n" | sed '/^$/d' | awk 'BEGIN { sum = 0; } { sum += strtonum("0x"$1); if (sum > 0xffff) sum -= 0x10000; } END { printf("%x\n", sum); }')
|
||||
/bin/echo -n -e $(echo -n $((0x$chsum)) | awk "$awk_ui16") |\
|
||||
dd of=lang_$1.bin bs=1 count=2 seek=8 conv=notrunc 2>/dev/null
|
||||
#remove temporary files
|
||||
# rm -f lang_$1.tmp
|
||||
# rm -f lang_$1.dat
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then set 'all'; fi
|
||||
|
||||
if [ "$1" = "all" ]; then
|
||||
generate_binary 'en'
|
||||
generate_binary 'cz'
|
||||
generate_binary 'de'
|
||||
generate_binary 'es'
|
||||
generate_binary 'fr'
|
||||
generate_binary 'it'
|
||||
generate_binary 'pl'
|
||||
#DO NOT add Community languages here !!!
|
||||
for lang in $LANGUAGES; do
|
||||
echo " Running : $lang" >&2
|
||||
generate_binary $lang
|
||||
done
|
||||
else
|
||||
generate_binary $1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -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|de|es|fr|nl|it|pl)")
|
||||
help="Check lang file (en|cs|da|de|es|fr|hr|hu|lb|nl|it|pl|sl|sv)")
|
||||
parser.add_argument(
|
||||
"--no-warning", action="store_true",
|
||||
help="Disable warnings")
|
||||
|
|
|
|||
|
|
@ -1,9 +1,18 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#
|
||||
# clean.sh - multi-language support script
|
||||
# Remove all language output files from lang folder.
|
||||
#
|
||||
|
||||
# Config:
|
||||
echo "CONFIG: $CONFIG_OK"
|
||||
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
||||
if [ -z "$CONFIG_OK" ] | [ $CONFIG_OK -eq 0 ]; then echo 'Config NG!' >&2; exit 1; fi
|
||||
|
||||
if [ ! -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
LANGUAGES+=" $COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
|
||||
result=0
|
||||
|
||||
rm_if_exists()
|
||||
|
|
@ -37,22 +46,15 @@ clean_lang()
|
|||
rm_if_exists lang_$1_2.tmp
|
||||
}
|
||||
|
||||
#Clean English
|
||||
clean_lang en
|
||||
|
||||
#Clean languages
|
||||
echo "lang-clean.sh started" >&2
|
||||
|
||||
clean_lang en
|
||||
clean_lang cz
|
||||
clean_lang de
|
||||
clean_lang es
|
||||
clean_lang fr
|
||||
clean_lang it
|
||||
clean_lang pl
|
||||
#Community language support
|
||||
#Dutch
|
||||
clean_lang nl
|
||||
|
||||
#Use the 2 lines below as a template and replace 'qr'
|
||||
##New language
|
||||
#clean_lang_qr
|
||||
echo "lang-clean languages:$LANGUAGES" >&2
|
||||
for lang in $LANGUAGES; do
|
||||
clean_lang $lang
|
||||
done
|
||||
|
||||
echo -n "lang-clean.sh finished" >&2
|
||||
if [ $result -eq 0 ]; then
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ if [ -z "$ROOT_PATH" ]; then
|
|||
fi
|
||||
|
||||
# Check community language NL = Dutch
|
||||
COMMUNITY_LANG_NL=$(grep --max-count=1 "^#define COMMUNITY_LANG_NL" $ROOT_PATH/Firmware/config.h| cut -d '_' -f3 |cut -d ' ' -f1)
|
||||
export NL=$COMMUNITY_LANG_NL
|
||||
COMMUNITY_LANG_GROUP1_NL=$(grep --max-count=1 "^#define COMMUNITY_LANG_GROUP1_NL" $ROOT_PATH/Firmware/config.h| cut -d '_' -f3 |cut -d ' ' -f1)
|
||||
export NL=$COMMUNITY_LANG_GROUP1_NL
|
||||
|
||||
# Use the lines below as a template and replace 'QR' and 'new language'
|
||||
# Check comminity language QR = new language
|
||||
|
|
@ -24,8 +24,8 @@ echo -n " Source code path: " >&2
|
|||
if [ -e $ROOT_PATH ]; then echo 'OK' >&2; else echo 'NG!' >&2; _err=1; fi
|
||||
|
||||
echo " Found: " >&2
|
||||
if [ "$COMMUNITY_LANG_NL" = "NL" ]; then
|
||||
echo " $COMMUNITY_LANG_NL" >&2
|
||||
if [ "$COMMUNITY_LANG_GROUP1_NL" = "NL" ]; then
|
||||
echo " $COMMUNITY_LANG_GROUP1_NL" >&2
|
||||
echo
|
||||
./lang-build.sh nl
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -3,6 +3,14 @@
|
|||
# lang-export.sh - multi-language support script
|
||||
# for generating lang_xx.po
|
||||
#
|
||||
# Config:
|
||||
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
||||
if [ -z "$CONFIG_OK" ] | [ $CONFIG_OK -eq 0 ]; then echo 'Config NG!' >&2; exit 1; fi
|
||||
|
||||
if [ ! -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
LANGUAGES+=" $COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
echo "lang-export languages:$LANGUAGES" >&2
|
||||
|
||||
# relative path to source folder
|
||||
SRCDIR="../Firmware"
|
||||
|
|
@ -16,18 +24,9 @@ if [ -z "$LNG" ]; then LNG=all; fi
|
|||
# if 'all' is selected, script will generate all po files and also pot file
|
||||
if [ "$LNG" = "all" ]; then
|
||||
./lang-export.sh en
|
||||
./lang-export.sh cz
|
||||
./lang-export.sh de
|
||||
./lang-export.sh es
|
||||
./lang-export.sh fr
|
||||
./lang-export.sh it
|
||||
./lang-export.sh pl
|
||||
#Community language support
|
||||
#Dutch
|
||||
./lang-export.sh nl
|
||||
#Use the 2 lines below as a template and replace 'qr' and 'New language'
|
||||
##New language
|
||||
# ./lang-export.sh qr
|
||||
for lang in $LANGUAGES; do
|
||||
./lang-export.sh $lang
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
@ -57,6 +56,18 @@ else
|
|||
#Community language support
|
||||
#Dutch
|
||||
*nl*) echo "Dutch" ;;
|
||||
#Swedish
|
||||
*sv*) echo "Swedish" ;;
|
||||
#Danish
|
||||
*da*) echo "Danish" ;;
|
||||
#Slovanian
|
||||
*sl*) echo "Slovanian" ;;
|
||||
#Hugarian
|
||||
*hu*) echo "Hugarian" ;;
|
||||
#Luxembourgish
|
||||
*lb*) echo "Luxembourgish" ;;
|
||||
#Croatian
|
||||
*hr*) echo "Croatian" ;;
|
||||
#Use the 2 lines below as a template and replace 'qr' and 'New language'
|
||||
##New language
|
||||
# *qr*) echo "New language" ;;
|
||||
|
|
@ -113,26 +124,37 @@ s1=''
|
|||
s2=''
|
||||
num=1
|
||||
(cat $INFILE | sed "s/\\\\/\\\\\\\\/g" | while read -r s; do
|
||||
if [ "$s" = "" ]; then
|
||||
echo " processing $num of $CNTTXT" >&2
|
||||
# write po/pot item
|
||||
(
|
||||
if [ -z "$s2" ]; then s2=$s1; s1=$s0; s0='""'; fi
|
||||
search=$(/bin/echo -e "$s1")
|
||||
found=$(grep -m1 -n -F "$search" $SRCFILES | head -n1 | cut -f1-2 -d':' | sed "s/^.*\///")
|
||||
echo "$s2" | sed 's/ c=0//;s/ r=0//;s/^#/# /'
|
||||
echo "#: $found"
|
||||
/bin/echo -e "msgid $s1"
|
||||
if [ "$s0" = "\"\\\\x00\"" ]; then
|
||||
echo 'msgstr ""'
|
||||
else
|
||||
/bin/echo -e "msgstr $s0"
|
||||
fi
|
||||
echo
|
||||
#start debug
|
||||
#if [ "${s:0:1}" = "\"" ]; then
|
||||
# echo >&2
|
||||
# echo "s = $s ." >&2
|
||||
# echo "s0 = $s0 ." >&2
|
||||
# echo "s1 = $s1 ." >&2
|
||||
#fi
|
||||
#end debug
|
||||
if [ "${s:0:1}" = "\"" ]; then
|
||||
if [[ "${s0:0:1}" = "\"" || "$LNG" = "en" ]]; then
|
||||
echo " processing $num of $CNTTXT" >&2
|
||||
# write po/pot item
|
||||
(
|
||||
if [ "$LNG" = "en" ]; then s1=$s0; s0=$s; fi
|
||||
search=$(/bin/echo -e "$s0")
|
||||
found=$(grep -m1 -n -F "$search" $SRCFILES | head -n1 | cut -f1-2 -d':' | sed "s/^.*\///")
|
||||
echo "$s1" | sed 's/ c=0//;s/ r=0//;s/^#/# /'
|
||||
#echo "$s1" | sed 's/ c=0//;s/ r=0//;s/^#/# /' >&2
|
||||
echo "#: $found"
|
||||
#echo "#: $found" >&2
|
||||
/bin/echo -e "msgid $s0"
|
||||
if [[ "$s" = "\"\\\\x00\"" || "$LNG" = "en" ]]; then
|
||||
echo 'msgstr ""'
|
||||
else
|
||||
/bin/echo -e "msgstr $s"
|
||||
fi
|
||||
echo
|
||||
)
|
||||
num=$((num+1))
|
||||
fi
|
||||
fi
|
||||
s2=$s1
|
||||
s1=$s0
|
||||
s0=$s
|
||||
done >>$OUTFILE) 2>&1
|
||||
|
|
|
|||
|
|
@ -2,6 +2,14 @@
|
|||
#
|
||||
# lang-import.sh - multi-language support script
|
||||
# for importing translated xx.po
|
||||
# Config:
|
||||
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
||||
if [ -z "$CONFIG_OK" ] | [ $CONFIG_OK -eq 0 ]; then echo 'Config NG!' >&2; exit 1; fi
|
||||
|
||||
if [ ! -z "$COMMUNITY_LANGUAGES" ]; then
|
||||
LANGUAGES+=" $COMMUNITY_LANGUAGES"
|
||||
fi
|
||||
echo "lang-import languages:$LANGUAGES" >&2
|
||||
|
||||
LNG=$1
|
||||
# if no arguments, 'all' is selected (all po and also pot will be generated)
|
||||
|
|
@ -9,13 +17,9 @@ if [ -z "$LNG" ]; then LNG=all; fi
|
|||
|
||||
# if 'all' is selected, script will generate all po files and also pot file
|
||||
if [ "$LNG" = "all" ]; then
|
||||
./lang-import.sh cz
|
||||
./lang-import.sh de
|
||||
./lang-import.sh es
|
||||
./lang-import.sh fr
|
||||
./lang-import.sh it
|
||||
./lang-import.sh pl
|
||||
#DO NOT add Community languages here !!!
|
||||
for lang in $LANGUAGES; do
|
||||
./lang-import.sh $lang
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
@ -171,6 +175,55 @@ if [ "$LNG" = "nl" ]; then
|
|||
sed -i 's/\xc3\x85/A/g' $LNG'_filtered.po'
|
||||
fi
|
||||
|
||||
if [ "$LGN" = "sv" ]; 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
|
||||
|
||||
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
|
||||
|
||||
if [ "$LGN" = "sl" ]; then
|
||||
#replace 'ë' with 'e'
|
||||
sed -i 's/\xc3\xab/e/g' $LNG'_filtered.po'
|
||||
#replace 'ä' with 'a' (left)
|
||||
sed -i 's/\xc3\xa4/a/g' $LNG'_filtered.po'
|
||||
#replace 'é' with 'e'
|
||||
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
|
||||
fi
|
||||
|
||||
if [ "$LGN" = "hu" ]; 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
|
||||
|
||||
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
|
||||
|
||||
if [ "$LGN" = "hr" ]; 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
|
||||
|
|
@ -183,18 +236,35 @@ fi
|
|||
#join lines with multi-line string constants
|
||||
cat $LNG'_filtered.po' | sed ':a;N;$!ba;s/\x22\n\x22//g' > $LNG'_new.po'
|
||||
|
||||
#Get counter from po files
|
||||
|
||||
CNTTXT=$(grep '^# MSG' -c $LNGISO.po)
|
||||
num=1
|
||||
echo " selected language=$LNGISO" >&2
|
||||
#generate new dictionary
|
||||
cat ../../lang_en.txt | sed 's/\\/\\\\/g' | while read -r s; do
|
||||
/bin/echo -e "$s"
|
||||
#echo "s = $s ." >&2
|
||||
if [ "${s:0:1}" = "\"" ]; then
|
||||
|
||||
# /bin/echo -e "$s"
|
||||
s=$(/bin/echo -e "$s")
|
||||
s2=$(grep -F -A1 -B0 "$s" "$LNG"_new.po | tail -n1 | sed 's/^msgstr //')
|
||||
s2=$(grep -F -A1 -B0 "msgid $s" "$LNG"_new.po | tail -n1 | sed 's/^msgstr //')
|
||||
if [ -z "$s2" ]; then
|
||||
echo " processing $num of $CNTTXT" >&2
|
||||
echo '"\x00"'
|
||||
num=$((num+1))
|
||||
else
|
||||
echo " processing $num of $CNTTXT" >&2
|
||||
echo "$s2"
|
||||
num=$((num+1))
|
||||
fi
|
||||
# echo
|
||||
fi
|
||||
|
||||
done > lang_en_$LNG.txt
|
||||
echo "Finished with $LNGISO" >&2
|
||||
#replace two double quotes to "\x00"
|
||||
sed -i 's/""/"\\x00"/g' lang_en_$LNG.txt
|
||||
#remove CR
|
||||
sed -i "s/\r//g" lang_en_$LNG.txt
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1254,7 +1254,7 @@
|
|||
"The printer will start printing a zig-zag line. Rotate the knob until you reach the optimal height. Check the pictures in the handbook (Calibration chapter)."
|
||||
"La impresora comenzara a imprimir una linea en zig-zag. Gira el dial hasta que la linea alcance la altura optima. Mira las fotos del manual (Capitulo de calibracion)."
|
||||
|
||||
# c=20 r=5
|
||||
#MSG_FIL_FAILED c=20 r=5
|
||||
"Verification failed, remove the filament and try again."
|
||||
"La verificacion fallo, retire el filamento e intente nuevamente."
|
||||
|
||||
|
|
@ -1342,7 +1342,7 @@
|
|||
"G-code sliced for a newer firmware. Continue?"
|
||||
"Codigo G laminado para nuevo firmware. ?Continuar?"
|
||||
|
||||
# c=20 r=8
|
||||
#MSG_GCODE_NEWER_FIRMWARE_CANCELLED c=20 r=8
|
||||
"G-code sliced for a newer firmware. Please update the firmware. Print cancelled."
|
||||
"Codigo G laminado para nuevo firmware. Por favor actualiza el firmware. Impresion cancelada."
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:50:53 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:50:53 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:20 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:20 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr ""
|
|||
msgid "Z-probe nr."
|
||||
msgstr ""
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:50:57 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:50:57 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:23 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:23 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Korekce Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Pocet mereni Z"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "IP adr. tiskarny:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:01 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:01 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:27 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:27 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Z-Korrektur:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Z-Test Nr."
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Drucker IP Adr.:"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:04 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:04 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:30 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:30 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1585,7 +1585,7 @@ msgstr "Dist. en Y desde min"
|
|||
msgid "The printer will start printing a zig-zag line. Rotate the knob until you reach the optimal height. Check the pictures in the handbook (Calibration chapter)."
|
||||
msgstr "La impresora comenzara a imprimir una linea en zig-zag. Gira el dial hasta que la linea alcance la altura optima. Mira las fotos del manual (Capitulo de calibracion)."
|
||||
|
||||
# c=20 r=5
|
||||
# MSG_FIL_FAILED c=20 r=5
|
||||
#: ultralcd.cpp:7415
|
||||
msgid "Verification failed, remove the filament and try again."
|
||||
msgstr "La verificacion fallo, retire el filamento e intente nuevamente."
|
||||
|
|
@ -1695,7 +1695,7 @@ msgstr "Codigo G laminado para una impresora diferente. Por favor relamina el mo
|
|||
msgid "G-code sliced for a newer firmware. Continue?"
|
||||
msgstr "Codigo G laminado para nuevo firmware. ?Continuar?"
|
||||
|
||||
# c=20 r=8
|
||||
# MSG_GCODE_NEWER_FIRMWARE_CANCELLED c=20 r=8
|
||||
#: util.cpp:387
|
||||
msgid "G-code sliced for a newer firmware. Please update the firmware. Print cancelled."
|
||||
msgstr "Codigo G laminado para nuevo firmware. Por favor actualiza el firmware. Impresion cancelada."
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Corregir-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Z-sensor nr."
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Dir. IP impresora:"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:08 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:08 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:34 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:34 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Correct-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Mesurer x-fois"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Adr.IP imprimante:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:11 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:11 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:37 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:37 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Correzione-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Nr. Z-test"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Ind. IP stampante:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nl\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:18 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:18 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:44 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:44 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Z-correctie:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Z-test nr."
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Printer IP-adres:"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:14 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:14 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:40 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:40 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Korekcja-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Ilosc Pomiarow"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Adr. IP drukarki:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:50:57 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:50:57 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:23 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:23 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Korekce Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Pocet mereni Z"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "IP adr. tiskarny:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:01 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:01 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:27 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:27 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Z-Korrektur:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Z-Test Nr."
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Drucker IP Adr.:"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:04 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:04 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:30 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:30 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1585,7 +1585,7 @@ msgstr "Dist. en Y desde min"
|
|||
msgid "The printer will start printing a zig-zag line. Rotate the knob until you reach the optimal height. Check the pictures in the handbook (Calibration chapter)."
|
||||
msgstr "La impresora comenzara a imprimir una linea en zig-zag. Gira el dial hasta que la linea alcance la altura optima. Mira las fotos del manual (Capitulo de calibracion)."
|
||||
|
||||
# c=20 r=5
|
||||
# MSG_FIL_FAILED c=20 r=5
|
||||
#: ultralcd.cpp:7415
|
||||
msgid "Verification failed, remove the filament and try again."
|
||||
msgstr "La verificacion fallo, retire el filamento e intente nuevamente."
|
||||
|
|
@ -1695,7 +1695,7 @@ msgstr "Codigo G laminado para una impresora diferente. Por favor relamina el mo
|
|||
msgid "G-code sliced for a newer firmware. Continue?"
|
||||
msgstr "Codigo G laminado para nuevo firmware. ?Continuar?"
|
||||
|
||||
# c=20 r=8
|
||||
# MSG_GCODE_NEWER_FIRMWARE_CANCELLED c=20 r=8
|
||||
#: util.cpp:387
|
||||
msgid "G-code sliced for a newer firmware. Please update the firmware. Print cancelled."
|
||||
msgstr "Codigo G laminado para nuevo firmware. Por favor actualiza el firmware. Impresion cancelada."
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Corregir-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Z-sensor nr."
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Dir. IP impresora:"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:08 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:08 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:34 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:34 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Correct-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Mesurer x-fois"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Adr.IP imprimante:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:11 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:11 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:37 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:37 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Correzione-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Nr. Z-test"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Ind. IP stampante:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nl\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:18 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:18 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:44 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:44 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Z-correctie:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Z-test nr."
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Printer IP-adres:"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Project-Id-Version: Prusa-Firmware\n"
|
||||
"POT-Creation-Date: Thu 16 Dec 2021 11:51:14 AM CET\n"
|
||||
"PO-Revision-Date: Thu 16 Dec 2021 11:51:14 AM CET\n"
|
||||
"POT-Creation-Date: Sun 19 Dec 2021 07:17:40 PM CET\n"
|
||||
"PO-Revision-Date: Sun 19 Dec 2021 07:17:40 PM CET\n"
|
||||
"Language-Team: \n"
|
||||
"X-Generator: Poedit 2.0.7\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
|
@ -1765,3 +1765,8 @@ msgstr "Korekcja-Z:"
|
|||
msgid "Z-probe nr."
|
||||
msgstr "Ilosc Pomiarow"
|
||||
|
||||
# MSG_PRINTER_IP c=18
|
||||
#: ultralcd.cpp:2028
|
||||
msgid "Printer IP Addr:"
|
||||
msgstr "Adr. IP drukarki:"
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue