From 3990e3211ea0544b6b0326f871b77d4710e55048 Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Sun, 22 Jan 2023 18:19:21 +0000 Subject: Minor edit to TRANSLATIONS.md and typo fix in mk-pot --- TRANSLATIONS.md | 2 +- mk-pot | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TRANSLATIONS.md b/TRANSLATIONS.md index ff46413..8bfd665 100644 --- a/TRANSLATIONS.md +++ b/TRANSLATIONS.md @@ -2,7 +2,7 @@ In order to translate this program, you need the gettext package installed. If you have a github account, fork this repository. -Go into the po folder locally and run 'msginit'. +Go into the po folder locally and run 'msginit --no-wrap'. This should produce a 'LL.po' file, where 'LL' is the configured language your system is running. Use a po file editor, such as Poedit or Lokalize, and translate the 'msgid' strings on the 'msgstr' lines inside the quotes. You can then create a 'pull request' following github instructions. diff --git a/mk-pot b/mk-pot index 0c08bf2..3654126 100755 --- a/mk-pot +++ b/mk-pot @@ -28,7 +28,7 @@ rawarray=(); x=0 ; y=0 while IFS='' read -r line; do if echo "$line"|grep -q '(i18n'; then # [[ dbg -eq 1 ]] && echo "$line" - # Look for the first ocurrance of i18n and extract raw text only + # Look for the first occurrence of i18n and extract raw text only idstr1="$(echo "$line"|grep i18n|sed "s/\$(i18n/@/g"|cut -d@ -f2|cut -d\" -f2| sed 's/").*//')" isdupe=0 # Check it is not dupe @@ -37,7 +37,7 @@ while IFS='' read -r line; do IFS='' echo -e "msgid \""$idstr1"\"\nmsgstr \"\"\n" >> $outpot fi - # Look for a second ocurrance of i18n and extract raw text only + # Look for a second occurrence of i18n and extract raw text only idstr2="$(echo "$line"|grep i18n|sed 's/\$(i18n/@/g'|cut -d@ -f3|cut -d\" -f2| sed 's/").*//')" # Check it exists if [[ ${#idstr2} > 0 ]]; then -- cgit v1.2.1