aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-22 18:19:21 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-22 18:19:21 +0000
commit3990e3211ea0544b6b0326f871b77d4710e55048 (patch)
tree5054049d0c05cbab10926972ac20f6e7d2406518
parentdb18acbd7b284307c6314a781e4044a1353e9379 (diff)
downloadremove-old-kernels-3990e3211ea0544b6b0326f871b77d4710e55048.tar
remove-old-kernels-3990e3211ea0544b6b0326f871b77d4710e55048.tar.gz
remove-old-kernels-3990e3211ea0544b6b0326f871b77d4710e55048.tar.bz2
remove-old-kernels-3990e3211ea0544b6b0326f871b77d4710e55048.tar.xz
remove-old-kernels-3990e3211ea0544b6b0326f871b77d4710e55048.zip
Minor edit to TRANSLATIONS.md and typo fix in mk-pot
-rw-r--r--TRANSLATIONS.md2
-rwxr-xr-xmk-pot4
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