diff options
author | Barry Jackson <barjac@mageia.org> | 2023-01-22 18:19:21 +0000 |
---|---|---|
committer | Barry Jackson <barjac@mageia.org> | 2023-01-22 18:19:21 +0000 |
commit | 3990e3211ea0544b6b0326f871b77d4710e55048 (patch) | |
tree | 5054049d0c05cbab10926972ac20f6e7d2406518 | |
parent | db18acbd7b284307c6314a781e4044a1353e9379 (diff) | |
download | remove-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.md | 2 | ||||
-rwxr-xr-x | 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. @@ -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 |