commit ad68529d9d719176c3d69f03e6468d646180b593 Author: Ahmed Siam Date: Fri Aug 18 16:10:14 2023 +0300 Update in the i18n of some files diff --git a/apertium/adapt_docx.cc b/apertium/adapt_docx.cc index 783d18e..811c894 100644 --- a/apertium/adapt_docx.cc +++ b/apertium/adapt_docx.cc @@ -412,7 +412,7 @@ void process(string fileName, bool outputsName, bool pretty) int sizeBuffer; xmlDocDumpFormatMemory(document, &buffer, &sizeBuffer, pretty ? 1: 0); if (outputsName) - cout << "<" << I18n(APER_I18N_DATA, "apertium").format("file_name") << "=\"" << fileName << "\"/> "; + cout << " "; const unsigned char *p = buffer; p = printNl2spc(p); if (pretty) diff --git a/apertium/apertium-unformat-header.sh b/apertium/apertium-unformat-header.sh index dde9542..ac72d10 100644 --- a/apertium/apertium-unformat-header.sh +++ b/apertium/apertium-unformat-header.sh @@ -9,7 +9,7 @@ OUTPUT_FILE="/dev/stdout" message () { - icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "unformat_desc" "basename" "$(basename "$0")"\ + icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "unformat_desc" "basename" "$(basename "$0")" exit 1; } diff --git a/apertium/transformdic-header.sh b/apertium/transformdic-header.sh index c14fa0d..539511c 100644 --- a/apertium/transformdic-header.sh +++ b/apertium/transformdic-header.sh @@ -7,7 +7,7 @@ FILE1=$2; FILE2=$3; if [ ! -e $2 ] - then echo icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "APER1000" "file_name" "$2"; + then icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "APER1000" "file_name" "$2"; exit 1; fi @@ -16,5 +16,5 @@ then xsltproc $XSLTPROC_OPTIONS_LR $STYLESHEET $FILE1 >$FILE2 elif [ $1 = "rl" ] then xsltproc $XSLTPROC_OPTIONS_RL $STYLESHEET $FILE1 >$FILE2 else - then echo icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "APER1108" "opt" "$1"; + then icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "APER1108" "opt" "$1"; fi diff --git a/apertium/transformdicbil-header.sh b/apertium/transformdicbil-header.sh index 90c2266..8c654ed 100644 --- a/apertium/transformdicbil-header.sh +++ b/apertium/transformdicbil-header.sh @@ -7,7 +7,7 @@ FILE1=$1; FILE2=$2; if [ ! -e $1 ] -then echo icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "APER1000" "file_name" "$1"; +then icuformat "$APERTIUM_DATADIR"/apertium.dat "apertium" "APER1000" "file_name" "$1"; exit 1; fi diff --git a/locales/root.txt b/locales/root.txt index 5625a36..3845761 100644 --- a/locales/root.txt +++ b/locales/root.txt @@ -9,7 +9,6 @@ root{ file_desc{"gets file name as parameter"} pretty_desc{"outputs xml with a pretty format"} paragraphs_found{"paragraphs found"} - file_name{"file name"} compile_caps_desc{"compile capitalization restoration rules"} help_desc{"print this message and exit"}