Skip to content

Commit

Permalink
Import updated translations and bump version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold committed Nov 12, 2022
1 parent e5acbfe commit 26997e6
Show file tree
Hide file tree
Showing 63 changed files with 6,262 additions and 1,129 deletions.
538 changes: 538 additions & 0 deletions help/help_af.html

Large diffs are not rendered by default.

813 changes: 431 additions & 382 deletions help/help_pt_BR.html

Large diffs are not rendered by default.

509 changes: 509 additions & 0 deletions help/help_rue.html

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions miscellaneous/import-translations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ set -o pipefail
source_dir=../translations-export
dest_dir=./translations

# trap 'rm -f "${temp_file}"' EXIT
# temp_file="$(mktemp)"

for source_file in ${source_dir}/*.po
do
locale="$(basename ${source_file} .po)"
dest_file="${dest_dir}/qpdfview_${locale}.ts"

sed "s/^\"X-Generator:..*/\"X-Qt-Contexts: true\\\\n\"/" "${source_file}" \
| sed -r "/^msgctxt \"[^Qq][^:]+\"/ s/^msgctxt \"([^Qq][^:|\"]+)|\"$/msgctxt \"qpdfview::\1/" \
| lconvert -if po -i - -o "${dest_file}"
| lconvert -if po -i - -o "${dest_file}" -target-language ${locale}
done

lupdate -no-obsolete ./qpdfview.pro
Expand Down
2 changes: 1 addition & 1 deletion qpdfview.pri
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
isEmpty(APPLICATION_VERSION):APPLICATION_VERSION = 0.4.99
isEmpty(APPLICATION_VERSION):APPLICATION_VERSION = 0.5.0beta1

isEmpty(TARGET_INSTALL_PATH):TARGET_INSTALL_PATH = /usr/bin
isEmpty(PLUGIN_INSTALL_PATH):PLUGIN_INSTALL_PATH = /usr/lib/qpdfview
Expand Down
2 changes: 2 additions & 0 deletions qpdfview.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ with_fitz {
SUBDIRS += application.pro

TRANSLATIONS += \
translations/qpdfview_af.ts \
translations/qpdfview_ast.ts \
translations/qpdfview_az.ts \
translations/qpdfview_be.ts \
Expand Down Expand Up @@ -74,6 +75,7 @@ TRANSLATIONS += \
translations/qpdfview_pt_BR.ts \
translations/qpdfview_ro.ts \
translations/qpdfview_ru.ts \
translations/qpdfview_rue.ts \
translations/qpdfview_sk.ts \
translations/qpdfview_sr.ts \
translations/qpdfview_sv.ts \
Expand Down
Loading

0 comments on commit 26997e6

Please sign in to comment.