diff --git a/.gitignore b/.gitignore index fbf5275..fbdc92c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,15 +21,9 @@ zathura-*.tar.gz *.patch # build dirs -.depend .tx build/ gcov/ -doc/_build - -# version file -version.h -.version-checks/ # development files .clang_complete diff --git a/LICENSE b/LICENSE index af2dfc0..75d724d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009-2017 pwmt.org +Copyright (c) 2009-2018 pwmt.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages diff --git a/Makefile b/Makefile deleted file mode 100644 index 9a22c30..0000000 --- a/Makefile +++ /dev/null @@ -1,279 +0,0 @@ -# See LICENSE file for license and copyright information - -include config.mk -include colors.mk -include common.mk - -# source files -OSOURCE = $(sort $(wildcard ${PROJECT}/*.c) \ - ${PROJECT}/resources.c) -SOURCE_FILTER = - -ifneq (${WITH_SQLITE},0) -CPPFLAGS += -DWITH_SQLITE -else -SOURCE_FILTER += ${PROJECT}/database-sqlite.c -endif - -ifneq ($(WITH_MAGIC),0) -CPPFLAGS += -DWITH_MAGIC -endif - -ifneq ($(WITH_SYNCTEX),0) -CPPFLAGS += -DWITH_SYNCTEX -endif - -ifneq ($(wildcard ${VALGRIND_SUPPRESSION_FILE}),) -VALGRIND_ARGUMENTS += --suppressions=${VALGRIND_SUPPRESSION_FILE} -endif - -ifeq (,$(findstring -DZATHURA_PLUGINDIR,${CPPFLAGS})) -CPPFLAGS += -DZATHURA_PLUGINDIR=\"${PLUGINDIR}\" -endif -ifeq (,$(findstring -DGETTEXT_PACKAGE,${CPPFLAGS})) -CPPFLAGS += -DGETTEXT_PACKAGE=\"${PROJECT}\" -endif -ifeq (,$(findstring -DLOCALEDIR,${CPPFLAGS})) -CPPFLAGS += -DLOCALEDIR=\"${LOCALEDIR}\" -endif - -SOURCE = $(filter-out $(SOURCE_FILTER),$(OSOURCE)) -OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o}) -OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o}) -OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o}) -HEADERINST = $(addprefix ${PROJECT}/,version.h document.h macros.h page.h types.h plugin-api.h links.h) - -all: options ${PROJECT} po build-manpages - -# pkg-config based version checks -.version-checks/%: config.mk - $(QUIET)test $($(*)_VERSION_CHECK) -eq 0 || \ - ${PKG_CONFIG} --atleast-version $($(*)_MIN_VERSION) $($(*)_PKG_CONFIG_NAME) || ( \ - echo "The minimum required version of $(*) is $($(*)_MIN_VERSION)" && \ - false \ - ) - @mkdir -p .version-checks - $(QUIET)touch $@ - -options: - @echo ${PROJECT} build options: - @echo "CFLAGS = ${CFLAGS}" - @echo "LIBS = ${LIBS}" - @echo "DFLAGS = ${DFLAGS}" - @echo "CC = ${CC}" - -# generated files - -${PROJECT}/version.h: ${PROJECT}/version.h.in config.mk - $(QUIET)sed -e 's/ZVMAJOR/${ZATHURA_VERSION_MAJOR}/' \ - -e 's/ZVMINOR/${ZATHURA_VERSION_MINOR}/' \ - -e 's/ZVREV/${ZATHURA_VERSION_REV}/' \ - -e 's/ZVAPI/${ZATHURA_API_VERSION}/' \ - -e 's/ZVABI/${ZATHURA_ABI_VERSION}/' ${PROJECT}/version.h.in > ${PROJECT}/version.h.tmp - $(QUIET)mv ${PROJECT}/version.h.tmp ${PROJECT}/version.h - -${PROJECT}/resources.%: data/zathura.gresource.xml config.mk - $(call colorecho,GEN,$@) - @mkdir -p ${DEPENDDIR}/$(dir $@) - $(QUIET)$(GLIB_COMPILE_RESOURCES) --generate --c-name=zathura_resources --internal \ - --dependency-file=$(DEPENDDIR)/$@.dep \ - --sourcedir=data --target=$@ data/zathura.gresource.xml - -# common dependencies - -${OBJECTS} ${OBJECTS_DEBUG} ${OBJECTS_GCOV}: config.mk \ - .version-checks/GIRARA \ - .version-checks/GLIB \ - .version-checks/GTK \ - ${PROJECT}/version.h \ - ${PROJECT}/resources.h - -# rlease build - -${BUILDDIR_RELEASE}/%.o: %.c - $(call colorecho,CC,$<) - @mkdir -p ${DEPENDDIR}/$(dir $@) - @mkdir -p $(dir $(abspath $@)) - $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< -MMD -MF ${DEPENDDIR}/$@.dep - -${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT}: ${OBJECTS} - $(call colorecho,CC,$@) - @mkdir -p ${BUILDDIR_RELEASE}/${BINDIR} - $(QUIET)${CC} ${SFLAGS} ${LDFLAGS} \ - -o ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} ${OBJECTS} ${LIBS} - -${PROJECT}: ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} - -release: ${PROJECT} - -run: release - $(QUIET)./${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} - -# debug build - -${BUILDDIR_DEBUG}/%.o: %.c - $(call colorecho,CC,$<) - @mkdir -p ${DEPENDDIR}/$(dir $@) - @mkdir -p $(dir $(abspath $@)) - $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${DFLAGS} \ - -o $@ $< -MMD -MF ${DEPENDDIR}/$@.dep - -${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT}: ${OBJECTS_DEBUG} - $(call colorecho,CC,$@) - @mkdir -p ${BUILDDIR_DEBUG}/${BINDIR} - $(QUIET)${CC} ${LDFLAGS} \ - -o ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} ${OBJECTS_DEBUG} ${LIBS} - -debug: ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} - -run-debug: debug - $(QUIET)./${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} - -# gcov build - -${BUILDDIR_GCOV}/%.o: %.c - $(call colorecho,CC,$<) - @mkdir -p ${DEPENDDIR}/$(dir $@) - @mkdir -p $(dir $(abspath $@)) - $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${GCOV_CFLAGS} \ - -o $@ $< -MMD -MF ${DEPENDDIR}/$@.dep - -${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}: ${OBJECTS_GCOV} - $(call colorecho,CC,$@) - @mkdir -p ${BUILDDIR_GCOV}/${BINDIR} - $(QUIET)${CC} ${LDFLAGS} ${GCOV_CFLAGS} ${GCOV_LDFLAGS} \ - -o ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} ${OBJECTS_GCOV} ${LIBS} - -gcov: options ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} - $(QUIET)${MAKE} -C tests run-gcov - $(call colorecho,LCOV,"Analyse data") - $(QUIET)${LCOV_EXEC} ${LCOV_FLAGS} - $(call colorecho,LCOV,"Generate report") - $(QUIET)${GENHTML_EXEC} ${GENHTML_FLAGS} - -run-gcov: ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} - $(QUIET)./${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} - -# clean - -clean: - $(QUIET)rm -rf \ - ${BUILDDIR} \ - ${DEPENDDIR} \ - ${TARFILE} \ - ${TARDIR} \ - ${PROJECT}.pc \ - ${PROJECT}/version.h \ - ${PROJECT}/version.h.tmp \ - ${PROJECT}/resources.c \ - ${PROJECT}/resources.h \ - $(PROJECT).info \ - gcov \ - .version-checks - $(QUIET)$(MAKE) -C tests clean - $(QUIET)$(MAKE) -C po clean - $(QUIET)$(MAKE) -C doc clean - -${PROJECT}.pc: ${PROJECT}.pc.in config.mk - $(QUIET)echo project=${PROJECT} > ${PROJECT}.pc - $(QUIET)echo version=${VERSION} >> ${PROJECT}.pc - $(QUIET)echo apiversion=${ZATHURA_API_VERSION} >> ${PROJECT}.pc - $(QUIET)echo abiversion=${ZATHURA_ABI_VERSION} >> ${PROJECT}.pc - $(QUIET)echo includedir=${INCLUDEDIR} >> ${PROJECT}.pc - $(QUIET)echo plugindir=${PLUGINDIR} >> ${PROJECT}.pc - $(QUIET)echo GTK_VERSION=3 >> ${PROJECT}.pc - $(QUIET)cat ${PROJECT}.pc.in >> ${PROJECT}.pc - -valgrind: debug - $(QUIET)G_SLICE=always-malloc G_DEBUG=gc-friendly ${VALGRIND} ${VALGRIND_ARGUMENTS} \ - ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} - -gdb: debug - $(QUIET)cgdb ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} - -test: ${OBJECTS} - $(QUIET)$(MAKE) -C tests run - -dist: clean build-manpages - $(QUIET)tar -czf $(TARFILE) --exclude=.gitignore \ - --transform 's,^,zathura-$(VERSION)/,' \ - `git ls-files` \ - doc/_build/$(PROJECT).1 doc/_build/$(PROJECT)rc.5 - -doc: - $(QUIET)$(MAKE) -C doc - -po: - $(QUIET)${MAKE} -C po - -update-po: - $(QUIET)${MAKE} -C po update-po - -build-manpages: - $(QUIET)${MAKE} -C doc man - -install-manpages: build-manpages - $(call colorecho,INSTALL,"man pages") - $(QUIET)mkdir -m 755 -p ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${MANPREFIX}/man5 -ifneq "$(wildcard doc/_build/${PROJECT}.1)" "" - $(QUIET)install -m 644 doc/_build/${PROJECT}.1 ${DESTDIR}${MANPREFIX}/man1 -endif -ifneq "$(wildcard doc/_build/${PROJECT}rc.5)" "" - $(QUIET)install -m 644 doc/_build/${PROJECT}rc.5 ${DESTDIR}${MANPREFIX}/man5 -endif - -install-headers: ${PROJECT}.pc - $(call colorecho,INSTALL,"header files") - $(QUIET)mkdir -m 755 -p ${DESTDIR}${INCLUDEDIR}/${PROJECT} - $(QUIET)install -m 644 ${HEADERINST} ${DESTDIR}${INCLUDEDIR}/${PROJECT} - - $(call colorecho,INSTALL,"pkgconfig file") - $(QUIET)mkdir -m 755 -p ${DESTDIR}${LIBDIR}/pkgconfig - $(QUIET)install -m 644 ${PROJECT}.pc ${DESTDIR}${LIBDIR}/pkgconfig - -install-dbus: - $(call colorecho,INSTALL,"D-Bus interface definitions") - $(QUIET)mkdir -m 755 -p $(DESTDIR)$(DBUSINTERFACEDIR) - $(QUIET)install -m 644 data/org.pwmt.zathura.xml $(DESTDIR)$(DBUSINTERFACEDIR) - -install-appdata: - $(call colorecho,INSTALL,"AppData file") - $(QUIET)mkdir -m 755 -p $(DESTDIR)$(APPDATAPREFIX) - $(QUIET)install -m 644 data/$(PROJECT).appdata.xml $(DESTDIR)$(APPDATAPREFIX) - -install: all install-headers install-manpages install-dbus install-appdata - $(call colorecho,INSTALL,"executeable file") - $(QUIET)mkdir -m 755 -p ${DESTDIR}${PREFIX}/bin - $(QUIET)install -m 755 ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} ${DESTDIR}${PREFIX}/bin - $(QUIET)mkdir -m 755 -p ${DESTDIR}${DESKTOPPREFIX} - $(call colorecho,INSTALL,"desktop file") - $(QUIET)install -m 644 ${PROJECT}.desktop ${DESTDIR}${DESKTOPPREFIX} - $(MAKE) -C po install - -uninstall-headers: - $(call colorecho,UNINSTALL,"header files") - $(QUIET)rm -rf ${DESTDIR}${INCLUDEDIR}/${PROJECT} - $(call colorecho,UNINSTALL,"pkgconfig file") - $(QUIET)rm -f ${DESTDIR}${LIBDIR}/pkgconfig/${PROJECT}.pc - -uninstall: uninstall-headers - $(ECHO) removing executable file - $(call colorecho,UNINSTALL,"executeable") - $(QUIET)rm -f ${DESTDIR}${PREFIX}/bin/${PROJECT} - $(call colorecho,UNINSTALL,"man pages") - $(QUIET)rm -f ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1 - $(QUIET)rm -f ${DESTDIR}${MANPREFIX}/man5/${PROJECT}rc.5 - $(call colorecho,UNINSTALL,"desktop file") - $(QUIET)rm -f ${DESTDIR}${DESKTOPPREFIX}/${PROJECT}.desktop - $(call colorecho,UNINSTALL,"D-Bus interface definitions") - $(QUIET)rm -f $(DESTDIR)$(DBUSINTERFACEDIR)/org.pwmt.zathura.xml - $(call colorecho,UNINSTALL,"AppData file") - $(QUIET)rm -f $(DESTDIR)$(APPDATAPREFIX)/$(PROJECT).appdata.xml - $(MAKE) -C po uninstall - -DEPENDS = ${DEPENDDIRS:^=${DEPENDDIR}/}$(addprefix ${DEPENDDIR}/,${OBJECTS:.o=.o.dep}) --include ${DEPENDS} - -.PHONY: all options clean doc debug valgrind gdb dist doc install uninstall \ - test po install-headers uninstall-headers update-po install-manpages \ - build-manpages install-dbus diff --git a/README b/README index dbeaf27..092d492 100644 --- a/README +++ b/README @@ -1,57 +1,57 @@ zathura - a document viewer =========================== + zathura is a highly customizable and functional document viewer based on the girara user interface library and several document libraries. Requirements ------------ -gtk3 (>= 3.6) + +meson (>= 0.45) +gtk3 (>= 3.22) glib (>= 2.50) girara (>= 0.2.8) sqlite3 (optional, >= 3.5.9) -check (for tests) +check (optional, for tests) intltool libmagic from file(1) (optional, for mime-type detection) libsynctex from TeXLive (optional, for SyncTeX support) +libseccomp (optional, for sandbox support) Sphinx (optional, for manpages and HTML documentation) doxygen (optional, for HTML documentation) breathe (optional, for HTML documentation) sphinx_rtd_theme (optional, for HTML documentation) -Please note that you need to have a working pkg-config installation and that the -Makefile is only compatible with GNU make. If you don't have a working -pkg-config installation please set the GTK_INC, GTK_LIB, GIRARA_INC, GIRARA_LIB, -SQLITE_INC and SQLITE_LIB variables accordingly. +Note that Sphinx is needed to build the manpages. If it is not installed, the +man pages won't be built. For the HTML documentation, doxygen, breathe and +sphinx_rtd_theme are needed in addition to Sphinx. -Also note that Sphinx is needed to build the manpages. If it is not -installed, the man pages won't be built. For the HTML documentation, doxygen, -breathe and sphinx_rtd_theme are needed in addition to Sphinx. +If you don't want to build with support for sqlite databases, you can configure +the build system with -Denable-sqlite=false and sqlite support won't be available. -If you don't want to build with support for sqlite databases, you can set -WITH_SQLITE=0 and sqlite support won't be available. +The use of magic to detect mime types is optional and can be disabled by +configuring the build system with -Denable-magic=false. -The use of magic to detect mime types is optional and can be disabled by setting -WITH_MAGIC=0. - -If you pass these flags as a command line argument to make, you have to ensure -to pass the same flags when executing the install target. - -If you want to build zathura's documentation, please install all python -dependencies from the ./doc/requirements.txt file. +The use of seccomp to create a sandboxed environment is optional and can be +enabled by configure the build system with -Denable-seccomp=true. Note that the +sandbox is currently only available as experimental preview. Some commands, +shortcuts and other functionality might break. Installation ------------ -To build and install zathura: - make install +To build and install zathura using meson's ninja backend: -Uninstall ---------- -To delete zathura from your system, just type: + meson build + cd build + ninja + ninja install - make uninstall +Note that the default backend for meson might vary based on the platform. Please +refer to the meson documentation for platform specific dependencies. Bugs ---- + Please report bugs at http://bugs.pwmt.org or contact us on our mailing list at zathura@lists.pwmt.org. diff --git a/colors.mk b/colors.mk deleted file mode 100644 index 774204b..0000000 --- a/colors.mk +++ /dev/null @@ -1,31 +0,0 @@ -# See LICENSE file for license and copyright information - -ifeq ($(COLOR),1) -# GCC diagnostics colors -DIAGNOSTICS_COLOR_AVAILABLE ?= $(shell ($(CC) -fdiagnostics-color=always -E - /dev/null 2>/dev/null && echo 1) || echo 0) -ifeq ($(DIAGNOSTICS_COLOR_AVAILABLE),1) -CPPFLAGS += -fdiagnostics-color=always -endif - -# colorful output -TPUT ?= /usr/bin/tput -TPUT_AVAILABLE ?= $(shell ${TPUT} -V 2>/dev/null) - -ifdef TPUT_AVAILABLE -COLOR_NORMAL = `$(TPUT) sgr0` -COLOR_ACTION = `$(TPUT) bold``$(TPUT) setaf 3` -COLOR_COMMENT = `$(TPUT) bold``$(TPUT) setaf 2` -COLOR_BRACKET = `$(TPUT) setaf 4` -define colorecho - @echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] "$(COLOR_COMMENT)$2$(COLOR_BRACKET) $(COLOR_NORMAL) -endef -else -define colorecho - @echo " [$1]" $2 -endef -endif -else -define colorecho - @echo " [$1]" $2 -endef -endif diff --git a/common.mk b/common.mk deleted file mode 100644 index eb586f8..0000000 --- a/common.mk +++ /dev/null @@ -1,9 +0,0 @@ -# See LICENSE file for license and copyright information - -ifeq "$(VERBOSE)" "0" -ECHO=@echo -QUIET=@ -else -ECHO=@\# -QUIET= -endif diff --git a/config.mk b/config.mk deleted file mode 100644 index 7a488cf..0000000 --- a/config.mk +++ /dev/null @@ -1,173 +0,0 @@ -# See LICENSE file for license and copyright information -# zathura make config - -# project -PROJECT = zathura - -ZATHURA_VERSION_MAJOR = 0 -ZATHURA_VERSION_MINOR = 3 -ZATHURA_VERSION_REV = 8 -# If the API changes, the API version and the ABI version have to be bumped. -ZATHURA_API_VERSION = 2 -# If the ABI breaks for any reason, this has to be bumped. -ZATHURA_ABI_VERSION = 3 -VERSION = ${ZATHURA_VERSION_MAJOR}.${ZATHURA_VERSION_MINOR}.${ZATHURA_VERSION_REV} - -# version checks -# If you want to disable any of the checks, set *_VERSION_CHECK to 0. - -# girara -GIRARA_VERSION_CHECK ?= 1 -GIRARA_MIN_VERSION = 0.2.8 -GIRARA_PKG_CONFIG_NAME = girara-gtk3 -# glib -GLIB_VERSION_CHECK ?= 1 -GLIB_MIN_VERSION = 2.50 -GLIB_PKG_CONFIG_NAME = glib-2.0 -# GTK -GTK_VERSION_CHECK ?= 1 -GTK_MIN_VERSION = 3.6 -GTK_PKG_CONFIG_NAME = gtk+-3.0 - -# pkg-config binary -PKG_CONFIG ?= pkg-config - -# glib-compile-resources -GLIB_COMPILE_RESOURCES ?= glib-compile-resources - -# database -# To disable support for the sqlite backend set WITH_SQLITE to 0. -WITH_SQLITE ?= $(shell (${PKG_CONFIG} --atleast-version=3.5.9 sqlite3 && echo 1) || echo 0) - -# synctex -# To disable support for synctex with libsynctex set WITH_SYNCTEX to 0. -WITH_SYNCTEX ?= $(shell (${PKG_CONFIG} synctex && echo 1) || echo 0) - -# mimetype detection -# To disable support for mimetype detction with libmagic set WITH_MAGIC to 0. -WITH_MAGIC ?= 1 - -# paths -PREFIX ?= /usr -MANPREFIX ?= ${PREFIX}/share/man -DESKTOPPREFIX ?= ${PREFIX}/share/applications -APPDATAPREFIX ?= ${PREFIX}/share/metainfo -LIBDIR ?= ${PREFIX}/lib -INCLUDEDIR ?= ${PREFIX}/include -DBUSINTERFACEDIR ?= ${PREFIX}/share/dbus-1/interfaces -VIMFTPLUGINDIR ?= ${PREFIX}/share/vim/addons/ftplugin -DEPENDDIR ?= .depend -BUILDDIR ?= build -BUILDDIR_RELEASE ?= ${BUILDDIR}/release -BUILDDIR_DEBUG ?= ${BUILDDIR}/debug -BUILDDIR_GCOV ?= ${BUILDDIR}/gcov -BINDIR ?= bin - -# plugin directory -PLUGINDIR ?= ${LIBDIR}/zathura -# locale directory -LOCALEDIR ?= ${PREFIX}/share/locale - -# libs -ifeq (${GTK_INC}-${GTK_LIB},-) -PKG_CONFIG_LIBS += gtk+-3.0 -else -INCS += ${GTK_INC} -LIBS += ${GTK_LIB} -endif - -ifeq (${GLIB_INC}-${GLIB_LIB},-) -PKG_CONFIG_LIBS += gthread-2.0 gmodule-no-export-2.0 glib-2.0 -else -INCS += ${GLIB_INC} -LIBS += ${GLIB_LIB} -endif - -ifeq (${GIRARA_INC}-${GIRARA_LIB},-) -PKG_CONFIG_LIBS += girara-gtk3 -else -INCS += ${GIRARA_INC} -LIBS += ${GIRARA_LIB} -endif - -ifneq (${WITH_SQLITE},0) -ifeq (${SQLITE_INC}-${SQLITE_LIB},-) -PKG_CONFIG_LIBS += sqlite3 -else -INCS += ${SQLITE_INC} -LIBS += ${SQLITE_LIB} -endif -endif - -ifneq (${WITH_MAGIC},0) -MAGIC_INC ?= -MAGIC_LIB ?= -lmagic - -INCS += ${MAGIC_INC} -LIBS += ${MAGIC_LIB} -endif - -ifneq ($(WITH_SYNCTEX),0) -ifeq (${SYNCTEX_INC}-${SYNCTEX_LIB},-) -PKG_CONFIG_LIBS += synctex -else -INCS += ${SYNCTEX_INC} -LIBS += ${SYNCTEX_LIB} -endif -endif - -ifneq (${PKG_CONFIG_LIBS},) -INCS += $(shell ${PKG_CONFIG} --cflags ${PKG_CONFIG_LIBS}) -LIBS += $(shell ${PKG_CONFIG} --libs ${PKG_CONFIG_LIBS}) -endif -LIBS += -lpthread -lm - -# pre-processor flags -CPPFLAGS += -D_FILE_OFFSET_BITS=64 - -# compiler flags -CFLAGS += -std=c11 -pedantic -Wall -Wno-format-zero-length -Wextra $(INCS) - -# debug -DFLAGS ?= -g - -# linker flags -LDFLAGS += -rdynamic - -# compiler -CC ?= gcc - -# strip -SFLAGS ?= -s - -# msgfmt -MSGFMT ?= msgfmt - -# gcov & lcov -GCOV_CFLAGS=-fprofile-arcs -ftest-coverage -GCOV_LDFLAGS=-fprofile-arcs -LCOV_OUTPUT=gcov -LCOV_EXEC=lcov -LCOV_FLAGS=--base-directory . --directory ${BUILDDIR_GCOV} --capture --rc \ - lcov_branch_coverage=1 --output-file ${BUILDDIR_GCOV}/$(PROJECT).info -GENHTML_EXEC=genhtml -GENHTML_FLAGS=--rc lcov_branch_coverage=1 --output-directory ${LCOV_OUTPUT} ${BUILDDIR_GCOV}/$(PROJECT).info - -# valgrind -VALGRIND = valgrind -VALGRIND_ARGUMENTS = --tool=memcheck --leak-check=yes --leak-resolution=high \ - --show-reachable=yes --log-file=zathura-valgrind.log -VALGRIND_SUPPRESSION_FILE = zathura.suppression - -# set to something != 0 if you want verbose build output -VERBOSE ?= 0 - -# gettext package name -GETTEXT_PACKAGE ?= ${PROJECT} - -# colors -COLOR ?= 1 - -# dist -TARFILE = ${PROJECT}-${VERSION}.tar.gz -TARDIR = ${PROJECT}-${VERSION} diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..d56e693 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,46 @@ +gnome = import('gnome') +zathura_resources = gnome.compile_resources( + 'resources', + 'zathura.gresource.xml', + c_name: 'zathura_resources', + dependencies: files('zathura.css_t', 'org.pwmt.zathura.xml') +) + +install_data('org.pwmt.zathura.xml', install_dir: dbusinterfacesdir) +install_data('org.pwmt.zathura.png', install_dir: join_paths(datadir, 'icons', 'hicolor', '128x128')) + +i18n = import('i18n') +podir = join_paths(meson.source_root(), 'po') + +desktop = i18n.merge_file('desktop', + input: 'org.pwmt.zathura.desktop.in', + output: 'org.pwmt.zathura.desktop', + install: true, + install_dir: desktopdir, + po_dir: podir, + type: 'desktop' +) + +appdata = i18n.merge_file('appdata', + input: 'org.pwmt.zathura.appdata.xml.in', + output: 'org.pwmt.zathura.appdata.xml', + install: true, + install_dir: metainfodir, + po_dir: podir, +) + +desktop_file_validate = find_program('desktop-file-validate', required: false) +if desktop_file_validate.found() + test('validate-desktop', + desktop_file_validate, + args: [desktop.full_path()] + ) +endif + +appstream_util = find_program('appstream-util', required: false) +if appstream_util.found() + test('validate-appdata', + appstream_util, + args: ['validate-relax', appdata.full_path()] + ) +endif diff --git a/data/zathura.appdata.xml b/data/org.pwmt.zathura.appdata.xml.in similarity index 68% rename from data/zathura.appdata.xml rename to data/org.pwmt.zathura.appdata.xml.in index 280025e..ecc2991 100644 --- a/data/zathura.appdata.xml +++ b/data/org.pwmt.zathura.appdata.xml.in @@ -1,20 +1,22 @@ - - - - zathura.desktop + + + org.pwmt.zathura CC0-1.0 Zlib + Zathura + A minimalistic document viewer

- zathura is a highly customizable and functional document viewer. It + Zathura is a highly customizable and functional document viewer. It provides a minimalistic and space saving interface as well as an easy - usage that mainly focuses on keyboard interaction. zathura makes it + usage that mainly focuses on keyboard interaction. Zathura makes it possible to completely view and navigate through documents without using a mouse.

- Other features include: + Zathura can be extended to support multiple document formats using + plugins. Other features include:

  • SyncTeX forward and backward synchronization support.
  • Quickmarks and bookmarks.
  • @@ -22,6 +24,7 @@

+ org.pwmt.zathura.desktop https://pwmt.org/projects/zathura https://bugs.pwmt.org/project/zathura @@ -39,4 +42,8 @@ zathura@lists.pwmt.org + zathura + + zathura +
diff --git a/data/org.pwmt.zathura.desktop.in b/data/org.pwmt.zathura.desktop.in new file mode 100644 index 0000000..fba4193 --- /dev/null +++ b/data/org.pwmt.zathura.desktop.in @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Zathura +Comment=A minimalistic document viewer +Exec=zathura %U +# Translators: Icon of the desktop entry. +Icon=org.pwmt.zathura +Terminal=false +Categories=Office;Viewer; +# Translators: Search terms to find this application. Do not translate or +# localize the semicolons. The list must also end with a semicolon. +Keywords=PDF;PS;PostScript;DjVU;document;presentation;viewer; diff --git a/data/org.pwmt.zathura.png b/data/org.pwmt.zathura.png new file mode 100644 index 0000000..4a41efc Binary files /dev/null and b/data/org.pwmt.zathura.png differ diff --git a/doc/Makefile b/doc/Makefile deleted file mode 100644 index c4151da..0000000 --- a/doc/Makefile +++ /dev/null @@ -1,55 +0,0 @@ -# See LICENSE file for license and copyright information -# -include ../config.mk -include ../common.mk -include ../colors.mk -include config.mk - -MAN_SOURCES=$(wildcard man/*.rst) $(wildcard man/*.txt) man/conf.py -DOXYGEN_SOURCES=$(wildcard ../zathura/*.h) Doxyfile -HTML_SOURCES=$(wildcard *.rst api/*.rst configuration/*.rst installation/*.rst usage/*.rst) conf.py - -SPHINX_OPTS+=-d $(SPHINX_BUILDDIR)/doctrees - -all: man html - -clean: - $(call colorecho,RM,doc/$(SPHINX_BUILDDIR)) - $(QUIET)rm -rf $(SPHINX_BUILDDIR)/ - -$(SPHINX_BUILDDIR)/html/index.html: $(HTML_SOURCES) $(SPHINX_BUILDDIR)/doxygen/xml/index.xml - $(QUIET)mkdir -p $(SPHINX_BUILDDIR)/html - $(call colorecho,DOC,"Build HTML documentation") - $(QUIET)$(SPHINX_BIN) -b html $(SPHINX_OPTS) . $(SPHINX_BUILDDIR)/html - -$(SPHINX_BUILDDIR)/zathura.1: $(MAN_SOURCES) - $(QUIET)mkdir -p $(SPHINX_BUILDDIR) - $(call colorecho,DOC,"Build man pages") - $(QUIET)$(SPHINX_BIN) -b man $(SPHINX_OPTS) man $(SPHINX_BUILDDIR) - -$(SPHINX_BUILDDIR)/zathurarc.5: $(SPHINX_BUILDDIR)/zathura.1 - @if test -f $@; then :; else \ - rm -f $(SPHINX_BUILDDIR)/zathura.1; \ - $(MAKE) $(SPHINX_BUILDDIR)/zathura.1; \ - fi - -$(SPHINX_BUILDDIR)/doxygen/xml/index.xml: $(DOXYGEN_SOURCES) - $(QUIET)mkdir -p $(SPHINX_BUILDDIR)/doxygen/xml - $(call colorecho,DOC,"Run doxygen") - $(QUIET)$(DOXYGEN_BIN) Doxyfile - -ifeq ($(shell which $(SPHINX_BIN) >/dev/null 2>&1; echo $$?), 1) -man: -html: -else -man: $(SPHINX_BUILDDIR)/zathura.1 $(SPHINX_BUILDDIR)/zathurarc.5 - -# TODO: Make a better test for breathe and sphinx_rtd_theme -ifeq ($(shell which $(DOXYGEN_BIN) >/dev/null 2>&1 && $(PYTHON_BIN) -c "import breathe; import sphinx_rtd_theme" >/dev/null 2>&1; echo $$?), 0) -html: $(SPHINX_BUILDDIR)/html/index.html -else -html: -endif -endif - -.PHONY: clean html man all diff --git a/doc/config.mk b/doc/config.mk deleted file mode 100644 index 60e395b..0000000 --- a/doc/config.mk +++ /dev/null @@ -1,8 +0,0 @@ -# See LICENSE file for license and copyright information - -SPHINX_BIN ?= sphinx-build -SPHINX_BUILDDIR = _build -SPHINX_OPTS ?= -DOXYGEN_BIN ?= doxygen -# This needs to be the same python interpreter as used by sphinx-build -PYTHON_BIN ?= python diff --git a/doc/man/_synctex.txt b/doc/man/_synctex.txt index 7ba1098..8a1728b 100644 --- a/doc/man/_synctex.txt +++ b/doc/man/_synctex.txt @@ -8,7 +8,25 @@ pass the arguments to *synctex view*'s *-i* option to zathura via *--syntex-forward* and zathura will pass the information to the correct instance. +For gvim forward and backwards synchronization support can be set up as follows: +First add the following to the vim configuration: + +:: + + function! Synctex() + execute "silent !zathura --synctex-forward " . line('.') . ":" . col('.') . ":" . bufname('%') . " " . g:syncpdf + redraw! + endfunction + map :call Synctex() + +Then launch *zathura* with + +:: + + zathura -x "gvim --servername vim -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" $file + Some editors support zathura as viewer out of the box: * LaTeXTools for SublimeText (https://latextools.readthedocs.io/en/latest/available-viewers/#zathura) +* LaTeX for Atom (https://atom.io/packages/latex) diff --git a/doc/man/zathurarc.5.rst b/doc/man/zathurarc.5.rst index f71aeb6..5b78644 100644 --- a/doc/man/zathurarc.5.rst +++ b/doc/man/zathurarc.5.rst @@ -1044,6 +1044,16 @@ Define the background color of the selected element in index mode. * Value type: String * Default value: #9FBC00 +sandbox +^^^^^^^ +Defines the sandbox mode to use for the seccomp syscall filter. Possible +values are "none", "normal" and "strict". If "none" is used, the sandbox +will be disabled. The use of "normal" will provide minimal protection and +allow normal use of seccomp with support for all features. The "strict" mode +is a read only sandbox that is intended for viewing documents only. + +* Value type: String +* Default value: normal SEE ALSO ======== diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 0000000..32a4f03 --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,24 @@ +sphinx = find_program('sphinx-build') +custom_target('man pages', + command: [sphinx, '-b', 'man', join_paths(meson.current_source_dir(), 'man'), meson.current_build_dir()], + output: ['zathura.1', 'zathurarc.5'], + input: [ + 'man/conf.py', + 'man/_bindings.txt', + 'man/_commands.txt', + 'man/_options.txt', + 'man/_synopsis.txt', + 'man/zathurarc.5.rst', + 'man/_bugs.txt', + 'man/_configuration.txt', + 'man/_description.txt', + 'man/_synctex.txt', + 'man/zathura.1.rst' + ], + build_by_default: true, + install: true, + install_dir: [ + join_paths(get_option('mandir'), 'man1'), + join_paths(get_option('mandir'), 'man5') + ] +) diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..9dce1ae --- /dev/null +++ b/meson.build @@ -0,0 +1,192 @@ +project('zathura', 'c', + version: '0.3.9', + meson_version: '>=0.45', + default_options: 'c_std=c11', +) + +version = meson.project_version() +version_array = version.split('.') + +# Rules for so_major and so_minor: +# Before a release perform the following checks against the last release: +# * If a function has been removed or the paramaters of a function have changed +# bump SOMAJOR and set SOMINOR to 0. +# * If any of the exported datastructures have changed in a incompatible way +# bump SOMAJOR and set SOMINOR to 0. +# * If a function has been added bump SOMINOR. +plugin_api_version = '3' +plugin_abi_version = '4' + +conf_data = configuration_data() +conf_data.set('ZVMAJOR', version_array[0]) +conf_data.set('ZVMINOR', version_array[1]) +conf_data.set('ZVREV', version_array[2]) +conf_data.set('ZVAPI', plugin_api_version) +conf_data.set('ZVABI', plugin_abi_version) +conf_data.set('version', version) + +cc = meson.get_compiler('c', required: false) + +prefix = get_option('prefix') +localedir = get_option('localedir') +datadir = get_option('datadir') +metainfodir = join_paths(datadir, 'metainfo') +desktopdir = join_paths(datadir, 'applications') +dbusinterfacesdir = join_paths(datadir, 'dbus-1', 'interfaces') +plugindir = join_paths(get_option('libdir'), 'zathura') + +# required dependencies +libm = cc.find_library('libm') +girara = dependency('girara-gtk3', version: '>=0.2.9') +glib = dependency('glib-2.0', version: '>=2.50') +gthread = dependency('gthread-2.0', version: '>=2.50') +gmodule = dependency('gmodule-no-export-2.0', version: '>=2.50') +gtk3 = dependency('gtk+-3.0', version: '>=3.22') +cairo = dependency('cairo') + +build_dependencies = [libm, girara, glib, gthread, gmodule, gtk3, cairo] + +# defines +defines = [ + '-DGETTEXT_PACKAGE="zathura"', + '-DLOCALEDIR="@0@"'.format(join_paths(prefix, localedir)), + '-DZATHURA_PLUGINDIR="@0@"'.format(join_paths(prefix, plugindir)), + '-D_DEFAULT_SOURCE', +] + +# compile flags +flags = [ + '-Wall', + '-Wextra', + '-pedantic', + '-Werror=implicit-function-declaration', + '-Werror=vla', + '-fvisibility=hidden' +] +flags = cc.get_supported_arguments(flags) + +# optional dependencies +additional_sources = [] +sqlite = dependency('sqlite3', version: '>=3.5.9', required: false) +synctex = dependency('synctex', required: false) +magic = cc.find_library('magic', required: false) +seccomp = dependency('libseccomp', required: false) + +if get_option('enable-sqlite') and sqlite.found() + build_dependencies += sqlite + defines += '-DWITH_SQLITE' + additional_sources += files('zathura/database-sqlite.c') +endif + +if get_option('enable-synctex') and synctex.found() + build_dependencies += synctex + defines += '-DWITH_SYNCTEX' +endif + +if get_option('enable-magic') and magic.found() + build_dependencies += magic + defines += '-DWITH_MAGIC' +endif + +if get_option('enable-seccomp') and seccomp.found() + build_dependencies += seccomp + defines += '-DWITH_SECCOMP' + additional_sources += files('zathura/seccomp-filters.c') +endif + +# generate version header file +version_header = configure_file( + input: 'zathura/version.h.in', + output: 'zathura-version.h', + configuration: conf_data +) +include_directories = [ + include_directories('.') +] + +subdir('data') +subdir('po') + +# source files +sources = files( + 'zathura/adjustment.c', + 'zathura/bookmarks.c', + 'zathura/callbacks.c', + 'zathura/checked-integer-arithmetic.c', + 'zathura/commands.c', + 'zathura/completion.c', + 'zathura/config.c', + 'zathura/content-type.c', + 'zathura/database.c', + 'zathura/database-plain.c', + 'zathura/dbus-interface.c', + 'zathura/document.c', + 'zathura/file-monitor.c', + 'zathura/file-monitor-glib.c', + 'zathura/file-monitor-signal.c', + 'zathura/jumplist.c', + 'zathura/links.c', + 'zathura/marks.c', + 'zathura/page.c', + 'zathura/page-widget.c', + 'zathura/plugin.c', + 'zathura/print.c', + 'zathura/render.c', + 'zathura/shortcuts.c', + 'zathura/synctex.c', + 'zathura/types.c', + 'zathura/utils.c', + 'zathura/zathura.c', +) +sources += zathura_resources +sources += additional_sources + +# header fiels to install +headers = files( + 'zathura/document.h', + 'zathura/links.h', + 'zathura/macros.h', + 'zathura/page.h', + 'zathura/plugin-api.h', + 'zathura/types.h', +) +headers += version_header + +# zathura helper library +libzathura = static_library('zathura', + sources, + dependencies: build_dependencies, + include_directories: include_directories, + c_args: defines + flags +) + +# zathura executable +zathura = executable( + 'zathura', + files('zathura/main.c'), + dependencies: build_dependencies + [declare_dependency(link_with: libzathura)], + install: true, + include_directories: include_directories, + c_args: defines + flags, + export_dynamic: true, + gui_app: true +) +install_headers(headers, subdir: 'zathura') + +# pkg-config file +pkg = import('pkgconfig') +pkg.generate( + name: 'zathura', + description: 'document viewer - plugin API', + url: 'https://pwmt.org/projects/zathura', + version: version, + requires_private: ['girara-gtk3', 'cairo'], + variables: [ + 'apiversion=@0@'.format(plugin_api_version), + 'abiversion=@0@'.format(plugin_abi_version), + 'plugindir=${libdir}/zathura' + ] +) + +subdir('doc') +subdir('tests') diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..85c5a58 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,20 @@ +option('enable-sqlite', + type: 'boolean', + value: true, + description: 'Enable sqlite support if available.' +) +option('enable-synctex', + type: 'boolean', + value: true, + description: 'Enable synctex support if available.' +) +option('enable-magic', + type: 'boolean', + value: true, + description: 'Enable magic support if available.' +) +option('enable-seccomp', + type: 'boolean', + value: false, + description: 'Enable experimental seccomp support if available.' +) diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..e6bb80a --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1,22 @@ +ca +cs +de +el +eo +es +es_CL +et +fr +he +hr +id_ID +it +lt +nl +no +pl +pt_BR +ru +ta_IN +tr +uk_UA diff --git a/po/Makefile b/po/Makefile deleted file mode 100644 index 2d60065..0000000 --- a/po/Makefile +++ /dev/null @@ -1,58 +0,0 @@ -# See LICENSE file for license and copyright information - -include ../config.mk -include ../common.mk -include ../colors.mk - -PROJECT = zathura -CATALOGS = $(sort $(wildcard *.po)) -LINGUAS ?= $(patsubst %.po, %, $(CATALOGS)) -ifeq ($(LINGUAS),) -ALINGUAS = -else -ALINGUAS = $(shell find $(patsubst %, %.po, $(LINGUAS)) 2>/dev/null) -endif -MOS = $(patsubst %, %/LC_MESSAGES/${GETTEXT_PACKAGE}.mo, $(patsubst %.po, %, $(ALINGUAS))) - -all: ${MOS} - -clean: - $(QUIET)rm -rf POTFILES.in POTFILES.in.tmp $(patsubst %.po, %, $(CATALOGS)) ${PROJECT}.pot - -POTFILES.in: $(sort $(wildcard ../zathura/*.c)) - $(QUIET) set -e && rm -f $@.tmp && touch $@.tmp && \ - for f in $(^F) ; do \ - echo zathura/$$f >> $@.tmp ; \ - done && \ - mv $@.tmp $@ - -${GETTEXT_PACKAGE}.pot: POTFILES.in - $(ECHO) regenerate $@ - $(QUIET)intltool-update --pot --gettext-package=${GETTEXT_PACKAGE} - -update-po: ${GETTEXT_PACKAGE}.pot - $(call colorecho,PO,"Updating po files ${CATALOGS}") - $(QUIET)set -e && for f in ${CATALOGS} ; do \ - intltool-update --dist --gettext-package=${GETTEXT_PACKAGE} `echo $$f | sed 's/\.po//'` ; \ - sed -i 's/Report-Msgid-Bugs-To: \\n/Report-Msgid-Bugs-To: http:\/\/bugs.pwmt.org\\n/' "$$f" ; \ - done - -%/LC_MESSAGES/${GETTEXT_PACKAGE}.mo: %.po - @mkdir -p $(@D) - $(call colorecho,MSGFMT,$(shell echo $< | sed 's/\.po//')) - $(QUIET)${MSGFMT} ${MSGFMTFLAGS} -c $< -o $@ - -install: ${MOS} - $(call colorecho,INSTALL,"Install translations") - $(QUIET)set -e && for f in $^ ; do \ - mkdir -p -m 755 $(DESTDIR)$(LOCALEDIR)/`dirname $$f`; \ - install -m 644 $$f $(DESTDIR)$(LOCALEDIR)/`dirname $$f` ; \ - done - -uninstall: ${MOS} - $(call colorecho,UNINSTALL,"Uninstall translations") - $(QUIET)set -e && for f in $^ ; do \ - rm -f $(LOCALEDIR)/$$f; \ - done - -.PHONY: all clean install uninstall update-po diff --git a/po/POTFILES b/po/POTFILES new file mode 100644 index 0000000..0b56e1b --- /dev/null +++ b/po/POTFILES @@ -0,0 +1,33 @@ +data/org.pwmt.zathura.appdata.xml.in +data/org.pwmt.zathura.desktop.in +zathura/adjustment.c +zathura/bookmarks.c +zathura/callbacks.c +zathura/checked-integer-arithmetic.c +zathura/commands.c +zathura/completion.c +zathura/config.c +zathura/content-type.c +zathura/database-plain.c +zathura/database-sqlite.c +zathura/database.c +zathura/dbus-interface.c +zathura/document.c +zathura/file-monitor-glib.c +zathura/file-monitor-signal.c +zathura/file-monitor.c +zathura/jumplist.c +zathura/links.c +zathura/main.c +zathura/marks.c +zathura/page-widget.c +zathura/page.c +zathura/plugin.c +zathura/print.c +zathura/render.c +zathura/seccomp-filters.c +zathura/shortcuts.c +zathura/synctex.c +zathura/types.c +zathura/utils.c +zathura/zathura.c diff --git a/po/ca.po b/po/ca.po index f7911fb..03bf737 100644 --- a/po/ca.po +++ b/po/ca.po @@ -7,620 +7,676 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:11+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Catalan (http://www.transifex.com/projects/p/zathura/language/" -"ca/)\n" +"Language-Team: Catalan (http://www.transifex.com/pwmt/zathura/language/ca/)\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Un visualitzador de documents minimalista" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Entrada invàlida '%s'." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Índex invàlid '%s'." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "No s'ha obert cap document." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Nombre d'arguments invàlids." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "No s'ha pogut crear el marcador: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "No s'ha pogut crear el marcador: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Marcador actualitzat correctament: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Marcador creat correctament: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Esborrat el marcador: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "No s'ha pogut esborrar el marcador: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Marcador no existent: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Cap informació disponible." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Massa arguments." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Cap argument subministrat." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Document desat." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "No s'ha pogut desar el document." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Nombre d'arguments invàlids." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "No s'ha pogut escriure el fitxer adjunt '%s' a '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "S'ha escrit el fitxer adjunt '%s' a '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "S'ha escrit la imatge '%s' a '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "No s'ha pogut escriure la imatge '%s' a '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Imatge desconeguda '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Imatge o fitxer adjunt desconegut '%s'." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "L'argument ha de ser un nombre." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Pàgina %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Fitxers adjunts" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Imatges" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Base de dades de rerefons" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Pas d'ampliació" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Separació entre pàgines" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Nombre de pàgines per fila" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Columna de la primera pàgina" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Pas de desplaçament" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Pas de desplaçament horitzontal" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Superposició de pàgines completes de desplaçament" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Zoom mínim" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Zoom màxim" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Nombre de posicions per recordar al jumplist" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Recolorejant (color fosc)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Recolorejant (color clar)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Color de realçament" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Color de realçament (activat)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Recolorejant les pàgines" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "Quan recoloregis manté el to original i ajusta només la lluminositat" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Desplaçament recollit" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Desplaçament recollit" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Avançar nombre de pàgines per fila" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Zoom centrat horitzontalment" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Centra el resultat horitzontalment" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Transparència del realçat" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Renderitza 'Carregant ...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Ajustar al fitxer quan s'obri" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Mostra els directoris i fitxers ocults" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Mostra els directoris" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Obrir sempre la primera pàgina" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Realça els resultats de recerca" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Habilita la cerca incremental" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Esborra els resultats de recerca a l'interrompre" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Utilitza el nom base del fitxer en el títol de la finestra" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Habilitar la compatibilitat amb synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Afegir un marcador" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Esborrar un marcador" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Llista tots els marcadors" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Tancar el fitxer actual" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Mostra informació sobre el fitxer" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Executar una comanda" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Mostrar l'ajuda" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Obrir document" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Tancar Zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Imprimir document" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Desar document" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Desar document (i forçar la sobreescritura)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Desa els fitxers adjunts" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Assigna el desplaçament de pàgina" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Marca la posició actual dins el document" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Esborrar les marques especificades" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "No realcis els resultats de la recerca actual" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Realça els resultats de recerca actual" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Mostra informació sobre la versió" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "No s'ha pogut executar xdg-open." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Enllaçar: pàgina %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Enllaç: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Enllaç: Invàlid" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Reassigna a la finestra especificada per xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Ruta al directori de configuració" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Camí al directori de dades" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Camí al directori que conté els plugins" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Bifurca en segon pla" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Contrasenya del document" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Nivell de registre (depuració, informació, advertiments, errors)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Imprimeix informació sobre la versió" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Editor synctex (reenviat a l'ordre synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Carregant..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Copia la imatge" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Desa imatge com a" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Aquest document no conté cap índex" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Sense nom]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/cs.po b/po/cs.po index c3583fd..7b15210 100644 --- a/po/cs.po +++ b/po/cs.po @@ -6,10 +6,10 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2017-01-04 20:39+0100\n" -"Last-Translator: fri\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" +"Last-Translator: Sebastian Ramacher \n" "Language-Team: Czech (http://www.transifex.com/pwmt/zathura/language/cs/)\n" "Language: cs\n" "MIME-Version: 1.0\n" @@ -17,610 +17,668 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Jednoduchý prohlížeč dokumentů" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "'%s' nesmí být 0. Nastaveno na 1." -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Neplatný vstup: %s" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Neplatný rejstřík: %s" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "Vybraný text zkopírován do výběru %s: %s" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Není otevřený žádný dokument." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Špatný počet argumentů." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Nepodařilo se vytvořit záložku: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Nepodařilo se vytvořit záložku: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Záložka úspěšně aktualizována: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Záložka úspěšně vytvořena: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Záložka smazána: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Nepodařilo se smazat záložku: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Záložka neexistuje: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Název" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Autor" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Předmět" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Klíčová slova" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Tvůrce" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Výrobce" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Datum vytvoření" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Datum změny" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Nejsou dostupné žádné informace." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Příliš mnoho argumentů." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Nezadali jste argumenty." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Dokument uložen." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Nepovedlo se uložit dokument." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Špatný počet argumentů." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Nepovedlo se zapsat přílohu '%s' do '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Příloha '%s' zapsána do '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Obrázek '%s' zapsán do '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Nepovedlo se zapsat obrázek '%s' do '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Neznámý obrázek '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Neznámá příloha nebo obrázek '%s'." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Argumentem musí být číslo." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Strana %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Přílohy" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Obrázky" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Databázová vrstva" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" -msgstr "" +msgstr "Vrstva pro sledování souboru" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Velikost kroku zvětšení" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Mezery mezi stránkami" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Počet stran na řádek" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Sloupec první strany" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Velikost kroku posunu" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Velikost kroku vodorovného posunu" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Překrývání při posunování celých stran" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Nejmenší stupeň zvětšení" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Největší stupeň zvětšení" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Největší počet stran ve vyrovnávací paměti" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "Největší velikost náhledů v obrazových bodech ve vyrovnávací paměti" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Počet poloh k uchování v seznamu" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Přebarvuje se do tmava" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Přebarvuje se do světla" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Barva zvýrazňovače" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Barva zvýrazňovače (činná)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "Nahrává se barva pozadí..." -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "Nahrává se barva popředí..." -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "Barva popředí režimu rejstříku" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "Barva pozadí režimu rejstříku" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "Barva popředí režimu rejstříku (činný prvek)" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "Barva pozadí režimu rejstříku (činný prvek)" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Přebarvit stránky" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "Při přebarvování zachovat původní odstín a přizpůsobit pouze světlost" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "Při přebarvování zachovat původní barvy obrázku" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Posunovat přes konce" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Posunovat s ohledem na strany" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Pokračovat v počtu stran v jednom řádku" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Vodorovně vystředěné přiblížení" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" -msgstr "" +msgstr "Vystředit strany svisle" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "Zarovnat cíl odkazu nalevo" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "Při následování odkazů se mění velikost přiblížení" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Vystředit výsledky vodorovně" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Průhlednost při zvýrazňování" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Vypisovat Nahrává se..." -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Přiblížení po otevření souboru" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Zobrazovat skryté soubory" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Ukázat adresáře" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "Ukázat nedávné soubory" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Vždy otevírat na první straně" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Zvýrazňovat výsledky hledání" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Povolit přírůstkové hledání" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Při přerušení smazat výsledky hledání" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Použít základní název souboru v názvu okna" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "Použít ~ místo $HOME v souborovém názvu v názvu okna" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Zobrazit číslo strany v názvu okna" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Použít základní název souboru ve stavovém řádku" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "Použít ~ místo $HOME v souborovém názvu ve stavovém řádku" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Povolit podporu pro synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "Příkaz pro editor Synctex" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "Povolit službu D-Bus" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" -msgstr "" +msgstr "Uložit historii při každé změně strany" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "Schránka, do níž budou zapsána data vabraná pomocí myši" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "Povolit oznámení po vybrání textu" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Přidat záložku" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Smazat záložku" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Vypsat všechny záložky" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Zavřít nynější soubor" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Ukázat informace o souboru" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Spustit příkaz" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Ukázat nápovědu" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Otevřít dokument" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Zavřít zathuru" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Vytisknout dokument" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Uložit dokument" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Uložit dokument a vynutit jeho přepsání" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Uložit přílohy" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Nastavit posun strany" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Označit současnou polohu v dokumentu" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Smazat vybrané značky" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Nezvýrazňovat výsledky tohoto hledání" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Zvýrazňovat výsledky tohoto hledání" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Ukázat údaj o verzi" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Nepodařilo se spustit xdg-open." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Odkaz: strana %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Odkaz: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Odkaz: Neplatný" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Propojí s oknem udaným xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Cesta k adresáři se souborem s nastavením" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Cesta k adresáři s daty" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "Cesta k adresáři s vyrovnávací pamětí" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Cesta k adresářům s přídavnými moduly" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Forknout se na pozadí" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Heslo k dokumentu" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Číslo strany, na kterou jít" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Úroveň logování (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Zobrazit údaje o verzi" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Editor Synctex (předáno příkazu synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "Přesunout se na udanou polohu synctex" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "Zvýraznit zadanou polohu v daném procesu" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "Spustit v ne-výchozím režimu" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Nahrává se..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Kopírovat obrázek" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Uložit obrázek jako" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Nepodařilo se vytisknout: %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" -msgstr "" +msgstr "Neplatný režim úprav: %d" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Tento dokument neobsahuje žádný rejstřík" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Nepojmenovaný]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" "Nepodařilo se přečíst soubor z stdin a zapsat jej do dočasného souboru." -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" "Nepodařilo se přečíst soubor z GIO a zkopírovat jej do dočasného souboru." -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "Zadat heslo:" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" "Nepodporovaný typ souboru. Nainstalujte, prosím, nezbytný přídavný modul." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Dokument neobsahuje žádné strany" diff --git a/po/de.po b/po/de.po index dd6e95b..ee02f1b 100644 --- a/po/de.po +++ b/po/de.po @@ -7,623 +7,680 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2017-09-12 10:46+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-16 01:11+0100\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: German (http://www.transifex.com/projects/p/zathura/language/" -"de/)\n" +"Language-Team: German (http://www.transifex.com/pwmt/zathura/language/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Ein minimalistischer Dokumenten-Betrachter" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "Unterstützung für SyncTeX-Synchronisation" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "Markierungen und Lesezeichen." + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "Automatisches Neuladen von Dokumenten." + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "PDF;Ps;PostScript;DjVU;Dokumente;Presentation;Betrachter;" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "'%s' darf nicht 0 sein. Auf 1 gesetzt." -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Ungültige Eingabe '%s' angegeben." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Ungültiger Index '%s' angegeben." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "Der gewählte Text wurde in die Zwischenablage %s kopiert: %s" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "Das gewählte Bild wurde in die Zwischenablage %s kopiert" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Kein Dokument geöffnet." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Ungültige Anzahl an Argumenten angegeben." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Konnte Lesezeichen nicht aktualisieren: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Konnte Lesezeichen nicht erstellen: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" -msgstr "Lesezeichen erfolgreich aktualisiert: %s." +msgstr "Lesezeichen erfolgreich aktualisiert: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Lesezeichen erfolgreich erstellt: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Lesezeichen entfernt: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Konnte Lesezeichen nicht entfernen: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "Keine Lesezeichen verfügbar." + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Lesezeichen existiert nicht: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Titel" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Autor" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Betreff" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Schlagwörter" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Ersteller" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Produzent" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Erstellungsdatum" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Modifikationsdatum" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Keine Information verfügbar." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Zu viele Argumente angegeben." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Keine Argumente angegeben." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "Im strikten Sandkastenmodus ist Drucken nicht erlaubt" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Dokument gespeichert." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Konnte Dokument nicht speichern." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Ungültige Anzahl an Argumenten." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Konnte Anhang '%s' nicht nach '%s' schreiben." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Anhang '%s' nach '%s' geschrieben." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Anhang '%s' nach '%s' geschrieben." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Konnte Anhang '%s' nicht nach '%s' schreiben." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Unbekanntes Bild '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Unbekannter Anhanng oder Bild '%s'." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Das Argument ist keine Zahl." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Seite %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Speichere Anhänge" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Bilder" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Datenbank Backend" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "Dateiwächter Backend" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Vergrößerungsstufe" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Abstand zwischen den Seiten" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Anzahl der Seiten in einer Reihe" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Spalte der ersten Seite" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Schrittgröße beim Scrollen" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Horizontale Schrittgröße beim Scrollen" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Überlappung beim Scrollen von ganzen Seiten" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Minimale Vergrößerungsstufe" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Maximale Vergrößerungsstufe" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Maximale Seitenzahl im Zwischenspeicher" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "Maximale Größe der Vorschau im Zwischenspeicher (in Pixel)" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Anzahl der Liste zu behaltenden Positionen" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Neufärben (Dunkle Farbe)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Neufärben (Helle Farbe)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Farbe für eine Markierung" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Farbe für die aktuelle Markierung" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "Hintergrundfarbe von 'Lädt...'" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "Vordergrundfarbe von 'Lädt...'" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "Vordergrundfarbe des Indexmodus" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "Hintergrundfarbe des Indexmodus" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "Vordergrundfarbe des Indexmodus (aktives Element)" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "Hintergrundfarbe des Indexmodus (aktives Element)" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Färbe die Seiten ein" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" "Behalte beim Neufärben den ursprünglichen Farbton bei und passe nur die " "Helligkeit an" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" "Bilder bleiben unverändert, wenn das Einfärben des Dokuments aktiviert ist" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Scroll-Umbruch" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Seiten beim Scrollen beachten" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Gehe Anzahl der Seiten in einer Reihe weiter" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Horizontal zentrierter Zoom" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "Zentriere Seiten vertikal" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "Linkziel links ausrichten" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "Erlaube Zoom-Änderungen beim Folgen von Links" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Zentriere Ergebnis horizontal" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Transparenz für Markierungen" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Zeige 'Lädt...'-Text beim Zeichnen einer Seite" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Seite einpassen" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Zeige versteckte Dateien und Ordner an" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Zeige Ordner an" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "Zeige zuletzt geöffnete Dateien an" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Öffne Dokument immer auf der ersten Seite" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Hebe Suchergebnisse hervor" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Aktiviere inkrementelle Suche" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Lösche Suchergebnisse bei Abbruch" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Verwende den Dateinamen der Datei im Fenstertitel" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "Verwende ~ statt $HOME im Dateinamen im Fenstertitel" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Verwende die Seitenzal im Fenstertitel" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Verwende den Dateinamen der Datei in der Statusleiste" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "Verwende ~ statt $HOME im Dateinamen in der Statusleiste" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Aktiviere SyncTeX-Unterstützung" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "Synctex Editor Befehl" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "D-Bus-Dienst aktivieren" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "Speichere Verlauf bei jedem Seitenwechsel" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "Zwischenablage, in die mit der Maus gewählte Text kopiert wird" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "Benachrichtigung nach Text-Selektion" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "Sandkasten-Niveau" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Füge Lesezeichen hinzu" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Lösche ein Lesezeichen" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Liste all Lesezeichen auf" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Schließe das aktuelle Dokument" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Zeige Dokumentinformationen an" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Führe einen Befehl aus" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Zeige Hilfe an" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Öffne Dokument" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Beende zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Drucke Dokument" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Speichere Dokument" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Speichere Dokument (und überschreibe bestehende)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Speichere Anhänge" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Setze den Seitenabstand" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Markiere aktuelle Position im Doukument" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Lösche angegebene Markierung" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Hebe aktuelle Suchergebnisse nicht hervor" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Hebe aktuelle Suchergebnisse hervor" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Zeige Versionsinformationen an" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" +"Ausführen externer Anwendungen ist im strikten Sandkastenmodus nicht erlaubt" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Konnte xdg-open nicht ausführen." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Verknüpfung: Seite %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Verknüpfung: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Verknüpfung: ungültig" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Reparentiert zathura an das Fenster mit der xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Pfad zum Konfigurationsverzeichnis" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Pfad zum Datenverzeichnis" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "Pfad zum Cacheverzeichnis" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Pfad zum Pluginverzeichnis" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Forkt den Prozess in den Hintergrund" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Dokument Passwort" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Zur Seite springen" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Log-Stufe (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Zeige Versionsinformationen an" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Synctex Editor (wird an synctex weitergeleitet)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "Zur gewählten SyncTeX-Position springen" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "Gewählte Position im Prozess hervorheben" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "In einem Nicht-Standardmodus starten" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Lädt..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Bild kopieren" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Bild speichern als" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Drucken fehlgeschlagen: %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "Ungültiger Anpassungsmodus: %d" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "Suchausdruck nicht gefunden: %s" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" -msgstr "Dieses Dokument beinhaltet kein Inhaltsverzeichnis." +msgstr "Dieses Dokument beinhaltet kein Inhaltsverzeichnis" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Kein Name]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "Konnte Datei nicht von stdin lesen und in temporäre Datei schreiben." -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "Konnte Datei nicht mittels GIO in temporäre Datei kopieren." -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "Passwort:" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "Dateityp ist nicht unterstützt. Installiere das benötigete Plugin." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Dieses Dokument beinhaltet keine Seiten" diff --git a/po/el.po b/po/el.po index 2b1a493..336a207 100644 --- a/po/el.po +++ b/po/el.po @@ -7,622 +7,678 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:10+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Greek (http://www.transifex.com/projects/p/zathura/language/" -"el/)\n" +"Language-Team: Greek (http://www.transifex.com/pwmt/zathura/language/el/)\n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Ένας ελαφρύς προβολέας κειμένων" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Η είσοδος '%s' είναι άκυρη." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Ο δείκτης '%s' είναι άκυρος." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Δεν άνοιξε κανένα αρχείο. " -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Μη έγκυρος αριθμός παραμέτρων." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Η δημιουργία του σελιδοδείκτη: %s δεν ήταν δυνατή." -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Η δημιουργία του σελιδοδείκτη: %s δεν ήταν δυνατή." -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Η ενημέρωση του σελιδοδείκτη: %s ήταν επιτυχής. " -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Η δημιουργία του σελιδοδείκτη: %s ήταν επιτυχής." -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Ο σελιδοδείκτης: %s διεγράφει. " -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Η διαγραφή του σελιδοδείκτη: %s απέτυχε. " -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Ο σελιδοδείκτης: %s δεν βρέθηκε. " -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Δεν υπάρχουν διαθέσιμες πληροφορίες." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Εισήχθησαν πολλές παράμετροι. " -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Δεν εισήχθησαν παράμετροι. " -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Το αρχείο αποθηκεύτηκε." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Η αποθήκευση του αρχείου απέτυχε. " -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Μη έγκυρος ο αριθμός των παραμέτρων. " -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Μη επιτυχής η εγγραγή της προσάρτησης '%s' στην '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Επιτυχής η εγγραφή της προσάρτησης '%s' στην '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Ενεγράφει η εικόνα '%s' στην '%s'" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Δεν ενεγράφει η εικόνα '%s' στην '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Άγνωστη εικόνα '%s'. " -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Άγνωστο προσάρτημα είτε εικόνα '%s'. " -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Η παράμετρος πρέπει να είναι αριθμός." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Σελίδα %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Προσαρτήσεις" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Εικόνες" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Το βασικό εργαλείο της βάσης δεδομένων" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Βήμα μεγέθυνσης" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Διάκενο μεταξύ σελίδων" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Αριθμός σελίδων ανά γραμμή" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Στήλη της πρώτης σελίδας" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Βήμα κύλισης" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Βήμα οριζόντιας κύλησης" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Ελάχιστη μεγέθυνση" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Μέγιστη μεγέθυνση" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Επαναχρωματισμός (σκούρο χρώμα)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Επαναχρωματισμός (ανοικτό χρώμα)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Χρώμα τονισμού" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Χρώμα τονισμού (ενεργό)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Επαναχρωματισμός σελίδων" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" "Κατά τον επαναχρωματισμό της σελιδάς διατήρηση της αρχικής απόχρωσης και " "αλλαγή μόνο της φωτεινότητας" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Κυκλική κύληση" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Προώθηση σε αριθμό σελίδων ανά γραμμή" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Μεγένθηση οριζοντίως κεντραρισμένη" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Οριζόντιο κεντράρισμα αποτελεσμάτων" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Διαφάνεια για τονισμό" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Εμφάνιση της ένδειξης 'Φορτώνει ...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Προσαρμογή κατά το άνοιγμα του αρχείου" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Εμφάνιση κρυφών αρχείων και φακέλων" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Εμφάνιση καταλόγων" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Άνοιγμα πάντα στην πρώτη σελίδα" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Τονισμός αποτελεσμάτων αναζήτησης" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Εκκαθάριση των απολεσμάτων αναζήτησης κατά την διακοπή" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Χρήση του ονόματος του αρχείο στο τίτλο του παραθύρου" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Ενεργοποίηση υποστήριξης synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Προσθήκη σελιδοδείκτη" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Διαγραφή σελιδοδείκτη" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Εμφάνιση όλων των σελιδοδεικτών" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Κλείσιμο αρχείου" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Προβολή πληροφοριών αρχείου" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Εκτέλεση εντολής" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Εμφάνιση βοήθειας" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Άνοιγμα αρχείου" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Κλείσιμο" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Εκτύπωση αρχείου" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Αποθήκευση αρχείου" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Αποθήκευση αρχείου (και αντικατάσταση)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Αποθήκευση προσαρτήσεων. " -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Ρύθμιση αντιστάθμισης σελίδας" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Επισήμανση τρέχουσας θέσης στο κείμενο" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Διαγραφή επιλεγμένων σημείων" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Χωρίς τονισμό τα τρέχοντα αποτελέσματα της αναζήτησης" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Τονισμός στα τρέχοντα αποτελέσματα της αναζήτησης" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Εμφάνιση πληροφοριών έκδοσης" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Απέτυχε η εκτέλεση του xdg-open. " -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Διαδρομή του αρχείου ρυθμίσεων" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Διαδρομή του φακέλου δεδομένων" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Διαδρομή φακέλου που περιέχει τα πρόσθετα" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Διακλάδωση στο παρασκήνιο" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Κωδικός αρχείου" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Επίπεδο καταγραφής (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Εκτύπωση πληροφοριών έκδοσης" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Synctex editor (Προώθηση στην εντολή synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Φορτώνει ..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Αντιγραφή εικόνας" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Αποθήκευση εικόνας ως..." -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Το αρχείο δεν περιέχει κανένα δείκτη" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Χωρίς όνομα]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/eo.po b/po/eo.po index 9dc4e5b..1afb2ca 100644 --- a/po/eo.po +++ b/po/eo.po @@ -6,620 +6,677 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2015-10-15 23:07+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Esperanto (http://www.transifex.com/projects/p/zathura/" -"language/eo/)\n" +"Language-Team: Esperanto (http://www.transifex.com/pwmt/zathura/language/" +"eo/)\n" "Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.5\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Malpeza dokumento spektanto" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Nevalida enigo '%s' uzata." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Nevalida indekso '%s' uzata." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Neniu dokumento malfermita." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Nevalida nombro da argumentoj uzata." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Neeble krei paĝosignon: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Neeble krei paĝosignon: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Paĝosigno sukcese aktualigita: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Paĝosigno sukcese kreita: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Paĝosigno forigita: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Neeble forigi paĝosignon: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Neniu paĝosigno: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Neniu informacio disponebla." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Tro multe da argumentoj." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Neniuj argumentoj uzata." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Dokumento konservita." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Neeble konservi dokumenton." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Nevalida nombro da argumentoj." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Neeble skribi kunsendaĵon '%s' en '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Skribis kunsendaĵon '%s' en '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Skribis kunsendaĵon '%s' en '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Neeble skribi kunsendaĵon '%s' en '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Nekonata bildo '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Argumento devas esti nombro." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Paĝo %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Konservu kunsendaĵojn" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Bildoj" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Zompaŝo" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Interpaĝa plenigo" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Nombro da paĝoj po vico" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Rulumpaŝo" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Mimimuma zomo" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Maksimuma zomo" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Rekolorigo (malhela koloro)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Rekolorigo (hela koloro)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Koloro por fonlumo" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Koloro por fonlumo (aktiva)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Rekoloru paĝojn" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Ĉirkaŭflua rulumado" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Travidebleco por fonlumo" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Bildigu 'Ŝargado ...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Adaptaĵo ĉe malfermo de dosiero" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Montru kaŝitajn dosierojn kaj -ujojn" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Montru dosierujojn" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Ĉiam malfermu ĉe unua paĝo" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Aldonu paĝosignon" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Forigu paĝosignon" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Listigu ĉiujn paĝosignojn" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Fermu nunan dosieron" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Montru dosiera informacio" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Montru helpon" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Malfermu dokumenton" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Fermu zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Presu dokumenton" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Konservu dokumenton" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Konservu dokumenton (deviga anstataŭo)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Konservu kunsendaĵojn" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Agordu paĝdelokado" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Fiaskis iro de xdg-open" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Vojo al la agorda dosierujo" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Vojo al la datuma dosierujo" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Vojoj al dosierujoj enhavantaj kromaĵojn" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Nivelo de ĵurnalo (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Montru dosiera informacio" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Ŝargado ..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Kopiu bildon" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Savi bildojn kiel" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Ĉi-tiu dokumento enhavas neniam indekson." -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Neniu nomo]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/es.po b/po/es.po index 5eaceda..2a5a0c6 100644 --- a/po/es.po +++ b/po/es.po @@ -5,622 +5,678 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:10+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Spanish (Castilian) (http://www.transifex.net/projects/p/" -"zathura/language/es/)\n" +"Language-Team: Spanish (http://www.transifex.com/pwmt/zathura/language/es/)\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Entrada inválida: '%s'." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Índice invalido: '%s'." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Ningún documento abierto." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Número de argumentos inválido." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Error al crear favorito: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Error al crear favorito: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Favorito actualizado con éxitosamente: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Favorito creado con éxitosamente: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Favorito eliminado: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Error al eliminar el favorito: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "No existe el favorito: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "No hay información disponible." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Demasiados argumentos." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Ningún argumento recibido." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Documento guardado." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Error al guardar el documento." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Número de argumentos inválido." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Escrito fichero adjunto '%s' a '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Escrito fichero adjunto '%s' a '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Imagen desconocida '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Adjunto o imagen desconocidos '%s'." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "El argumento ha de ser un número." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Página %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Guardar ficheros adjuntos" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Imágenes" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Base de datos" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Unidad de zoom" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Separación entre páginas" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Número de páginas por fila" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Columna de la primera página" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Paso de desplazamiento" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Paso de desplazamiento horizontal" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Solapamiento del desplazamiento de página" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Zoom mínimo" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Zoom máximo" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Número de posiciones a recordar en la lista de saltos" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Recoloreado (color oscuro)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Recoloreado (color claro)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Color para destacar" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Color para destacar (activo)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Recolorear páginas" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" "Cuando se recoloree, mantener el tono original y ajustar únicamente la " "luminosidad" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Navegación/Scroll cíclica/o" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Zoom centrado horizontalmente" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Centrar el resultado horizontalmente" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Transparencia para el destacado" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Renderizado 'Cargando ...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Ajustarse al abrir un fichero" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Mostrar directorios y ficheros ocultos" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Mostrar directorios" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Abrir siempre la primera página" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Destacar los resultados de búsqueda" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Habilitar la búsqueda incremental" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Borrar resultados de búsqueda al abortar" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Usar el nombre del archivo en el título de la ventana" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Habilitar soporte synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Añadir Favorito" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Eliminar Favorito" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Listar favoritos" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Cerrar fichero actual" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Mostrar información del fichero" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Ejecutar un comando" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Mostrar ayuda" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Abrir documento" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Salir de zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Imprimir documento" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Guardar documento" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Guardar documento (y sobreescribir)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Guardar ficheros adjuntos" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Asignar el desplazamiento de página" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Marcar la posición actual en el documento" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Borrar las marcas especificadas" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "No destacar los resultados de la búsqueda actual" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Destacar los resultados de la búsqueda actual" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Mostrar versión" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Error al tratar de ejecutar xdg-open" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Reasignar a la ventana especificada por xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Ruta al directorio de configuración" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Ruta para el directorio de datos" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Ruta a los directorios que contienen los plugins" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Fork, ejecutándose en background" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Contraseña del documento" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Nivel de log (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Mostrar información del fichero" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Editor de Synctex (reenvíado al commando synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Cargando ..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Copiar imagen" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Salvar imagen como" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Este documento no contiene ningún índice" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Sin nombre]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/es_CL.po b/po/es_CL.po index 9edf013..88bbbc3 100644 --- a/po/es_CL.po +++ b/po/es_CL.po @@ -6,620 +6,677 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:10+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Spanish (Chile) (http://www.transifex.net/projects/p/zathura/" +"Language-Team: Spanish (Chile) (http://www.transifex.com/pwmt/zathura/" "language/es_CL/)\n" "Language: es_CL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Un visor de documentos minimalista" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Entrada inválida: '%s'." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Índice invalido: '%s'." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Ningún documento abierto." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Número de argumentos inválido." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "No se pudo crear marcador: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "No se pudo crear marcador: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Marcador actualizado exitosamente: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Marcador creado exitosamente: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Marcador eliminado: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Error al eliminar marcador: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "No existe marcador: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "No hay información disponible." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Demasiados argumentos." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Ningún argumento recibido." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Documento guardado." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Error al guardar el documento." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Número de argumentos inválido." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Fichero adjunto escrito '%s' a '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Fichero adjunto escrito '%s' a '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "El argumento debe ser un número." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Guardar archivos adjuntos" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Fin de la base de datos." -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Unidad de zoom" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Separación entre páginas" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Numero de páginas por fila" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Unidad de desplazamiento" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Zoom mínimo" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Zoom máximo" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Recolorando (color oscuro)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Recolorando (color claro)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Color para destacar" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Color para destacar (activo)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Recolorar páginas" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Scroll cíclico" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Transparencia para lo destacado" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Renderizando 'Cargando...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Ajustar al abrirse un archivo" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Mostrar archivos ocultos y directorios" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Mostrar directorios" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Siempre abrir en primera página" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Agregar un marcador" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Eliminar un marcador" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Listar todos los marcadores" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Cerrar archivo actual" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Mostrar información del archivo" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Mostrar ayuda" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Abrir documento" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Cerrar zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Imprimir documento" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Guardar documento" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Guardar documento (y forzar sobreescritura)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Guardar archivos adjuntos" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Asignar desplazamiento de la página" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Error al ejecutar xdg-open." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Reasignar a la ventana especificada por xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Ruta al directorio de configuración" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Ruta al directorio de datos" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Ruta al directorio que contiene plugins" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Ejecución en background" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Nivel de log (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Mostrar información del archivo" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Cargando..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Copiar imagen" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Este document no contiene índice" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Sin nombre]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/et.po b/po/et.po index d22f15f..6e5d4d1 100644 --- a/po/et.po +++ b/po/et.po @@ -6,620 +6,677 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2015-10-15 23:07+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Estonian (http://www.transifex.net/projects/p/zathura/" -"language/et/)\n" +"Language-Team: Estonian (http://www.transifex.com/pwmt/zathura/language/" +"et/)\n" "Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.5\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "" -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "" -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "" -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "" -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "" -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "" -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "" -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "" -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "" -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Salvesta manused" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Esiletõstmise värv" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Esiletõstmise värv (aktiivne)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Näita kaustasid" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Ava alati esimene leht" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Lisa järjehoidja" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Kustuta järjehoidja" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Näita kõiki järjehoidjaid" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Sulge praegune fail" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Näita faili infot" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Näita abiinfot" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Ava dokument" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Sule zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Prindi dokument" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Salvesta dokument" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Salvesta manused" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Näita faili infot" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "" -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Kopeeri pilt" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Nime pole]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/fr.po b/po/fr.po index abfd160..ddeefb5 100644 --- a/po/fr.po +++ b/po/fr.po @@ -10,625 +10,681 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:10+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: French (http://www.transifex.com/projects/p/zathura/language/" -"fr/)\n" +"Language-Team: French (http://www.transifex.com/pwmt/zathura/language/fr/)\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Un visionneur de document minimaliste" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Entrée invalide : '%s'" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Index invalide : '%s'" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Aucun document ouvert." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Nombre d'arguments invalide." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Impossible de créer le marque-page : %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Impossible de créer le marque-page : %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Marque page mis à jour avec succès : %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Marque page créé avec succès : %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Marque page supprimé : %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Échec lors de la suppression du marque-page : %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Aucun marque-page correspondant : %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Titre" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Auteur" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Sujet" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Mots clé" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Créateur" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Producteur" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Date de création" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Date de modification" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Aucune information disponible." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Trop d'arguments." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Aucun argument passé." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Document enregistré." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Échec lors de l'enregistrement du document." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Nombre d'arguments invalide." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Impossible d'écrire la pièce jointe '%s' dans '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Pièce jointe '%s' écrite dans '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Image '%s' écrite dans '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Impossible d'écrire l'image '%s' dans '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Image '%s' inconnue." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Pièce jointe ou image '%s' inconnue." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "L'argument doit être un nombre." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Page %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Pièces jointes" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Images" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Gestionnaire de base de données" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Incrément de zoom" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Espacement entre les pages" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Nombre de page par rangée" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Colonne de la première page" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Incrément de défilement" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Incrément de défilement horizontal" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Recouvrement lors du défilement par page entière" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Zoom minimum" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Zoom maximum" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Nombre maximum de pages à garder en cache" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Nombre de positions à mémoriser dans la liste de sauts" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Recoloration (couleur sombre)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Recoloration (couleur claire)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Couleur de surbrillance" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Couleur de surbrillance (active)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "Couleur d'arrière-plan de 'Chargement...'" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "Couleur de 'Chargement...'" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Recoloriser les pages" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" "Lors de la recoloration garder la teinte d'origine et ajuster seulement la " "luminosité" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Défiler en boucle" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Défilement tenant compte des limites de page" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Augmenter le nombre de pages par rangée" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Zoom centré horizontalement" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "Aligner la cible du lien à gauche" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "Autoriser la modification du zoom quand on suit un lien" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Centrer le résultat horizontalement" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Transparence de la surbrillance" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Afficher 'Chargement...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Ajuster à l'ouverture du fichier" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Montrer les fichiers et dossiers cachés" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Montrer les dossiers" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Toujours ouvrir à la première page" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Surligner les résultats de la recherche" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Activer la recherche incrémentale" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Effacer les résultats de recherche en cas d'annulation" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Utiliser le nom de base du fichier dans le titre de la fenêtre" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Afficher le numéro de page dans le titre de la fenêtre" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Utiliser le nom de base du fichier dans la barre d'état" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Activer la prise en charge de synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "Activer le service D-Bus" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "Le presse-papiers qui recevra les données sélectionnées avec la souris" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Ajouter un marque-page" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Supprimer un marque-page" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Lister tous les marque-pages" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Fermer le fichier actuel" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Montrer les informations sur le fichier" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Exécuter une commande" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Afficher l'aide" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Ouvrir un document" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Quitter zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Imprimer le document" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Sauver le document" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Sauver le document (et forcer l'écrasement)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Enregistrer les pièces jointes" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Définir le décalage de page" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Marquer l'emplacement actuel dans le document" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Supprimer les marques indiquées" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Ne pas surligner les résultats de la recherche en cours" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Surligner les résultats de la recherche en cours" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Afficher les informations de version" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Échec lors du lancement de xdg-open." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Lien : page %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Lien : %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Lien : Invalide" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Rattacher à la fenêtre spécifiée par xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Chemin vers le dossier de configuration" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Chemin vers le dossier de données" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Chemin vers le dossier de plugins" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Détacher en arrière-plan" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Mot de passe du document" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Numéro de page où aller" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Niveau de journalisation (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Afficher les informations de version" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Éditeur synctex (transféré à la commande synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "Démarrer dans un mode non-défaut" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Chargement..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Copier l'image" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Enregistrer l'image sous" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Echec d'impression : %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Ce document ne contient pas d'index" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Sans nom]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" "Impossible de lire le fichier depuis stdin et de le sauvegarder dans un " "fichier temporaire." -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" "Type de fichier non supporté. Veuillez installer l'extension nécessaire." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Ce document ne contient aucune page" diff --git a/po/he.po b/po/he.po index c4493cf..ebb0747 100644 --- a/po/he.po +++ b/po/he.po @@ -5,619 +5,676 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2014-01-31 09:37+0000\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Hebrew (http://www.transifex.com/projects/p/zathura/language/" -"he/)\n" +"Language-Team: Hebrew (http://www.transifex.com/pwmt/zathura/language/he/)\n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "מציג מסמכים מינימליסטי" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "" -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "" -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "" -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "" -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "" -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "" -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "" -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "" -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "" -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "" -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/hr.po b/po/hr.po index 66cf465..8a94376 100644 --- a/po/hr.po +++ b/po/hr.po @@ -5,12 +5,12 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2014-01-31 09:37+0000\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Croatian (http://www.transifex.com/projects/p/zathura/" -"language/hr/)\n" +"Language-Team: Croatian (http://www.transifex.com/pwmt/zathura/language/" +"hr/)\n" "Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -18,607 +18,665 @@ msgstr "" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "" -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "" -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "" -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "" -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "" -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "" -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "" -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "" -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "" -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "" -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/id_ID.po b/po/id_ID.po index 4d8c0c7..48c5e82 100644 --- a/po/id_ID.po +++ b/po/id_ID.po @@ -6,621 +6,679 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:10+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Indonesian (Indonesia) (http://www.transifex.com/projects/p/" -"zathura/language/id_ID/)\n" +"Language-Team: Indonesian (Indonesia) (http://www.transifex.com/pwmt/zathura/" +"language/id_ID/)\n" "Language: id_ID\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 -#, c-format -msgid "'%s' must not be 0. Set to 1." +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Pembaca dokumen minimalis" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." msgstr "" -#: ../zathura/callbacks.c:315 +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 +#, c-format +msgid "'%s' must not be 0. Set to 1." +msgstr "'%s' tidak boleh 0. Diatur ke 1." + +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Masukan '%s' tidak valid" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Index '%s' tidak valid" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Tidak ada dokumen yang terbuka." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "jumlah argumen yang diberikan tidak valid" -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Tidak dapat membuat bookmark: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Tidak dapat membuat bookmark: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "bookmark yang sukses terupdate : %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Bookmark yang sukses dibuat: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Bookmark %s telah sukses dihapus" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Gagal menghapus bookmark: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Tidak ada bookmark: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Judul" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Penulis" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Subjek" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Kata kunci" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Pembuat" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Produser" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Tanggal pembuatan" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Tanggal ubahan" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Tidak ada informasi tersedia" -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Argumen terlalu banyak" -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Tidak ada argumen yang diberikan" -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Dokumen telah disimpan" -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Gagal menyimpan dokumen" -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Jumlah argumen tidak valid" -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Tidak dapat menulis lampiran '%s' ke '%s'" -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Tidak dapat menyimpan lampiran '%s' ke '%s'" -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Menulis citra dari '%s' ke '%s'" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Tidak dapat menulis citra '%s' ke %s'" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Citra tidak diketahui '%s'" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Lampiran atau gambar tidak diketahui '%s'" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Argumen harus berupa angka." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Halaman %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Lampiran" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Citra" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "backend database" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Tingkat pembesaran" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Selisih antar halaman" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Jumlah halaman tiap kolom" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Kolom pada halaman pertama" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Tingkat menggulung" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Tingkat penggulungan horisontal" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" -msgstr "" +msgstr "Geser laman utuh" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Pembesaran minimum" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Pembesaran maksimal" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Jumlah laman yang disimpan pada cache" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" +"Ukuran maksimal gambar thumbnail dalam piksel yang disimpan di tembolok" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Jumlah posisi yang diingat pada jumplist" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Mewarnai ulang (warna gelap)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Mewarnai ulang (warna cerah)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Warna sorotan" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Warna sorotan (aktif)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "'Memuat ...; warna latar" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "'Memuat ...' warna depan" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" -msgstr "" +msgstr "Warna depan mode indeks" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" -msgstr "" +msgstr "Warna latar mode indeks" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" -msgstr "" +msgstr "Warna depan mode indeks (elemen aktif)" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" -msgstr "" +msgstr "Warna latar mode indeks (elemen aktif)" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Mewarnai ulang halaman" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "Ketika mewarnai ulang, jaga hue dan sesuaikan kecerahan saja" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" -msgstr "" +msgstr "Warna citra tetap sama saat mewarnai ulang" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" -msgstr "" +msgstr "Lipat gulung" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Penggulungan sadar halaman" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Jumlah halaman per baris \"lanjutan\"" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Pembesaran horisontal tengah" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "Ratakan tautan ke kiri" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "Biarkan pembesaran berubah saat mengikuti pranala" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Tengah-horisontalkan hasil" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Transparansi sorotan" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Memuat Render..." -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Menyesuaikan ketika membuka file" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Perlihatkan file dan direktori tersembunyi" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Perlihatkan direktori" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Selalu buka halaman pertama" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Sorot hasil pencarian" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Fungsikan pencarian berkelanjutan" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Hapus hasil pencarian ketika batal mencari" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Gunakan nama dasar file pada judul jendela" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Tampilkan nomor laman pada jendela judul" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Gunakan nama dasar berkas pada statusbar" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Support synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" -msgstr "" +msgstr "Penyunting perintah Synctex" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" -msgstr "" +msgstr "Aktifkan layanan D-Bus" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "Data yang dipilih tetikus akan ditulis ke clipboard" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" +msgstr "Aktifkan pemberitahuan setelah menyeleksi teks" + +#: zathura/config.c:252 +msgid "Sandbox level" msgstr "" #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Tambahkan pada bookmark" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Hapus bookmark" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Perlihatkan semua bookmark" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Tutup file ini" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Informasi file" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Jalankan perintah" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Bantuan" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Buka dokumen" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Tutup zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Cetak dokumen" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Simpan dokumen" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Simpan dokumen (dan menimpa berkas)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Simpan lampiran" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Set offset halaman" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Tandai lokasi sekarang dalam dokumen" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Hapus tanda terpilih" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Jangan menyorot hasil cari sekarang" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Sorot hasil pencarian sekarang" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Tunjukan informasi versi" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Gagal menjalankan program xdg-open" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Link: halaman %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Link: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Link: Tidak valid" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Mengembalikan jendela sesuai dengan xid yang ditentukan (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Path ke direktori konfigurasi" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Path ke direktori data" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" -msgstr "" +msgstr "Path ke direktori tembolok" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Path ke direktori plugin" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Jalankan pada latar" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Kata sandi dokumen" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Nomor halaman tujuan" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Tingkat log (debug, info, peringatan, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Cetak informasi versi" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Synctex editor (diteruskan ke perintah synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" -msgstr "" +msgstr "Pindahkan ke posisi synctex yang diberikan" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" -msgstr "" +msgstr "Sorot posisi pada proses yang diberikan" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" -msgstr "" +msgstr "Mulai pada mode non-bawaan" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Memuat....." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Salin gambar" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Simpan gambar sebagai" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" -msgstr "" +msgstr "Gagal mencetak: %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Dokumen ini tidak mempunyai indeks" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Tidak berjudul]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" "Tidak dapat membaca berkas dari stdin dan menulisnya ke berkas sementar" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "Tipe berkas tidak didukung. Silakan memasang plugin yang dibutuhkan." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Dokumen tidak mempunyai laman apapun" diff --git a/po/it.po b/po/it.po index 49a4fcc..ae8c552 100644 --- a/po/it.po +++ b/po/it.po @@ -5,626 +5,682 @@ # TheLemonMan , 2015 # TheLemonMan , 2012 # Simone Guercio , 2015 -# TheLemonMan , 2012 +# TheLemonMan , 2012,2015 msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2015-10-15 23:06+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Italian (http://www.transifex.com/projects/p/zathura/language/" -"it/)\n" +"Language-Team: Italian (http://www.transifex.com/pwmt/zathura/language/it/)\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.5\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Un visualizzatore di documenti minimalista" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "'%s' non può essere 0. Imposta ad 1." -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Input inserito '%s' non valido." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Indice inserito '%s' non valido." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Nessun documento aperto." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Numero di argomenti errato." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Impossibile creare il segnalibro: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Impossibile creare il segnalibro: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Segnalibro aggiornato con successo: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Segnalibro creato con successo: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Segnalibro rimosso: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Impossibile rimuovere il segnalibro: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Nessun segnalibro corrispondente: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Titolo" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Autore" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Argomento" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Parole chiave" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Creato da" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Prodotto da" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Data di creazione" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Data di modifica" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Nessun' informazione disponibile." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Numero di argomenti eccessivo." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Nessun argomento specificato." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Documento salvato." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Impossibile salvare il documento." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Numero di argomenti non valido." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Impossibile salvare l' allegato '%s' in '%s'" -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Allegato '%s' salvato in '%s'" -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Immagine '%s' salvata come '%s'" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Impossibile salvare l' immagine '%s' come '%s'" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Immagine sconosciuta '%s'" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Immagine o allegato sconosciuti '%s" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "L' argomento dev' essere un numero." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Pagina %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Allegati" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Immagini" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Backend del database" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Spaziatura tra le pagine" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Numero di pagine per riga" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Zoom minimo" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Zoom massimo" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Numero massimo di pagine da mantenere nella cache" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Numero di posizioni da mantenere nella jumplist" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Ricolora le pagine" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Scrolling continuo" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Centra orizzontalmente i risultati" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Mostra file e cartelle nascosti" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Mostra cartelle" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Apri sempre alla prima pagina" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Evidenzia i risultati della ricerca" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Abilita la ricerca incrementale" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Mostra il numero di pagina nel titolo della finestra" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Abilita il supporto per synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "Abilita il servizio D-Bus" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "Attiva la notifica dopo aver selezionato del testo" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Aggiungi un segnalibro" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Elimina un segnalibro" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Mostra i segnalibri" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Chiudi il file corrente" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Mostra le informazioni sul file" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Esegui un comando" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Mostra l' aiuto" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Apri un documento" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Chiudi zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Stampa il documento" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Salva il documento" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Salva il documento (e sovrascrivi)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Salva allegati" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Imposta l' offset della pagina" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Segna la posizione attuale all'interno del documento" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Non evidenziare i risultati della ricerca in corso" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Evidenzia i risultati della ricerca in corso" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Mostra informazioni sulla versione" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Impossibile eseguire xdg-open." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Link: pagina %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Link: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Link: non valido" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Percorso della directory della configurazione" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Percorso della directory dei dati" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "Percorso della cartella di cache" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Percorso della directory contenente i plugin" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Crea un processo separato" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Password del documento" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Livello di log (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Mostra le informazioni sul file" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Caricamento..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Copia immagine" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Salva immagine come" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Impossibile stampare: %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Questo documento non contiene l' indice" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Nessun nome]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" "Impossibile leggere il file dall' stdin e scriverlo in un file temporaneo." -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" "Tipo di file non supportato. Per favore, installa il plugin necessario." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Il documento non contiene alcuna pagina" diff --git a/po/lt.po b/po/lt.po index 18dd7e8..2bec30f 100644 --- a/po/lt.po +++ b/po/lt.po @@ -6,621 +6,678 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2015-10-15 23:06+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Lithuanian (http://www.transifex.com/projects/p/zathura/" -"language/lt/)\n" +"Language-Team: Lithuanian (http://www.transifex.com/pwmt/zathura/language/" +"lt/)\n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" "%100<10 || n%100>=20) ? 1 : 2);\n" -"X-Generator: Poedit 1.8.5\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Paprasta dokumentų skaitytuvė" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Netinkama įvestis: „%s“." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Duotas netinkamas indeksas: „%s“." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Nėra atidarytų dokumentų." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Duotų parametrų skaičius yra neteisingas." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Žymė negalėjo būti atnaujinta: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Žymė negalėjo būti sukurta: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Žymė sėkmingai atnaujinta: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Žymė sėkmingai sukurta: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Žymė ištrinta: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Žymė negalėjo būti panaikinta: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Nėra tokios žymės: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Pavadinimas" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Autorius" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Raktažodžiai" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Gamintojas" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Sukūrimo data" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Pakeitimo data" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Nėra informacijos." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Per daug parametrų." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Parametrai neduoti." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Dokumentas išsaugotas." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Dokumento išsaugoti nepavyko." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Neteisingas parametrų skaičius." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Priedas „%s“ negalėjo būti įrašytas į „%s“." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Priedas „%s“ įrašytas į „%s“." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Atvaizdas „%s“ įrašytas į „%s“." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Atvaizdas „%s“ negalėjo būti įrašytas į „%s“," -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Nežinomas atvaizdas „%s“." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Nežinomas priedas ar atvaizdas „%s“." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Parametras turi būti skaičius." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "%d puslapis" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Priedai" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Atvaizdai" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Duomenų bazės posistemė" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Priartinimo žingsnis" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Užpildymas tarp puslapių" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Puslapių skaičius eilutėje" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Pirmo puslapio stulpelis" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Slinkties žingsnis" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Horizontalios slinksties žingsnis" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Mažiausias priartinimas" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Didžiausias priartinimas" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Puslapių limitas spartinančioje atmintinėje" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Spalvų keitimas (tamsi spalva)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Spalvų keitimas (šviesi spalva)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Žymos spalva" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Žymos spalva (aktyvi)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "„Kraunama ...“ fono spalva" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "„Kraunama ...“ pagrindinė spalva" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Pakeisti spalvas" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Puslapių ribas atpažįstanti slinktis" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Padidinti puslapių skaičių eilutėje" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Žymų skaidrumas" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Atvaizduoti „Kraunama ...“" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Prisitaikyti atidarant bylą" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Rodyti paslėptus failus ir katalogus" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Rodyti katalogų sąrašą" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Visada atverti pirmą puslapį" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Pažymėti paieškos rezultatus" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Įjungti prieauginę paiešką" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Išvalyti paieškos rezultatus nutraukiant" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Rodyti puslapio skaičių lango pavadinime" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Naudoti bylos vardą būsenos juostoje" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Įjungti synctex palaikymą" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Pridėti žymę" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Ištrinti žymę" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Žymių sąrašas" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Uždaryti dabartinę bylą" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Rodyti bylos informaciją" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Rodyti pagalbą" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Atidryti dokumentą" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Uždaryti zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Atspausdinti dokumentą" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Išsaugoti dokumentą" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Išsaugoti dokumentą (ir priverstinai perašyti)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Išsaugoti priedus" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Nustatyti puslapio poslinkį" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Pažymėti dabartinę dokumento vietą" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Ištrinti šias žymes" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Nežymėti dabartinės paieškos rezultatų" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Pažymėti dabartinės paieškos rezultatus" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Rodyti versijos informaciją" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Klaida xdg-open paleidime." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Nuoroda: %d puslapis" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Nuoroda: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Neteisinga nuoroda" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Konfigūracinių failų aplanko adresas" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Duomenų aplanko adresas" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Įskiepių aplanko adresas" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Dokumento slaptažodis" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Pereiti į puslapį" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Registravimo lygis (derinimas, informacija, įspėjimai, klaidos)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Spausdinti versijos informaciją" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Synctex redaktorius (naudojama synctex komandoje)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Kraunama..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Kopijuoti atvaizdą" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Irašyti atvaizdą kaip" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Šit dokumentas neturi turinio" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Bevardis]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "Bylos tipas nepalaikomas. Įdiekite tam skirtus įskiepius." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Dokumente puslapių nėra" diff --git a/po/meson.build b/po/meson.build new file mode 100644 index 0000000..cac1e18 --- /dev/null +++ b/po/meson.build @@ -0,0 +1,4 @@ +i18n = import('i18n') +i18n.gettext('zathura', + preset: 'glib' +) diff --git a/po/nl.po b/po/nl.po new file mode 100644 index 0000000..70fbd71 --- /dev/null +++ b/po/nl.po @@ -0,0 +1,698 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Translators: +# Heimen Stoffels , 2017-2018 +msgid "" +msgstr "" +"Project-Id-Version: zathura\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-12 11:19+0000\n" +"Last-Translator: Heimen Stoffels \n" +"Language-Team: Dutch (http://www.transifex.com/pwmt/zathura/language/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Een minimalistische documentweergave-applicatie" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" +"Zathrua is een zeer aanpasbare en functionele documentweergave-applicatie. " +"Het biedt een minimalistisch en ruimtebesparend uiterlijk en is vooral " +"gefocust op eenvoudig navigeren middels het toetsenbord. Zathura maakt het " +"mogelijk om volledig zonder muis door documenten te kunnen bladeren." + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "SyncTeX vooruit- en achteruitsynchronisatie." + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "Verwijzingen en bladwijzers." + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "Automatische documentherlading." + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "org.pwmt.zathura" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "PDF;PS;PostScript;DjVU;document;presentatie;weergave;" + +#: zathura/callbacks.c:308 +#, c-format +msgid "'%s' must not be 0. Set to 1." +msgstr "'%s' mag niet op 0 worden ingesteld. Stel in op 1." + +#: zathura/callbacks.c:390 +#, c-format +msgid "Invalid input '%s' given." +msgstr "Ongeldige invoer, '%s', opgegeven." + +#: zathura/callbacks.c:426 +#, c-format +msgid "Invalid index '%s' given." +msgstr "Ongeldige index, '%s', opgegeven." + +#: zathura/callbacks.c:665 +#, c-format +msgid "Copied selected text to selection %s: %s" +msgstr "Tekst gekopieerd naar selectie %s: %s" + +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "Afbeelding gekopieerd naar selectie %s" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 +msgid "No document opened." +msgstr "Geen geopend document." + +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 +msgid "Invalid number of arguments given." +msgstr "Ongeldig aantal argumenten opgegeven." + +#: zathura/commands.c:53 +#, c-format +msgid "Could not update bookmark: %s" +msgstr "Bladwijzer kan niet worden bijgewerkt: %s" + +#: zathura/commands.c:55 +#, c-format +msgid "Could not create bookmark: %s" +msgstr "Bladwijzer kan niet worden gecreëerd: %s" + +#: zathura/commands.c:60 +#, c-format +msgid "Bookmark successfully updated: %s" +msgstr "Bladwijzer succesvol bijgewerkt: %s" + +#: zathura/commands.c:62 +#, c-format +msgid "Bookmark successfully created: %s" +msgstr "Bladwijzer succesvol gecreëerd: %s" + +#: zathura/commands.c:88 +#, c-format +msgid "Removed bookmark: %s" +msgstr "Bladwijzer verwijderd: %s" + +#: zathura/commands.c:90 +#, c-format +msgid "Failed to remove bookmark: %s" +msgstr "Bladwijzer verwijderen mislukt: %s" + +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "Geen bladwijzers beschikbaar." + +#: zathura/commands.c:129 +#, c-format +msgid "No such bookmark: %s" +msgstr "Geen bladwijzer: %s" + +#: zathura/commands.c:175 +msgid "Title" +msgstr "Titel" + +#: zathura/commands.c:176 +msgid "Author" +msgstr "Auteur" + +#: zathura/commands.c:177 +msgid "Subject" +msgstr "Onderwerp" + +#: zathura/commands.c:178 +msgid "Keywords" +msgstr "Sleutelwoorden" + +#: zathura/commands.c:179 +msgid "Creator" +msgstr "Maker" + +#: zathura/commands.c:180 +msgid "Producer" +msgstr "Producent" + +#: zathura/commands.c:181 +msgid "Creation date" +msgstr "Creatiedatum" + +#: zathura/commands.c:182 +msgid "Modification date" +msgstr "Bijwerkdatum" + +#: zathura/commands.c:187 zathura/commands.c:207 +msgid "No information available." +msgstr "Geen informatie beschikbaar." + +#: zathura/commands.c:245 +msgid "Too many arguments." +msgstr "Teveel argumenten." + +#: zathura/commands.c:256 +msgid "No arguments given." +msgstr "Geen argumenten opgegeven." + +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "Afdrukken is niet toegestaan in de strenge sandbox-modus" + +#: zathura/commands.c:319 zathura/commands.c:345 +msgid "Document saved." +msgstr "Document opgeslagen." + +#: zathura/commands.c:321 zathura/commands.c:347 +msgid "Failed to save document." +msgstr "Document opslaan mislukt." + +#: zathura/commands.c:324 zathura/commands.c:350 +msgid "Invalid number of arguments." +msgstr "Ongeldig aantal argumenten." + +#: zathura/commands.c:463 +#, c-format +msgid "Couldn't write attachment '%s' to '%s'." +msgstr "Bijlage '%s' kan niet worden weggeschreven naar '%s'." + +#: zathura/commands.c:465 +#, c-format +msgid "Wrote attachment '%s' to '%s'." +msgstr "Bijlage '%s' weggeschreven naar '%s'." + +#: zathura/commands.c:509 +#, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "Afbeelding '%s' weggeschreven naar '%s'." + +#: zathura/commands.c:511 +#, c-format +msgid "Couldn't write image '%s' to '%s'." +msgstr "Afbeelding '%s' kan niet worden weggeschreven naar '%s'." + +#: zathura/commands.c:518 +#, c-format +msgid "Unknown image '%s'." +msgstr "Onbekende afbeelding '%s'." + +#: zathura/commands.c:522 +#, c-format +msgid "Unknown attachment or image '%s'." +msgstr "Onbekende bijlage of afbeelding '%s'." + +#: zathura/commands.c:579 +msgid "Argument must be a number." +msgstr "Argument moeten een getal zijn." + +#: zathura/completion.c:287 +#, c-format +msgid "Page %d" +msgstr "Pagina %d" + +#: zathura/completion.c:330 +msgid "Attachments" +msgstr "Bijlagen" + +#. add images +#: zathura/completion.c:361 +msgid "Images" +msgstr "Afbeeldingen" + +#. zathura settings +#: zathura/config.c:145 +msgid "Database backend" +msgstr "Database-backend" + +#: zathura/config.c:146 +msgid "File monitor backend" +msgstr "Bestandsmonitor-backend" + +#: zathura/config.c:148 +msgid "Zoom step" +msgstr "Zoomschaal" + +#: zathura/config.c:150 +msgid "Padding between pages" +msgstr "Opvulling tussen pagina's" + +#: zathura/config.c:152 +msgid "Number of pages per row" +msgstr "Aantal pagina's per rij" + +#: zathura/config.c:154 +msgid "Column of the first page" +msgstr "Kolom van de eerste pagina" + +#: zathura/config.c:156 +msgid "Scroll step" +msgstr "Scrollschaal" + +#: zathura/config.c:158 +msgid "Horizontal scroll step" +msgstr "Horizontale scrollschaal" + +#: zathura/config.c:160 +msgid "Full page scroll overlap" +msgstr "Scrolloverlapping op volledige pagina" + +#: zathura/config.c:162 +msgid "Zoom minimum" +msgstr "Minimale zoom" + +#: zathura/config.c:164 +msgid "Zoom maximum" +msgstr "Maximale zoom" + +#: zathura/config.c:166 +msgid "Maximum number of pages to keep in the cache" +msgstr "Maximaal aantal pagina's dat moet worden bewaard in de cache" + +#: zathura/config.c:168 +msgid "Maximum size in pixels of thumbnails to keep in the cache" +msgstr "" +"Maximaal aantal in pixels van voorbeeldweergaven die moeten worden bewaard " +"in de cache" + +#: zathura/config.c:170 +msgid "Number of positions to remember in the jumplist" +msgstr "Aantal posities dat moet worden onthouden in de jumplist" + +#: zathura/config.c:172 +msgid "Recoloring (dark color)" +msgstr "Herkleuren (donkere kleur)" + +#: zathura/config.c:173 +msgid "Recoloring (light color)" +msgstr "Herkleuren (lichte kleur)" + +#: zathura/config.c:174 +msgid "Color for highlighting" +msgstr "Markeerkleur" + +#: zathura/config.c:176 +msgid "Color for highlighting (active)" +msgstr "Markeerkleur (actief)" + +#: zathura/config.c:178 +msgid "'Loading ...' background color" +msgstr "'Bezig met laden ...'-achtergrondkleur" + +#: zathura/config.c:180 +msgid "'Loading ...' foreground color" +msgstr "'Bezig met laden ...'-voorgrondkleur" + +#: zathura/config.c:183 +msgid "Index mode foreground color" +msgstr "Indexmodus-voorgrondkleur" + +#: zathura/config.c:184 +msgid "Index mode background color" +msgstr "Indexmodus-achtergrondkleur" + +#: zathura/config.c:185 +msgid "Index mode foreground color (active element)" +msgstr "Indexmodus-voorgrondkleur (actief element)" + +#: zathura/config.c:186 +msgid "Index mode background color (active element)" +msgstr "Indexmodus-achtergrondkleur (actief element)" + +#: zathura/config.c:189 +msgid "Recolor pages" +msgstr "Pagina's herkleuren" + +#: zathura/config.c:191 +msgid "When recoloring keep original hue and adjust lightness only" +msgstr "" +"Behoudt tijdens het herkleuren de originele tint en pas alleen de belichting " +"aan" + +#: zathura/config.c:193 +msgid "When recoloring keep original image colors" +msgstr "Behoudt tijdens het herkleuren de originele afbeeldingskleuren" + +#: zathura/config.c:195 +msgid "Wrap scrolling" +msgstr "Scrollen omslaan" + +#: zathura/config.c:197 +msgid "Page aware scrolling" +msgstr "Paginabewust scrollen" + +#: zathura/config.c:199 +msgid "Advance number of pages per row" +msgstr "Aantal vooruit-pagina's per rij" + +#: zathura/config.c:201 +msgid "Horizontally centered zoom" +msgstr "Horizontaal-gecentreerde zoom" + +#: zathura/config.c:203 +msgid "Vertically center pages" +msgstr "Pagina's verticaal centreren" + +#: zathura/config.c:205 +msgid "Align link target to the left" +msgstr "Linkdoel uitlijnen naar links" + +#: zathura/config.c:207 +msgid "Let zoom be changed when following links" +msgstr "Zoom wijzigen bij volgen van links" + +#: zathura/config.c:209 +msgid "Center result horizontally" +msgstr "Resultaat horizontaal centreren" + +#: zathura/config.c:211 +msgid "Transparency for highlighting" +msgstr "Doorzichtigheid bij markeren" + +#: zathura/config.c:213 +msgid "Render 'Loading ...'" +msgstr "'Bezig met laden...' renderen" + +#: zathura/config.c:214 +msgid "Adjust to when opening file" +msgstr "Aanpassen aan bij openen van bestand" + +#: zathura/config.c:216 +msgid "Show hidden files and directories" +msgstr "Verborgen bestanden en mappen weergeven" + +#: zathura/config.c:218 +msgid "Show directories" +msgstr "Mappen weergeven" + +#: zathura/config.c:220 +msgid "Show recent files" +msgstr "Recente bestanden weergeven" + +#: zathura/config.c:222 +msgid "Always open on first page" +msgstr "Altijd openen op eerste pagina" + +#: zathura/config.c:224 +msgid "Highlight search results" +msgstr "Zoekresultaten markeren" + +#: zathura/config.c:227 +msgid "Enable incremental search" +msgstr "Stapsgewijs zoeken inschakelen" + +#: zathura/config.c:229 +msgid "Clear search results on abort" +msgstr "Zoekresultaten wissen na afbreken" + +#: zathura/config.c:231 +msgid "Use basename of the file in the window title" +msgstr "Basisnaam van bestand gebruiken in de venstertitel" + +#: zathura/config.c:233 +msgid "Use ~ instead of $HOME in the filename in the window title" +msgstr "~ gebruiken i.p.v. $HOME in de bestandsnaam in de venstertitel" + +#: zathura/config.c:235 +msgid "Display the page number in the window title" +msgstr "Paginanummer weergeven in de venstertitel" + +#: zathura/config.c:237 +msgid "Use basename of the file in the statusbar" +msgstr "Basisnaam van bestand gebruiken in de statusbalk" + +#: zathura/config.c:239 +msgid "Use ~ instead of $HOME in the filename in the statusbar" +msgstr "~ gebruiken i.p.v. $HOME in de bestandsnaam in de statusbalk" + +#: zathura/config.c:241 +msgid "Enable synctex support" +msgstr "Synctex-ondersteuning inschakelen" + +#: zathura/config.c:243 +msgid "Synctex editor command" +msgstr "Synctex-bewerkeropdracht" + +#: zathura/config.c:245 +msgid "Enable D-Bus service" +msgstr "D-Bus-dienst inschakelen" + +#: zathura/config.c:247 +msgid "Save history at each page change" +msgstr "Geschiedenis opslaan bij elke paginawijziging" + +#: zathura/config.c:249 +msgid "The clipboard into which mouse-selected data will be written" +msgstr "" +"Het klembord waarnaar met de muis geselecteerde gegevens moet worden " +"weggeschreven" + +#: zathura/config.c:251 +msgid "Enable notification after selecting text" +msgstr "Melding inschakelen na selecteren van tekst" + +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "Sandbox-niveau" + +#. define default inputbar commands +#: zathura/config.c:441 +msgid "Add a bookmark" +msgstr "Bladwijzer toevoegen" + +#: zathura/config.c:442 +msgid "Delete a bookmark" +msgstr "Bladwijzer verwijderen" + +#: zathura/config.c:443 +msgid "List all bookmarks" +msgstr "Alle bladwijzers weergeven" + +#: zathura/config.c:444 +msgid "Close current file" +msgstr "Huidig bestand sluiten" + +#: zathura/config.c:445 +msgid "Show file information" +msgstr "Bestandsinformatie weergeven" + +#: zathura/config.c:446 zathura/config.c:447 +msgid "Execute a command" +msgstr "Opdracht uitvoeren" + +#. like vim +#: zathura/config.c:448 +msgid "Show help" +msgstr "Hulp weergeven" + +#: zathura/config.c:449 +msgid "Open document" +msgstr "Document openen" + +#: zathura/config.c:450 +msgid "Close zathura" +msgstr "Zathura sluiten" + +#: zathura/config.c:451 +msgid "Print document" +msgstr "Document afdrukken" + +#: zathura/config.c:452 +msgid "Save document" +msgstr "Document opslaan" + +#: zathura/config.c:453 +msgid "Save document (and force overwriting)" +msgstr "Document opslaan (en overschrijven forceren)" + +#: zathura/config.c:454 +msgid "Save attachments" +msgstr "Bijlagen opslaan" + +#: zathura/config.c:455 +msgid "Set page offset" +msgstr "Pagina-afwijking instellen" + +#: zathura/config.c:456 +msgid "Mark current location within the document" +msgstr "Huidige locatie in document markeren" + +#: zathura/config.c:457 +msgid "Delete the specified marks" +msgstr "Opgegeven markeringen verwijderen" + +#: zathura/config.c:458 +msgid "Don't highlight current search results" +msgstr "Huidige zoekresultaten niet markeren" + +#: zathura/config.c:459 +msgid "Highlight current search results" +msgstr "Huidige zoekresultaten markeren" + +#: zathura/config.c:460 +msgid "Show version information" +msgstr "Versie-informatie weergeven" + +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" +"Het openen van externe applicaties is niet toegestaan in de strenge sandbox-" +"modus" + +#: zathura/links.c:214 zathura/links.c:295 +msgid "Failed to run xdg-open." +msgstr "Uitvoeren van xdg-open mislukt." + +#: zathura/links.c:234 +#, c-format +msgid "Link: page %d" +msgstr "Link: pagina %d" + +#: zathura/links.c:241 +#, c-format +msgid "Link: %s" +msgstr "Link: %s" + +#: zathura/links.c:245 +msgid "Link: Invalid" +msgstr "Link: ongeldig" + +#: zathura/main.c:150 +msgid "Reparents to window specified by xid (X11)" +msgstr "Wordt bij bovenliggend, door xid (X11) opgegeven venster gevoegd" + +#: zathura/main.c:151 +msgid "Path to the config directory" +msgstr "Pad naar de configuratiemap" + +#: zathura/main.c:152 +msgid "Path to the data directory" +msgstr "Pad naar de gegevensmap" + +#: zathura/main.c:153 +msgid "Path to the cache directory" +msgstr "Pad naar de cachemap" + +#: zathura/main.c:154 +msgid "Path to the directories containing plugins" +msgstr "Pad naar de mappen die plug-ins bevatten" + +#: zathura/main.c:155 +msgid "Fork into the background" +msgstr "Naar achtergrond verplaatsen" + +#: zathura/main.c:156 +msgid "Document password" +msgstr "Documentwachtwoord" + +#: zathura/main.c:157 +msgid "Page number to go to" +msgstr "Paginanummer om naartoe te gaan" + +#: zathura/main.c:158 +msgid "Log level (debug, info, warning, error)" +msgstr "Logniveau (foutopsporing, informatie, waarschuwing, fout)" + +#: zathura/main.c:159 +msgid "Print version information" +msgstr "Versie-informatie afdrukken" + +#: zathura/main.c:161 +msgid "Synctex editor (forwarded to the synctex command)" +msgstr "Synctex-bewerker (wordt doorgestuurd naar de synctex-opdracht)" + +#: zathura/main.c:162 +msgid "Move to given synctex position" +msgstr "Verplaatsen naar opgegeven synctex-positie" + +#: zathura/main.c:163 +msgid "Highlight given position in the given process" +msgstr "Opgegeven positie markeren in het opgegeven proces" + +#: zathura/main.c:165 +msgid "Start in a non-default mode" +msgstr "Starten in een niet-standaardmodus" + +#: zathura/page-widget.c:660 +msgid "Loading..." +msgstr "Bezig met laden..." + +#: zathura/page-widget.c:1114 +msgid "Copy image" +msgstr "Afbeelding kopiëren" + +#: zathura/page-widget.c:1115 +msgid "Save image as" +msgstr "Afbeelding opslaan als" + +#: zathura/print.c:64 zathura/print.c:227 +#, c-format +msgid "Printing failed: %s" +msgstr "Afdrukken mislukt: %s" + +#: zathura/shortcuts.c:105 +#, c-format +msgid "Invalid adjust mode: %d" +msgstr "Ongeldige aanpassingsmodus: %d" + +#: zathura/shortcuts.c:977 +#, c-format +msgid "Pattern not found: %s" +msgstr "Patroon niet gevonden: %s" + +#: zathura/shortcuts.c:1135 +msgid "This document does not contain any index" +msgstr "Dit document bevat geen index" + +#: zathura/zathura.c:295 zathura/zathura.c:1367 +msgid "[No name]" +msgstr "[Naamloos]" + +#: zathura/zathura.c:732 +msgid "Could not read file from stdin and write it to a temporary file." +msgstr "" +"Bestand kan niet worden gelezen uit stdin en worden weggeschreven naar een " +"tijdelijk bestand." + +#: zathura/zathura.c:748 +msgid "Could not read file from GIO and copy it to a temporary file." +msgstr "" +"Bestand kan niet worden gelezen uit GIO en worden gekopieerd naar een " +"tijdelijk bestand." + +#: zathura/zathura.c:837 +msgid "Enter password:" +msgstr "Wachtwoord invoeren:" + +#: zathura/zathura.c:872 +msgid "Unsupported file type. Please install the necessary plugin." +msgstr "Niet-ondersteund bestandstype. Installeer de benodigde plug-in." + +#: zathura/zathura.c:882 +msgid "Document does not contain any pages" +msgstr "Document bevat geen pagina's" diff --git a/po/no.po b/po/no.po index c0487de..d4c9f17 100644 --- a/po/no.po +++ b/po/no.po @@ -6,620 +6,677 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2015-10-15 23:06+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Norwegian (http://www.transifex.com/projects/p/zathura/" -"language/no/)\n" +"Language-Team: Norwegian (http://www.transifex.com/pwmt/zathura/language/" +"no/)\n" "Language: no\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.5\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "En minimalistisk dokumentleser" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Ugyldig inndata '%s' gitt." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Ugyldig index '%s' gitt." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Ingen dokumenter åpnet." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Ugyldig nummer av argumenter gitt." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Kunne ikke oppdatere bokmerke: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Kunne ikke lage bokmerke: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Bokmerke er oppdatert: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Bokmerket er laget: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Fjernet bokmerke: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Kunne ikke fjerne bokmerke: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Bokmerke eksisterer ikke: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Tittel" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Forfatter" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Subjekt" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Nøkkelord" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Laget av" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Produsent" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Laget dato" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Modifisert dato" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Ingen informasjon tilgjengelig." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "For mange argumenter." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Ingen argumenter gitt." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Dokumentet er lagret." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Kunne ikke lagre dokumentet." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Ugyldig nummer av argumenter." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Kunne ikke skrive vedlegg '%s' til '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Skrev vedlegg '%s' til '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Skrev bilde '%s' til '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Kunne ikke skrive bilde '%s' til '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Ukjent bilde '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Ukjent vedlegg eller bilde '%s'." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Argumentet må være et tall." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Side %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Vedlegg" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Bilder" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Database backend" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Zoom nivå" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Avstand mellom sider" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Nummer av sider per rad" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Skrolle nivå" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Zoom minimum" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Zoom maximum" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Maksimum antall sider å holde i mellomlagringen" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Antall posisjoner å huske i hopp-til-listen" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Om-farger (mørk farge)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Om-farge (lys farge)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Farge for utheving" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Farge for utheving (aktiv)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "'Laster ...' bakgrunnsfarge" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "'Laster ...' forgrunnsfarge" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Om-farge sider" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Horisontalsentrert zoom" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "La zoom bli endret når følgende linker" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Sentrer resultatene horisontalt" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Klarhet for utheving" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Render 'Laster ...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Juster til når du åpner filen" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Vis skjulte filer og mapper" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Vis mapper" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Alltid åpne på første side" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Uthev søkeresultater" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Stryk ut søkeresulteter ved avbrytelse" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Vis nummer av sider i vinduestittelen" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "Aktiv D-Bus servicen" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Legg til bokmerke" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Slett bokmerke" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "List alle bokmerker" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Lukk den gjeldende filen" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Vis filinformasjon" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Kjør en kommando" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Vis hjelp" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Åpne dokument" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Lukk zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Skriv ut dokument" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Lagre dokument" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Lagre dokument (og tving til å skrive over)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Lagre vedlegg" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Marker nåværende lokalasjon i dokumentet" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Slett spesifiserte merker" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Ikke uthev gjeldende søkeresultater" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Uthev følgende søkeresultater" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Vis versjonsinformasjon" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Klarte ikke å kjøre xdg-open." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Link: side %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Link: Ugyldig" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Sti til konfigureringsmappe" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Sti til data-mappe" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Sti til mapper som inneholder plugins" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Dokument passord" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Sidetall å gå til" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Logg nivå (diagnostisering, info, advarsler, feil)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Skriv ut versjonsinformasjon" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "Start i ikke-standard modus" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Laster..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Kopier bilde" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Lagre bilde som" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Utskrift feilet: %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Dette dokumenetet inneholder ikke noen index" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Inget navn]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "Kunne ikke lese fil fra stdin og skrive til temporærfil." -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "Usupportert filtype. Vennligst innstaller den nødvendige pluginen." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Dokumentet inneholder ingen sider" diff --git a/po/pl.po b/po/pl.po index 6d5753f..3531a9a 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7,621 +7,678 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:09+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Polish (http://www.transifex.com/projects/p/zathura/language/" -"pl/)\n" +"Language-Team: Polish (http://www.transifex.com/pwmt/zathura/language/pl/)\n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " -"|| n%100>=20) ? 1 : 2);\n" -"X-Generator: Poedit 1.8.7.1\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" +"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" +"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Minimalistyczna przeglądarka dokumentów" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Nieprawidłowy argument: %s" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Nieprawidłowy indeks: %s" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Nie otwarto żadnego pliku" -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Nieprawidłowa liczba parametrów polecenia" -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Nie można stworzyć zakładki: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Nie można stworzyć zakładki: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Zaktualizowano zakładkę: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Utworzono zakładkę: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Usunięto zakładkę: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Nie można usunąć zakładki: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Nie znaleziono zakładki: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Tytuł" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Autor" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Temat" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Słowa kluczowe" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Twórca" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Producent" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Data utworzenia" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Data modyfikacji" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Brak informacji o pliku" -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Za dużo parametrów polecenia" -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Nie podano parametrów polecenia" -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Zapisano dokument" -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Błąd zapisu" -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Niewłaściwa liczba parametrów polecenia" -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Nie można dodać załącznika %s do pliku %s" -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Zapisano załącznik %s do pliku %s" -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Obrazek %s zapisano do pliku %s" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Nie można dodać obrazka %s do pliku %s" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Nieznany obrazek '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Nieznany załącznik lub obrazek '%s'." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Parametr polecenia musi być liczbą" -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Strona %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Załączniki" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Obrazki" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Baza danych" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Skok powiększenia" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Odstęp pomiędzy stronami" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Liczba stron w wierszu" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Skok przewijania" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Skok przewijania poziomego" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Minimalne powiększenie" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Maksymalne powiększenie" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Maksymalna liczba stron w pamięci podręcznej" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Ciemny kolor negatywu" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Jasny kolor negatywu" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Kolor wyróżnienia" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Kolor wyróżnienia bieżącego elementu" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "Kolor tła komunikatu „Wczytywanie pliku...”" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "Kolor komunikatu „Wczytywanie pliku...”" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Negatyw" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "Dla negatywu zachowaj oryginalny odcień i zmień tylko jasność" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Zawijanie dokumentu" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Zwiększ liczbę stron w wierszu" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Powiększenie względem środka" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Poziome wyśrodkowanie wyniku" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Przezroczystość wyróżnienia" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Wyświetlaj: „Wczytywanie pliku...”" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Dopasowanie widoku pliku" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Wyświetl ukryte pliki i katalogi" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Wyświetl katalogi" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Zawsze otwieraj na pierwszej stronie" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Podświetl wyniki wyszukiwania" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Włącz wyszukiwanie przyrostowe" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Wyczyść wyniki wyszukiwania po przerwaniu" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Pokaż nazwę pliku w pasku tytułu" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Wyświetl numer strony w pasku tytułu" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Nazwa pliku w pasku stanu" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Włącz synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "Uruchom serwis D-Bus" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Dodaj zakładkę" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Usuń zakładkę" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Wyświetl zakładki" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Zamknij plik" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Wyświetl informacje o pliku" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Wykonaj polecenie" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Wyświetl pomoc" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Otwórz plik" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Zakończ" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Wydrukuj" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Zapisz" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Zapisz (nadpisując istniejący plik)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Zapisz załączniki" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Ustaw przesunięcie numerów stron" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Zaznacz aktualną pozycję w dokumencie" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Skasuj określone zakładki" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Nie podświetlaj aktualnych wyników wyszukiwania " -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Podświetl aktualne wyniki wyszukiwania" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Wyświetl informacje o wersji" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Wystąpił problem z uruchomieniem xdg-open" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Link: strona %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Link: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Nieprawidłowy link" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Przypisz proces do rodzica o danym xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Położenie katalogu konfiguracyjnego" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Położenie katalogu danych" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Położenie katalogu wtyczek" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Forkuj w tle" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Hasło dokumentu" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Szczegółowość komunikatów (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Wyświetl informacje o wersji" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Edytor synctex (przekierowanie do komendy synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Wczytywanie pliku..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Skopiuj obrazek" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Zapisz obrazek jako" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Nie można wydrukować: %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Dokument nie zawiera indeksu" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[bez nazwy]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "Niewspierany rodzaj pliku. Zainstaluj wymagane wtyczki" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Dokument nie zawiera żadnej strony" diff --git a/po/pt_BR.po b/po/pt_BR.po index 7183f93..23b5aae 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -6,626 +6,683 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:09+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/" -"zathura/language/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/pwmt/zathura/" +"language/pt_BR/)\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 -#, c-format -msgid "'%s' must not be 0. Set to 1." +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Um visualizador de documentos minimalista" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." msgstr "" -#: ../zathura/callbacks.c:315 +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 +#, c-format +msgid "'%s' must not be 0. Set to 1." +msgstr "'%s' não deve ser 0. Defina para 1." + +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Dados de entrada inválida '%s' ." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Dados de índice invalido '%s'." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Nenhum documento aberto." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Número de argumentos dados inválidos." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Não foi possível criar favorito: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Não foi possível criar favorito: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Favorito atualizado com sucesso: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Favorito criado com sucesso: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Favorito removido: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Falha ao remover favorito: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Não há favoritos: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Título" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Autor" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Assunto" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Palavras-chave" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Criador" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Produtor" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Data de criação" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Data de modificação" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Nenhuma informação disponível." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Muitos argumentos." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Nenhum argumento dado." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Documento salvo." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Falha ao salvar o documento." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Número de argumento invalido." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Não foi possível gravar anexo '%s' para '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Escreveu anexo '%s' para '%s'." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Escreveu imagem '%s' para '%s'." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Não foi possível gravar imagem '%s' para '%s'." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Imagem desconhecida '%s'." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Anexo desconhecido ou imagem '%s'." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "O argumento deve ser um número." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Página %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Anexos" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Imagens" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Fim da base de dados" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Grau de Zoom" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Preenchimento entre páginas" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Número de paginas por linha" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Coluna da primeira página" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Fase de Rolagem" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Etapa de rolagem horizontal" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Sobreposição de rolagem de página inteira" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Zoom minimo" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Zoom máximo" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Número máximo de páginas para manter no cache" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" -msgstr "" +msgstr "Tamanho máximo em pixels de miniaturas para manter no cache" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Numero de posições para lembrar na lista de salto" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Recolorindo (cor escura)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Recolorindo (cor clara)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Cor para destacar" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Cor para destacar (ativo)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "'Carregando ...' cor de fundo" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "'Carregando ...' cor de primeiro plano" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" -msgstr "" +msgstr "Cor modo de índice no primeiro plano" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" -msgstr "" +msgstr "Cor modo de índice, fundo" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" -msgstr "" +msgstr "Cor modo de índice no primeiro plano (elemento ativo)" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" -msgstr "" +msgstr "Cor modo de índice, fundo (elemento ativo)" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Recolorir páginas" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" "Quando recolorir, manter tonalidade original e ajustar somente a luminosidade" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" -msgstr "" +msgstr "Quando recolorir, manter cores de imagens originais" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Rolagem envoltório" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Rolagem de página consciente" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Numero de avanço de paginas por linha" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Zoom centrado horizontalmente" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "Alinhe destino do link à esquerda" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "Zoom será mudado quando seguir os links" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Resultado centrado horizontalmente" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Transparência para destacar" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Renderizando 'Carregando...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Ajuste para quando abrir o arquivo" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Mostrar arquivos ocultos e diretórios" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Mostrar diretórios" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Sempre abrir na primeira página" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Destaque resultados de busca" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Ativar pesquisa incremental" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Limpar resultados de busca ou abortar" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Usar nome do arquivo na barra de titulo" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Exibir o número da página no título da janela." -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Use o nome do arquivo na barra de status" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Ativar suporte synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" -msgstr "" +msgstr "Comando editor Synctex" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "Habilitar serviço D-Bus" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" "A área de transferência em que o dados selecionados com o mouse vão ser " "escritos" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" +msgstr "Habilitar notificação após a seleção de texto" + +#: zathura/config.c:252 +msgid "Sandbox level" msgstr "" #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Adicionar um favorito" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Deletar um favorito" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Listar todos favoritos" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Fechar arquivo atual" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Mostrar informações do arquivo" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Executar um comando" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Mostrar ajuda" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Abrir documento" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Fechar zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Imprimir documento" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Salvar documento" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Salvar documento (e forçar sobrescrever)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Salvar anexos" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Definir deslocamento da página" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Marcar localização atual no documento" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Apagar as marcas especificadas" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Não destacar resultados de busca atual" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Destacar resultado de busca atual" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Mostrar informações sobre a versão" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Falha ao executar xdg-open." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Link: página %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Link: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Link: Inválido" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Reparar a janela especificada por xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Caminho de diretório para configuração" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Caminho para diretório de dados" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" -msgstr "" +msgstr "Caminho para o diretório de cache" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Caminho de diretório que contenham plugins" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Deslocar no fundo" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Senha do documento" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Número da página para ir" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Nível de log (depurar, informação, aviso, erro)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Imprimir informações sobre a versão" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Editor synctex (encaminhado para o comando synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "Mover para determinada posição synctex" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "Destacar determinada posição no determinado processo" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "Começar em um modo não padrão" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Carregando..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Copiar imagem" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Salvar imagem para" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Impressão falhou: %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Este documento não contem qualquer índice" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Sem nome]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" "Não foi possível ler o arquivo a partir de stdin e gravá-lo em um arquivo " "temporário." -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" "Formato de arquivo não suportado. Por favor, instale o plugin necessário." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "Documento não contém quaisquer páginas" diff --git a/po/ru.po b/po/ru.po index 47e78fe..ae91e54 100644 --- a/po/ru.po +++ b/po/ru.po @@ -9,623 +9,681 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:09+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Russian (http://www.transifex.com/projects/p/zathura/language/" -"ru/)\n" +"Language-Team: Russian (http://www.transifex.com/pwmt/zathura/language/ru/)\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -"X-Generator: Poedit 1.8.7.1\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" -#: ../zathura/callbacks.c:233 -#, c-format -msgid "'%s' must not be 0. Set to 1." +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Минималистичный просмотрщик документов" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." msgstr "" -#: ../zathura/callbacks.c:315 +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 +#, c-format +msgid "'%s' must not be 0. Set to 1." +msgstr "«%s» не может быть 0, установлен как 1." + +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Неправильный ввод: %s." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Получен неверный индекс: %s." -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" +msgstr "Выделенный текст скопирован в выделение %s: %s" + +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Нет открытых документов." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Указано неверное число аргументов." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Не могу создать закладку %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Не удалось создать закладку %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Закладка %s успешно обновлена" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Закладка %s успешно создана" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Закладка %s удалена" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Не удалось удалить закладку %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Закладки %s не существует" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "Заголовок" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "Автор" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "Тема" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "Ключевые слова" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "Создатель" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "Производитель" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "Время создания" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "Время изменения" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Нет доступной информации." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Слишком много аргументов." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Отсутствуют аргументы." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Документ сохранён." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Не удалось сохранить документ." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Неверное количество аргументов." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Не удалось сохранить приложенный файл «%s» в «%s»." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Файл «%s» сохранён в «%s»." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Изображение «%s» сохранено в «%s»." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Не удалось записать изображение «%s» в «%s»." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Неизвестное изображение «%s»." -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Неизвестное вложение или изображение «%s»." -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Аргумент должен быть числом." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Страница %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Прикреплённые файлы" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Изображения" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Бэкэнд базы данных" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Шаг увеличения" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Разрыв между страницами" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Количество страниц в ряд" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "Столбец первой страницы" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Шаг прокрутки" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Шаг горизонтальной прокрутки" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Перекрытие страниц при прокрутке" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Минимальное увеличение" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Максимальное увеличение" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "Максимальное количество страниц хранимых в кэше" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" -msgstr "" +msgstr "Максимальный размер в пикселях для миниатюр хранимых в кэше" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Длина истории переходов" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Перекрашивание (тёмные тона)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Перекрашивание (светлые тона)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Цвет для подсветки" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Цвет для подсветки (активной)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "Цвет фона загрузочной заставки" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "Цвет загрузочной заставки" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" -msgstr "" +msgstr "Основной цвет в режиме указателя" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" -msgstr "" +msgstr "Фоновый цвет в режиме указателя" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" -msgstr "" +msgstr "Основной цвет в режиме указателя (активный элемент)" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" -msgstr "" +msgstr "Фоновый цвет в режиме указателя (активный элемент)" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Перекрасить страницы" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "При перекраске сохранять оттенок и изменять только осветление" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" -msgstr "" +msgstr "При перекраске сохранять исходные цвета изображения" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Плавная прокрутка" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "Постраничная прокрутка" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Увеличить количество страниц в ряду" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Центрировать увеличение по горизонтали" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "Выровнять цель ссылки по левому краю" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "Разрешить изменять размер при следовании по ссылкам" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "Центрировать результат по горизонтали" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Прозрачность подсветки" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Рендер «Загружается ...»" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Подогнать размеры при открытии документа" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Показывать скрытые файлы и каталоги" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Показывать каталоги" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" -msgstr "" +msgstr "Показывать последние файлы" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Всегда открывать на первой странице" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Подсветить результаты поиска" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Включить инкрементальный поиск" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Сбросить результаты при отмене поиска" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Использовать базовое имя файла в заголовке" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" -msgstr "" +msgstr "Использовать ~ вместо $HOME в имени файла в заголовке" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "Показывать номер страницы в заголовке" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "Использовать базовое имя файла в строке состояния" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" -msgstr "" +msgstr "Использовать ~ вместо $HOME в имени файла в строке состояния" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "Включить поддержку synctex" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" -msgstr "" +msgstr "Команда редактору от synctex" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "Включить сервис D-Bus" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "Буфер для записи данных из области выделенных мышкой" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" +msgstr "Включить уведомления после выделения текста" + +#: zathura/config.c:252 +msgid "Sandbox level" msgstr "" #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Добавить закладку" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Удалить закладку" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Показать все закладки" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Закрыть текущий файл" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Показать информацию о файле" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Выполнить команду" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Помощь" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Открыть документ" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Выход" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Печать" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Сохранить документ" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Сохранить документ (с перезаписью)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Сохранить прикреплённые файлы" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Сохранить смещение страницы" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Пометить текущую позицию в документе" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Удалить указанные пометки" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Не подсвечивать результаты текущего поиска" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Подсветить результаты текущего поиска" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Показать информацию о версии файла" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Не удалось запустить xdg-open" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "Ссылка: страница %d" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "Ссылка: %s" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "Ссылка: неправильная" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Сменить материнское окно на окно, указанное в xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Путь к каталогу с настройкой" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Путь к каталогу с данными" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" -msgstr "" +msgstr "Путь к каталогу с кэшем" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Путь к каталогу с плагинами" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Запустить в фоне" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Пароль документа" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "Перейти к странице номер" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Уровень журналирования (debug, info, warning, error)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Показать информацию о файле" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Редактор для synctex (передаётся далее программе synctex)" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "Перейти к указанному положению synctex" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "Подсветка заданного положения в заданном процессе" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "Запустить в специальном режиме" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Загрузка..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Скопировать изображение" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Сохранить изображение как" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "Не удалось напечатать %s" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "В документе нет индекса" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Без названия]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" "Не удалось прочитать файл со стандартного входа и записать его во временный " "файл." -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" +"Не удалось прочитать файл через GIO и скопировать его во временный файл." -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" -msgstr "" +msgstr "Введите пароль:" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "Тип файла не поддерживается. Установите соответствующий плагин." -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "В документе нет страниц" diff --git a/po/ta_IN.po b/po/ta_IN.po index c109e92..15b4147 100644 --- a/po/ta_IN.po +++ b/po/ta_IN.po @@ -6,619 +6,677 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2014-01-31 09:37+0000\n" -"Last-Translator: mankand007 \n" -"Language-Team: Tamil (India) (http://www.transifex.net/projects/p/zathura/" -"language/ta_IN/)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" +"Last-Translator: Sebastian Ramacher \n" +"Language-Team: Tamil (India) (http://www.transifex.com/pwmt/zathura/language/" +"ta_IN/)\n" "Language: ta_IN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "கொடுக்கப்பட்ட உள்ளீடு(input) '%s' தவறு" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "கொடுக்கப்பட்ட index '%s' தவறு" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "எந்தக் ஆவணமும் திறக்கப்படவில்லை" -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "கொடுக்கப்பட்ட arguments-களின் எண்ணிக்கை தவறு" -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Bookmark-ஐ உருவாக்க முடியவில்லை: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Bookmark-ஐ உருவாக்க முடியவில்லை: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Bookmark வெற்றிகரமாக நிகழ்நிலை(update) படுத்தப்பட்டது: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Bookmark வெற்றிகரமாக உருவாக்கப்பட்டது: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Bookmark அழிக்கப்பட்டது: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Bookmark-ஐ அழிக்க இயலவில்லை: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "அந்தப் பெயரில் எந்த bookmark-ம் இல்லை: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "எந்தத் தகவலும் இல்லை" -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Argumentகளின் எண்ணிக்கை மிகவும் அதிகம்" -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "எந்த argument-ம் தரப்படவில்லை" -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "கோப்பு சேமிக்கப்பட்டது" -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "ஆவணத்தை சேமிக்க இயலவில்லை" -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "கொடுக்கப்பட்ட argument-களின் எண்ணிக்கை தவறு" -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Argument ஒரு எண்ணாக இருக்க வேண்டும்" -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "இணைப்புகளைச் சேமிக்கவும்" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Zoom அமைப்பு" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "இரு பக்கங்களுக்கிடையில் உள்ள நிரப்பல்(padding)" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "ஒரு வரிசையில் எத்தனை பக்கங்களைக் காட்ட வேண்டும்" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "திரை உருளல்(scroll) அளவு" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "முடிந்தவரை சிறியதாகக் காட்டு" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "முடிந்தவரை பெரிதாகக் காட்டு" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "புதிய bookmark உருவாக்கு" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Bookmark-ஐ அழித்துவிடு" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "அனைத்து bookmark-களையும் பட்டியலிடு" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "ஆவணம் பற்றிய தகவல்களைக் காட்டு" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "உதவியைக் காட்டு" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "ஒரு ஆவணத்தைத் திற" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "zathura-வை விட்டு வெளியேறு" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "ஆவணத்தை அச்சிடு" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "ஆவணத்தை சேமிக்கவும்" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "இணைப்புகளைச் சேமிக்கவும்" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "xdg-open-ஐ இயக்க முடியவில்லை" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "ஆவணம் பற்றிய தகவல்களைக் காட்டு" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "" -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "படத்தை ஒரு பிரதியெடு" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "இந்த ஆவணத்தில் எந்த index-ம் இல்லை" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "பெயரற்ற ஆவணம்" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/tr.po b/po/tr.po index b8c7e6c..cb553af 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7,620 +7,676 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:09+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Turkish (http://www.transifex.net/projects/p/zathura/language/" -"tr/)\n" +"Language-Team: Turkish (http://www.transifex.com/pwmt/zathura/language/tr/)\n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 1.8.7.1\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Minimalist bir belge görüntüleyicisi" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Hatalı girdi '%s'" -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Hatalı dizin '%s'" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Açık belge yok." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Yanlış sayıda argüman" -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Yer imi yaratılamadı: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Yer imi yaratılamadı: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Yer imi başarıyla güncellendi: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Yer imi yaratıldı: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Yer imi silindi: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Yer imi silinemedi: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Böyle bir yer imi yok: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Bilgi mevcut değil." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Çok fazla sayıda argüman." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Argüman verilmedi." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Belge kaydedildi." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Belge kaydedilemedi." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Yanlış sayıda argüman." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazılamadı." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazıldı." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazıldı." -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazılamadı." -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "Tanınmayan resim dosyası '%s'" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Tanınmayan eklenti veya resim dosyası '%s'" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Argüman bir sayı olmalı." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "Sayfa %d" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "Ekleri kaydet" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "Resimler" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Veritabanı arkayüzü" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Yakınlaşma/uzaklaşma aralığı" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Sayfalar arasındaki boşluk" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Satır başına sayfa sayısı" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "İlk sayfanın sütunu" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Kaydırma aralığı" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "Yatay kaydırma adımı" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "Tam ekran kaydırma kaplaması" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "En fazla uzaklaşma" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "En fazla yakınlaşma" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "Atlama listesinde hatırlanacak pozisyon sayısı" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Renk değişimi (koyu renk)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Renk değişimi (açık renk)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "İşaretleme rengi" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "İşaretleme rengi (etkin)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Sayga rengini değiştir" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "Yeniden renklendirirken renk değerini tut ve sadece parlaklığı ayarla" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Kaydırmayı sarmala" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "Satır başına sayfa sayısı" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "Yatay olarak ortalanmış büyütme" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Ön plana çıkarmak için saydamlaştır" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "'Yüklüyor ...' yazısını göster" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Dosya açarken ayarla" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Gizli dosyaları ve dizinleri göster" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Dizinleri göster" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Her zaman ilk sayfayı aç" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "Arama sonuçlarını vurgula" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "Artımlı aramayı etkinleştir" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "Kapatınca arama sonuçlarını temizle" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "Pencere başlığı olarak dosyanın adını kullan" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Yer imi ekle" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Yer imi sil" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Yer imlerini listele" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Geçerli dosyayı kapat" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Dosya bilgisi göster" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "Bir komut çalıştır" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Yardım bilgisi göster" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Belge aç" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Zathura'yı kapat" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Belge yazdır" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Belgeyi kaydet" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Belgeyi kaydet (ve sormadan üzerine yaz)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Ekleri kaydet" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Sayfa derinliğini ayarla" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "Bu belgede bu konumu işaretle" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "Seçilen işaretlemeleri sil" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "Şuanki arama sonuçlarını vurgulama" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "Şuanki arama sonuçlarını vurgula" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "Versiyon bilgisi göster" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "xdg-open çalıştırılamadı" -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Xid tarafından belirlendiği gibi bir üst seviye pencereye bağlı (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Ayar dizini adresi" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Veri dizini adresi" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Eklentileri içeren dizinin adresi" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Arka planda işlemden çocuk oluştur" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "Belge şifresi" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Kayıt seviyesi (hata ayıklama, bilgi, uyarı, hata)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Dosya bilgisi göster" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "Yüklüyor ..." -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Resim kopyala" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "Resmi farklı kaydet" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Bu belge fihrist içermiyor" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[İsimsiz]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/po/uk_UA.po b/po/uk_UA.po index 5c7f2b7..8fc6315 100644 --- a/po/uk_UA.po +++ b/po/uk_UA.po @@ -6,621 +6,678 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2017-06-25 21:55+0200\n" -"PO-Revision-Date: 2016-04-18 21:08+0200\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-16 01:11+0100\n" +"PO-Revision-Date: 2018-03-11 19:53+0000\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: Ukrainian (Ukraine) (http://www.transifex.com/projects/p/" -"zathura/language/uk_UA/)\n" +"Language-Team: Ukrainian (Ukraine) (http://www.transifex.com/pwmt/zathura/" +"language/uk_UA/)\n" "Language: uk_UA\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -"X-Generator: Poedit 1.8.7.1\n" -#: ../zathura/callbacks.c:233 +#: data/org.pwmt.zathura.appdata.xml.in:7 data/org.pwmt.zathura.desktop.in:5 +msgid "Zathura" +msgstr "Zathura" + +#: data/org.pwmt.zathura.appdata.xml.in:8 data/org.pwmt.zathura.desktop.in:6 +msgid "A minimalistic document viewer" +msgstr "Легкий переглядач документів" + +#: data/org.pwmt.zathura.appdata.xml.in:10 +msgid "" +"Zathura is a highly customizable and functional document viewer. It provides " +"a minimalistic and space saving interface as well as an easy usage that " +"mainly focuses on keyboard interaction. Zathura makes it possible to " +"completely view and navigate through documents without using a mouse." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:21 +msgid "SyncTeX forward and backward synchronization support." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:22 +msgid "Quickmarks and bookmarks." +msgstr "" + +#: data/org.pwmt.zathura.appdata.xml.in:23 +msgid "Automatic document reloading." +msgstr "" + +#. Translators: Icon of the desktop entry. +#: data/org.pwmt.zathura.desktop.in:9 +msgid "org.pwmt.zathura" +msgstr "" + +#. Translators: Search terms to find this application. Do not translate or +#. localize the semicolons. The list must also end with a semicolon. +#: data/org.pwmt.zathura.desktop.in:14 +msgid "PDF;PS;PostScript;DjVU;document;presentation;viewer;" +msgstr "" + +#: zathura/callbacks.c:308 #, c-format msgid "'%s' must not be 0. Set to 1." msgstr "" -#: ../zathura/callbacks.c:315 +#: zathura/callbacks.c:390 #, c-format msgid "Invalid input '%s' given." msgstr "Вказано невірний аргумент: %s." -#: ../zathura/callbacks.c:351 +#: zathura/callbacks.c:426 #, c-format msgid "Invalid index '%s' given." msgstr "Вказано невірний індекс: %s" -#: ../zathura/callbacks.c:590 +#: zathura/callbacks.c:665 #, c-format msgid "Copied selected text to selection %s: %s" msgstr "" -#: ../zathura/commands.c:36 ../zathura/commands.c:76 ../zathura/commands.c:103 -#: ../zathura/commands.c:152 ../zathura/commands.c:268 -#: ../zathura/commands.c:298 ../zathura/commands.c:324 -#: ../zathura/commands.c:424 ../zathura/commands.c:551 -#: ../zathura/shortcuts.c:413 ../zathura/shortcuts.c:1225 -#: ../zathura/shortcuts.c:1260 ../zathura/shortcuts.c:1287 +#: zathura/callbacks.c:698 +#, c-format +msgid "Copied selected image to selection %s" +msgstr "" + +#: zathura/commands.c:36 zathura/commands.c:76 zathura/commands.c:103 +#: zathura/commands.c:165 zathura/commands.c:279 zathura/commands.c:313 +#: zathura/commands.c:339 zathura/commands.c:439 zathura/commands.c:566 +#: zathura/shortcuts.c:413 zathura/shortcuts.c:1225 zathura/shortcuts.c:1260 +#: zathura/shortcuts.c:1287 msgid "No document opened." msgstr "Документ не відкрито." -#: ../zathura/commands.c:42 ../zathura/commands.c:82 ../zathura/commands.c:109 -#: ../zathura/commands.c:429 +#: zathura/commands.c:42 zathura/commands.c:82 zathura/commands.c:444 msgid "Invalid number of arguments given." msgstr "Вказана невірна кількість аргументів." -#: ../zathura/commands.c:53 +#: zathura/commands.c:53 #, c-format msgid "Could not update bookmark: %s" msgstr "Не можу створити закладку: %s" -#: ../zathura/commands.c:55 +#: zathura/commands.c:55 #, c-format msgid "Could not create bookmark: %s" msgstr "Не можу створити закладку: %s" -#: ../zathura/commands.c:60 +#: zathura/commands.c:60 #, c-format msgid "Bookmark successfully updated: %s" msgstr "Закладку вдало поновлено: %s" -#: ../zathura/commands.c:62 +#: zathura/commands.c:62 #, c-format msgid "Bookmark successfully created: %s" msgstr "Закладку створено вдало: %s" -#: ../zathura/commands.c:88 +#: zathura/commands.c:88 #, c-format msgid "Removed bookmark: %s" msgstr "Закладку видалено: %s" -#: ../zathura/commands.c:90 +#: zathura/commands.c:90 #, c-format msgid "Failed to remove bookmark: %s" msgstr "Видалення закладки невдалося: %s" -#: ../zathura/commands.c:116 +#: zathura/commands.c:119 +msgid "No bookmarks available." +msgstr "" + +#: zathura/commands.c:129 #, c-format msgid "No such bookmark: %s" msgstr "Такої закладки немає: %s" -#: ../zathura/commands.c:162 +#: zathura/commands.c:175 msgid "Title" msgstr "" -#: ../zathura/commands.c:163 +#: zathura/commands.c:176 msgid "Author" msgstr "" -#: ../zathura/commands.c:164 +#: zathura/commands.c:177 msgid "Subject" msgstr "" -#: ../zathura/commands.c:165 +#: zathura/commands.c:178 msgid "Keywords" msgstr "" -#: ../zathura/commands.c:166 +#: zathura/commands.c:179 msgid "Creator" msgstr "" -#: ../zathura/commands.c:167 +#: zathura/commands.c:180 msgid "Producer" msgstr "" -#: ../zathura/commands.c:168 +#: zathura/commands.c:181 msgid "Creation date" msgstr "" -#: ../zathura/commands.c:169 +#: zathura/commands.c:182 msgid "Modification date" msgstr "" -#: ../zathura/commands.c:174 ../zathura/commands.c:196 +#: zathura/commands.c:187 zathura/commands.c:207 msgid "No information available." msgstr "Інформація недоступна." -#: ../zathura/commands.c:234 +#: zathura/commands.c:245 msgid "Too many arguments." msgstr "Забагато аргументів." -#: ../zathura/commands.c:245 +#: zathura/commands.c:256 msgid "No arguments given." msgstr "Жодного аргументу не вказано." -#: ../zathura/commands.c:304 ../zathura/commands.c:330 +#: zathura/commands.c:286 +msgid "Printing is not permitted in strict sandbox mode" +msgstr "" + +#: zathura/commands.c:319 zathura/commands.c:345 msgid "Document saved." msgstr "Документ збережено." -#: ../zathura/commands.c:306 ../zathura/commands.c:332 +#: zathura/commands.c:321 zathura/commands.c:347 msgid "Failed to save document." msgstr "Документ не вдалося зберегти." -#: ../zathura/commands.c:309 ../zathura/commands.c:335 +#: zathura/commands.c:324 zathura/commands.c:350 msgid "Invalid number of arguments." msgstr "Невірна кількість аргументів." -#: ../zathura/commands.c:448 +#: zathura/commands.c:463 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Неможливо записати прикріплення '%s' до '%s'." -#: ../zathura/commands.c:450 +#: zathura/commands.c:465 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Прикріплення записано %s до %s." -#: ../zathura/commands.c:494 +#: zathura/commands.c:509 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:496 +#: zathura/commands.c:511 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../zathura/commands.c:503 +#: zathura/commands.c:518 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../zathura/commands.c:507 +#: zathura/commands.c:522 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../zathura/commands.c:564 +#: zathura/commands.c:579 msgid "Argument must be a number." msgstr "Аргумент повинен бути цифрою." -#: ../zathura/completion.c:283 +#: zathura/completion.c:287 #, c-format msgid "Page %d" msgstr "" -#: ../zathura/completion.c:326 +#: zathura/completion.c:330 msgid "Attachments" msgstr "" #. add images -#: ../zathura/completion.c:357 +#: zathura/completion.c:361 msgid "Images" msgstr "" #. zathura settings -#: ../zathura/config.c:145 +#: zathura/config.c:145 msgid "Database backend" msgstr "Буфер бази" -#: ../zathura/config.c:146 +#: zathura/config.c:146 msgid "File monitor backend" msgstr "" -#: ../zathura/config.c:148 +#: zathura/config.c:148 msgid "Zoom step" msgstr "Збільшення" -#: ../zathura/config.c:150 +#: zathura/config.c:150 msgid "Padding between pages" msgstr "Заповнення між сторінками" -#: ../zathura/config.c:152 +#: zathura/config.c:152 msgid "Number of pages per row" msgstr "Кількість сторінок в одному рядку" -#: ../zathura/config.c:154 +#: zathura/config.c:154 msgid "Column of the first page" msgstr "" -#: ../zathura/config.c:156 +#: zathura/config.c:156 msgid "Scroll step" msgstr "Прокручування" -#: ../zathura/config.c:158 +#: zathura/config.c:158 msgid "Horizontal scroll step" msgstr "" -#: ../zathura/config.c:160 +#: zathura/config.c:160 msgid "Full page scroll overlap" msgstr "" -#: ../zathura/config.c:162 +#: zathura/config.c:162 msgid "Zoom minimum" msgstr "Максимальне зменшення" -#: ../zathura/config.c:164 +#: zathura/config.c:164 msgid "Zoom maximum" msgstr "Максимальне збільшення" -#: ../zathura/config.c:166 +#: zathura/config.c:166 msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../zathura/config.c:168 +#: zathura/config.c:168 msgid "Maximum size in pixels of thumbnails to keep in the cache" msgstr "" -#: ../zathura/config.c:170 +#: zathura/config.c:170 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../zathura/config.c:172 +#: zathura/config.c:172 msgid "Recoloring (dark color)" msgstr "Перефарбування (темний колір)" -#: ../zathura/config.c:173 +#: zathura/config.c:173 msgid "Recoloring (light color)" msgstr "Перефарбування (світлий колір)" -#: ../zathura/config.c:174 +#: zathura/config.c:174 msgid "Color for highlighting" msgstr "Колір для виділення" -#: ../zathura/config.c:176 +#: zathura/config.c:176 msgid "Color for highlighting (active)" msgstr "Колір для виділення (активний)" -#: ../zathura/config.c:178 +#: zathura/config.c:178 msgid "'Loading ...' background color" msgstr "" -#: ../zathura/config.c:180 +#: zathura/config.c:180 msgid "'Loading ...' foreground color" msgstr "" -#: ../zathura/config.c:183 +#: zathura/config.c:183 msgid "Index mode foreground color" msgstr "" -#: ../zathura/config.c:184 +#: zathura/config.c:184 msgid "Index mode background color" msgstr "" -#: ../zathura/config.c:185 +#: zathura/config.c:185 msgid "Index mode foreground color (active element)" msgstr "" -#: ../zathura/config.c:186 +#: zathura/config.c:186 msgid "Index mode background color (active element)" msgstr "" -#: ../zathura/config.c:189 +#: zathura/config.c:189 msgid "Recolor pages" msgstr "Змінити кольори" -#: ../zathura/config.c:191 +#: zathura/config.c:191 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../zathura/config.c:193 +#: zathura/config.c:193 msgid "When recoloring keep original image colors" msgstr "" -#: ../zathura/config.c:195 +#: zathura/config.c:195 msgid "Wrap scrolling" msgstr "Плавне прокручування" -#: ../zathura/config.c:197 +#: zathura/config.c:197 msgid "Page aware scrolling" msgstr "" -#: ../zathura/config.c:199 +#: zathura/config.c:199 msgid "Advance number of pages per row" msgstr "" -#: ../zathura/config.c:201 +#: zathura/config.c:201 msgid "Horizontally centered zoom" msgstr "" -#: ../zathura/config.c:203 +#: zathura/config.c:203 msgid "Vertically center pages" msgstr "" -#: ../zathura/config.c:205 +#: zathura/config.c:205 msgid "Align link target to the left" msgstr "" -#: ../zathura/config.c:207 +#: zathura/config.c:207 msgid "Let zoom be changed when following links" msgstr "" -#: ../zathura/config.c:209 +#: zathura/config.c:209 msgid "Center result horizontally" msgstr "" -#: ../zathura/config.c:211 +#: zathura/config.c:211 msgid "Transparency for highlighting" msgstr "Прозорість для виділення" -#: ../zathura/config.c:213 +#: zathura/config.c:213 msgid "Render 'Loading ...'" msgstr "Рендер 'Завантажується ...'" -#: ../zathura/config.c:214 +#: zathura/config.c:214 msgid "Adjust to when opening file" msgstr "Підлаштовутись при відкритті файлу" -#: ../zathura/config.c:216 +#: zathura/config.c:216 msgid "Show hidden files and directories" msgstr "Показати приховані файли та директорії" -#: ../zathura/config.c:218 +#: zathura/config.c:218 msgid "Show directories" msgstr "Показати диреторії" -#: ../zathura/config.c:220 +#: zathura/config.c:220 msgid "Show recent files" msgstr "" -#: ../zathura/config.c:222 +#: zathura/config.c:222 msgid "Always open on first page" msgstr "Завжди відкривати на першій сторінці" -#: ../zathura/config.c:224 +#: zathura/config.c:224 msgid "Highlight search results" msgstr "" -#: ../zathura/config.c:227 +#: zathura/config.c:227 msgid "Enable incremental search" msgstr "" -#: ../zathura/config.c:229 +#: zathura/config.c:229 msgid "Clear search results on abort" msgstr "" -#: ../zathura/config.c:231 +#: zathura/config.c:231 msgid "Use basename of the file in the window title" msgstr "" -#: ../zathura/config.c:233 +#: zathura/config.c:233 msgid "Use ~ instead of $HOME in the filename in the window title" msgstr "" -#: ../zathura/config.c:235 +#: zathura/config.c:235 msgid "Display the page number in the window title" msgstr "" -#: ../zathura/config.c:237 +#: zathura/config.c:237 msgid "Use basename of the file in the statusbar" msgstr "" -#: ../zathura/config.c:239 +#: zathura/config.c:239 msgid "Use ~ instead of $HOME in the filename in the statusbar" msgstr "" -#: ../zathura/config.c:241 +#: zathura/config.c:241 msgid "Enable synctex support" msgstr "" -#: ../zathura/config.c:243 +#: zathura/config.c:243 msgid "Synctex editor command" msgstr "" -#: ../zathura/config.c:245 +#: zathura/config.c:245 msgid "Enable D-Bus service" msgstr "" -#: ../zathura/config.c:247 +#: zathura/config.c:247 msgid "Save history at each page change" msgstr "" -#: ../zathura/config.c:249 +#: zathura/config.c:249 msgid "The clipboard into which mouse-selected data will be written" msgstr "" -#: ../zathura/config.c:251 +#: zathura/config.c:251 msgid "Enable notification after selecting text" msgstr "" +#: zathura/config.c:252 +msgid "Sandbox level" +msgstr "" + #. define default inputbar commands -#: ../zathura/config.c:440 +#: zathura/config.c:441 msgid "Add a bookmark" msgstr "Додати закладку" -#: ../zathura/config.c:441 +#: zathura/config.c:442 msgid "Delete a bookmark" msgstr "Вилучити закладку" -#: ../zathura/config.c:442 +#: zathura/config.c:443 msgid "List all bookmarks" msgstr "Дивитись усі закладки" -#: ../zathura/config.c:443 +#: zathura/config.c:444 msgid "Close current file" msgstr "Закрити документ" -#: ../zathura/config.c:444 +#: zathura/config.c:445 msgid "Show file information" msgstr "Показати інформацію файлу" -#: ../zathura/config.c:445 ../zathura/config.c:446 +#: zathura/config.c:446 zathura/config.c:447 msgid "Execute a command" msgstr "" #. like vim -#: ../zathura/config.c:447 +#: zathura/config.c:448 msgid "Show help" msgstr "Показати довідку" -#: ../zathura/config.c:448 +#: zathura/config.c:449 msgid "Open document" msgstr "Відкрити документ" -#: ../zathura/config.c:449 +#: zathura/config.c:450 msgid "Close zathura" msgstr "Вийти із zathura" -#: ../zathura/config.c:450 +#: zathura/config.c:451 msgid "Print document" msgstr "Друкувати документ" -#: ../zathura/config.c:451 +#: zathura/config.c:452 msgid "Save document" msgstr "Зберегти документ" -#: ../zathura/config.c:452 +#: zathura/config.c:453 msgid "Save document (and force overwriting)" msgstr "Зберегти документ (форсувати перезапис)" -#: ../zathura/config.c:453 +#: zathura/config.c:454 msgid "Save attachments" msgstr "Зберегти прикріплення" -#: ../zathura/config.c:454 +#: zathura/config.c:455 msgid "Set page offset" msgstr "Встановити зміщення сторінки" -#: ../zathura/config.c:455 +#: zathura/config.c:456 msgid "Mark current location within the document" msgstr "" -#: ../zathura/config.c:456 +#: zathura/config.c:457 msgid "Delete the specified marks" msgstr "" -#: ../zathura/config.c:457 +#: zathura/config.c:458 msgid "Don't highlight current search results" msgstr "" -#: ../zathura/config.c:458 +#: zathura/config.c:459 msgid "Highlight current search results" msgstr "" -#: ../zathura/config.c:459 +#: zathura/config.c:460 msgid "Show version information" msgstr "" -#: ../zathura/links.c:203 ../zathura/links.c:282 +#: zathura/links.c:211 +msgid "Opening external applications in strict sandbox mode is not permitted" +msgstr "" + +#: zathura/links.c:214 zathura/links.c:295 msgid "Failed to run xdg-open." msgstr "Запуск xdg-open не вдався." -#: ../zathura/links.c:221 +#: zathura/links.c:234 #, c-format msgid "Link: page %d" msgstr "" -#: ../zathura/links.c:228 +#: zathura/links.c:241 #, c-format msgid "Link: %s" msgstr "" -#: ../zathura/links.c:232 +#: zathura/links.c:245 msgid "Link: Invalid" msgstr "" -#: ../zathura/main.c:146 +#: zathura/main.c:150 msgid "Reparents to window specified by xid (X11)" msgstr "Вертатися до вікна, вказаного xid (X11)" -#: ../zathura/main.c:147 +#: zathura/main.c:151 msgid "Path to the config directory" msgstr "Шлях до теки конфігурації" -#: ../zathura/main.c:148 +#: zathura/main.c:152 msgid "Path to the data directory" msgstr "Шлях до теки з даними" -#: ../zathura/main.c:149 +#: zathura/main.c:153 msgid "Path to the cache directory" msgstr "" -#: ../zathura/main.c:150 +#: zathura/main.c:154 msgid "Path to the directories containing plugins" msgstr "Шлях до теки з плаґінами" -#: ../zathura/main.c:151 +#: zathura/main.c:155 msgid "Fork into the background" msgstr "Працювати у фоні" -#: ../zathura/main.c:152 +#: zathura/main.c:156 msgid "Document password" msgstr "" -#: ../zathura/main.c:153 +#: zathura/main.c:157 msgid "Page number to go to" msgstr "" -#: ../zathura/main.c:154 +#: zathura/main.c:158 msgid "Log level (debug, info, warning, error)" msgstr "Рівень логування (налагодження, інфо, застереження, помилка)" -#: ../zathura/main.c:155 +#: zathura/main.c:159 msgid "Print version information" msgstr "Показати інформацію файлу" -#: ../zathura/main.c:157 +#: zathura/main.c:161 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../zathura/main.c:158 +#: zathura/main.c:162 msgid "Move to given synctex position" msgstr "" -#: ../zathura/main.c:159 +#: zathura/main.c:163 msgid "Highlight given position in the given process" msgstr "" -#: ../zathura/main.c:161 +#: zathura/main.c:165 msgid "Start in a non-default mode" msgstr "" -#: ../zathura/page-widget.c:561 +#: zathura/page-widget.c:660 msgid "Loading..." msgstr "" -#: ../zathura/page-widget.c:1007 +#: zathura/page-widget.c:1114 msgid "Copy image" msgstr "Копіювати картинку" -#: ../zathura/page-widget.c:1008 +#: zathura/page-widget.c:1115 msgid "Save image as" msgstr "" -#: ../zathura/print.c:64 ../zathura/print.c:227 +#: zathura/print.c:64 zathura/print.c:227 #, c-format msgid "Printing failed: %s" msgstr "" -#: ../zathura/shortcuts.c:105 +#: zathura/shortcuts.c:105 #, c-format msgid "Invalid adjust mode: %d" msgstr "" -#: ../zathura/shortcuts.c:977 +#: zathura/shortcuts.c:977 #, c-format msgid "Pattern not found: %s" msgstr "" -#: ../zathura/shortcuts.c:1135 +#: zathura/shortcuts.c:1135 msgid "This document does not contain any index" msgstr "Індекс відсутній в цьому документі" -#: ../zathura/zathura.c:216 ../zathura/zathura.c:1268 +#: zathura/zathura.c:295 zathura/zathura.c:1367 msgid "[No name]" msgstr "[Без назви]" -#: ../zathura/zathura.c:645 +#: zathura/zathura.c:732 msgid "Could not read file from stdin and write it to a temporary file." msgstr "" -#: ../zathura/zathura.c:661 +#: zathura/zathura.c:748 msgid "Could not read file from GIO and copy it to a temporary file." msgstr "" -#: ../zathura/zathura.c:750 +#: zathura/zathura.c:837 msgid "Enter password:" msgstr "" -#: ../zathura/zathura.c:785 +#: zathura/zathura.c:872 msgid "Unsupported file type. Please install the necessary plugin." msgstr "" -#: ../zathura/zathura.c:795 +#: zathura/zathura.c:882 msgid "Document does not contain any pages" msgstr "" diff --git a/tests/Makefile b/tests/Makefile deleted file mode 100644 index 99e8da7..0000000 --- a/tests/Makefile +++ /dev/null @@ -1,132 +0,0 @@ -# See LICENSE file for license and copyright information - -include ../config.mk -include ../colors.mk -include ../common.mk - -include config.mk - -PROJECT = tests -SOURCE = tests.c $(wildcard test_*.c) -OBJECTS = $(addprefix ${BUILDDIR_RELEASE}/,${SOURCE:.c=.o}) -OBJECTS_DEBUG = $(addprefix ${BUILDDIR_DEBUG}/,${SOURCE:.c=.o}) -OBJECTS_GCOV = $(addprefix ${BUILDDIR_GCOV}/,${SOURCE:.c=.o}) - -FILTER = %/main.o - -ifneq (${WITH_SQLITE},0) -CPPFLAGS += -DWITH_SQLITE -else -FILTER += %/database-sqlite.o -endif - -ifneq ($(WITH_MAGIC),0) -CPPFLAGS += -DWITH_MAGIC -endif - -ifneq ($(WITH_SYNCTEX),0) -CPPFLAGS += -DWITH_SYNCTEX -endif - -ZATHURA_OBJECTS = \ - $(filter-out $(FILTER), $(wildcard ../${BUILDDIR_RELEASE}/zathura/*.o)) -ZATHURA_OBJECTS_DEBUG = \ - $(filter-out $(FILTER), $(wildcard ../${BUILDDIR_DEBUG}/zathura/*.o)) -ZATHURA_OBJECTS_GCOV= \ - $(filter-out $(FILTER), $(wildcard ../${BUILDDIR_GCOV}/zathura/*.o)) - -ifneq ($(wildcard ${VALGRIND_SUPPRESSION_FILE}),) -VALGRIND_ARGUMENTS += --suppressions=${VALGRIND_SUPPRESSION_FILE} -endif - -all: release - -# release - -${OBJECTS}: config.mk ../config.mk ../zathura/version.h - -${BUILDDIR_RELEASE}/%.o: %.c - $(call colorecho,CC,$<) - @mkdir -p ${DEPENDDIR}/$(dir $(abspath $@)) - @mkdir -p $(dir $(abspath $@)) - $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} \ - -o $@ $< -MMD -MF ${DEPENDDIR}/$(abspath $@).dep - -${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT}: ${OBJECTS} - $(QUIET)${MAKE} WITH_LIBFIU=1 -C .. ${BUILDDIR_RELEASE}/${BINDIR}/zathura - $(call colorecho,CC,$@) - @mkdir -p ${BUILDDIR_RELEASE}/${BINDIR} - $(QUIET)${CC} ${SFLAGS} ${LDFLAGS} \ - -o ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} \ - ${OBJECTS} ${ZATHURA_OBJECTS} ${LIBS} - -release: ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} - -run: ${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} - $(QUIET)${FIU_EXEC} ./${BUILDDIR_RELEASE}/${BINDIR}/${PROJECT} - -# debug - -${OBJECTS_DEBUG}: config.mk ../config.mk ../zathura/version.h - -${BUILDDIR_DEBUG}/%.o: %.c - @mkdir -p ${DEPENDDIR}/$(dir $(abspath $@)) - @mkdir -p $(dir $(abspath $@)) - $(call colorecho,CC,$<) - $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${DFLAGS} \ - -o $@ $< -MMD -MF ${DEPENDDIR}/$(abspath $@).dep - -${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT}: ${OBJECTS_DEBUG} - $(QUIET)${MAKE} WITH_LIBFIU=1 -C .. ${BUILDDIR_DEBUG}/${BINDIR}/zathura - $(call colorecho,CC,$@) - @mkdir -p ${BUILDDIR_DEBUG}/${BINDIR} - $(QUIET)${CC} ${SFLAGS} ${LDFLAGS} \ - -o ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} \ - ${OBJECTS} ${ZATHURA_OBJECTS_DEBUG} ${LIBS} - -debug: ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} - -run-debug: ${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} - $(QUIET)${FIU_EXEC} ./${BUILDDIR_DEBUG}/${BINDIR}/${PROJECT} - -# gcov - -${OBJECTS_GCOV}: config.mk ../config.mk ../zathura/version.h - -${BUILDDIR_GCOV}/%.o: %.c - @mkdir -p ${DEPENDDIR}/$(dir $(abspath $@)) - @mkdir -p $(dir $(abspath $@)) - $(call colorecho,CC,$<) - $(QUIET)${CC} -c ${CPPFLAGS} ${CFLAGS} ${GCOV_CFLAGS} ${DFLAGS} ${GCOV_DFLAGS} \ - -o $@ $< -MMD -MF ${DEPENDDIR}/$(abspath $@).dep - -${BUILDDIR_GCOV}/${BINDIR}/${PROJECT}: ${OBJECTS_GCOV} - $(QUIET)${MAKE} WITH_LIBFIU=1 -C .. ${BUILDDIR_GCOV}/${BINDIR}/zathura - $(call colorecho,CC,$@) - @mkdir -p ${BUILDDIR_GCOV}/${BINDIR} - $(QUIET)${CC} ${SFLAGS} ${LDFLAGS} ${GCOV_CFLAGS} ${GCOV_LDFLAGS} \ - -o ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} \ - ${OBJECTS} ${ZATHURA_OBJECTS_GCOV} ${LIBS} - -gcov: ${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} - -run-gcov: gcov - $(QUIET)${FIU_EXEC} ./${BUILDDIR_GCOV}/${BINDIR}/${PROJECT} - -../zathura/version.h: - $(MAKE) -C .. zathura/version.h - -valgrind: ${PROJECT}-debug - $(QUIET)G_SLICE=always-malloc G_DEBUG=gc-friendly ${FIU_EXEC} ${VALGRIND} ${VALGRIND_ARGUMENTS} ./${PROJECT}-debug - -clean: - $(call colorecho,RM, "Clean test files") - $(QUIET)rm -rf ${PROJECT} - $(QUIET)rm -rf ${PROJECT}-debug - $(QUIET)rm -rf ${PROJECT}-gcov - $(QUIET)rm -rf ${BUILDDIR} - $(QUIET)rm -rf ${DEPENDDIR} - -.PHONY: all clean debug run - --include $(wildcard ${DEPENDDIR}/*.dep) diff --git a/tests/config.mk b/tests/config.mk deleted file mode 100644 index d0cf5f7..0000000 --- a/tests/config.mk +++ /dev/null @@ -1,17 +0,0 @@ -# See LICENSE file for license and copyright information - -CHECK_INC ?= $(shell pkg-config --cflags check) -CHECK_LIB ?= $(shell pkg-config --libs check) - -INCS += ${CHECK_INC} ${FIU_INC} -I../zathura -LIBS += ${CHECK_LIB} ${FIU_LIB} - -ZATHURA_RELEASE=../${BUILDDIR_RELEASE}/${BINDIR}/zathura -ZATHURA_DEBUG=../${BUILDDIR_DEBUG}/${BINDIR}/zathura -ZATHURA_GCOV=../${BUILDDIR_GCOV}/${BINDIR}/zathura - -# valgrind -VALGRIND = valgrind -VALGRIND_ARGUMENTS = --tool=memcheck --leak-check=yes --leak-resolution=high \ - --show-reachable=yes --log-file=zathura-valgrind.log -VALGRIND_SUPPRESSION_FILE = zathura.suppression diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 0000000..ccf96e3 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,24 @@ +check = dependency('check', required: false) +if check.found() + test_dependencies = [ + declare_dependency(link_with: libzathura), + check + ] + + include_directories += [ include_directories('../zathura') ] + + test_sources = [ + 'tests.c', + 'test_document.c', + 'test_session.c', + 'test_utils.c' + ] + + tests = executable('tests', test_sources, + dependencies: build_dependencies + test_dependencies, + include_directories: include_directories, + c_args: defines + flags + ) + + test('tests', tests) +endif diff --git a/zathura.desktop b/zathura.desktop deleted file mode 100644 index f3ad926..0000000 --- a/zathura.desktop +++ /dev/null @@ -1,26 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Name=Zathura -Comment=A minimalistic document viewer -Comment[ca]=Un visualitzador de documents minimalista -Comment[cs]=Jednoduchý prohlížeč dokumentů -Comment[de]=Ein minimalistischer Dokumenten-Betrachter -Comment[el]=Ένας ελαφρύς προβολέας κειμένων -Comment[eo]=Malpeza dokumento spektanto -Comment[es_CL]=Un visor de documentos minimalista -Comment[fr]=Un visionneur de document minimaliste -Comment[he]=מציג מסמכים מינימליסטי -Comment[id_ID]=Pembaca dokumen minimalis -Comment[it]=Un visualizzatore di documenti minimalista -Comment[lt]=Paprasta dokumentų skaitytuvė -Comment[no]=En minimalistisk dokumentleser -Comment[pl]=Minimalistyczna przeglądarka dokumentów -Comment[pt_BR]=Um visualizador de documentos minimalista -Comment[ru]=Минималистичный просмотрщик документов -Comment[tr]=Minimalist bir belge görüntüleyicisi -Comment[uk_UA]=Легкий переглядач документів -Exec=zathura %U -Terminal=false -Categories=Office;Viewer; -Keywords=PDF;PS;PostScript;DjVU;document;presentation;viewer; diff --git a/zathura.pc.in b/zathura.pc.in deleted file mode 100644 index e76b38d..0000000 --- a/zathura.pc.in +++ /dev/null @@ -1,9 +0,0 @@ - -INC_PATH=-I${includedir} - -Name: ${project} -Description: document viewer -Version: ${version} -URL: http://pwmt.org/projects/zathura -Cflags: ${INC_PATH} -Requires.private: girara-gtk${GTK_VERSION} cairo diff --git a/zathura/adjustment.c b/zathura/adjustment.c index 9a10da5..b4d70a7 100644 --- a/zathura/adjustment.c +++ b/zathura/adjustment.c @@ -13,6 +13,7 @@ page_calc_height_width(zathura_document_t* document, double height, g_return_val_if_fail(document != NULL && page_height != NULL && page_width != NULL, 0.0); double scale = zathura_document_get_scale(document); + if (rotate == true && zathura_document_get_rotation(document) % 180 != 0) { *page_width = round(height * scale); *page_height = round(width * scale); diff --git a/zathura/adjustment.h b/zathura/adjustment.h index 0ae967c..a1c3da4 100644 --- a/zathura/adjustment.h +++ b/zathura/adjustment.h @@ -8,7 +8,7 @@ #include "document.h" /** - * Calculate the page size according to the corrent scaling and rotation if + * Calculate the page size according to the current scaling and rotation if * desired. * * @param document the document diff --git a/zathura/bookmarks.c b/zathura/bookmarks.c index 62932db..c16782a 100644 --- a/zathura/bookmarks.c +++ b/zathura/bookmarks.c @@ -134,7 +134,7 @@ zathura_bookmarks_load(zathura_t* zathura, const gchar* file) } int -zathura_bookmarks_compare(zathura_bookmark_t* lhs, zathura_bookmark_t* rhs) +zathura_bookmarks_compare(const zathura_bookmark_t* lhs, const zathura_bookmark_t* rhs) { if (lhs == NULL && rhs == NULL) { return 0; diff --git a/zathura/bookmarks.h b/zathura/bookmarks.h index 980cca0..5119c90 100644 --- a/zathura/bookmarks.h +++ b/zathura/bookmarks.h @@ -61,6 +61,6 @@ bool zathura_bookmarks_load(zathura_t* zathura, const gchar* file); * @param rhs a bookmark * @returns g_strcmp0(lhs->id, rhs->id) */ -int zathura_bookmarks_compare(zathura_bookmark_t* lhs, zathura_bookmark_t* rhs); +int zathura_bookmarks_compare(const zathura_bookmark_t* lhs, const zathura_bookmark_t* rhs); #endif // BOOKMARKS_H diff --git a/zathura/callbacks.c b/zathura/callbacks.c index 7db22f8..63024da 100644 --- a/zathura/callbacks.c +++ b/zathura/callbacks.c @@ -216,6 +216,81 @@ cb_refresh_view(GtkWidget* GIRARA_UNUSED(view), gpointer data) statusbar_page_number_update(zathura); } +void +cb_monitors_changed(GdkScreen* screen, gpointer data) +{ + girara_debug("signal received"); + + zathura_t* zathura = data; + if (screen == NULL || zathura == NULL) { + return; + } + + zathura_update_view_ppi(zathura); +} + +void +cb_widget_screen_changed(GtkWidget* widget, GdkScreen* previous_screen, gpointer data) +{ + girara_debug("called"); + + zathura_t* zathura = data; + if (widget == NULL || zathura == NULL) { + return; + } + + /* disconnect previous screen handler if present */ + if (previous_screen != NULL && zathura->signals.monitors_changed_handler > 0) { + g_signal_handler_disconnect(previous_screen, zathura->signals.monitors_changed_handler); + zathura->signals.monitors_changed_handler = 0; + } + + if (gtk_widget_has_screen(widget)) { + GdkScreen* screen = gtk_widget_get_screen(widget); + + /* connect to new screen */ + zathura->signals.monitors_changed_handler = g_signal_connect(G_OBJECT(screen), + "monitors-changed", G_CALLBACK(cb_monitors_changed), zathura); + } + + zathura_update_view_ppi(zathura); +} + +void +cb_widget_configured(GtkWidget* UNUSED(widget), GdkEvent* UNUSED(event), gpointer data) +{ + zathura_t* zathura = data; + if (zathura == NULL) { + return; + } + + zathura_update_view_ppi(zathura); +} + +void +cb_scale_factor(GObject* object, GParamSpec* UNUSED(pspec), gpointer data) +{ + zathura_t* zathura = data; + if (zathura == NULL || zathura->document == NULL) { + return; + } + + int new_factor = gtk_widget_get_scale_factor(GTK_WIDGET(object)); + if (new_factor == 0) { + girara_debug("Ignoring new device scale factor = 0"); + return; + } + + zathura_device_factors_t current = zathura_document_get_device_factors(zathura->document); + if (fabs(new_factor - current.x) >= DBL_EPSILON || + fabs(new_factor - current.y) >= DBL_EPSILON) { + zathura_document_set_device_factors(zathura->document, new_factor, new_factor); + girara_debug("New device scale factor: %d", new_factor); + zathura_update_view_ppi(zathura); + render_all(zathura); + } +} + void cb_page_layout_value_changed(girara_session_t* session, const char* name, girara_setting_type_t UNUSED(type), void* value, void* UNUSED(data)) { diff --git a/zathura/callbacks.h b/zathura/callbacks.h index 15e4ba1..bee54e0 100644 --- a/zathura/callbacks.h +++ b/zathura/callbacks.h @@ -79,6 +79,58 @@ void cb_view_vadjustment_changed(GtkAdjustment *adjustment, gpointer data); */ void cb_refresh_view(GtkWidget* view, gpointer data); +/** + * This function gets called when the monitors associated with the GdkScreen + * change. + * + * It checks for a change of monitor PPI, storing the new value and triggering + * a refresh if appropriate. + * + * @param screen The GDK screen + * @param gpointer The zathura instance + */ +void cb_monitors_changed(GdkScreen* screen, gpointer data); + +/** + * This function gets called when the screen associated with the view widget + * changes. + * + * It updates the connection on the monitors-changed signal and checks for a + * change of monitor PPI, storing the new value and triggering a refresh if + * appropriate. + * + * @param widget The view widget + * @param previous_screen The widget's previous screen + * @param gpointer The zathura instance + */ +void cb_widget_screen_changed(GtkWidget* widget, GdkScreen* previous_screen, gpointer data); + +/** + * This function gets called when the main window's size, position or stacking + * changes. + * + * It checks for a change of monitor PPI (due to the window moving between + * different monitors), storing the new value and triggering a refresh if + * appropriate. + * + * @param widget The main window widget + * @param event The configure event + * @param gpointer The zathura instance + */ +void cb_widget_configured(GtkWidget* widget, GdkEvent* event, gpointer data); + +/** + * This function gets called when the view widget scale factor changes (e.g. + * when moving from a regular to a HiDPI screen). + * + * It records the new value and triggers a re-rendering of the document. + * + * @param object The view widget + * @param pspec The GParamSpec for the scale-factor property + * @param gpointer The zathura instance + */ +void cb_scale_factor(GObject* object, GParamSpec* pspec, gpointer data); + /** * This function gets called when the value of the "pages-per-row" * variable changes diff --git a/zathura/commands.c b/zathura/commands.c index 1afb790..b6810ac 100644 --- a/zathura/commands.c +++ b/zathura/commands.c @@ -108,9 +108,9 @@ cmd_bookmark_open(girara_session_t* session, girara_list_t* argument_list) if (argc != 1) { GString* string = g_string_new(NULL); - GIRARA_LIST_FOREACH(zathura->bookmarks.bookmarks, zathura_bookmark_t*, iter, bookmark) + GIRARA_LIST_FOREACH_BODY(zathura->bookmarks.bookmarks, zathura_bookmark_t*, bookmark, g_string_append_printf(string, "%s: %u\n", bookmark->id, bookmark->page); - GIRARA_LIST_FOREACH_END(zathura->bookmarks.bookmarks, zathura_bookmark_t*, iter, bookmark); + ); if (strlen(string->str) > 0) { g_string_erase(string, strlen(string->str) - 1, 1); @@ -190,15 +190,15 @@ cmd_info(girara_session_t* session, girara_list_t* UNUSED(argument_list)) GString* string = g_string_new(NULL); - GIRARA_LIST_FOREACH(information, zathura_document_information_entry_t*, iter, entry) - if (entry != NULL) { - for (unsigned int i = 0; i < LENGTH(meta_fields); i++) { - if (meta_fields[i].field == entry->type) { - g_string_append_printf(string, "%s: %s\n", meta_fields[i].name, entry->value); + GIRARA_LIST_FOREACH_BODY(information, zathura_document_information_entry_t*, entry, + if (entry != NULL) { + for (unsigned int i = 0; i < LENGTH(meta_fields); i++) { + if (meta_fields[i].field == entry->type) { + g_string_append_printf(string, "%s: %s\n", meta_fields[i].name, entry->value); + } } } - } - GIRARA_LIST_FOREACH_END(information, zathura_document_information_entry_t*, iter, entry); + ); if (strlen(string->str) > 0) { g_string_erase(string, strlen(string->str) - 1, 1); @@ -280,6 +280,15 @@ cmd_print(girara_session_t* session, girara_list_t* UNUSED(argument_list)) return false; } + char* sandbox = NULL; + girara_setting_get(zathura->ui.session, "sandbox", &sandbox); + if (g_strcmp0(sandbox, "strict") == 0) { + girara_notify(zathura->ui.session, GIRARA_ERROR, _("Printing is not permitted in strict sandbox mode")); + g_free(sandbox); + return false; + } + g_free(sandbox); + print(zathura); return true; @@ -288,12 +297,7 @@ cmd_print(girara_session_t* session, girara_list_t* UNUSED(argument_list)) bool cmd_nohlsearch(girara_session_t* session, girara_list_t* UNUSED(argument_list)) { - g_return_val_if_fail(session != NULL, false); - g_return_val_if_fail(session->global.data != NULL, false); - zathura_t* zathura = session->global.data; - - document_draw_search_results(zathura, false); - render_all(zathura); + sc_nohlsearch(session, NULL, NULL, 0); return true; } @@ -535,7 +539,7 @@ cmd_exec(girara_session_t* session, girara_list_t* argument_list) if (zathura->document != NULL) { const char* path = zathura_document_get_path(zathura->document); - GIRARA_LIST_FOREACH(argument_list, char*, iter, value) + GIRARA_LIST_FOREACH_BODY_WITH_ITER(argument_list, char*, iter, value, char* r = girara_replace_substring(value, "$FILE", path); if (r != NULL) { @@ -546,7 +550,7 @@ cmd_exec(girara_session_t* session, girara_list_t* argument_list) girara_list_iterator_set(iter, s); } } - GIRARA_LIST_FOREACH_END(argument_list, char*, iter, value); + ); } return girara_exec_with_argument_list(session, argument_list); diff --git a/zathura/completion.c b/zathura/completion.c index cf16942..d2754d3 100644 --- a/zathura/completion.c +++ b/zathura/completion.c @@ -120,6 +120,15 @@ error_free: return NULL; } +static void +group_add_element(void* data, void* userdata) +{ + const char* element = data; + girara_completion_group_t* group = userdata; + + girara_completion_group_add_element(group, element, NULL); +} + static girara_completion_t* list_files_for_cc(zathura_t* zathura, const char* input, bool check_file_ext, int show_recent) { @@ -184,9 +193,7 @@ list_files_for_cc(zathura_t* zathura, const char* input, bool check_file_ext, in goto error_free; } - GIRARA_LIST_FOREACH(names, const char*, iter, file) - girara_completion_group_add_element(group, file, NULL); - GIRARA_LIST_FOREACH_END(names, const char*, iter, file); + girara_list_foreach(names, group_add_element, group); girara_list_free(names); } @@ -197,10 +204,7 @@ list_files_for_cc(zathura_t* zathura, const char* input, bool check_file_ext, in } if (girara_list_size(recent_files) != 0) { - GIRARA_LIST_FOREACH(recent_files, const char*, iter, file) - girara_debug("adding %s (recent file)", file); - girara_completion_group_add_element(history_group, file, NULL); - GIRARA_LIST_FOREACH_END(recent_files, const char*, iter, file); + girara_list_foreach(recent_files, group_add_element, history_group); girara_list_free(recent_files); } else { girara_completion_group_free(history_group); @@ -278,13 +282,13 @@ cc_bookmarks(girara_session_t* session, const char* input) } const size_t input_length = strlen(input); - GIRARA_LIST_FOREACH(zathura->bookmarks.bookmarks, zathura_bookmark_t*, iter, bookmark) - if (input_length <= strlen(bookmark->id) && !strncmp(input, bookmark->id, input_length)) { - gchar* paged = g_strdup_printf(_("Page %d"), bookmark->page); - girara_completion_group_add_element(group, bookmark->id, paged); - g_free(paged); - } - GIRARA_LIST_FOREACH_END(zathura->bookmarks.bookmarks, zathura_bookmark_t*, iter, bookmark); + GIRARA_LIST_FOREACH_BODY(zathura->bookmarks.bookmarks, zathura_bookmark_t*, bookmark, + if (input_length <= strlen(bookmark->id) && !strncmp(input, bookmark->id, input_length)) { + gchar* paged = g_strdup_printf(_("Page %d"), bookmark->page); + girara_completion_group_add_element(group, bookmark->id, paged); + g_free(paged); + } + ); girara_completion_add_group(completion, group); @@ -334,14 +338,14 @@ cc_export(girara_session_t* session, const char* input) if (attachments != NULL) { bool added = false; - GIRARA_LIST_FOREACH(attachments, const char*, iter, attachment) - if (input_length <= strlen(attachment) && !strncmp(input, attachment, input_length)) { - char* attachment_string = g_strdup_printf("attachment-%s", attachment); - girara_completion_group_add_element(attachment_group, attachment_string, NULL); - g_free(attachment_string); - added = true; - } - GIRARA_LIST_FOREACH_END(zathura->bookmarks.bookmarks, zathura_bookmark_t*, iter, bookmark); + GIRARA_LIST_FOREACH_BODY(attachments, const char*, attachment, + if (input_length <= strlen(attachment) && !strncmp(input, attachment, input_length)) { + char* attachment_string = g_strdup_printf("attachment-%s", attachment); + girara_completion_group_add_element(attachment_group, attachment_string, NULL); + g_free(attachment_string); + added = true; + } + ); if (added == true) { girara_completion_add_group(completion, attachment_group); @@ -371,14 +375,14 @@ cc_export(girara_session_t* session, const char* input) girara_list_t* images = zathura_page_images_get(page, NULL); if (images != NULL) { unsigned int image_number = 1; - GIRARA_LIST_FOREACH(images, zathura_image_t*, iter, UNUSED(image)) - char* image_string = g_strdup_printf("image-p%d-%d", page_id + 1, image_number); - girara_completion_group_add_element(image_group, image_string, NULL); - g_free(image_string); + GIRARA_LIST_FOREACH_BODY(images, zathura_image_t*, UNUSED(image), + char* image_string = g_strdup_printf("image-p%d-%d", page_id + 1, image_number); + girara_completion_group_add_element(image_group, image_string, NULL); + g_free(image_string); - added = true; - image_number++; - GIRARA_LIST_FOREACH_END(images, zathura_image_t*, iter, image); + added = true; + image_number++; + ); girara_list_free(images); } } diff --git a/zathura/config.c b/zathura/config.c index d3fe43a..510c60a 100644 --- a/zathura/config.c +++ b/zathura/config.c @@ -56,9 +56,9 @@ cb_color_change(girara_session_t* session, const char* name, const char* string_value = (const char*) value; if (g_strcmp0(name, "highlight-color") == 0) { - gdk_rgba_parse(&(zathura->ui.colors.highlight_color), string_value); + parse_color(&zathura->ui.colors.highlight_color, string_value); } else if (g_strcmp0(name, "highlight-active-color") == 0) { - gdk_rgba_parse(&(zathura->ui.colors.highlight_color_active), string_value); + parse_color(&zathura->ui.colors.highlight_color_active, string_value); } else if (g_strcmp0(name, "recolor-darkcolor") == 0) { if (zathura->sync.render_thread != NULL) { zathura_renderer_set_recolor_colors_str(zathura->sync.render_thread, NULL, string_value); @@ -68,9 +68,9 @@ cb_color_change(girara_session_t* session, const char* name, zathura_renderer_set_recolor_colors_str(zathura->sync.render_thread, string_value, NULL); } } else if (g_strcmp0(name, "render-loading-bg") == 0) { - gdk_rgba_parse(&(zathura->ui.colors.render_loading_bg), string_value); + parse_color(&zathura->ui.colors.render_loading_bg, string_value); } else if (g_strcmp0(name, "render-loading-fg") == 0) { - gdk_rgba_parse(&(zathura->ui.colors.render_loading_fg), string_value); + parse_color(&zathura->ui.colors.render_loading_fg, string_value); } render_all(zathura); @@ -249,6 +249,7 @@ config_load_default(zathura_t* zathura) girara_setting_add(gsession, "selection-clipboard", string_value, STRING, false, _("The clipboard into which mouse-selected data will be written"), NULL, NULL); bool_value = true; girara_setting_add(gsession, "selection-notification", &bool_value, BOOLEAN, false, _("Enable notification after selecting text"), NULL, NULL); + girara_setting_add(gsession, "sandbox", "normal", STRING, true, _("Sandbox level"), NULL, NULL); #define DEFAULT_SHORTCUTS(mode) \ girara_shortcut_add(gsession, 0, GDK_KEY_a, NULL, sc_adjust_window, (mode), ZATHURA_ADJUST_BESTFIT, NULL); \ @@ -476,6 +477,7 @@ config_load_default(zathura_t* zathura) girara_shortcut_mapping_add(gsession, "mark_evaluate", sc_mark_evaluate); girara_shortcut_mapping_add(gsession, "navigate", sc_navigate); girara_shortcut_mapping_add(gsession, "navigate_index", sc_navigate_index); + girara_shortcut_mapping_add(gsession, "nohlsearch", sc_nohlsearch); girara_shortcut_mapping_add(gsession, "print", sc_print); girara_shortcut_mapping_add(gsession, "quit", sc_quit); girara_shortcut_mapping_add(gsession, "recolor", sc_recolor); diff --git a/zathura/content-type.c b/zathura/content-type.c index 3440973..5761801 100644 --- a/zathura/content-type.c +++ b/zathura/content-type.c @@ -1,8 +1,5 @@ /* See LICENSE file for license and copyright information */ -#define _DEFAULT_SOURCE -#define _XOPEN_SOURCE 700 - #include "content-type.h" #include "macros.h" @@ -99,8 +96,14 @@ guess_type_magic(zathura_content_type_context_t* context, const char* path) } girara_debug("magic detected filetype: %s", mime_type); - /* dup so we own the memory */ - return g_strdup(mime_type);; + char* content_type = g_content_type_from_mime_type(mime_type); + if (content_type == NULL) { + girara_warning("failed to convert mime type to content type: %s", mime_type); + /* dup so we own the memory */ + return g_strdup(mime_type); + } + + return content_type; } static char* @@ -109,7 +112,7 @@ guess_type_file(const char* UNUSED(path)) return NULL; } #else -static const char* +static char* guess_type_magic(zathura_content_type_context_t* UNUSED(context), const char* UNUSED(path)) { @@ -143,7 +146,16 @@ guess_type_file(const char* path) } g_strdelimit(out, "\n\r", '\0'); - return out; + girara_debug("file detected filetype: %s", out); + + char* content_type = g_content_type_from_mime_type(out); + if (content_type == NULL) { + girara_warning("failed to convert mime type to content type: %s", out); + return out; + } + + g_free(out); + return content_type; } #endif diff --git a/zathura/content-type.h b/zathura/content-type.h index 9bd367d..bf65482 100644 --- a/zathura/content-type.h +++ b/zathura/content-type.h @@ -6,14 +6,14 @@ #include "types.h" /** - * Create new context for MIME type detection. + * Create new context for content type detection. * * @return new context */ zathura_content_type_context_t* zathura_content_type_new(void); /** - * Free MIME type detection context. + * Free content type detection context. * * @param context The context. */ diff --git a/zathura/database-plain.c b/zathura/database-plain.c index 6c933fd..a3dad91 100644 --- a/zathura/database-plain.c +++ b/zathura/database-plain.c @@ -24,7 +24,7 @@ #define KEY_PAGE "page" #define KEY_OFFSET "offset" -#define KEY_SCALE "scale" +#define KEY_ZOOM "zoom" #define KEY_ROTATE "rotate" #define KEY_PAGES_PER_ROW "pages-per-row" #define KEY_FIRST_PAGE_COLUMN "first-page-column" @@ -397,9 +397,7 @@ plain_load_bookmarks(zathura_database_t* db, const char* file) return NULL; } - girara_list_t* result = girara_sorted_list_new2((girara_compare_function_t) - zathura_bookmarks_compare, (girara_free_function_t) - zathura_bookmark_free); + girara_list_t* result = bookmarks_list_new(); gsize num_keys; char** keys = g_key_file_get_keys(priv->bookmarks, name, &num_keys, NULL); @@ -511,22 +509,28 @@ plain_load_jumplist(zathura_database_t* db, const char* file) return list; } +static void +jump_to_str(void* data, void* userdata) +{ + const zathura_jump_t* jump = data; + GString* str_val = userdata; + + char buffer[G_ASCII_DTOSTR_BUF_SIZE] = { '\0' }; + + g_string_append_printf(str_val, "%d ", jump->page); + g_string_append(str_val, g_ascii_dtostr(buffer, G_ASCII_DTOSTR_BUF_SIZE, jump->x)); + g_string_append_c(str_val, ' '); + g_string_append(str_val, g_ascii_dtostr(buffer, G_ASCII_DTOSTR_BUF_SIZE, jump->y)); + g_string_append_c(str_val, ' '); +} + static bool plain_save_jumplist(zathura_database_t* db, const char* file, girara_list_t* jumplist) { g_return_val_if_fail(db != NULL && file != NULL && jumplist != NULL, false); GString* str_val = g_string_new(NULL); - - GIRARA_LIST_FOREACH(jumplist, zathura_jump_t*, iter, jump) - char buffer[G_ASCII_DTOSTR_BUF_SIZE] = { '\0' }; - - g_string_append_printf(str_val, "%d ", jump->page); - g_string_append(str_val, g_ascii_dtostr(buffer, G_ASCII_DTOSTR_BUF_SIZE, jump->x)); - g_string_append_c(str_val, ' '); - g_string_append(str_val, g_ascii_dtostr(buffer, G_ASCII_DTOSTR_BUF_SIZE, jump->y)); - g_string_append_c(str_val, ' '); - GIRARA_LIST_FOREACH_END(jumplist, zathura_jump_t*, iter, jump); + girara_list_foreach(jumplist, jump_to_str, str_val); zathura_plaindatabase_private_t* priv = ZATHURA_PLAINDATABASE_GET_PRIVATE(db); @@ -550,7 +554,7 @@ plain_set_fileinfo(zathura_database_t* db, const char* file, zathura_fileinfo_t* g_key_file_set_integer(priv->history, name, KEY_PAGE, file_info->current_page); g_key_file_set_integer(priv->history, name, KEY_OFFSET, file_info->page_offset); - g_key_file_set_double (priv->history, name, KEY_SCALE, file_info->scale); + g_key_file_set_double (priv->history, name, KEY_ZOOM, file_info->zoom); g_key_file_set_integer(priv->history, name, KEY_ROTATE, file_info->rotation); g_key_file_set_integer(priv->history, name, KEY_PAGES_PER_ROW, file_info->pages_per_row); g_key_file_set_string(priv->history, name, KEY_FIRST_PAGE_COLUMN, file_info->first_page_column_list); @@ -586,7 +590,7 @@ plain_get_fileinfo(zathura_database_t* db, const char* file, zathura_fileinfo_t* file_info->current_page = g_key_file_get_integer(priv->history, name, KEY_PAGE, NULL); file_info->page_offset = g_key_file_get_integer(priv->history, name, KEY_OFFSET, NULL); - file_info->scale = g_key_file_get_double (priv->history, name, KEY_SCALE, NULL); + file_info->zoom = g_key_file_get_double (priv->history, name, KEY_ZOOM, NULL); file_info->rotation = g_key_file_get_integer(priv->history, name, KEY_ROTATE, NULL); /* the following flags got introduced at a later point */ diff --git a/zathura/database-sqlite.c b/zathura/database-sqlite.c index 4d1b146..1c20bdf 100644 --- a/zathura/database-sqlite.c +++ b/zathura/database-sqlite.c @@ -10,6 +10,12 @@ #include "database-sqlite.h" #include "utils.h" +static char* +sqlite3_column_text_dup(sqlite3_stmt* stmt, int col) +{ + return g_strdup((const char*) sqlite3_column_text(stmt, col)); +} + static void zathura_database_interface_init(ZathuraDatabaseInterface* iface); static void io_interface_init(GiraraInputHistoryIOInterface* iface); @@ -110,6 +116,7 @@ sqlite_finalize(GObject* object) ZathuraSQLDatabase* db = ZATHURA_SQLDATABASE(object); zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); if (priv->session) { + sqlite3_exec(priv->session, "VACUUM;", NULL, 0, NULL); sqlite3_close(priv->session); } @@ -147,7 +154,7 @@ sqlite_db_init(ZathuraSQLDatabase* db, const char* path) "file TEXT PRIMARY KEY," "page INTEGER," "offset INTEGER," - "scale FLOAT," + "zoom FLOAT," "rotation INTEGER," "pages_per_row INTEGER," "first_page_column TEXT," @@ -184,6 +191,10 @@ sqlite_db_init(ZathuraSQLDatabase* db, const char* path) static const char SQL_FILEINFO_ALTER3[] = "ALTER TABLE fileinfo ADD COLUMN time TIMESTAMP;"; + /* update fileinfo table (part 4) */ + static const char SQL_FILEINFO_ALTER4[] = + "ALTER TABLE fileinfo ADD COLUMN zoom FLOAT;"; + /* update bookmark table */ static const char SQL_BOOKMARK_ALTER[] = "ALTER TABLE bookmarks ADD COLUMN hadj_ratio FLOAT;" @@ -234,6 +245,15 @@ sqlite_db_init(ZathuraSQLDatabase* db, const char* path) } } + ret1 = check_column(session, "fileinfo", "zoom", &res1); + + if (ret1 == true && res1 == false) { + girara_debug("old database table layout detected; updating ..."); + if (sqlite3_exec(session, SQL_FILEINFO_ALTER4, NULL, 0, NULL) != SQLITE_OK) { + girara_warning("failed to update database table layout"); + } + } + ret1 = check_column(session, "bookmarks", "hadj_ratio", &res1); ret2 = check_column(session, "bookmarks", "vadj_ratio", &res2); @@ -337,7 +357,7 @@ check_column(sqlite3* session, const char* table, const char* col, bool* res) } if (*res == false) { - girara_debug("column %s in table %s is NOT found", col, table); + girara_debug("Column '%s' in table '%s' NOT found.", col, table); } sqlite3_finalize(stmt); @@ -373,7 +393,7 @@ check_column_type(sqlite3* session, const char* table, const char* col, const ch } if (*res == false) { - girara_debug("column %s in table %s has wrong type", col, table); + girara_debug("Column '%s' in table '%s' has wrong type.", col, table); } sqlite3_finalize(stmt); @@ -401,7 +421,6 @@ sqlite_add_bookmark(zathura_database_t* db, const char* file, sqlite3_bind_int(stmt, 3, bookmark->page) != SQLITE_OK || sqlite3_bind_double(stmt, 4, bookmark->x) != SQLITE_OK || sqlite3_bind_double(stmt, 5, bookmark->y) != SQLITE_OK) { - sqlite3_finalize(stmt); girara_error("Failed to bind arguments."); return false; @@ -459,8 +478,7 @@ sqlite_load_bookmarks(zathura_database_t* db, const char* file) return NULL; } - girara_list_t* result = girara_sorted_list_new2((girara_compare_function_t) zathura_bookmarks_compare, - (girara_free_function_t) zathura_bookmark_free); + girara_list_t* result = bookmarks_list_new(); if (result == NULL) { sqlite3_finalize(stmt); return NULL; @@ -472,12 +490,12 @@ sqlite_load_bookmarks(zathura_database_t* db, const char* file) continue; } - bookmark->id = g_strdup((const char*) sqlite3_column_text(stmt, 0)); + bookmark->id = sqlite3_column_text_dup(stmt, 0); bookmark->page = sqlite3_column_int(stmt, 1); bookmark->x = sqlite3_column_double(stmt, 2); bookmark->y = sqlite3_column_double(stmt, 3); - bookmark->x = bookmark->x <= 0.0 ? DBL_MIN : bookmark->x; - bookmark->y = bookmark->y <= 0.0 ? DBL_MIN : bookmark->y; + bookmark->x = MAX(DBL_MIN, bookmark->x); + bookmark->y = MAX(DBL_MIN, bookmark->y); girara_list_append(result, bookmark); } @@ -492,11 +510,12 @@ sqlite_save_jumplist(zathura_database_t* db, const char* file, girara_list_t* ju { g_return_val_if_fail(db != NULL && file != NULL && jumplist != NULL, false); - zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); - static const char SQL_INSERT_JUMP[] = "INSERT INTO jumplist (file, page, hadj_ratio, vadj_ratio) VALUES (?, ?, ?, ?);"; + static const char SQL_INSERT_JUMP[] = "INSERT INTO jumplist (file, page, hadj_ratio, vadj_ratio) VALUES (?, ?, ?, ?);"; static const char SQL_REMOVE_JUMPLIST[] = "DELETE FROM jumplist WHERE file = ?;"; - sqlite3_stmt* stmt = NULL; - int res = 0; + + zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); + sqlite3_stmt* stmt = NULL; + int res = 0; if (sqlite3_exec(priv->session, "BEGIN;", NULL, 0, NULL) != SQLITE_OK) { return false; @@ -529,14 +548,9 @@ sqlite_save_jumplist(zathura_database_t* db, const char* file, girara_list_t* ju return true; } - girara_list_iterator_t* cur = girara_list_iterator(jumplist); bool status = true; - - while (true) { - zathura_jump_t* jump = girara_list_iterator_data(cur); - + GIRARA_LIST_FOREACH_BODY(jumplist, zathura_jump_t*, jump, stmt = prepare_statement(priv->session, SQL_INSERT_JUMP); - if (stmt == NULL) { status = false; break; @@ -546,7 +560,6 @@ sqlite_save_jumplist(zathura_database_t* db, const char* file, girara_list_t* ju sqlite3_bind_int(stmt, 2, jump->page) != SQLITE_OK || sqlite3_bind_double(stmt, 3, jump->x) != SQLITE_OK || sqlite3_bind_double(stmt, 4, jump->y) != SQLITE_OK) { - sqlite3_finalize(stmt); girara_error("Failed to bind arguments."); status = false; @@ -560,15 +573,7 @@ sqlite_save_jumplist(zathura_database_t* db, const char* file, girara_list_t* ju status = false; break; } - - if (girara_list_iterator_has_next(cur) == true) { - girara_list_iterator_next(cur); - } else { - break; - } - } - - girara_list_iterator_free(cur); + ); if (status == false) { sqlite3_exec(priv->session, "ROLLBACK;", NULL, 0, NULL); @@ -584,9 +589,10 @@ sqlite_load_jumplist(zathura_database_t* db, const char* file) { g_return_val_if_fail(db != NULL && file != NULL, NULL); - zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); static const char SQL_GET_JUMPLIST[] = "SELECT page, hadj_ratio, vadj_ratio FROM jumplist WHERE file = ? ORDER BY id ASC;"; - sqlite3_stmt* stmt = prepare_statement(priv->session, SQL_GET_JUMPLIST); + + zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); + sqlite3_stmt* stmt = prepare_statement(priv->session, SQL_GET_JUMPLIST); if (stmt == NULL) { return NULL; @@ -640,7 +646,7 @@ sqlite_set_fileinfo(zathura_database_t* db, const char* file, zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); static const char SQL_FILEINFO_SET[] = - "REPLACE INTO fileinfo (file, page, offset, scale, rotation, pages_per_row, first_page_column, position_x, position_y, time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, DATETIME('now'));"; + "REPLACE INTO fileinfo (file, page, offset, zoom, rotation, pages_per_row, first_page_column, position_x, position_y, time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, DATETIME('now'));"; sqlite3_stmt* stmt = prepare_statement(priv->session, SQL_FILEINFO_SET); if (stmt == NULL) { @@ -650,7 +656,7 @@ sqlite_set_fileinfo(zathura_database_t* db, const char* file, if (sqlite3_bind_text(stmt, 1, file, -1, NULL) != SQLITE_OK || sqlite3_bind_int(stmt, 2, file_info->current_page) != SQLITE_OK || sqlite3_bind_int(stmt, 3, file_info->page_offset) != SQLITE_OK || - sqlite3_bind_double(stmt, 4, file_info->scale) != SQLITE_OK || + sqlite3_bind_double(stmt, 4, file_info->zoom) != SQLITE_OK || sqlite3_bind_int(stmt, 5, file_info->rotation) != SQLITE_OK || sqlite3_bind_int(stmt, 6, file_info->pages_per_row) != SQLITE_OK || sqlite3_bind_text(stmt, 7, file_info->first_page_column_list, -1, NULL) @@ -679,7 +685,7 @@ sqlite_get_fileinfo(zathura_database_t* db, const char* file, zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); static const char SQL_FILEINFO_GET[] = - "SELECT page, offset, scale, rotation, pages_per_row, first_page_column, position_x, position_y FROM fileinfo WHERE file = ?;"; + "SELECT page, offset, zoom, rotation, pages_per_row, first_page_column, position_x, position_y FROM fileinfo WHERE file = ?;"; sqlite3_stmt* stmt = prepare_statement(priv->session, SQL_FILEINFO_GET); if (stmt == NULL) { @@ -700,10 +706,10 @@ sqlite_get_fileinfo(zathura_database_t* db, const char* file, file_info->current_page = sqlite3_column_int(stmt, 0); file_info->page_offset = sqlite3_column_int(stmt, 1); - file_info->scale = sqlite3_column_double(stmt, 2); + file_info->zoom = sqlite3_column_double(stmt, 2); file_info->rotation = sqlite3_column_int(stmt, 3); file_info->pages_per_row = sqlite3_column_int(stmt, 4); - file_info->first_page_column_list = g_strdup((const char*) sqlite3_column_text(stmt, 5)); + file_info->first_page_column_list = sqlite3_column_text_dup(stmt, 5); file_info->position_x = sqlite3_column_double(stmt, 6); file_info->position_y = sqlite3_column_double(stmt, 7); @@ -746,14 +752,14 @@ sqlite_io_read(GiraraInputHistoryIO* db) return NULL; } - girara_list_t* list = girara_list_new2((girara_free_function_t) g_free); + girara_list_t* list = girara_list_new2(g_free); if (list == NULL) { sqlite3_finalize(stmt); return NULL; } while (sqlite3_step(stmt) == SQLITE_ROW) { - girara_list_append(list, g_strdup((const char*) sqlite3_column_text(stmt, 0))); + girara_list_append(list, sqlite3_column_text_dup(stmt, 0)); } sqlite3_finalize(stmt); @@ -791,14 +797,14 @@ sqlite_get_recent_files(zathura_database_t* db, int max, const char* basepath) return false; } - girara_list_t* list = girara_list_new2((girara_free_function_t) g_free); + girara_list_t* list = girara_list_new2(g_free); if (list == NULL) { sqlite3_finalize(stmt); return NULL; } while (sqlite3_step(stmt) == SQLITE_ROW) { - girara_list_append(list, g_strdup((const char*) sqlite3_column_text(stmt, 0))); + girara_list_append(list, sqlite3_column_text_dup(stmt, 0)); } sqlite3_finalize(stmt); diff --git a/zathura/database.c b/zathura/database.c index 4b52e95..224efd9 100644 --- a/zathura/database.c +++ b/zathura/database.c @@ -76,3 +76,24 @@ zathura_db_get_recent_files(zathura_database_t* db, int max, const char* basepat return ZATHURA_DATABASE_GET_INTERFACE(db)->get_recent_files(db, max, basepath); } + +static int +bookmarks_compare(const void* l, const void* r) +{ + const zathura_bookmark_t* lhs = l; + const zathura_bookmark_t* rhs = r; + + return zathura_bookmarks_compare(lhs, rhs); +} + +static void +bookmarks_free(void* p) +{ + zathura_bookmark_t* bookmark = p; + zathura_bookmark_free(bookmark); +} + +girara_list_t* bookmarks_list_new(void) +{ + return girara_sorted_list_new2(bookmarks_compare, bookmarks_free); +} diff --git a/zathura/database.h b/zathura/database.h index 7c76407..f4698d1 100644 --- a/zathura/database.h +++ b/zathura/database.h @@ -12,7 +12,7 @@ typedef struct zathura_fileinfo_s { unsigned int current_page; unsigned int page_offset; - double scale; + double zoom; unsigned int rotation; unsigned int pages_per_row; char* first_page_column_list; @@ -140,5 +140,11 @@ bool zathura_db_get_fileinfo(zathura_database_t* db, const char* file, */ girara_list_t* zathura_db_get_recent_files(zathura_database_t* db, int max, const char* basepath); +/** + * Create list of bookmarks. + * @return empty list of bookmarks + */ +girara_list_t* bookmarks_list_new(void); + #endif // DATABASE_H diff --git a/zathura/dbus-interface.c b/zathura/dbus-interface.c index 0948117..7e9544d 100644 --- a/zathura/dbus-interface.c +++ b/zathura/dbus-interface.c @@ -202,7 +202,7 @@ zathura_dbus_edit(ZathuraDbus* edit, unsigned int page, unsigned int x, unsigned GError* error = NULL; g_dbus_connection_emit_signal(priv->connection, NULL, DBUS_OBJPATH, - DBUS_INTERFACE, "Edit", g_variant_new("(suu)", input_file, x, y), &error); + DBUS_INTERFACE, "Edit", g_variant_new("(suu)", input_file, line, column), &error); g_free(input_file); @@ -417,7 +417,7 @@ handle_method_call(GDBusConnection* UNUSED(connection), if (handlers[idx].needs_document == true && priv->zathura->document == NULL) { g_dbus_method_invocation_return_dbus_error( - invocation, "org.pwmt.zathura.NoOpenDocumen", + invocation, "org.pwmt.zathura.NoOpenDocument", "No document has been opened."); return; } @@ -575,4 +575,3 @@ zathura_dbus_synctex_position(const char* filename, const char* input_file, return iterate_instances_call_synctex_view(filename, input_file, line, column, hint); } - diff --git a/zathura/document.c b/zathura/document.c index cddb00d..46bd56e 100644 --- a/zathura/document.c +++ b/zathura/document.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -27,15 +28,17 @@ struct zathura_document_s { const char* password; /**< Password of the document */ unsigned int current_page_number; /**< Current page number */ unsigned int number_of_pages; /**< Number of pages */ - double scale; /**< Scale value */ + double zoom; /**< Zoom value */ unsigned int rotate; /**< Rotation */ void* data; /**< Custom data */ zathura_adjust_mode_t adjust_mode; /**< Adjust mode (best-fit, width) */ int page_offset; /**< Page offset */ - double cell_width; /**< width of a page cell in the document (not ransformed by scale and rotation) */ - double cell_height; /**< height of a page cell in the document (not ransformed by scale and rotation) */ + double cell_width; /**< width of a page cell in the document (not transformed by scale and rotation) */ + double cell_height; /**< height of a page cell in the document (not transformed by scale and rotation) */ unsigned int view_width; /**< width of current viewport */ unsigned int view_height; /**< height of current viewport */ + double view_ppi; /**< PPI of the current viewport */ + zathura_device_factors_t device_factors; /**< x and y device scale factors (for e.g. HiDPI) */ unsigned int pages_per_row; /**< number of pages in a row */ unsigned int first_page_column; /**< column of the first page */ unsigned int page_padding; /**< padding between pages */ @@ -125,13 +128,16 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* uri, g_object_unref(gf); } document->password = password; - document->scale = 1.0; + document->zoom = 1.0; document->plugin = plugin; document->adjust_mode = ZATHURA_ADJUST_NONE; document->cell_width = 0.0; document->cell_height = 0.0; document->view_height = 0; document->view_width = 0; + document->view_ppi = 0.0; + document->device_factors.x = 1.0; + document->device_factors.y = 1.0; document->position_x = 0.0; document->position_y = 0.0; @@ -140,7 +146,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* uri, file = NULL; /* open document */ - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->document_open == NULL) { girara_error("plugin has no open function\n"); goto error_free; @@ -217,7 +223,7 @@ zathura_document_free(zathura_document_t* document) /* free document */ zathura_error_t error = ZATHURA_ERROR_OK; - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); if (functions->document_free == NULL) { error = ZATHURA_ERROR_NOT_IMPLEMENTED; } else { @@ -384,6 +390,26 @@ zathura_document_set_position_y(zathura_document_t* document, double position_y) document->position_y = position_y; } +double +zathura_document_get_zoom(zathura_document_t* document) +{ + if (document == NULL) { + return 0; + } + + return document->zoom; +} + +void +zathura_document_set_zoom(zathura_document_t* document, double zoom) +{ + if (document == NULL) { + return; + } + + document->zoom = zoom; +} + double zathura_document_get_scale(zathura_document_t* document) { @@ -391,17 +417,14 @@ zathura_document_get_scale(zathura_document_t* document) return 0; } - return document->scale; -} - -void -zathura_document_set_scale(zathura_document_t* document, double scale) -{ - if (document == NULL) { - return; + double ppi = document->view_ppi; + if (ppi < DBL_EPSILON) { + /* No PPI information -> use a typical value */ + ppi = 100; } - document->scale = scale; + /* scale = pixels per point, and there are 72 points in one inch */ + return document->zoom * ppi / 72.0; } unsigned int @@ -491,6 +514,15 @@ zathura_document_set_viewport_height(zathura_document_t* document, unsigned int document->view_height = height; } +void +zathura_document_set_viewport_ppi(zathura_document_t* document, double ppi) +{ + if (document == NULL) { + return; + } + document->view_ppi = ppi; +} + void zathura_document_get_viewport_size(zathura_document_t* document, unsigned int *height, unsigned int* width) @@ -500,6 +532,43 @@ zathura_document_get_viewport_size(zathura_document_t* document, *width = document->view_width; } +double +zathura_document_get_viewport_ppi(zathura_document_t* document) +{ + if (document == NULL) { + return 0.0; + } + return document->view_ppi; +} + +void +zathura_document_set_device_factors(zathura_document_t* document, + double x_factor, double y_factor) +{ + if (document == NULL) { + return; + } + if (fabs(x_factor) < DBL_EPSILON || fabs(y_factor) < DBL_EPSILON) { + girara_debug("Ignoring new device factors %f and %f: too small", + x_factor, y_factor); + return; + } + + document->device_factors.x = x_factor; + document->device_factors.y = y_factor; +} + +zathura_device_factors_t +zathura_document_get_device_factors(zathura_document_t* document) +{ + if (document == NULL) { + /* The function is guaranteed to not return zero values */ + return (zathura_device_factors_t){1.0, 1.0}; + } + + return document->device_factors; +} + void zathura_document_get_cell_size(zathura_document_t* document, unsigned int* height, unsigned int* width) @@ -587,7 +656,7 @@ zathura_document_save_as(zathura_document_t* document, const char* path) return ZATHURA_ERROR_UNKNOWN; } - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); if (functions->document_save_as == NULL) { return ZATHURA_ERROR_NOT_IMPLEMENTED; } @@ -603,7 +672,7 @@ zathura_document_index_generate(zathura_document_t* document, zathura_error_t* e return NULL; } - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); if (functions->document_index_generate == NULL) { check_set_error(error, ZATHURA_ERROR_NOT_IMPLEMENTED); return NULL; @@ -620,7 +689,7 @@ zathura_document_attachments_get(zathura_document_t* document, zathura_error_t* return NULL; } - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); if (functions->document_attachments_get == NULL) { check_set_error(error, ZATHURA_ERROR_NOT_IMPLEMENTED); return NULL; @@ -636,7 +705,7 @@ zathura_document_attachment_save(zathura_document_t* document, const char* attac return ZATHURA_ERROR_INVALID_ARGUMENTS; } - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); if (functions->document_attachment_save == NULL) { return ZATHURA_ERROR_NOT_IMPLEMENTED; } @@ -652,7 +721,7 @@ zathura_document_get_information(zathura_document_t* document, zathura_error_t* return NULL; } - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(document->plugin); if (functions->document_get_information == NULL) { check_set_error(error, ZATHURA_ERROR_NOT_IMPLEMENTED); return NULL; diff --git a/zathura/document.h b/zathura/document.h index 3118f30..6bd1d76 100644 --- a/zathura/document.h +++ b/zathura/document.h @@ -28,7 +28,7 @@ zathura_document_t* zathura_document_open(zathura_t* zathura, * @return ZATHURA_ERROR_OK when no error occurred, otherwise see * zathura_error_t */ -zathura_error_t zathura_document_free(zathura_document_t* document); +ZATHURA_PLUGIN_API zathura_error_t zathura_document_free(zathura_document_t* document); /** * Returns the path of the document @@ -36,7 +36,7 @@ zathura_error_t zathura_document_free(zathura_document_t* document); * @param document The document * @return The file path of the document */ -const char* zathura_document_get_path(zathura_document_t* document); +ZATHURA_PLUGIN_API const char* zathura_document_get_path(zathura_document_t* document); /** * Returns the URI of the document @@ -44,7 +44,7 @@ const char* zathura_document_get_path(zathura_document_t* document); * @param document The document * @return The URI of the document */ -const char* zathura_document_get_uri(zathura_document_t* document); +ZATHURA_PLUGIN_API const char* zathura_document_get_uri(zathura_document_t* document); /** * Returns the basename of the document @@ -52,7 +52,7 @@ const char* zathura_document_get_uri(zathura_document_t* document); * @param document The document * @return The basename of the document */ -const char* zathura_document_get_basename(zathura_document_t* document); +ZATHURA_PLUGIN_API const char* zathura_document_get_basename(zathura_document_t* document); /** * Returns the password of the document @@ -60,7 +60,7 @@ const char* zathura_document_get_basename(zathura_document_t* document); * @param document The document * @return Returns the password of the document */ -const char* zathura_document_get_password(zathura_document_t* document); +ZATHURA_PLUGIN_API const char* zathura_document_get_password(zathura_document_t* document); /** * Returns the page at the given index @@ -69,7 +69,7 @@ const char* zathura_document_get_password(zathura_document_t* document); * @param index The index of the page * @return The page or NULL if an error occurred */ -zathura_page_t* zathura_document_get_page(zathura_document_t* document, unsigned int index); +ZATHURA_PLUGIN_API zathura_page_t* zathura_document_get_page(zathura_document_t* document, unsigned int index); /** * Returns the number of pages @@ -77,7 +77,7 @@ zathura_page_t* zathura_document_get_page(zathura_document_t* document, unsigned * @param document The document * @return Number of pages */ -unsigned int zathura_document_get_number_of_pages(zathura_document_t* document); +ZATHURA_PLUGIN_API unsigned int zathura_document_get_number_of_pages(zathura_document_t* document); /** * Sets the number of pages @@ -85,7 +85,7 @@ unsigned int zathura_document_get_number_of_pages(zathura_document_t* document); * @param document The document * @param number_of_pages Number of pages */ -void zathura_document_set_number_of_pages(zathura_document_t* document, unsigned +ZATHURA_PLUGIN_API void zathura_document_set_number_of_pages(zathura_document_t* document, unsigned int number_of_pages); /** @@ -94,7 +94,7 @@ void zathura_document_set_number_of_pages(zathura_document_t* document, unsigned * @param document The document * @return Current page */ -unsigned int zathura_document_get_current_page_number(zathura_document_t* document); +ZATHURA_PLUGIN_API unsigned int zathura_document_get_current_page_number(zathura_document_t* document); /** * Sets the number of pages @@ -102,7 +102,7 @@ unsigned int zathura_document_get_current_page_number(zathura_document_t* docume * @param document The document * @param current_page The current page number */ -void zathura_document_set_current_page_number(zathura_document_t* document, unsigned +ZATHURA_PLUGIN_API void zathura_document_set_current_page_number(zathura_document_t* document, unsigned int current_page); /** @@ -112,7 +112,7 @@ void zathura_document_set_current_page_number(zathura_document_t* document, unsi * @param document The document * @return X adjustment */ -double zathura_document_get_position_x(zathura_document_t* document); +ZATHURA_PLUGIN_API double zathura_document_get_position_x(zathura_document_t* document); /** * Returns the Y position as value relative to the document height (0=top, @@ -121,7 +121,7 @@ double zathura_document_get_position_x(zathura_document_t* document); * @param document The document * @return Y adjustment */ -double zathura_document_get_position_y(zathura_document_t* document); +ZATHURA_PLUGIN_API double zathura_document_get_position_y(zathura_document_t* document); /** * Sets the X position as a value relative to the document width (0=left, @@ -130,7 +130,7 @@ double zathura_document_get_position_y(zathura_document_t* document); * @param document The document * @param position_x the X adjustment */ -void zathura_document_set_position_x(zathura_document_t* document, double position_x); +ZATHURA_PLUGIN_API void zathura_document_set_position_x(zathura_document_t* document, double position_x); /** * Sets the Y position as a value relative to the document height (0=top, @@ -139,23 +139,32 @@ void zathura_document_set_position_x(zathura_document_t* document, double positi * @param document The document * @param position_y the Y adjustment */ -void zathura_document_set_position_y(zathura_document_t* document, double position_y); +ZATHURA_PLUGIN_API void zathura_document_set_position_y(zathura_document_t* document, double position_y); /** - * Returns the current scale value of the document + * Returns the current zoom value of the document * * @param document The document - * @return The current scale value + * @return The current zoom value */ -double zathura_document_get_scale(zathura_document_t* document); +ZATHURA_PLUGIN_API double zathura_document_get_zoom(zathura_document_t* document); /** - * Sets the new scale value of the document + * Returns the current scale value of the document (based on zoom and screen + * PPI) * * @param document The document - * @param scale The new scale value + * @return The current scale value, in pixels per point */ -void zathura_document_set_scale(zathura_document_t* document, double scale); +ZATHURA_PLUGIN_API double zathura_document_get_scale(zathura_document_t* document); + +/** + * Sets the new zoom value of the document + * + * @param document The document + * @param zoom The new zoom value + */ +ZATHURA_PLUGIN_API void zathura_document_set_zoom(zathura_document_t* document, double zoom); /** * Returns the rotation value of zathura (0..360) @@ -163,7 +172,7 @@ void zathura_document_set_scale(zathura_document_t* document, double scale); * @param document The document * @return The current rotation value */ -unsigned int zathura_document_get_rotation(zathura_document_t* document); +ZATHURA_PLUGIN_API unsigned int zathura_document_get_rotation(zathura_document_t* document); /** * Sets the new rotation value @@ -171,7 +180,7 @@ unsigned int zathura_document_get_rotation(zathura_document_t* document); * @param document The document * @param rotation The new rotation value */ -void zathura_document_set_rotation(zathura_document_t* document, unsigned int rotation); +ZATHURA_PLUGIN_API void zathura_document_set_rotation(zathura_document_t* document, unsigned int rotation); /** * Returns the adjust mode of the document @@ -179,7 +188,7 @@ void zathura_document_set_rotation(zathura_document_t* document, unsigned int ro * @param document The document * @return The adjust mode */ -zathura_adjust_mode_t zathura_document_get_adjust_mode(zathura_document_t* document); +ZATHURA_PLUGIN_API zathura_adjust_mode_t zathura_document_get_adjust_mode(zathura_document_t* document); /** * Sets the new adjust mode of the document @@ -187,7 +196,7 @@ zathura_adjust_mode_t zathura_document_get_adjust_mode(zathura_document_t* docum * @param document The document * @param mode The new adjust mode */ -void zathura_document_set_adjust_mode(zathura_document_t* document, zathura_adjust_mode_t mode); +ZATHURA_PLUGIN_API void zathura_document_set_adjust_mode(zathura_document_t* document, zathura_adjust_mode_t mode); /** * Returns the page offset of the document @@ -195,7 +204,7 @@ void zathura_document_set_adjust_mode(zathura_document_t* document, zathura_adju * @param document The document * @return The page offset */ -int zathura_document_get_page_offset(zathura_document_t* document); +ZATHURA_PLUGIN_API int zathura_document_get_page_offset(zathura_document_t* document); /** * Sets the new page offset of the document @@ -203,7 +212,7 @@ int zathura_document_get_page_offset(zathura_document_t* document); * @param document The document * @param page_offset The new page offset */ -void zathura_document_set_page_offset(zathura_document_t* document, unsigned int page_offset); +ZATHURA_PLUGIN_API void zathura_document_set_page_offset(zathura_document_t* document, unsigned int page_offset); /** * Returns the private data of the document @@ -211,7 +220,7 @@ void zathura_document_set_page_offset(zathura_document_t* document, unsigned int * @param document The document * @return The private data or NULL */ -void* zathura_document_get_data(zathura_document_t* document); +ZATHURA_PLUGIN_API void* zathura_document_get_data(zathura_document_t* document); /** * Sets the private data of the document @@ -219,7 +228,7 @@ void* zathura_document_get_data(zathura_document_t* document); * @param document The document * @param data The new private data */ -void zathura_document_set_data(zathura_document_t* document, void* data); +ZATHURA_PLUGIN_API void zathura_document_set_data(zathura_document_t* document, void* data); /** * Sets the width of the viewport in pixels. @@ -228,7 +237,7 @@ void zathura_document_set_data(zathura_document_t* document, void* data); * @param[in] width The width of the viewport */ void -zathura_document_set_viewport_width(zathura_document_t* document, unsigned int width); +ZATHURA_PLUGIN_API zathura_document_set_viewport_width(zathura_document_t* document, unsigned int width); /** * Sets the height of the viewport in pixels. @@ -237,7 +246,7 @@ zathura_document_set_viewport_width(zathura_document_t* document, unsigned int w * @param[in] height The height of the viewport */ void -zathura_document_set_viewport_height(zathura_document_t* document, unsigned int height); +ZATHURA_PLUGIN_API zathura_document_set_viewport_height(zathura_document_t* document, unsigned int height); /** * Return the size of the viewport in pixels. @@ -246,9 +255,47 @@ zathura_document_set_viewport_height(zathura_document_t* document, unsigned int * @param[out] height,width The width and height of the viewport */ void -zathura_document_get_viewport_size(zathura_document_t* document, +ZATHURA_PLUGIN_API zathura_document_get_viewport_size(zathura_document_t* document, unsigned int *height, unsigned int* width); +/** + Sets the viewport PPI (pixels per inch: the resolution of the monitor, after + scaling with the device factor). + * + * @param[in] document The document instance + * @param[in] height The viewport PPI + */ +void +ZATHURA_PLUGIN_API zathura_document_set_viewport_ppi(zathura_document_t* document, double ppi); + +/** + * Return the viewport PPI (pixels per inch: the resolution of the monitor, + * after scaling with the device factor). + * + * @param[in] document The document instance + * @return The viewport PPI + */ +double +ZATHURA_PLUGIN_API zathura_document_get_viewport_ppi(zathura_document_t* document); + +/** + * Set the device scale factors (e.g. for HiDPI). These are generally integers + * and equal for x and y. These scaling factors are only used when rendering to + * the screen. + * + * @param[in] x_factor,yfactor The x and y scale factors + */ +void +ZATHURA_PLUGIN_API zathura_document_set_device_factors(zathura_document_t* document, + double x_factor, double y_factor); +/** + * Return the current device scale factors (guaranteed to be non-zero). + * + * @return The x and y device scale factors + */ +ZATHURA_PLUGIN_API zathura_device_factors_t +zathura_document_get_device_factors(zathura_document_t* document); + /** * Return the size of a cell from the document's layout table in pixels. Assumes * that the table is homogeneous (i.e. every cell has the same dimensions). It @@ -257,7 +304,7 @@ zathura_document_get_viewport_size(zathura_document_t* document, * @param[in] document The document instance * @param[out] height,width The computed height and width of the cell */ -void zathura_document_get_cell_size(zathura_document_t* document, +ZATHURA_PLUGIN_API void zathura_document_get_cell_size(zathura_document_t* document, unsigned int* height, unsigned int* width); /** @@ -268,7 +315,7 @@ void zathura_document_get_cell_size(zathura_document_t* document, * @param[in] document The document * @param[out] height,width The height and width of the document */ -void zathura_document_get_document_size(zathura_document_t* document, +ZATHURA_PLUGIN_API void zathura_document_get_document_size(zathura_document_t* document, unsigned int* height, unsigned int* width); /** @@ -279,7 +326,7 @@ void zathura_document_get_document_size(zathura_document_t* document, * @param[in] pages_per_row number of pages per row * @param[in] first_page_column column of the first page (first column is 1) */ -void zathura_document_set_page_layout(zathura_document_t* document, unsigned int page_padding, +ZATHURA_PLUGIN_API void zathura_document_set_page_layout(zathura_document_t* document, unsigned int page_padding, unsigned int pages_per_row, unsigned int first_page_column); /** @@ -288,7 +335,7 @@ void zathura_document_set_page_layout(zathura_document_t* document, unsigned int * @param document The document * @return The padding in pixels between pages */ -unsigned int zathura_document_get_page_padding(zathura_document_t* document); +ZATHURA_PLUGIN_API unsigned int zathura_document_get_page_padding(zathura_document_t* document); /** * Returns the number of pages per row @@ -296,7 +343,7 @@ unsigned int zathura_document_get_page_padding(zathura_document_t* document); * @param document The document * @return The number of pages per row */ -unsigned int zathura_document_get_pages_per_row(zathura_document_t* document); +ZATHURA_PLUGIN_API unsigned int zathura_document_get_pages_per_row(zathura_document_t* document); /** * Returns the column for the first page (first column = 1) @@ -304,7 +351,7 @@ unsigned int zathura_document_get_pages_per_row(zathura_document_t* document); * @param document The document * @return The column for the first page */ -unsigned int zathura_document_get_first_page_column(zathura_document_t* document); +ZATHURA_PLUGIN_API unsigned int zathura_document_get_first_page_column(zathura_document_t* document); /** * Save the document @@ -314,7 +361,7 @@ unsigned int zathura_document_get_first_page_column(zathura_document_t* document * @return ZATHURA_ERROR_OK when no error occurred, otherwise see * zathura_error_t */ -zathura_error_t zathura_document_save_as(zathura_document_t* document, const char* path); +ZATHURA_PLUGIN_API zathura_error_t zathura_document_save_as(zathura_document_t* document, const char* path); /** * Generate the document index @@ -324,8 +371,7 @@ zathura_error_t zathura_document_save_as(zathura_document_t* document, const cha * error occurred * @return Generated index */ - -girara_tree_node_t* zathura_document_index_generate(zathura_document_t* document, zathura_error_t* error); +ZATHURA_PLUGIN_API girara_tree_node_t* zathura_document_index_generate(zathura_document_t* document, zathura_error_t* error); /** * Get list of attachments @@ -335,7 +381,7 @@ girara_tree_node_t* zathura_document_index_generate(zathura_document_t* document * error occurred * @return List of attachments */ -girara_list_t* zathura_document_attachments_get(zathura_document_t* document, zathura_error_t* error); +ZATHURA_PLUGIN_API girara_list_t* zathura_document_attachments_get(zathura_document_t* document, zathura_error_t* error); /** * Save document attachment @@ -346,7 +392,7 @@ girara_list_t* zathura_document_attachments_get(zathura_document_t* document, za * @return ZATHURA_ERROR_OK when no error occurred, otherwise see * zathura_error_t */ -zathura_error_t zathura_document_attachment_save(zathura_document_t* document, const char* attachment, const char* file); +ZATHURA_PLUGIN_API zathura_error_t zathura_document_attachment_save(zathura_document_t* document, const char* attachment, const char* file); /** * Returns a string of the requested information @@ -356,6 +402,6 @@ zathura_error_t zathura_document_attachment_save(zathura_document_t* document, c * error occurred * @return List of document information entries or NULL if information could not be retrieved */ -girara_list_t* zathura_document_get_information(zathura_document_t* document, zathura_error_t* error); +ZATHURA_PLUGIN_API girara_list_t* zathura_document_get_information(zathura_document_t* document, zathura_error_t* error); #endif // DOCUMENT_H diff --git a/zathura/file-monitor.c b/zathura/file-monitor.c index 26a1ded..c64c200 100644 --- a/zathura/file-monitor.c +++ b/zathura/file-monitor.c @@ -111,13 +111,23 @@ zathura_filemonitor_init(ZathuraFileMonitor* file_monitor) private->file_path = NULL; } -const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* filemonitor) +const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* file_monitor) { - private_t* private = GET_PRIVATE(filemonitor); + private_t* private = GET_PRIVATE(file_monitor); return private->file_path; } +void zathura_filemonitor_start(ZathuraFileMonitor* file_monitor) +{ + ZATHURA_FILEMONITOR_GET_CLASS(file_monitor)->start(file_monitor); +} + +void zathura_filemonitor_stop(ZathuraFileMonitor* file_monitor) +{ + ZATHURA_FILEMONITOR_GET_CLASS(file_monitor)->stop(file_monitor); +} + ZathuraFileMonitor* zathura_filemonitor_new(const char* file_path, zathura_filemonitor_type_t filemonitor_type) @@ -147,10 +157,6 @@ zathura_filemonitor_new(const char* file_path, return NULL; } - girara_debug("starting file monitor"); - ZathuraFileMonitor* file_monitor = ZATHURA_FILEMONITOR(ret); - ZATHURA_FILEMONITOR_GET_CLASS(file_monitor)->start(file_monitor); - - return file_monitor; + return ZATHURA_FILEMONITOR(ret); } diff --git a/zathura/file-monitor.h b/zathura/file-monitor.h index 76a6672..1c056bc 100644 --- a/zathura/file-monitor.h +++ b/zathura/file-monitor.h @@ -74,6 +74,16 @@ zathura_filemonitor_new(const char* file_path, * * @return path of monitored file */ -const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* filemonitor); +const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* file_monitor); + +/** + * Start file monitor. + */ +void zathura_filemonitor_start(ZathuraFileMonitor* file_monitor); + +/** + * Stop file monitor. + */ +void zathura_filemonitor_stop(ZathuraFileMonitor* file_monitor); #endif diff --git a/zathura/links.c b/zathura/links.c index 47030e2..cc6f4ac 100644 --- a/zathura/links.c +++ b/zathura/links.c @@ -14,6 +14,10 @@ #include "page.h" #include "render.h" +#ifdef WITH_SECCOMP +#include "seccomp-filters.h" +#endif + struct zathura_link_s { zathura_rectangle_t position; /**< Position of the link */ zathura_link_type_t type; /**< Link type */ @@ -131,12 +135,16 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link) bool link_zoom = true; girara_setting_get(zathura->ui.session, "link-zoom", &link_zoom); + /* required below to prevent opening hyperlinks in strict sandbox mode */ + char* sandbox = NULL; + girara_setting_get(zathura->ui.session, "sandbox", &sandbox); + switch (link->type) { case ZATHURA_LINK_GOTO_DEST: if (link->target.destination_type != ZATHURA_LINK_DESTINATION_UNKNOWN) { - if (link->target.scale >= DBL_EPSILON && link_zoom) { - zathura_document_set_scale(zathura->document, - zathura_correct_scale_value(zathura->ui.session, link->target.scale)); + if (link->target.zoom >= DBL_EPSILON && link_zoom) { + zathura_document_set_zoom(zathura->document, + zathura_correct_zoom_value(zathura->ui.session, link->target.zoom)); render_all(zathura); } @@ -199,8 +207,12 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link) link_remote(zathura, link->target.value); break; case ZATHURA_LINK_URI: - if (girara_xdg_open(link->target.value) == false) { - girara_notify(zathura->ui.session, GIRARA_ERROR, _("Failed to run xdg-open.")); + if (g_strcmp0(sandbox, "strict") == 0) { + girara_notify(zathura->ui.session, GIRARA_ERROR, _("Opening external applications in strict sandbox mode is not permitted")); + } else { + if (girara_xdg_open(link->target.value) == false) { + girara_notify(zathura->ui.session, GIRARA_ERROR, _("Failed to run xdg-open.")); + } } break; case ZATHURA_LINK_LAUNCH: @@ -209,6 +221,7 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link) default: break; } + g_free(sandbox); } void diff --git a/zathura/links.h b/zathura/links.h index 8d8728e..dc72408 100644 --- a/zathura/links.h +++ b/zathura/links.h @@ -13,7 +13,7 @@ * @param target Target * @return New zathura link */ -zathura_link_t* +ZATHURA_PLUGIN_API zathura_link_t* zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position, zathura_link_target_t target); @@ -22,7 +22,7 @@ zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position, * * @param link The link */ -void zathura_link_free(zathura_link_t* link); +ZATHURA_PLUGIN_API void zathura_link_free(zathura_link_t* link); /** * Returns the type of the link @@ -30,7 +30,7 @@ void zathura_link_free(zathura_link_t* link); * @param link The link * @return The target type of the link */ -zathura_link_type_t zathura_link_get_type(zathura_link_t* link); +ZATHURA_PLUGIN_API zathura_link_type_t zathura_link_get_type(zathura_link_t* link); /** * Returns the position of the link @@ -38,7 +38,7 @@ zathura_link_type_t zathura_link_get_type(zathura_link_t* link); * @param link The link * @return The position of the link */ -zathura_rectangle_t zathura_link_get_position(zathura_link_t* link); +ZATHURA_PLUGIN_API zathura_rectangle_t zathura_link_get_position(zathura_link_t* link); /** * The target value of the link @@ -46,7 +46,7 @@ zathura_rectangle_t zathura_link_get_position(zathura_link_t* link); * @param link The link * @return Returns the target of the link (depends on the link type) */ -zathura_link_target_t zathura_link_get_target(zathura_link_t* link); +ZATHURA_PLUGIN_API zathura_link_target_t zathura_link_get_target(zathura_link_t* link); /** * Evaluate link diff --git a/zathura/macros.h b/zathura/macros.h index a1957dc..62e6075 100644 --- a/zathura/macros.h +++ b/zathura/macros.h @@ -7,6 +7,7 @@ #define UNUSED(x) GIRARA_UNUSED(x) #define DEPRECATED(x) GIRARA_DEPRECATED(x) +#define ZATHURA_PLUGIN_API GIRARA_VISIBLE #ifndef MIN #define MIN(a,b) (((a)<(b))?(a):(b)) diff --git a/zathura/main.c b/zathura/main.c index 2355a1e..88275c0 100644 --- a/zathura/main.c +++ b/zathura/main.c @@ -18,6 +18,9 @@ #ifdef WITH_SYNCTEX #include "synctex.h" #endif +#ifdef WITH_SECCOMP +#include "seccomp-filters.h" +#endif /* Init locale */ static void @@ -119,9 +122,10 @@ init_zathura(const char* config_dir, const char* data_dir, /* main function */ -int +GIRARA_VISIBLE int main(int argc, char* argv[]) { + init_locale(); /* parse command line arguments */ @@ -288,6 +292,28 @@ main(int argc, char* argv[]) goto free_and_ret; } +#ifdef WITH_SECCOMP + char* sandbox = NULL; + girara_setting_get(zathura->ui.session, "sandbox", &sandbox); + if (g_strcmp0(sandbox, "none") == 0) { + girara_debug("Sandbox deactivated."); + } else if (g_strcmp0(sandbox, "normal") == 0) { + girara_debug("Basic sandbox allowing normal operation."); + ret = seccomp_enable_basic_filter(); + } else if (g_strcmp0(sandbox, "strict") == 0) { + girara_debug("Strict sandbox preventing write and network access."); + ret = seccomp_enable_strict_filter(); + } else { + girara_error("Invalid sandbox option"); + ret = -1; + } + g_free(sandbox); + + if (ret != 0) { + goto free_and_ret; + } +#endif + /* open document if passed */ if (file_idx != 0) { if (page_number > 0) { diff --git a/zathura/marks.c b/zathura/marks.c index 73c39d2..12eee4f 100644 --- a/zathura/marks.c +++ b/zathura/marks.c @@ -24,7 +24,7 @@ struct zathura_mark_s { double position_x; /**> Horizontal adjustment */ double position_y; /**> Vertical adjustment */ unsigned int page; /**> Page number */ - double scale; /**> Zoom level */ + double zoom; /**> Zoom level */ }; bool @@ -158,35 +158,35 @@ cmd_marks_delete(girara_session_t* session, girara_list_t* argument_list) return false; } - GIRARA_LIST_FOREACH(argument_list, char*, iter, key_string) - if (key_string == NULL) { - girara_list_iterator_next(iter); - continue; - } - - for (unsigned int i = 0; i < strlen(key_string); i++) { - char key = key_string[i]; - if (((key >= 0x41 && key <= 0x5A) || (key >= - 0x61 && key <= 0x7A)) == false) { + GIRARA_LIST_FOREACH_BODY_WITH_ITER(argument_list, char*, iter, key_string, + if (key_string == NULL) { + girara_list_iterator_next(iter); continue; } - /* search for existing mark */ - girara_list_iterator_t* mark_iter = girara_list_iterator(zathura->global.marks); - do { - zathura_mark_t* mark = (zathura_mark_t*) girara_list_iterator_data(mark_iter); - if (mark == NULL) { + for (unsigned int i = 0; i < strlen(key_string); i++) { + char key = key_string[i]; + if (((key >= 0x41 && key <= 0x5A) || (key >= + 0x61 && key <= 0x7A)) == false) { continue; } - if (mark->key == key) { - girara_list_remove(zathura->global.marks, mark); - continue; - } - } while (girara_list_iterator_next(mark_iter) != NULL); - girara_list_iterator_free(mark_iter); - } - GIRARA_LIST_FOREACH_END(argument_list, char*, iter, key_string); + /* search for existing mark */ + girara_list_iterator_t* mark_iter = girara_list_iterator(zathura->global.marks); + do { + zathura_mark_t* mark = (zathura_mark_t*) girara_list_iterator_data(mark_iter); + if (mark == NULL) { + continue; + } + + if (mark->key == key) { + girara_list_remove(zathura->global.marks, mark); + continue; + } + } while (girara_list_iterator_next(mark_iter) != NULL); + girara_list_iterator_free(mark_iter); + } + ); return true; } @@ -202,18 +202,19 @@ mark_add(zathura_t* zathura, int key) double position_x = zathura_document_get_position_x(zathura->document); double position_y = zathura_document_get_position_y(zathura->document); - double scale = zathura_document_get_scale(zathura->document); + double zoom = zathura_document_get_zoom(zathura->document); /* search for existing mark */ - GIRARA_LIST_FOREACH(zathura->global.marks, zathura_mark_t*, iter, mark) - if (mark->key == key) { - mark->page = page_id; - mark->position_x = position_x; - mark->position_y = position_y; - mark->scale = scale; - return; - } - GIRARA_LIST_FOREACH_END(zathura->global.marks, zathura_mark_t*, iter, mark); + GIRARA_LIST_FOREACH_BODY_WITH_ITER(zathura->global.marks, zathura_mark_t*, iter, mark, + if (mark->key == key) { + mark->page = page_id; + mark->position_x = position_x; + mark->position_y = position_y; + mark->zoom = zoom; + girara_list_iterator_free(iter); + return; + } + ); /* add new mark */ zathura_mark_t* mark = g_try_malloc0(sizeof(zathura_mark_t)); @@ -225,7 +226,7 @@ mark_add(zathura_t* zathura, int key) mark->page = page_id; mark->position_x = position_x; mark->position_y = position_y; - mark->scale = scale; + mark->zoom = zoom; girara_list_append(zathura->global.marks, mark); } @@ -238,20 +239,20 @@ mark_evaluate(zathura_t* zathura, int key) } /* search for existing mark */ - GIRARA_LIST_FOREACH(zathura->global.marks, zathura_mark_t*, iter, mark) - if (mark != NULL && mark->key == key) { - zathura_document_set_scale(zathura->document, - zathura_correct_scale_value(zathura->ui.session, mark->scale)); - render_all(zathura); + GIRARA_LIST_FOREACH_BODY(zathura->global.marks, zathura_mark_t*, mark, + if (mark != NULL && mark->key == key) { + zathura_document_set_zoom(zathura->document, + zathura_correct_zoom_value(zathura->ui.session, mark->zoom)); + render_all(zathura); - zathura_jumplist_add(zathura); - page_set(zathura, mark->page); - position_set(zathura, mark->position_x, mark->position_y); - zathura_jumplist_add(zathura); + zathura_jumplist_add(zathura); + page_set(zathura, mark->page); + position_set(zathura, mark->position_x, mark->position_y); + zathura_jumplist_add(zathura); - return; - } - GIRARA_LIST_FOREACH_END(zathura->global.marks, zathura_mark_t*, iter, mark); + break; + } + ); } void diff --git a/zathura/page-widget.c b/zathura/page-widget.c index d5e4ad6..c025a02 100644 --- a/zathura/page-widget.c +++ b/zathura/page-widget.c @@ -297,12 +297,90 @@ zathura_page_widget_finalize(GObject* object) G_OBJECT_CLASS(zathura_page_widget_parent_class)->finalize(object); } +static void +set_font_from_property(cairo_t* cairo, zathura_t* zathura, cairo_font_weight_t weight) +{ + if (zathura == NULL) { + return; + } + + /* get user font description */ + char* font = NULL; + girara_setting_get(zathura->ui.session, "font", &font); + if (font == NULL) { + return; + } + + /* use pango to extract font family and size */ + PangoFontDescription* descr = pango_font_description_from_string(font); + + const char* family = pango_font_description_get_family(descr); + + /* get font size: can be points or absolute. + * absolute units: example: value 10*PANGO_SCALE = 10 (unscaled) device units (logical pixels) + * point units: example: value 10*PANGO_SCALE = 10 points = 10*(font dpi config / 72) device units */ + double size = pango_font_description_get_size(descr) / PANGO_SCALE; + + /* convert point size to device units */ + if (!pango_font_description_get_size_is_absolute(descr)) { + double font_dpi = 96.0; + if (zathura->ui.session != NULL) { + if (gtk_widget_has_screen(zathura->ui.session->gtk.view)) { + GdkScreen* screen = gtk_widget_get_screen(zathura->ui.session->gtk.view); + font_dpi = gdk_screen_get_resolution(screen); + } + } + size = size * font_dpi / 72; + } + + cairo_select_font_face(cairo, family, CAIRO_FONT_SLANT_NORMAL, weight); + cairo_set_font_size(cairo, size); + + pango_font_description_free(descr); + g_free(font); +} + +static cairo_text_extents_t +get_text_extents(const char* string, zathura_t* zathura, cairo_font_weight_t weight) { + cairo_text_extents_t text = {0,}; + + if (zathura == NULL) { + return text; + } + + /* make dummy surface to satisfy API requirements */ + cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_RGB24, 0, 0); + if (cairo_surface_status(surface) != CAIRO_STATUS_SUCCESS) { + return text; + } + + cairo_t* cairo = cairo_create(surface); + if (cairo_status(cairo) != CAIRO_STATUS_SUCCESS) { + cairo_surface_destroy(surface); + return text; + } + + set_font_from_property(cairo, zathura, weight); + cairo_text_extents(cairo, string, &text); + + /* add some margin (for some reason the reported extents can be a bit short) */ + text.width += 6; + text.height += 2; + + cairo_destroy(cairo); + cairo_surface_destroy(surface); + + return text; +} + static void zathura_page_widget_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec) { ZathuraPage* pageview = ZATHURA_PAGE(object); zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(pageview); + cairo_text_extents_t text; + switch (prop_id) { case PROP_PAGE: priv->page = g_value_get_pointer(value); @@ -320,12 +398,21 @@ zathura_page_widget_set_property(GObject* object, guint prop_id, const GValue* v } if (priv->links.retrieved == TRUE && priv->links.list != NULL) { - GIRARA_LIST_FOREACH(priv->links.list, zathura_link_t*, iter, link) - if (link != NULL) { - zathura_rectangle_t rectangle = recalc_rectangle(priv->page, zathura_link_get_position(link)); - redraw_rect(pageview, &rectangle); - } - GIRARA_LIST_FOREACH_END(priv->links.list, zathura_link_t*, iter, link); + /* get size of text that should be large enough for every link hint */ + text = get_text_extents("888", priv->zathura, CAIRO_FONT_WEIGHT_BOLD); + + GIRARA_LIST_FOREACH_BODY(priv->links.list, zathura_link_t*, link, + if (link != NULL) { + /* redraw link area */ + zathura_rectangle_t rectangle = recalc_rectangle(priv->page, zathura_link_get_position(link)); + redraw_rect(pageview, &rectangle); + + /* also redraw area for link hint */ + rectangle.x2 = rectangle.x1 + text.width; + rectangle.y1 = rectangle.y2 - text.height; + redraw_rect(pageview, &rectangle); + } + ); } break; case PROP_LINKS_OFFSET: @@ -409,6 +496,22 @@ zathura_page_widget_get_property(GObject* object, guint prop_id, GValue* value, } } +static zathura_device_factors_t +get_safe_device_factors(cairo_surface_t* surface) +{ + zathura_device_factors_t factors; + cairo_surface_get_device_scale(surface, &factors.x, &factors.y); + + if (fabs(factors.x) < DBL_EPSILON) { + factors.x = 1.0; + } + if (fabs(factors.y) < DBL_EPSILON) { + factors.y = 1.0; + } + + return factors; +} + static gboolean zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) { @@ -445,8 +548,13 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) } else { const unsigned int height = cairo_image_surface_get_height(priv->thumbnail); const unsigned int width = cairo_image_surface_get_width(priv->thumbnail); - const unsigned int pheight = (rotation % 180 ? page_width : page_height); - const unsigned int pwidth = (rotation % 180 ? page_height : page_width); + unsigned int pheight = (rotation % 180 ? page_width : page_height); + unsigned int pwidth = (rotation % 180 ? page_height : page_width); + + /* note: this always returns 1 and 1 if Cairo too old for device scale API */ + zathura_device_factors_t device = get_safe_device_factors(priv->thumbnail); + pwidth *= device.x; + pheight *= device.y; cairo_scale(cairo, pwidth / (double)width, pheight / (double)height); cairo_set_source_surface(cairo, priv->thumbnail, 0, 0); @@ -465,63 +573,54 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) return FALSE; } - /* draw rectangles */ - char* font = NULL; - girara_setting_get(priv->zathura->ui.session, "font", &font); + /* draw links */ + set_font_from_property(cairo, priv->zathura, CAIRO_FONT_WEIGHT_BOLD); float transparency = 0.5; girara_setting_get(priv->zathura->ui.session, "highlight-transparency", &transparency); - if (font != NULL) { - cairo_select_font_face(cairo, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); - } - - g_free(font); - - /* draw links */ if (priv->links.draw == true && priv->links.n != 0) { unsigned int link_counter = 0; - GIRARA_LIST_FOREACH(priv->links.list, zathura_link_t*, iter, link) - if (link != NULL) { - zathura_rectangle_t rectangle = recalc_rectangle(priv->page, zathura_link_get_position(link)); + GIRARA_LIST_FOREACH_BODY(priv->links.list, zathura_link_t*, link, + if (link != NULL) { + zathura_rectangle_t rectangle = recalc_rectangle(priv->page, zathura_link_get_position(link)); - /* draw position */ - const GdkRGBA color = priv->zathura->ui.colors.highlight_color; - cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency); - cairo_rectangle(cairo, rectangle.x1, rectangle.y1, - (rectangle.x2 - rectangle.x1), (rectangle.y2 - rectangle.y1)); - cairo_fill(cairo); + /* draw position */ + const GdkRGBA color = priv->zathura->ui.colors.highlight_color; + cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency); + cairo_rectangle(cairo, rectangle.x1, rectangle.y1, + (rectangle.x2 - rectangle.x1), (rectangle.y2 - rectangle.y1)); + cairo_fill(cairo); - /* draw text */ - cairo_set_source_rgba(cairo, 0, 0, 0, 1); - cairo_set_font_size(cairo, 10); - cairo_move_to(cairo, rectangle.x1 + 1, rectangle.y2 - 1); - char* link_number = g_strdup_printf("%i", priv->links.offset + ++link_counter); - cairo_show_text(cairo, link_number); - g_free(link_number); - } - GIRARA_LIST_FOREACH_END(priv->links.list, zathura_link_t*, iter, link); + /* draw text */ + cairo_set_source_rgba(cairo, 0, 0, 0, 1); + cairo_move_to(cairo, rectangle.x1 + 1, rectangle.y2 - 1); + char* link_number = g_strdup_printf("%i", priv->links.offset + ++link_counter); + cairo_show_text(cairo, link_number); + g_free(link_number); + } + ); } /* draw search results */ if (priv->search.list != NULL && priv->search.draw == true) { int idx = 0; - GIRARA_LIST_FOREACH(priv->search.list, zathura_rectangle_t*, iter, rect) - zathura_rectangle_t rectangle = recalc_rectangle(priv->page, *rect); + GIRARA_LIST_FOREACH_BODY(priv->search.list, zathura_rectangle_t*, rect, + zathura_rectangle_t rectangle = recalc_rectangle(priv->page, *rect); - /* draw position */ - if (idx == priv->search.current) { - const GdkRGBA color = priv->zathura->ui.colors.highlight_color_active; - cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency); - } else { - const GdkRGBA color = priv->zathura->ui.colors.highlight_color; - cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency); - } - cairo_rectangle(cairo, rectangle.x1, rectangle.y1, - (rectangle.x2 - rectangle.x1), (rectangle.y2 - rectangle.y1)); - cairo_fill(cairo); - ++idx; - GIRARA_LIST_FOREACH_END(priv->search.list, zathura_rectangle_t*, iter, rect); + /* draw position */ + if (idx == priv->search.current) { + const GdkRGBA color = priv->zathura->ui.colors.highlight_color_active; + cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency); + } else { + const GdkRGBA color = priv->zathura->ui.colors.highlight_color; + cairo_set_source_rgba(cairo, color.red, color.green, color.blue, transparency); + } + cairo_rectangle(cairo, rectangle.x1, rectangle.y1, + (rectangle.x2 - rectangle.x1), (rectangle.y2 - rectangle.y1)); + cairo_fill(cairo); + ++idx; + ); } /* draw selection */ if (priv->mouse.selection.y2 != -1 && priv->mouse.selection.x2 != -1) { @@ -583,9 +682,9 @@ zathura_page_widget_redraw_canvas(ZathuraPage* pageview) } /* smaller than max to be replaced by actual renders */ -#define THUMBNAIL_INITIAL_SCALE 0.5 +#define THUMBNAIL_INITIAL_ZOOM 0.5 /* small enough to make bilinear downscaling fast */ -#define THUMBNAIL_MAX_SCALE 0.5 +#define THUMBNAIL_MAX_ZOOM 0.5 static bool surface_small_enough(cairo_surface_t* surface, size_t max_size, cairo_surface_t* old) @@ -605,7 +704,7 @@ surface_small_enough(cairo_surface_t* surface, size_t max_size, cairo_surface_t* const unsigned int width_old = cairo_image_surface_get_width(old); const unsigned int height_old = cairo_image_surface_get_height(old); const size_t old_size = width_old * height_old; - if (new_size < old_size && new_size >= old_size * THUMBNAIL_MAX_SCALE * THUMBNAIL_MAX_SCALE) { + if (new_size < old_size && new_size >= old_size * THUMBNAIL_MAX_ZOOM * THUMBNAIL_MAX_ZOOM) { return false; } } @@ -618,15 +717,21 @@ draw_thumbnail_image(cairo_surface_t* surface, size_t max_size) { unsigned int width = cairo_image_surface_get_width(surface); unsigned int height = cairo_image_surface_get_height(surface); - double scale = sqrt((double)max_size / (width * height)) * THUMBNAIL_INITIAL_SCALE; - if (scale > THUMBNAIL_MAX_SCALE) { - scale = THUMBNAIL_MAX_SCALE; + double scale = sqrt((double)max_size / (width * height)) * THUMBNAIL_INITIAL_ZOOM; + if (scale > THUMBNAIL_MAX_ZOOM) { + scale = THUMBNAIL_MAX_ZOOM; } width = width * scale; height = height * scale; + /* note: this always returns 1 and 1 if Cairo too old for device scale API */ + zathura_device_factors_t device = get_safe_device_factors(surface); + const unsigned int unscaled_width = width / device.x; + const unsigned int unscaled_height = height / device.y; + + /* create thumbnail surface, taking width and height as _unscaled_ device units */ cairo_surface_t *thumbnail; - thumbnail = cairo_surface_create_similar(surface, CAIRO_CONTENT_COLOR, width, height); + thumbnail = cairo_surface_create_similar(surface, CAIRO_CONTENT_COLOR, unscaled_width, unscaled_height); if (thumbnail == NULL) { return NULL; } @@ -747,10 +852,10 @@ redraw_all_rects(ZathuraPage* widget, girara_list_t* rectangles) { zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(widget); - GIRARA_LIST_FOREACH(rectangles, zathura_rectangle_t*, iter, rect) + GIRARA_LIST_FOREACH_BODY(rectangles, zathura_rectangle_t*, rect, zathura_rectangle_t rectangle = recalc_rectangle(priv->page, *rect); redraw_rect(widget, &rectangle); - GIRARA_LIST_FOREACH_END(rectangles, zathura_recantgle_t*, iter, rect); + ); } zathura_link_t* @@ -850,20 +955,20 @@ cb_zathura_page_widget_button_release_event(GtkWidget* widget, GdkEventButton* b } if (priv->links.list != NULL && priv->links.n > 0) { - GIRARA_LIST_FOREACH(priv->links.list, zathura_link_t*, iter, link) - zathura_rectangle_t rect = recalc_rectangle(priv->page, zathura_link_get_position(link)); - if (rect.x1 <= button->x && rect.x2 >= button->x - && rect.y1 <= button->y && rect.y2 >= button->y) { - zathura_link_evaluate(priv->zathura, link); - } - GIRARA_LIST_FOREACH_END(priv->links.list, zathura_link_t*, iter, link); + GIRARA_LIST_FOREACH_BODY(priv->links.list, zathura_link_t*, link, + const zathura_rectangle_t rect = recalc_rectangle(priv->page, zathura_link_get_position(link)); + if (rect.x1 <= oldx && rect.x2 >= oldx + && rect.y1 <= oldy && rect.y2 >= oldy) { + zathura_link_evaluate(priv->zathura, link); + break; + } + ); } } else { redraw_rect(ZATHURA_PAGE(widget), &priv->mouse.selection); zathura_rectangle_t tmp = priv->mouse.selection; - const double scale = zathura_document_get_scale(document); tmp.x1 /= scale; tmp.x2 /= scale; tmp.y1 /= scale; @@ -904,12 +1009,13 @@ cb_zathura_page_widget_motion_notify(GtkWidget* widget, GdkEventMotion* event) if (priv->links.list != NULL && priv->links.n > 0) { bool over_link = false; - GIRARA_LIST_FOREACH(priv->links.list, zathura_link_t*, iter, link) + GIRARA_LIST_FOREACH_BODY(priv->links.list, zathura_link_t*, link, zathura_rectangle_t rect = recalc_rectangle(priv->page, zathura_link_get_position(link)); if (rect.x1 <= event->x && rect.x2 >= event->x && rect.y1 <= event->y && rect.y2 >= event->y) { over_link = true; + break; } - GIRARA_LIST_FOREACH_END(priv->links.list, zathura_link_t*, iter, link); + ); if (priv->mouse.over_link != over_link) { if (over_link == true) { @@ -983,12 +1089,12 @@ zathura_page_widget_popup_menu(GtkWidget* widget, GdkEventButton* event) /* search for underlaying image */ zathura_image_t* image = NULL; - GIRARA_LIST_FOREACH(priv->images.list, zathura_image_t*, iter, image_it) + GIRARA_LIST_FOREACH_BODY(priv->images.list, zathura_image_t*, image_it, zathura_rectangle_t rect = recalc_rectangle(priv->page, image_it->position); if (rect.x1 <= event->x && rect.x2 >= event->x && rect.y1 <= event->y && rect.y2 >= event->y) { image = image_it; } - GIRARA_LIST_FOREACH_END(priv->images.list, zathura_image_t*, iter, image_it); + ); if (image == NULL) { return; @@ -1071,13 +1177,13 @@ cb_menu_image_save(GtkMenuItem* item, ZathuraPage* page) unsigned int page_id = zathura_page_get_index(priv->page) + 1; unsigned int image_id = 1; - GIRARA_LIST_FOREACH(priv->images.list, zathura_image_t*, iter, image_it) + GIRARA_LIST_FOREACH_BODY(priv->images.list, zathura_image_t*, image_it, if (image_it == priv->images.current) { break; } image_id++; - GIRARA_LIST_FOREACH_END(priv->images.list, zathura_image_t*, iter, image_it); + ); /* set command */ char* export_command = g_strdup_printf(":export image-p%d-%d ", page_id, image_id); diff --git a/zathura/page.c b/zathura/page.c index a40651a..799cc27 100644 --- a/zathura/page.c +++ b/zathura/page.c @@ -45,7 +45,7 @@ zathura_page_new(zathura_document_t* document, unsigned int index, zathura_error /* init plugin */ zathura_plugin_t* plugin = zathura_document_get_plugin(document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_init == NULL) { if (error != NULL) { @@ -88,7 +88,7 @@ zathura_page_free(zathura_page_t* page) } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_clear == NULL) { return ZATHURA_ERROR_NOT_IMPLEMENTED; } @@ -211,7 +211,7 @@ zathura_page_search_text(zathura_page_t* page, const char* text, zathura_error_t } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_search_text == NULL) { if (error != NULL) { *error = ZATHURA_ERROR_NOT_IMPLEMENTED; @@ -233,7 +233,7 @@ zathura_page_links_get(zathura_page_t* page, zathura_error_t* error) } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_links_get == NULL) { if (error != NULL) { *error = ZATHURA_ERROR_NOT_IMPLEMENTED; @@ -261,7 +261,7 @@ zathura_page_form_fields_get(zathura_page_t* page, zathura_error_t* error) } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_form_fields_get == NULL) { if (error != NULL) { *error = ZATHURA_ERROR_NOT_IMPLEMENTED; @@ -289,7 +289,7 @@ zathura_page_images_get(zathura_page_t* page, zathura_error_t* error) } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_images_get == NULL) { if (error != NULL) { *error = ZATHURA_ERROR_NOT_IMPLEMENTED; @@ -311,7 +311,7 @@ zathura_page_image_get_cairo(zathura_page_t* page, zathura_image_t* image, zathu } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_image_get_cairo == NULL) { if (error != NULL) { *error = ZATHURA_ERROR_NOT_IMPLEMENTED; @@ -333,7 +333,7 @@ zathura_page_get_text(zathura_page_t* page, zathura_rectangle_t rectangle, zathu } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_get_text == NULL) { if (error) { *error = ZATHURA_ERROR_NOT_IMPLEMENTED; @@ -352,10 +352,41 @@ zathura_page_render(zathura_page_t* page, cairo_t* cairo, bool printing) } zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); - zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); if (functions->page_render_cairo == NULL) { return ZATHURA_ERROR_NOT_IMPLEMENTED; } return functions->page_render_cairo(page, page->data, cairo, printing); } + +char* +zathura_page_get_label(zathura_page_t* page, zathura_error_t* error) +{ + if (page == NULL || page->document == NULL) { + if (error) { + *error = ZATHURA_ERROR_INVALID_ARGUMENTS; + } + return NULL; + } + + zathura_plugin_t* plugin = zathura_document_get_plugin(page->document); + const zathura_plugin_functions_t* functions = zathura_plugin_get_functions(plugin); + if (functions->page_get_label == NULL) { + if (error) { + *error = ZATHURA_ERROR_NOT_IMPLEMENTED; + } + return NULL; + } + + char* ret = NULL; + zathura_error_t e = functions->page_get_label(page, page->data, &ret); + if (e != ZATHURA_ERROR_OK) { + if (error) { + *error = e; + } + return NULL; + } + + return ret; +} diff --git a/zathura/page.h b/zathura/page.h index d8f260e..f56d2e3 100644 --- a/zathura/page.h +++ b/zathura/page.h @@ -16,7 +16,7 @@ * @param error Optional error * @return Page object or NULL if an error occurred */ -zathura_page_t* zathura_page_new(zathura_document_t* document, unsigned int +ZATHURA_PLUGIN_API zathura_page_t* zathura_page_new(zathura_document_t* document, unsigned int index, zathura_error_t* error); /** @@ -26,7 +26,7 @@ zathura_page_t* zathura_page_new(zathura_document_t* document, unsigned int * @return ZATHURA_ERROR_OK when no error occurred, otherwise see * zathura_error_t */ -zathura_error_t zathura_page_free(zathura_page_t* page); +ZATHURA_PLUGIN_API zathura_error_t zathura_page_free(zathura_page_t* page); /** * Returns the associated document @@ -35,7 +35,7 @@ zathura_error_t zathura_page_free(zathura_page_t* page); * @return The associated document * @return NULL if an error occurred */ -zathura_document_t* zathura_page_get_document(zathura_page_t* page); +ZATHURA_PLUGIN_API zathura_document_t* zathura_page_get_document(zathura_page_t* page); /** * Returns the set id of the page @@ -43,7 +43,7 @@ zathura_document_t* zathura_page_get_document(zathura_page_t* page); * @param page The page object * @return The id of the page */ -unsigned int zathura_page_get_index(zathura_page_t* page); +ZATHURA_PLUGIN_API unsigned int zathura_page_get_index(zathura_page_t* page); /** * Returns the width of the page @@ -52,7 +52,7 @@ unsigned int zathura_page_get_index(zathura_page_t* page); * @return Width of the page * @return -1 If an error occurred */ -double zathura_page_get_width(zathura_page_t* page); +ZATHURA_PLUGIN_API double zathura_page_get_width(zathura_page_t* page); /** * Sets the new width of the page @@ -60,7 +60,7 @@ double zathura_page_get_width(zathura_page_t* page); * @param page The page object * @param width The new width of the page */ -void zathura_page_set_width(zathura_page_t* page, double width); +ZATHURA_PLUGIN_API void zathura_page_set_width(zathura_page_t* page, double width); /** * Returns the height of the page @@ -69,7 +69,7 @@ void zathura_page_set_width(zathura_page_t* page, double width); * @return Height of the page * @return -1 If an error occurred */ -double zathura_page_get_height(zathura_page_t* page); +ZATHURA_PLUGIN_API double zathura_page_get_height(zathura_page_t* page); /** * Sets the new height of the page @@ -77,7 +77,7 @@ double zathura_page_get_height(zathura_page_t* page); * @param page The page object * @param height The new height of the page */ -void zathura_page_set_height(zathura_page_t* page, double height); +ZATHURA_PLUGIN_API void zathura_page_set_height(zathura_page_t* page, double height); /** * Returns the visibility of the page @@ -86,7 +86,7 @@ void zathura_page_set_height(zathura_page_t* page, double height); * @return true if the page is visible * @return false if the page is hidden */ -bool zathura_page_get_visibility(zathura_page_t* page); +ZATHURA_PLUGIN_API bool zathura_page_get_visibility(zathura_page_t* page); /** * Sets the visibility of the page @@ -94,7 +94,7 @@ bool zathura_page_get_visibility(zathura_page_t* page); * @param page The page object * @param visibility The new visibility value */ -void zathura_page_set_visibility(zathura_page_t* page, bool visibility); +ZATHURA_PLUGIN_API void zathura_page_set_visibility(zathura_page_t* page, bool visibility); /** * Returns the custom data @@ -102,7 +102,7 @@ void zathura_page_set_visibility(zathura_page_t* page, bool visibility); * @param page The page object * @return The custom data or NULL */ -void* zathura_page_get_data(zathura_page_t* page); +ZATHURA_PLUGIN_API void* zathura_page_get_data(zathura_page_t* page); /** * Sets the custom data @@ -110,7 +110,7 @@ void* zathura_page_get_data(zathura_page_t* page); * @param page The page object * @param data The custom data */ -void zathura_page_set_data(zathura_page_t* page, void* data); +ZATHURA_PLUGIN_API void zathura_page_set_data(zathura_page_t* page, void* data); /** * Search page @@ -121,7 +121,7 @@ void zathura_page_set_data(zathura_page_t* page, void* data); * error occurred * @return List of results */ -girara_list_t* zathura_page_search_text(zathura_page_t* page, const char* text, zathura_error_t* error); +ZATHURA_PLUGIN_API girara_list_t* zathura_page_search_text(zathura_page_t* page, const char* text, zathura_error_t* error); /** * Get page links @@ -131,7 +131,7 @@ girara_list_t* zathura_page_search_text(zathura_page_t* page, const char* text, * error occurred * @return List of links */ -girara_list_t* zathura_page_links_get(zathura_page_t* page, zathura_error_t* error); +ZATHURA_PLUGIN_API girara_list_t* zathura_page_links_get(zathura_page_t* page, zathura_error_t* error); /** * Free page links @@ -140,7 +140,7 @@ girara_list_t* zathura_page_links_get(zathura_page_t* page, zathura_error_t* err * @return ZATHURA_ERROR_OK when no error occurred, otherwise see * zathura_error_t */ -zathura_error_t zathura_page_links_free(girara_list_t* list); +ZATHURA_PLUGIN_API zathura_error_t zathura_page_links_free(girara_list_t* list); /** * Get list of form fields @@ -150,7 +150,7 @@ zathura_error_t zathura_page_links_free(girara_list_t* list); * error occurred * @return List of form fields */ -girara_list_t* zathura_page_form_fields_get(zathura_page_t* page, zathura_error_t* error); +ZATHURA_PLUGIN_API girara_list_t* zathura_page_form_fields_get(zathura_page_t* page, zathura_error_t* error); /** * Free list of form fields @@ -159,7 +159,7 @@ girara_list_t* zathura_page_form_fields_get(zathura_page_t* page, zathura_error_ * @return ZATHURA_ERROR_OK when no error occurred, otherwise see * zathura_error_t */ -zathura_error_t zathura_page_form_fields_free(girara_list_t* list); +ZATHURA_PLUGIN_API zathura_error_t zathura_page_form_fields_free(girara_list_t* list); /** * Get list of images @@ -169,7 +169,7 @@ zathura_error_t zathura_page_form_fields_free(girara_list_t* list); * error occurred * @return List of images or NULL if an error occurred */ -girara_list_t* zathura_page_images_get(zathura_page_t* page, zathura_error_t* error); +ZATHURA_PLUGIN_API girara_list_t* zathura_page_images_get(zathura_page_t* page, zathura_error_t* error); /** * Get image @@ -180,7 +180,7 @@ girara_list_t* zathura_page_images_get(zathura_page_t* page, zathura_error_t* er * error occurred * @return The cairo image surface or NULL if an error occurred */ -cairo_surface_t* zathura_page_image_get_cairo(zathura_page_t* page, zathura_image_t* image, zathura_error_t* error); +ZATHURA_PLUGIN_API cairo_surface_t* zathura_page_image_get_cairo(zathura_page_t* page, zathura_image_t* image, zathura_error_t* error); /** * Get text for selection @@ -190,7 +190,7 @@ cairo_surface_t* zathura_page_image_get_cairo(zathura_page_t* page, zathura_imag * occurred * @return The selected text (needs to be deallocated with g_free) */ -char* zathura_page_get_text(zathura_page_t* page, zathura_rectangle_t rectangle, zathura_error_t* error); +ZATHURA_PLUGIN_API char* zathura_page_get_text(zathura_page_t* page, zathura_rectangle_t rectangle, zathura_error_t* error); /** * Render page @@ -201,6 +201,17 @@ char* zathura_page_get_text(zathura_page_t* page, zathura_rectangle_t rectangle, * @return ZATHURA_ERROR_OK when no error occurred, otherwise see * zathura_error_t */ -zathura_error_t zathura_page_render(zathura_page_t* page, cairo_t* cairo, bool printing); +ZATHURA_PLUGIN_API zathura_error_t zathura_page_render(zathura_page_t* page, cairo_t* cairo, bool printing); + +/** + * Get page label. Note that the page label might not exist, in this case NULL + * is returned. + * + * @param page Page + * @param error Set to an error value (see \ref zathura_Error_t) if an error + * occurred. + * @return Page label + */ +ZATHURA_PLUGIN_API char* zathura_page_get_label(zathura_page_t* page, zathura_error_t* error); #endif // PAGE_H diff --git a/zathura/plugin-api.h b/zathura/plugin-api.h index c372756..fd6fc59 100644 --- a/zathura/plugin-api.h +++ b/zathura/plugin-api.h @@ -3,10 +3,13 @@ #ifndef PLUGIN_API_H #define PLUGIN_API_H +#include + +#include "types.h" #include "page.h" #include "document.h" #include "links.h" -#include "version.h" +#include "zathura-version.h" typedef struct zathura_plugin_functions_s zathura_plugin_functions_t; @@ -91,10 +94,15 @@ typedef char* (*zathura_plugin_page_get_text_t)(zathura_page_t* page, void* data typedef zathura_image_buffer_t* (*zathura_plugin_page_render_t)(zathura_page_t* page, void* data, zathura_error_t* error); /** - * Renders the page + * Renders the page to a cairo surface. */ typedef zathura_error_t (*zathura_plugin_page_render_cairo_t)(zathura_page_t* page, void* data, cairo_t* cairo, bool printing); +/** + * Get page label. + */ +typedef zathura_error_t (*zathura_plugin_page_get_label_t)(zathura_page_t* page, void* data, char** label); + struct zathura_plugin_functions_s { @@ -179,17 +187,15 @@ struct zathura_plugin_functions_s zathura_plugin_page_render_t page_render; /** - * Renders the page + * Renders the page to a cairo surface. */ zathura_plugin_page_render_cairo_t page_render_cairo; -}; -/** - * Functions register function - * - * @param functions The functions struct - */ -typedef void (*zathura_plugin_register_function_t)(zathura_plugin_functions_t* functions); + /** + * Get page label. + */ + zathura_plugin_page_get_label_t page_get_label; +}; typedef struct zathura_plugin_version_s { unsigned int major; /**< Major */ @@ -200,7 +206,6 @@ typedef struct zathura_plugin_version_s { typedef struct zathura_plugin_definition_s { const char* name; const zathura_plugin_version_t version; - const zathura_plugin_register_function_t register_function; zathura_plugin_functions_t functions; const size_t mime_types_size; const char** mime_types; @@ -212,27 +217,6 @@ typedef struct zathura_plugin_definition_s { #define ZATHURA_PLUGIN_DEFINITION_SYMBOL \ JOIN(zathura_plugin, JOIN(ZATHURA_API_VERSION, ZATHURA_ABI_VERSION)) -/** - * Register a plugin. - * - * @param plugin_name the name of the plugin - * @param major the plugin's major version - * @param minor the plugin's minor version - * @param rev the plugin's revision - * @param register_functions function to register the plugin's document functions - * @param mimetypes a char array of mime types supported by the plugin - */ -#define ZATHURA_PLUGIN_REGISTER(plugin_name, major, minor, rev, register_functions, mimetypes) \ - static const char* zathura_plugin_mime_types[] = mimetypes; \ - \ - const zathura_plugin_definition_t ZATHURA_PLUGIN_DEFINITION_SYMBOL = { \ - .name = plugin_name, \ - .version = { major, minor, rev }, \ - .register_function = register_functions, \ - .mime_types_size = sizeof(zathura_plugin_mime_types) / sizeof(zathura_plugin_mime_types[0]), \ - .mime_types = zathura_plugin_mime_types \ - }; \ - /** * Register a plugin. * @@ -246,10 +230,9 @@ typedef struct zathura_plugin_definition_s { #define ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS(plugin_name, major, minor, rev, plugin_functions, mimetypes) \ static const char* zathura_plugin_mime_types[] = mimetypes; \ \ - const zathura_plugin_definition_t ZATHURA_PLUGIN_DEFINITION_SYMBOL = { \ + ZATHURA_PLUGIN_API const zathura_plugin_definition_t ZATHURA_PLUGIN_DEFINITION_SYMBOL = { \ .name = plugin_name, \ .version = { major, minor, rev }, \ - .register_function = NULL, \ .functions = plugin_functions, \ .mime_types_size = sizeof(zathura_plugin_mime_types) / sizeof(zathura_plugin_mime_types[0]), \ .mime_types = zathura_plugin_mime_types \ diff --git a/zathura/plugin.c b/zathura/plugin.c index 076f30c..74efec4 100644 --- a/zathura/plugin.c +++ b/zathura/plugin.c @@ -39,7 +39,7 @@ struct zathura_plugin_manager_s { girara_list_t* type_plugin_mapping; /**< List of type -> plugin mappings */ }; -static void zathura_plugin_add_mimetype(zathura_plugin_t* plugin, const char* mime_type); +static void plugin_add_mimetype(zathura_plugin_t* plugin, const char* mime_type); static bool register_plugin(zathura_plugin_manager_t* plugin_manager, zathura_plugin_t* plugin); static bool plugin_mapping_new(zathura_plugin_manager_t* plugin_manager, const gchar* type, zathura_plugin_t* plugin); static void zathura_plugin_free(zathura_plugin_t* plugin); @@ -80,19 +80,118 @@ zathura_plugin_manager_add_dir(zathura_plugin_manager_t* plugin_manager, const c static bool check_suffix(const char* path) { - if (g_str_has_suffix(path, ".so") == TRUE) { - return true; - } - #ifdef __APPLE__ if (g_str_has_suffix(path, ".dylib") == TRUE) { return true; } +#else + if (g_str_has_suffix(path, ".so") == TRUE) { + return true; + } #endif return false; } +static void +load_plugin(zathura_plugin_manager_t* plugin_manager, const char* plugindir, const char* name) +{ + char* path = g_build_filename(plugindir, name, NULL); + if (g_file_test(path, G_FILE_TEST_IS_REGULAR) == 0) { + girara_debug("'%s' is not a regular file. Skipping.", path); + g_free(path); + return; + } + + if (check_suffix(path) == false) { + girara_debug("'%s' is not a plugin file. Skipping.", path); + g_free(path); + return; + } + + /* load plugin */ + GModule* handle = g_module_open(path, G_MODULE_BIND_LOCAL); + if (handle == NULL) { + girara_error("Could not load plugin '%s' (%s).", path, g_module_error()); + g_free(path); + return; + } + + /* resolve symbols and check API and ABI version*/ + const zathura_plugin_definition_t* plugin_definition = NULL; + if (g_module_symbol(handle, G_STRINGIFY(ZATHURA_PLUGIN_DEFINITION_SYMBOL), (void**) &plugin_definition) == FALSE || + plugin_definition == NULL) { + girara_error("Could not find '%s' in plugin %s - is not a plugin or needs to be rebuilt.", G_STRINGIFY(ZATHURA_PLUGIN_DEFINITION_SYMBOL), path); + g_free(path); + g_module_close(handle); + return; + } + + /* check name */ + if (plugin_definition->name == NULL) { + girara_error("Plugin has no name."); + g_free(path); + g_module_close(handle); + return; + } + + /* check mime type */ + if (plugin_definition->mime_types == NULL || plugin_definition->mime_types_size == 0) { + girara_error("Plugin does not handly any mime types."); + g_free(path); + g_module_close(handle); + return; + } + + zathura_plugin_t* plugin = g_try_malloc0(sizeof(zathura_plugin_t)); + if (plugin == NULL) { + girara_error("Failed to allocate memory for plugin."); + g_free(path); + g_module_close(handle); + return; + } + + plugin->definition = plugin_definition; + plugin->functions = plugin_definition->functions; + plugin->content_types = girara_list_new2(g_free); + plugin->handle = handle; + plugin->path = path; + + // register mime types + for (size_t s = 0; s != plugin_definition->mime_types_size; ++s) { + plugin_add_mimetype(plugin, plugin_definition->mime_types[s]); + } + + bool ret = register_plugin(plugin_manager, plugin); + if (ret == false) { + girara_error("Could not register plugin '%s'.", path); + zathura_plugin_free(plugin); + } else { + girara_debug("Successfully loaded plugin from '%s'.", path); + girara_debug("plugin %s: version %u.%u.%u", plugin_definition->name, + plugin_definition->version.major, plugin_definition->version.minor, + plugin_definition->version.rev); + } +} + +static void +load_dir(void* data, void* userdata) +{ + const char* plugindir = data; + zathura_plugin_manager_t* plugin_manager = userdata; + + GDir* dir = g_dir_open(plugindir, 0, NULL); + if (dir == NULL) { + girara_error("could not open plugin directory: %s", plugindir); + } else { + const char* name = NULL; + while ((name = g_dir_read_name(dir)) != NULL) { + load_plugin(plugin_manager, plugindir, name); + } + g_dir_close(dir); + } +} + void zathura_plugin_manager_load(zathura_plugin_manager_t* plugin_manager) { @@ -100,104 +199,8 @@ zathura_plugin_manager_load(zathura_plugin_manager_t* plugin_manager) return; } - GIRARA_LIST_FOREACH(plugin_manager->path, char*, iter, plugindir) /* read all files in the plugin directory */ - GDir* dir = g_dir_open(plugindir, 0, NULL); - if (dir == NULL) { - girara_error("could not open plugin directory: %s", plugindir); - girara_list_iterator_next(iter); - continue; - } - - char* name = NULL; - while ((name = (char*) g_dir_read_name(dir)) != NULL) { - char* path = g_build_filename(plugindir, name, NULL); - if (g_file_test(path, G_FILE_TEST_IS_REGULAR) == 0) { - girara_debug("%s is not a regular file. Skipping.", path); - g_free(path); - continue; - } - - if (check_suffix(path) == false) { - girara_debug("%s is not a plugin file. Skipping.", path); - g_free(path); - continue; - } - - zathura_plugin_t* plugin = NULL; - - /* load plugin */ - GModule* handle = g_module_open(path, G_MODULE_BIND_LOCAL); - if (handle == NULL) { - girara_error("could not load plugin %s (%s)", path, g_module_error()); - g_free(path); - continue; - } - - /* resolve symbols and check API and ABI version*/ - const zathura_plugin_definition_t* plugin_definition = NULL; - if (g_module_symbol(handle, G_STRINGIFY(ZATHURA_PLUGIN_DEFINITION_SYMBOL), (void**) &plugin_definition) == FALSE || - plugin_definition == NULL) { - girara_error("could not find '%s' in plugin %s - is not a plugin or needs to be rebuilt", G_STRINGIFY(ZATHURA_PLUGIN_DEFINITION_SYMBOL), path); - g_free(path); - g_module_close(handle); - continue; - } - - /* check name */ - if (plugin_definition->name == NULL) { - girara_error("plugin has no name"); - g_free(path); - g_free(plugin); - g_module_close(handle); - continue; - } - - /* check mime type */ - if (plugin_definition->mime_types == NULL || plugin_definition->mime_types_size == 0) { - girara_error("plugin has no mime_types"); - g_free(path); - g_free(plugin); - g_module_close(handle); - continue; - } - - plugin = g_try_malloc0(sizeof(zathura_plugin_t)); - if (plugin == NULL) { - girara_error("Failed to allocate memory for plugin."); - g_free(path); - g_module_close(handle); - continue; - } - - plugin->definition = plugin_definition; - plugin->functions = plugin_definition->functions; - plugin->content_types = girara_list_new2(g_free); - plugin->handle = handle; - plugin->path = path; - - // register mime types - for (size_t s = 0; s != plugin_definition->mime_types_size; ++s) { - zathura_plugin_add_mimetype(plugin, plugin_definition->mime_types[s]); - } - // register functions - if (plugin->definition->register_function != NULL) { - plugin->definition->register_function(&(plugin->functions)); - } - - bool ret = register_plugin(plugin_manager, plugin); - if (ret == false) { - girara_error("could not register plugin %s", path); - zathura_plugin_free(plugin); - } else { - girara_debug("successfully loaded plugin from %s", path); - girara_debug("plugin %s: version %u.%u.%u", plugin_definition->name, - plugin_definition->version.major, plugin_definition->version.minor, - plugin_definition->version.rev); - } - } - g_dir_close(dir); - GIRARA_LIST_FOREACH_END(zathura->plugins.path, char*, iter, plugindir); + girara_list_foreach(plugin_manager->path, load_dir, plugin_manager); } zathura_plugin_t* @@ -208,12 +211,12 @@ zathura_plugin_manager_get_plugin(zathura_plugin_manager_t* plugin_manager, cons } zathura_plugin_t* plugin = NULL; - GIRARA_LIST_FOREACH(plugin_manager->type_plugin_mapping, zathura_type_plugin_mapping_t*, iter, mapping) - if (g_content_type_equals(type, mapping->type)) { - plugin = mapping->plugin; - break; - } - GIRARA_LIST_FOREACH_END(plugin_manager->type_plugin_mapping, zathura_type_plugin_mapping_t*, iter, mapping); + GIRARA_LIST_FOREACH_BODY(plugin_manager->type_plugin_mapping, zathura_type_plugin_mapping_t*, mapping, + if (g_content_type_equals(type, mapping->type)) { + plugin = mapping->plugin; + break; + } + ); return plugin; } @@ -257,18 +260,19 @@ register_plugin(zathura_plugin_manager_t* plugin_manager, zathura_plugin_t* plug || plugin->content_types == NULL || plugin_manager == NULL || plugin_manager->plugins == NULL) { - girara_error("plugin: could not register\n"); + girara_error("plugin: could not register"); return false; } bool at_least_one = false; - GIRARA_LIST_FOREACH(plugin->content_types, gchar*, iter, type) - if (plugin_mapping_new(plugin_manager, type, plugin) == false) { - girara_error("plugin: already registered for filetype %s\n", type); - } else { - at_least_one = true; - } - GIRARA_LIST_FOREACH_END(plugin->content_types, gchar*, iter, type); + GIRARA_LIST_FOREACH_BODY(plugin->content_types, gchar*, type, + if (plugin_mapping_new(plugin_manager, type, plugin) == false) { + girara_error("plugin: filetype already registered: %s", type); + } else { + girara_debug("plugin: filetype mapping addded: %s", type); + at_least_one = true; + } + ); if (at_least_one == true) { girara_list_append(plugin_manager->plugins, plugin); @@ -284,12 +288,17 @@ plugin_mapping_new(zathura_plugin_manager_t* plugin_manager, const gchar* type, g_return_val_if_fail(type != NULL, false); g_return_val_if_fail(plugin != NULL, false); - GIRARA_LIST_FOREACH(plugin_manager->type_plugin_mapping, zathura_type_plugin_mapping_t*, iter, mapping) - if (g_content_type_equals(type, mapping->type)) { - girara_list_iterator_free(iter); + bool already_registered = false; + GIRARA_LIST_FOREACH_BODY(plugin_manager->type_plugin_mapping, zathura_type_plugin_mapping_t*, mapping, + if (g_content_type_equals(type, mapping->type)) { + already_registered = true; + break; + } + ); + + if (already_registered == true) { return false; } - GIRARA_LIST_FOREACH_END(plugin_manager->type_plugin_mapping, zathura_type_plugin_mapping_t*, iter, mapping); zathura_type_plugin_mapping_t* mapping = g_try_malloc0(sizeof(zathura_type_plugin_mapping_t)); if (mapping == NULL) { @@ -332,20 +341,25 @@ zathura_plugin_free(zathura_plugin_t* plugin) } static void -zathura_plugin_add_mimetype(zathura_plugin_t* plugin, const char* mime_type) +plugin_add_mimetype(zathura_plugin_t* plugin, const char* mime_type) { if (plugin == NULL || mime_type == NULL) { return; } - girara_list_append(plugin->content_types, g_content_type_from_mime_type(mime_type)); + char* content_type = g_content_type_from_mime_type(mime_type); + if (content_type == NULL) { + girara_warning("plugin: unable to convert mime type: %s", mime_type); + } else { + girara_list_append(plugin->content_types, content_type); + } } -zathura_plugin_functions_t* +const zathura_plugin_functions_t* zathura_plugin_get_functions(zathura_plugin_t* plugin) { if (plugin != NULL) { - return &(plugin->functions); + return &plugin->functions; } else { return NULL; } diff --git a/zathura/plugin.h b/zathura/plugin.h index d69745e..21c7af3 100644 --- a/zathura/plugin.h +++ b/zathura/plugin.h @@ -8,7 +8,7 @@ #include "types.h" #include "plugin-api.h" -#include "version.h" +#include "zathura-version.h" #include "zathura.h" /** @@ -63,7 +63,7 @@ girara_list_t* zathura_plugin_manager_get_plugins(zathura_plugin_manager_t* plug * @param plugin The plugin * @return The plugin functions */ -zathura_plugin_functions_t* zathura_plugin_get_functions(zathura_plugin_t* plugin); +const zathura_plugin_functions_t* zathura_plugin_get_functions(zathura_plugin_t* plugin); /** * Returns the name of the plugin diff --git a/zathura/render.c b/zathura/render.c index 51967a8..e7ddc6c 100644 --- a/zathura/render.c +++ b/zathura/render.c @@ -375,13 +375,15 @@ zathura_renderer_set_recolor_colors_str(ZathuraRenderer* renderer, if (dark != NULL) { GdkRGBA color; - gdk_rgba_parse(&color, dark); - zathura_renderer_set_recolor_colors(renderer, NULL, &color); + if (parse_color(&color, dark) == true) { + zathura_renderer_set_recolor_colors(renderer, NULL, &color); + } } if (light != NULL) { GdkRGBA color; - gdk_rgba_parse(&color, light); - zathura_renderer_set_recolor_colors(renderer, &color, NULL); + if (parse_color(&color, light) == true) { + zathura_renderer_set_recolor_colors(renderer, &color, NULL); + } } } @@ -438,11 +440,12 @@ zathura_render_request(ZathuraRenderRequest* request, gint64 last_view_time) bool unfinished_jobs = false; /* check if there are any active jobs left */ - GIRARA_LIST_FOREACH(request_priv->active_jobs, render_job_t*, iter, job) + GIRARA_LIST_FOREACH_BODY(request_priv->active_jobs, render_job_t*, job, if (job->aborted == false) { unfinished_jobs = true; + break; } - GIRARA_LIST_FOREACH_END(request_priv->active_jobs, render_job_t*, iter, job); + ); /* only add a new job if there are no active ones left */ if (unfinished_jobs == false) { @@ -471,9 +474,9 @@ zathura_render_request_abort(ZathuraRenderRequest* request) request_private_t* request_priv = REQUEST_GET_PRIVATE(request); g_mutex_lock(&request_priv->jobs_mutex); - GIRARA_LIST_FOREACH(request_priv->active_jobs, render_job_t*, iter, job) + GIRARA_LIST_FOREACH_BODY(request_priv->active_jobs, render_job_t*, job, job->aborted = true; - GIRARA_LIST_FOREACH_END(request_priv->active_jobs, render_job_t*, iter, job); + ); g_mutex_unlock(&request_priv->jobs_mutex); } @@ -632,14 +635,14 @@ recolor(private_t* priv, zathura_page_t* page, unsigned int page_width, if (found_images == true) { /* Get images bounding boxes */ - GIRARA_LIST_FOREACH(images, zathura_image_t*, iter, image_it) + GIRARA_LIST_FOREACH_BODY(images, zathura_image_t*, image_it, zathura_rectangle_t* rect = g_try_malloc(sizeof(zathura_rectangle_t)); if (rect == NULL) { break; } *rect = recalc_rectangle(page, image_it->position); girara_list_append(rectangles, rect); - GIRARA_LIST_FOREACH_END(images, zathura_image_t*, iter, image_it); + ); } } @@ -650,13 +653,13 @@ recolor(private_t* priv, zathura_page_t* page, unsigned int page_width, /* Check if the pixel belongs to an image when in reverse video mode*/ if (priv->recolor.reverse_video == true && found_images == true){ bool inside_image = false; - GIRARA_LIST_FOREACH(rectangles, zathura_rectangle_t*, iter, rect_it) + GIRARA_LIST_FOREACH_BODY(rectangles, zathura_rectangle_t*, rect_it, if (rect_it->x1 <= x && rect_it->x2 >= x && rect_it->y1 <= y && rect_it->y2 >= y) { inside_image = true; break; } - GIRARA_LIST_FOREACH_END(rectangles, zathura_rectangle_t*, iter, rect_it); + ); /* If it's inside and image don't recolor */ if (inside_image == true) { continue; @@ -732,20 +735,30 @@ render(render_job_t* job, ZathuraRenderRequest* request, ZathuraRenderer* render unsigned int page_width = 0; unsigned int page_height = 0; + /* page size in points */ zathura_document_t* document = zathura_page_get_document(page); const double height = zathura_page_get_height(page); const double width = zathura_page_get_width(page); + /* page size in user pixels based on document zoom: if PPI information is + * correct, 100% zoom will result in 72 documents points per inch of screen + * (i.e. document size on screen matching the physical paper size). */ const double real_scale = page_calc_height_width(document, height, width, &page_height, &page_width, false); + zathura_device_factors_t device_factors = zathura_document_get_device_factors(document); + page_width *= device_factors.x; + page_height *= device_factors.y; cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_RGB24, page_width, page_height); if (surface == NULL) { return false; } + + cairo_surface_set_device_scale(surface, device_factors.x, device_factors.y); + if (cairo_surface_status(surface) != CAIRO_STATUS_SUCCESS) { cairo_surface_destroy(surface); return false; @@ -759,11 +772,11 @@ render(render_job_t* job, ZathuraRenderRequest* request, ZathuraRenderer* render cairo_save(cairo); cairo_set_source_rgb(cairo, 1, 1, 1); - cairo_rectangle(cairo, 0, 0, page_width, page_height); - cairo_fill(cairo); + cairo_paint(cairo); cairo_restore(cairo); cairo_save(cairo); + /* apply scale (used by e.g. Poppler as pixels per point) */ if (fabs(real_scale - 1.0f) > FLT_EPSILON) { cairo_scale(cairo, real_scale, real_scale); } @@ -855,8 +868,10 @@ render_all(zathura_t* zathura) girara_debug("Queuing resize for page %u to %u x %u (%f x %f).", page_id, page_width, page_height, width, height); GtkWidget* widget = zathura_page_get_widget(zathura, page); - gtk_widget_set_size_request(widget, page_width, page_height); - gtk_widget_queue_resize(widget); + if (widget != NULL) { + gtk_widget_set_size_request(widget, page_width, page_height); + gtk_widget_queue_resize(widget); + } } } diff --git a/zathura/seccomp-filters.c b/zathura/seccomp-filters.c new file mode 100644 index 0000000..1c49b71 --- /dev/null +++ b/zathura/seccomp-filters.c @@ -0,0 +1,374 @@ +/* See LICENSE file for license and copyright information */ + +#include "seccomp-filters.h" + +#ifdef WITH_SECCOMP +#include +#include /* libseccomp */ +#include /* prctl */ +#include +#include +#include +#include +#include + +#define DENY_RULE(call) { if (seccomp_rule_add (ctx, SCMP_ACT_KILL, SCMP_SYS(call), 0) < 0) goto out; } +#define ALLOW_RULE(call) { if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) < 0) goto out; } + +int +seccomp_enable_basic_filter(void) +{ + /* prevent child processes from getting more priv e.g. via setuid, capabilities, ... */ + if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { + girara_error("prctl SET_NO_NEW_PRIVS"); + return -1; + } + + /* prevent escape via ptrace */ + if (prctl(PR_SET_DUMPABLE, 0, 0, 0, 0)) { + girara_error("prctl PR_SET_DUMPABLE"); + return -1; + } + + /* initialize the filter */ + scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ALLOW); + if (ctx == NULL) { + girara_error("seccomp_init failed"); + return -1; + } + + DENY_RULE(_sysctl); + DENY_RULE(acct); + DENY_RULE(add_key); + DENY_RULE(adjtimex); + DENY_RULE(chroot); + DENY_RULE(clock_adjtime); + DENY_RULE(create_module); + DENY_RULE(delete_module); + DENY_RULE(fanotify_init); + DENY_RULE(finit_module); + DENY_RULE(get_kernel_syms); + DENY_RULE(get_mempolicy); + DENY_RULE(init_module); + DENY_RULE(io_cancel); + DENY_RULE(io_destroy); + DENY_RULE(io_getevents); + DENY_RULE(io_setup); + DENY_RULE(io_submit); + DENY_RULE(ioperm); + DENY_RULE(iopl); + DENY_RULE(ioprio_set); + DENY_RULE(kcmp); + DENY_RULE(kexec_file_load); + DENY_RULE(kexec_load); + DENY_RULE(keyctl); + DENY_RULE(lookup_dcookie); + DENY_RULE(mbind); + DENY_RULE(nfsservctl); + DENY_RULE(migrate_pages); + DENY_RULE(modify_ldt); + DENY_RULE(mount); + DENY_RULE(move_pages); + DENY_RULE(name_to_handle_at); + DENY_RULE(open_by_handle_at); + DENY_RULE(perf_event_open); + DENY_RULE(pivot_root); + DENY_RULE(process_vm_readv); + DENY_RULE(process_vm_writev); + DENY_RULE(ptrace); + DENY_RULE(reboot); + DENY_RULE(remap_file_pages); + DENY_RULE(request_key); + DENY_RULE(set_mempolicy); + DENY_RULE(swapoff); + DENY_RULE(swapon); + DENY_RULE(sysfs); + DENY_RULE(syslog); + DENY_RULE(tuxcall); + DENY_RULE(umount2); + DENY_RULE(uselib); + DENY_RULE(vmsplice); + + /* TODO: check for additional syscalls to blacklist */ + /* DENY_RULE (execve); */ + + /* applying filter... */ + if (seccomp_load (ctx) >= 0) { + /* free ctx after the filter has been loaded into the kernel */ + seccomp_release(ctx); + return 0; + } + +out: + /* something went wrong */ + seccomp_release(ctx); + return -1; +} + +int +seccomp_enable_strict_filter(void) +{ + /* prevent child processes from getting more priv e.g. via setuid, capabilities, ... */ + if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { + girara_error("prctl SET_NO_NEW_PRIVS"); + return -1; + } + + /* prevent escape via ptrace */ + if (prctl(PR_SET_DUMPABLE, 0, 0, 0, 0)) { + girara_error("prctl PR_SET_DUMPABLE"); + return -1; + } + + /* initialize the filter */ + scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_KILL); + if (ctx == NULL){ + girara_error("seccomp_init failed"); + return -1; + } + + ALLOW_RULE(access); + /* ALLOW_RULE (arch_prctl); */ + ALLOW_RULE(bind); + ALLOW_RULE(brk); + ALLOW_RULE(clock_getres); + ALLOW_RULE(clone); /* TODO: investigate */ + ALLOW_RULE(close); + /* ALLOW_RULE (connect); */ + ALLOW_RULE(eventfd2); + ALLOW_RULE(exit); + ALLOW_RULE(exit_group); + ALLOW_RULE(fadvise64); + ALLOW_RULE(fallocate); + ALLOW_RULE(fcntl); /* TODO: build detailed filter */ + ALLOW_RULE(fstat); + ALLOW_RULE(fstatfs); + ALLOW_RULE(ftruncate); + ALLOW_RULE(futex); + ALLOW_RULE(getdents); + ALLOW_RULE(getegid); + ALLOW_RULE(geteuid); + ALLOW_RULE(getgid); + ALLOW_RULE(getuid); + ALLOW_RULE(getpid); + /* ALLOW_RULE (getpeername); */ + ALLOW_RULE(getresgid); + ALLOW_RULE(getresuid); + ALLOW_RULE(getrlimit); + /* ALLOW_RULE (getsockname); */ + /* ALLOW_RULE (getsockopt); needed for access to x11 socket in network namespace (without abstract sockets) */ + ALLOW_RULE(inotify_add_watch); + ALLOW_RULE(inotify_init1); + ALLOW_RULE(inotify_rm_watch); + /* ALLOW_RULE (ioctl); specified below */ + ALLOW_RULE(lseek); + ALLOW_RULE(lstat); + ALLOW_RULE(madvise); + ALLOW_RULE(memfd_create); + ALLOW_RULE(mkdir); /* needed for first run only */ + ALLOW_RULE(mmap); + ALLOW_RULE(mprotect); + ALLOW_RULE(mremap); + ALLOW_RULE(munmap); + //ALLOW_RULE (open); /* (zathura needs to open for writing) TODO: avoid needing this somehow */ + //ALLOW_RULE (openat); + ALLOW_RULE(pipe); + ALLOW_RULE(poll); + ALLOW_RULE(pwrite64); /* TODO: build detailed filter */ + ALLOW_RULE(pread64); + /* ALLOW_RULE (prlimit64); */ + /* ALLOW_RULE (prctl); specified below */ + ALLOW_RULE(read); + ALLOW_RULE(readlink); + ALLOW_RULE(recvfrom); + ALLOW_RULE(recvmsg); + ALLOW_RULE(restart_syscall); + ALLOW_RULE(rt_sigaction); + ALLOW_RULE(rt_sigprocmask); + ALLOW_RULE(sendmsg); + ALLOW_RULE(sendto); + ALLOW_RULE(select); + ALLOW_RULE(set_robust_list); + /* ALLOW_RULE (set_tid_address); */ + /* ALLOW_RULE (setsockopt); */ + ALLOW_RULE(shmat); + ALLOW_RULE(shmctl); + ALLOW_RULE(shmdt); + ALLOW_RULE(shmget); + ALLOW_RULE(shutdown); + ALLOW_RULE(stat); + ALLOW_RULE(statfs); + /* ALLOW_RULE (socket); */ + ALLOW_RULE(sysinfo); + ALLOW_RULE(uname); + ALLOW_RULE(unlink); + ALLOW_RULE(write); /* specified below (zathura needs to write files)*/ + ALLOW_RULE(writev); + ALLOW_RULE(wait4); /* trying to open links should not crash the app */ + + /* Special requirements for ioctl, allowed on stdout/stderr */ + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(ioctl), 1, + SCMP_CMP(0, SCMP_CMP_EQ, 1)) < 0) { + goto out; + } + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(ioctl), 1, + SCMP_CMP(0, SCMP_CMP_EQ, 2)) < 0) { + goto out; + } + + /* needed by gtk??? (does not load content without) */ + + /* special restrictions for prctl, only allow PR_SET_NAME/PR_SET_PDEATHSIG */ + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(prctl), 1, + SCMP_CMP(0, SCMP_CMP_EQ, PR_SET_NAME)) < 0) { + goto out; + } + + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(prctl), 1, + SCMP_CMP(0, SCMP_CMP_EQ, PR_SET_PDEATHSIG)) < 0) { + goto out; + } + + /* special restrictions for open, prevent opening files for writing */ + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 1, + SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY | O_RDWR, 0)) < 0) { + goto out; + } + + if (seccomp_rule_add(ctx, SCMP_ACT_ERRNO (EACCES), SCMP_SYS(open), 1, + SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY, O_WRONLY)) < 0) { + goto out; + } + + if (seccomp_rule_add(ctx, SCMP_ACT_ERRNO (EACCES), SCMP_SYS(open), 1, + SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_RDWR, O_RDWR)) < 0) { + goto out; + } + + /* special restrictions for openat, prevent opening files for writing */ + if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(openat), 1, + SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY | O_RDWR, 0)) < 0) { + goto out; + } + + if (seccomp_rule_add(ctx, SCMP_ACT_ERRNO (EACCES), SCMP_SYS(openat), 1, + SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_WRONLY, O_WRONLY)) < 0) { + goto out; + } + + if (seccomp_rule_add(ctx, SCMP_ACT_ERRNO (EACCES), SCMP_SYS(openat), 1, + SCMP_CMP(1, SCMP_CMP_MASKED_EQ, O_RDWR, O_RDWR)) < 0) { + goto out; + } + + /* allowed for debugging: */ + + /* ALLOW_RULE (prctl); */ + /* ALLOW_RULE (ioctl); */ + + /* TODO: test fcntl rules */ + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, F_GETFL)) < 0) */ + /* goto out; */ + + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, F_SETFL)) < 0) */ + /* goto out; */ + + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, F_SETFD)) < 0) */ + /* goto out; */ + + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, F_GETFD)) < 0) */ + /* goto out; */ + + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, F_SETLK)) < 0) */ + /* goto out; */ + + + /* TODO: build detailed filter for prctl */ + /* needed by gtk??? (does not load content without) */ + + /* /\* special restrictions for prctl, only allow PR_SET_NAME/PR_SET_PDEATHSIG *\/ */ + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(prctl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, PR_SET_NAME)) < 0) */ + /* goto out; */ + + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(prctl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, PR_SET_PDEATHSIG)) < 0) */ + /* goto out; */ + + /* when zathura is run on wayland, with X11 server available but blocked, unset the DISPLAY variable */ + /* otherwise it will try to connect to X11 using inet socket protocol */ + + /* ------------ experimental filters --------------- */ + + /* /\* this filter is susceptible to TOCTOU race conditions, providing limited use *\/ */ + /* /\* allow opening only specified files identified by their file descriptors*\/ */ + + /* this requires either a list of all files to open (A LOT!!!) */ + /* or needs to be applied only after initialisation, right before parsing */ + /* if(seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 1, */ + /* SCMP_CMP(SCMP_CMP_EQ, fd)) < 0) /\* or < 1 ??? *\/ */ + /* goto out; */ + + /* /\* restricting write access *\/ */ + + /* /\* allow stdin *\/ */ + /* if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(write), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, 0)) < 0 ) */ + /* goto out; */ + + /* /\* allow stdout *\/ */ + /* if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(write), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, 1)) < 0 ) */ + /* goto out; */ + + + /* /\* allow stderr *\/ */ + /* if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(write), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, 2)) < 0 ) */ + /* goto out; */ + + /* /\* restrict writev (write a vector) access *\/ */ + /* this does not seem reliable but it surprisingly is. investigate more */ + /* if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(writev), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, 3)) < 0 ) */ + /* goto out; */ + + /* test if repeating this after some time or denying it works */ + + + /* first attempt to filter poll requests */ + /* if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(poll), 1, */ + /* SCMP_CMP(0, SCMP_CMP_MASKED_EQ, POLLIN | POLL, 0)) < 0) */ + /* goto out; */ + + + /* /\* restrict fcntl calls *\/ */ + /* this syscall sets the file descriptor to read write */ + /* if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(fcntl), 1, */ + /* SCMP_CMP(0, SCMP_CMP_EQ, 3)) < 0 ) */ + /* goto out; */ + /* fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) */ + /* fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 */ + /* fcntl(3, F_SETFD, FD_CLOEXEC) = 0 */ + + /* ------------------ end of experimental filters ------------------ */ + + /* applying filter... */ + if (seccomp_load(ctx) >= 0) { + /* free ctx after the filter has been loaded into the kernel */ + seccomp_release(ctx); + return 0; + } + +out: + /* something went wrong */ + seccomp_release(ctx); + return -1; +} + +#endif /* WITH_SECCOMP */ diff --git a/zathura/seccomp-filters.h b/zathura/seccomp-filters.h new file mode 100644 index 0000000..5782ad6 --- /dev/null +++ b/zathura/seccomp-filters.h @@ -0,0 +1,15 @@ +/* See LICENSE file for license and copyright information */ + +#ifndef ZATHURA_SECCOMP_FILTERS_H +#define ZATHURA_SECCOMP_FILTERS_H + +/* basic filter */ +/* this mode allows normal use */ +/* only dangerous syscalls are blacklisted */ +int seccomp_enable_basic_filter(void); + +/* strict filter before document parsing */ +/* this filter is to be enabled after most of the initialisation of zathura has finished */ +int seccomp_enable_strict_filter(void); + +#endif diff --git a/zathura/shortcuts.c b/zathura/shortcuts.c index ae3a469..f14a00b 100644 --- a/zathura/shortcuts.c +++ b/zathura/shortcuts.c @@ -1304,8 +1304,8 @@ sc_toggle_presentation(girara_session_t* session, girara_argument_t* /* set full screen */ gtk_window_unfullscreen(GTK_WINDOW(session->gtk.window)); - /* reset scale */ - zathura_document_set_scale(zathura->document, zathura->shortcut.toggle_presentation_mode.zoom); + /* reset zoom */ + zathura_document_set_zoom(zathura->document, zathura->shortcut.toggle_presentation_mode.zoom); render_all(zathura); refresh_view(zathura); @@ -1326,7 +1326,7 @@ sc_toggle_presentation(girara_session_t* session, girara_argument_t* girara_setting_set(session, "pages-per-row", &int_value); /* back up zoom */ - zathura->shortcut.toggle_presentation_mode.zoom = zathura_document_get_scale(zathura->document); + zathura->shortcut.toggle_presentation_mode.zoom = zathura_document_get_zoom(zathura->document); /* adjust window */ girara_argument_t argument = { ZATHURA_ADJUST_BESTFIT, NULL }; @@ -1379,37 +1379,37 @@ sc_zoom(girara_session_t* session, girara_argument_t* argument, girara_event_t* const int nt = (t == 0) ? 1 : t; const double zoom_step = 1.0 + value / 100.0 * nt; - const double old_zoom = zathura_document_get_scale(zathura->document); + const double old_zoom = zathura_document_get_zoom(zathura->document); /* specify new zoom value */ if (argument->n == ZOOM_IN) { girara_debug("Increasing zoom by %f.", zoom_step - 1.0); - zathura_document_set_scale(zathura->document, old_zoom * zoom_step); + zathura_document_set_zoom(zathura->document, old_zoom * zoom_step); } else if (argument->n == ZOOM_OUT) { girara_debug("Decreasing zoom by %f.", zoom_step - 1.0); - zathura_document_set_scale(zathura->document, old_zoom / zoom_step); + zathura_document_set_zoom(zathura->document, old_zoom / zoom_step); } else if (argument->n == ZOOM_SPECIFIC) { if (t == 0) { girara_debug("Setting zoom to 1."); - zathura_document_set_scale(zathura->document, 1.0); + zathura_document_set_zoom(zathura->document, 1.0); } else { girara_debug("Setting zoom to %f.", t / 100.0); - zathura_document_set_scale(zathura->document, t / 100.0); + zathura_document_set_zoom(zathura->document, t / 100.0); } } else if (argument->n == ZOOM_SMOOTH) { const double dy = (event != NULL) ? event->y : 1.0; girara_debug("Increasing zoom by %f.", zoom_step * dy - 1.0); - zathura_document_set_scale(zathura->document, old_zoom + zoom_step * dy); + zathura_document_set_zoom(zathura->document, old_zoom + zoom_step * dy); } else { girara_debug("Setting zoom to 1."); - zathura_document_set_scale(zathura->document, 1.0); + zathura_document_set_zoom(zathura->document, 1.0); } /* zoom limitations */ - const double scale = zathura_document_get_scale(zathura->document); - zathura_document_set_scale(zathura->document, zathura_correct_scale_value(session, scale)); + const double zoom = zathura_document_get_zoom(zathura->document); + zathura_document_set_zoom(zathura->document, zathura_correct_zoom_value(session, zoom)); - const double new_zoom = zathura_document_get_scale(zathura->document); + const double new_zoom = zathura_document_get_zoom(zathura->document); if (fabs(new_zoom - old_zoom) <= DBL_EPSILON) { girara_debug("New and old zoom level are too close: %f vs. %f, diff = %f", new_zoom, old_zoom, fabs(new_zoom - old_zoom)); return false; @@ -1458,3 +1458,16 @@ sc_exec(girara_session_t* session, girara_argument_t* argument, girara_event_t* return girara_sc_exec(session, argument, event, t); } + +bool +sc_nohlsearch(girara_session_t* session, girara_argument_t* UNUSED(argument), girara_event_t* UNUSED(event), unsigned int UNUSED(t)) +{ + g_return_val_if_fail(session != NULL, false); + g_return_val_if_fail(session->global.data != NULL, false); + zathura_t* zathura = session->global.data; + + document_draw_search_results(zathura, false); + render_all(zathura); + + return false; +} diff --git a/zathura/shortcuts.h b/zathura/shortcuts.h index 195554a..c1b19ad 100644 --- a/zathura/shortcuts.h +++ b/zathura/shortcuts.h @@ -292,4 +292,16 @@ bool sc_zoom(girara_session_t* session, girara_argument_t* argument, girara_even */ bool sc_exec(girara_session_t* session, girara_argument_t* argument, girara_event_t* event, unsigned int t); +/** + * Remove search highlights. + * + * @param session The used girara session + * @param argument The used argument + * @param event Girara event + * @param t Number of executions + * @return true if no error occurred otherwise false + */ +bool sc_nohlsearch(girara_session_t* session, girara_argument_t* argument, girara_event_t* event, unsigned int t); + + #endif // SHORTCUTS_H diff --git a/zathura/synctex.c b/zathura/synctex.c index 87ae15f..a300c48 100644 --- a/zathura/synctex.c +++ b/zathura/synctex.c @@ -320,6 +320,19 @@ synctex_highlight_rects(zathura_t* zathura, unsigned int page, zathura_jumplist_add(zathura); } +static void +dup_and_append_rect(void* data, void* userdata) +{ + const synctex_page_rect_t* rect = data; + girara_list_t** all_rectangles = userdata; + + zathura_rectangle_t* newrect = g_try_malloc0(sizeof(zathura_rectangle_t)); + if (newrect != NULL) { + *newrect = rect->rect; + girara_list_append(all_rectangles[rect->page], newrect); + } +} + bool synctex_view(zathura_t* zathura, const char* input_file, unsigned int line, unsigned int column) @@ -355,13 +368,7 @@ synctex_view(zathura_t* zathura, const char* input_file, } if (secondary_rects != NULL) { - GIRARA_LIST_FOREACH(secondary_rects, synctex_page_rect_t*, iter, rect) - zathura_rectangle_t* newrect = g_try_malloc0(sizeof(zathura_rectangle_t)); - if (newrect != NULL) { - *newrect = rect->rect; - girara_list_append(all_rectangles[rect->page], newrect); - } - GIRARA_LIST_FOREACH_END(secondary_rects, synctex_page_rect_t*, iter, rect); + girara_list_foreach(secondary_rects, dup_and_append_rect, all_rectangles); } synctex_highlight_rects(zathura, page, all_rectangles); diff --git a/zathura/types.c b/zathura/types.c index 5b4713b..7db693d 100644 --- a/zathura/types.c +++ b/zathura/types.c @@ -82,7 +82,7 @@ zathura_image_buffer_free(zathura_image_buffer_t* image_buffer) } girara_list_t* -zathura_document_information_entry_list_new() +zathura_document_information_entry_list_new(void) { girara_list_t* list = girara_list_new2((girara_free_function_t) zathura_document_information_entry_free); diff --git a/zathura/types.h b/zathura/types.h index e0028d7..6e008d2 100644 --- a/zathura/types.h +++ b/zathura/types.h @@ -112,14 +112,14 @@ typedef enum zathura_adjust_mode_e * @param height Height of the image stored in the buffer * @return Image buffer or NULL if an error occurred */ -zathura_image_buffer_t* zathura_image_buffer_create(unsigned int width, unsigned int height); +ZATHURA_PLUGIN_API zathura_image_buffer_t* zathura_image_buffer_create(unsigned int width, unsigned int height); /** * Frees the image buffer * * @param buffer The image buffer */ -void zathura_image_buffer_free(zathura_image_buffer_t* buffer); +ZATHURA_PLUGIN_API void zathura_image_buffer_free(zathura_image_buffer_t* buffer); /** * Rectangle structure. @@ -179,7 +179,7 @@ typedef struct zathura_link_target_s double right; /**< Right coordinate */ double top; /**< Top coordinate */ double bottom; /**< Bottom coordinate */ - double scale; /**< Scale */ + double zoom; /**< Zoom */ } zathura_link_target_t; /** @@ -230,14 +230,14 @@ typedef struct zathura_jump_s * @param title Title of the index element * @return Index element */ -zathura_index_element_t* zathura_index_element_new(const char* title); +ZATHURA_PLUGIN_API zathura_index_element_t* zathura_index_element_new(const char* title); /** * Free index element * * @param index The index element */ -void zathura_index_element_free(zathura_index_element_t* index); +ZATHURA_PLUGIN_API void zathura_index_element_free(zathura_index_element_t* index); /** * Creates a list that should be used to store \ref @@ -245,7 +245,7 @@ void zathura_index_element_free(zathura_index_element_t* index); * * @return A list or NULL if an error occurred */ -girara_list_t* zathura_document_information_entry_list_new(); +ZATHURA_PLUGIN_API girara_list_t* zathura_document_information_entry_list_new(void); /** * Creates a new document information entry @@ -255,7 +255,7 @@ girara_list_t* zathura_document_information_entry_list_new(); * * @return A new entry or NULL if an error occurred */ -zathura_document_information_entry_t* +ZATHURA_PLUGIN_API zathura_document_information_entry_t* zathura_document_information_entry_new(zathura_document_information_type_t type, const char* value); @@ -264,11 +264,20 @@ zathura_document_information_entry_new(zathura_document_information_type_t * * @param entry The entry that should be freed */ -void zathura_document_information_entry_free(zathura_document_information_entry_t* entry); +ZATHURA_PLUGIN_API void zathura_document_information_entry_free(zathura_document_information_entry_t* entry); /** * Context for MIME type detection */ typedef struct zathura_content_type_context_s zathura_content_type_context_t; +/** + * Device scaling structure. + */ +typedef struct zathura_device_factors_s +{ + double x; + double y; +} zathura_device_factors_t; + #endif // TYPES_H diff --git a/zathura/utils.c b/zathura/utils.c index b86b48a..6c3c4ad 100644 --- a/zathura/utils.c +++ b/zathura/utils.c @@ -21,10 +21,10 @@ #include "content-type.h" double -zathura_correct_scale_value(girara_session_t* session, const double scale) +zathura_correct_zoom_value(girara_session_t* session, const double zoom) { if (session == NULL) { - return scale; + return zoom; } /* zoom limitations */ @@ -36,12 +36,12 @@ zathura_correct_scale_value(girara_session_t* session, const double scale) const double zoom_min = zoom_min_int * 0.01; const double zoom_max = zoom_max_int * 0.01; - if (scale < zoom_min) { + if (zoom < zoom_min) { return zoom_min; - } else if (scale > zoom_max) { + } else if (zoom > zoom_max) { return zoom_max; } else { - return scale; + return zoom; } } @@ -69,7 +69,7 @@ document_index_build(GtkTreeModel* model, GtkTreeIter* parent, { girara_list_t* list = girara_node_get_children(tree); - GIRARA_LIST_FOREACH(list, girara_tree_node_t*, iter, node) { + GIRARA_LIST_FOREACH_BODY(list, girara_tree_node_t*, node, zathura_index_element_t* index_element = (zathura_index_element_t*)girara_node_get_data(node); zathura_link_type_t type = zathura_link_get_type(index_element->link); @@ -93,7 +93,7 @@ document_index_build(GtkTreeModel* model, GtkTreeIter* parent, if (girara_node_get_num_children(node) > 0) { document_index_build(model, &tree_iter, node); } - } GIRARA_LIST_FOREACH_END(list, gchar*, iter, name); + ); } zathura_rectangle_t @@ -194,14 +194,15 @@ zathura_get_version_string(zathura_t* zathura, bool markup) GString* string = g_string_new(NULL); /* zathura version */ - g_string_append_printf(string, "zathura %d.%d.%d", ZATHURA_VERSION_MAJOR, ZATHURA_VERSION_MINOR, ZATHURA_VERSION_REV); + g_string_append(string, "zathura " ZATHURA_VERSION); + g_string_append_printf(string, "\ngirara " GIRARA_VERSION " (runtime: %s)", girara_version()); const char* format = (markup == true) ? "\n(plugin) %s (%d.%d.%d) (%s)" : "\n(plugin) %s (%d.%d.%d) (%s)"; /* plugin information */ girara_list_t* plugins = zathura_plugin_manager_get_plugins(zathura->plugins.manager); if (plugins != NULL) { - GIRARA_LIST_FOREACH(plugins, zathura_plugin_t*, iter, plugin) { + GIRARA_LIST_FOREACH_BODY(plugins, zathura_plugin_t*, plugin, const char* name = zathura_plugin_get_name(plugin); zathura_plugin_version_t version = zathura_plugin_get_version(plugin); g_string_append_printf(string, format, @@ -210,7 +211,7 @@ zathura_get_version_string(zathura_t* zathura, bool markup) version.minor, version.rev, zathura_plugin_get_path(plugin)); - } GIRARA_LIST_FOREACH_END(plugins, zathura_plugin_t*, iter, plugin); + ); } char* version = string->str; @@ -280,3 +281,13 @@ find_first_page_column(const char* first_page_column_list, return first_page_column; } + +bool +parse_color(GdkRGBA* color, const char* str) +{ + if (gdk_rgba_parse(color, str) == FALSE) { + girara_warning("Failed to parse color string '%s'.", str); + return false; + } + return true; +} diff --git a/zathura/utils.h b/zathura/utils.h index c30d3f9..088b214 100644 --- a/zathura/utils.h +++ b/zathura/utils.h @@ -96,16 +96,16 @@ char* zathura_get_version_string(zathura_t* zathura, bool markup); GdkAtom* get_selection(zathura_t* zathura); /** - * Returns the valid scale value which needs to lie in the interval of zoom_min + * Returns the valid zoom value which needs to lie in the interval of zoom_min * and zoom_max specified in the girara session * * @param[in] session The session - * @param[in] scale The proposed scale value + * @param[in] zoom The proposed zoom value * - * @return The corrected scale value + * @return The corrected zoom value */ -double zathura_correct_scale_value(girara_session_t* session, const double - scale); +double zathura_correct_zoom_value(girara_session_t* session, const double + zoom); /** @@ -120,4 +120,14 @@ double zathura_correct_scale_value(girara_session_t* session, const double unsigned int find_first_page_column(const char* first_page_column_list, const unsigned int pages_per_row); +/** + * Parse color string and print warning if color cannot be parsed. + * + * @param[out] color The color + * @param[in] str Color string + * + * @return True if color string can be parsed, false otherwise. + */ +bool parse_color(GdkRGBA* color, const char* str); + #endif // UTILS_H diff --git a/zathura/version.h.in b/zathura/version.h.in index d35d791..186be9f 100644 --- a/zathura/version.h.in +++ b/zathura/version.h.in @@ -3,11 +3,11 @@ #ifndef ZATHURA_VERSION_H #define ZATHURA_VERSION_H -#define ZATHURA_VERSION_MAJOR ZVMAJOR -#define ZATHURA_VERSION_MINOR ZVMINOR -#define ZATHURA_VERSION_REV ZVREV -#define ZATHURA_VERSION "ZVMAJOR.ZVMINOR.ZVREV" -#define ZATHURA_API_VERSION ZVAPI -#define ZATHURA_ABI_VERSION ZVABI +#define ZATHURA_VERSION_MAJOR @ZVMAJOR@ +#define ZATHURA_VERSION_MINOR @ZVMINOR@ +#define ZATHURA_VERSION_REV @ZVREV@ +#define ZATHURA_VERSION "@version@" +#define ZATHURA_API_VERSION @ZVAPI@ +#define ZATHURA_ABI_VERSION @ZVABI@ #endif diff --git a/zathura/zathura.c b/zathura/zathura.c index 938aed3..e40f369 100644 --- a/zathura/zathura.c +++ b/zathura/zathura.c @@ -1,8 +1,5 @@ /* See LICENSE file for license and copyright information */ -#define _DEFAULT_SOURCE -#define _XOPEN_SOURCE 700 - #include #include #include @@ -18,6 +15,10 @@ #include #include +#ifdef GDK_WINDOWING_WAYLAND +#include +#endif + #ifdef G_OS_UNIX #include #include @@ -99,6 +100,9 @@ zathura_create(void) goto error_out; } + /* set default icon */ + girara_setting_set(zathura->ui.session, "window-icon", "org.pwmt.zathura"); + #ifdef G_OS_UNIX /* signal handler */ zathura->signals.sigterm = g_unix_signal_add(SIGTERM, zathura_signal_sigterm, zathura); @@ -134,6 +138,69 @@ create_directories(zathura_t* zathura) } } +void +zathura_update_view_ppi(zathura_t* zathura) +{ + if (zathura == NULL) { + return; + } + + /* get view widget GdkMonitor */ + GdkWindow* window = gtk_widget_get_window (zathura->ui.session->gtk.view); // NULL if not realized + if (window == NULL) { + return; + } + GdkDisplay* display = gtk_widget_get_display(zathura->ui.session->gtk.view); + if (display == NULL) { + return; + } + + double ppi = 0.0; + + GdkMonitor* monitor = gdk_display_get_monitor_at_window(display, window); + if (monitor == NULL) { + return; + } + + /* physical width of monitor */ + int width_mm = gdk_monitor_get_width_mm(monitor); + + /* size of monitor in pixels */ + GdkRectangle monitor_geom; + gdk_monitor_get_geometry(monitor, &monitor_geom); + + /* calculate ppi, knowing that 1 inch = 25.4 mm */ + if (width_mm == 0) { + girara_debug("cannot calculate PPI: monitor has zero width"); + } else { + ppi = monitor_geom.width * 25.4 / width_mm; + } + +#ifdef GDK_WINDOWING_WAYLAND + /* work around apparent bug in GDK: on Wayland, monitor geometry doesn't + * return values in application pixels as documented, but in device pixels. + * */ + if (GDK_IS_WAYLAND_DISPLAY(display)) + { + /* not using the cached value for the scale factor here to avoid issues + * if this function is called before the cached value is updated */ + int device_factor = gtk_widget_get_scale_factor(zathura->ui.session->gtk.view); + girara_debug("on Wayland, correcting PPI for device scale factor = %d", device_factor); + if (device_factor != 0) { + ppi /= device_factor; + } + } +#endif + + double current_ppi = zathura_document_get_viewport_ppi(zathura->document); + if (fabs(ppi - current_ppi) > DBL_EPSILON) { + girara_debug("monitor width: %d mm, pixels: %d, ppi: %f", width_mm, monitor_geom.width, ppi); + zathura_document_set_viewport_ppi(zathura->document, ppi); + render_all(zathura); + refresh_view(zathura); + } +} + static bool init_ui(zathura_t* zathura) { @@ -153,6 +220,18 @@ init_ui(zathura_t* zathura) g_signal_connect(G_OBJECT(zathura->ui.session->gtk.view), "refresh-view", G_CALLBACK(cb_refresh_view), zathura); + g_signal_connect(G_OBJECT(zathura->ui.session->gtk.view), + "notify::scale-factor", G_CALLBACK(cb_scale_factor), zathura); + + g_signal_connect(G_OBJECT(zathura->ui.session->gtk.view), + "screen-changed", G_CALLBACK(cb_widget_screen_changed), zathura); + + g_signal_connect(G_OBJECT(zathura->ui.session->gtk.window), + "configure-event", G_CALLBACK(cb_widget_configured), zathura); + + /* initialize the screen-changed handler to 0 (i.e. invalid) */ + zathura->signals.monitors_changed_handler = 0; + /* page view */ zathura->ui.page_widget = gtk_grid_new(); gtk_grid_set_row_homogeneous(GTK_GRID(zathura->ui.page_widget), TRUE); @@ -228,7 +307,7 @@ init_css(zathura_t* zathura) GiraraTemplate* csstemplate = girara_session_get_template(zathura->ui.session); - static const char* index_settings[] = { + static const char index_settings[][16] = { "index-fg", "index-bg", "index-active-fg", @@ -242,7 +321,7 @@ init_css(zathura_t* zathura) GdkRGBA rgba = {0, 0, 0, 0}; girara_setting_get(zathura->ui.session, index_settings[s], &tmp_value); if (tmp_value != NULL) { - gdk_rgba_parse(&rgba, tmp_value); + parse_color(&rgba, tmp_value); g_free(tmp_value); } @@ -434,14 +513,14 @@ zathura_free(zathura_t* zathura) g_free(zathura->config.cache_dir); /* free jumplist */ - if (zathura->jumplist.list != NULL) { - girara_list_free(zathura->jumplist.list); - } - if (zathura->jumplist.cur != NULL) { girara_list_iterator_free(zathura->jumplist.cur); } + if (zathura->jumplist.list != NULL) { + girara_list_free(zathura->jumplist.list); + } + g_free(zathura); } @@ -495,6 +574,23 @@ zathura_set_cache_dir(zathura_t* zathura, const char* dir) } } +static void +add_dir(void* data, void* userdata) +{ + const char* path = data; + zathura_plugin_manager_t* plugin_manager = userdata; + + zathura_plugin_manager_add_dir(plugin_manager, path); +} + +static void +set_plugin_dir(zathura_t* zathura, const char* dir) +{ + girara_list_t* paths = girara_split_path_array(dir); + girara_list_foreach(paths, add_dir, zathura->plugins.manager); + girara_list_free(paths); +} + void zathura_set_plugin_dir(zathura_t* zathura, const char* dir) { @@ -502,21 +598,12 @@ zathura_set_plugin_dir(zathura_t* zathura, const char* dir) g_return_if_fail(zathura->plugins.manager != NULL); if (dir != NULL) { - girara_list_t* paths = girara_split_path_array(dir); - GIRARA_LIST_FOREACH(paths, char*, iter, path) - zathura_plugin_manager_add_dir(zathura->plugins.manager, path); - GIRARA_LIST_FOREACH_END(paths, char*, iter, path); - girara_list_free(paths); - } else { + set_plugin_dir(zathura, dir); #ifdef ZATHURA_PLUGINDIR - girara_list_t* paths = girara_split_path_array(ZATHURA_PLUGINDIR); - GIRARA_LIST_FOREACH(paths, char*, iter, path) - zathura_plugin_manager_add_dir(zathura->plugins.manager, path); - GIRARA_LIST_FOREACH_END(paths, char*, iter, path); - girara_list_free(paths); + } else { + set_plugin_dir(zathura, ZATHURA_PLUGINDIR); #endif } - } void @@ -802,7 +889,7 @@ document_open(zathura_t* zathura, const char* path, const char* uri, const char* zathura_fileinfo_t file_info = { .current_page = 0, .page_offset = 0, - .scale = 1, + .zoom = 1, .rotation = 0, .pages_per_row = 0, .first_page_column_list = NULL, @@ -817,12 +904,12 @@ document_open(zathura_t* zathura, const char* path, const char* uri, const char* /* set page offset */ zathura_document_set_page_offset(document, file_info.page_offset); - /* check for valid scale value */ - if (file_info.scale <= DBL_EPSILON) { - file_info.scale = 1; + /* check for valid zoom value */ + if (file_info.zoom <= DBL_EPSILON) { + file_info.zoom = 1; } - zathura_document_set_scale(document, - zathura_correct_scale_value(zathura->ui.session, file_info.scale)); + zathura_document_set_zoom(document, + zathura_correct_zoom_value(zathura->ui.session, file_info.zoom)); /* check current page number */ /* if it wasn't specified on the command-line, get it from file_info */ @@ -895,6 +982,9 @@ document_open(zathura_t* zathura, const char* path, const char* uri, const char* } g_signal_connect(G_OBJECT(zathura->file_monitor.monitor), "reload-file", G_CALLBACK(cb_file_monitor), zathura->ui.session); + + girara_debug("starting file monitor"); + zathura_filemonitor_start(zathura->file_monitor.monitor); } if (password != NULL) { @@ -956,6 +1046,15 @@ document_open(zathura_t* zathura, const char* path, const char* uri, const char* const unsigned int view_height = (unsigned int)floor(gtk_adjustment_get_page_size(vadjustment)); zathura_document_set_viewport_height(zathura->document, view_height); + zathura_update_view_ppi(zathura); + + /* call screen-changed callback to connect monitors-changed signal on initial screen */ + cb_widget_screen_changed(zathura->ui.session->gtk.view, NULL, zathura); + + /* get initial device scale */ + int device_factor = gtk_widget_get_scale_factor(zathura->ui.session->gtk.view); + zathura_document_set_device_factors(zathura->document, device_factor, device_factor); + /* create blank pages */ zathura->pages = calloc(number_of_pages, sizeof(GtkWidget*)); if (zathura->pages == NULL) { @@ -1181,7 +1280,7 @@ save_fileinfo_to_db(zathura_t* zathura) zathura_fileinfo_t file_info = { .current_page = zathura_document_get_current_page_number(zathura->document), .page_offset = zathura_document_get_page_offset(zathura->document), - .scale = zathura_document_get_scale(zathura->document), + .zoom = zathura_document_get_zoom(zathura->document), .rotation = zathura_document_get_rotation(zathura->document), .pages_per_row = 1, .first_page_column_list = "1:2", @@ -1312,7 +1411,16 @@ statusbar_page_number_update(zathura_t* zathura) unsigned int current_page_number = zathura_document_get_current_page_number(zathura->document); if (zathura->document != NULL) { - char* page_number_text = g_strdup_printf("[%d/%d]", current_page_number + 1, number_of_pages); + zathura_page_t* page = zathura_document_get_page(zathura->document, current_page_number); + char* page_label = zathura_page_get_label(page, NULL); + + char* page_number_text = NULL; + if (page_label != NULL) { + page_number_text = g_strdup_printf("[%s (%d/%d)]", page_label, current_page_number + 1, number_of_pages); + g_free(page_label); + } else { + page_number_text = g_strdup_printf("[%d/%d]", current_page_number + 1, number_of_pages); + } girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.page_number, page_number_text); bool page_number_in_window_title = false; @@ -1387,11 +1495,11 @@ position_set(zathura_t* zathura, double position_x, double position_y) /* xalign = 0.5: center horizontally (with the page, not the document) */ if (vertical_center == true) { - /* yalign = 0.0: align page an viewport edges at the top */ - page_number_to_position(zathura->document, page_id, 0.5, 0.0, &comppos_x, &comppos_y); - } else { /* yalign = 0.5: center vertically */ page_number_to_position(zathura->document, page_id, 0.5, 0.5, &comppos_x, &comppos_y); + } else { + /* yalign = 0.0: align page an viewport edges at the top */ + page_number_to_position(zathura->document, page_id, 0.5, 0.0, &comppos_x, &comppos_y); } /* automatic horizontal adjustment */ @@ -1466,33 +1574,31 @@ adjust_view(zathura_t* zathura) double page_ratio = (double)cell_height / (double)document_width; double view_ratio = (double)view_height / (double)view_width; - double scale = zathura_document_get_scale(zathura->document); - double newscale = scale; + double zoom = zathura_document_get_zoom(zathura->document); + double newzoom = zoom; if (adjust_mode == ZATHURA_ADJUST_WIDTH || (adjust_mode == ZATHURA_ADJUST_BESTFIT && page_ratio < view_ratio)) { - newscale *= (double)view_width / (double)document_width; - + newzoom *= (double)view_width / (double)document_width; } else if (adjust_mode == ZATHURA_ADJUST_BESTFIT) { - newscale *= (double)view_height / (double)cell_height; - + newzoom *= (double)view_height / (double)cell_height; } else { goto error_ret; } - /* save new scale and recompute cell size */ - zathura_document_set_scale(zathura->document, newscale); + /* save new zoom and recompute cell size */ + zathura_document_set_zoom(zathura->document, newzoom); unsigned int new_cell_height = 0, new_cell_width = 0; zathura_document_get_cell_size(zathura->document, &new_cell_height, &new_cell_width); - /* if the change in scale changes page cell dimensions by at least one pixel, render */ + /* if the change in zoom changes page cell dimensions by at least one pixel, render */ if (abs((int)new_cell_width - (int)cell_width) > 1 || abs((int)new_cell_height - (int)cell_height) > 1) { render_all(zathura); refresh_view(zathura); } else { - /* otherwise set the old scale and leave */ - zathura_document_set_scale(zathura->document, scale); + /* otherwise set the old zoom and leave */ + zathura_document_set_zoom(zathura->document, zoom); } error_ret: diff --git a/zathura/zathura.h b/zathura/zathura.h index 84e0cb6..22077cc 100644 --- a/zathura/zathura.h +++ b/zathura/zathura.h @@ -163,6 +163,8 @@ struct zathura_s #ifdef G_OS_UNIX guint sigterm; #endif + + gulong monitors_changed_handler; /**< Signal handler for monitors-changed */ } signals; struct @@ -287,6 +289,13 @@ void zathura_set_plugin_dir(zathura_t* zathura, const char* dir); */ void zathura_set_argv(zathura_t* zathura, char** argv); +/** + * Calculate and store the monitor PPI for the view widget + * + * @param zathura The zathura session + */ +void zathura_update_view_ppi(zathura_t* zathura); + /** * Opens a file *