diff --git a/AUTHORS b/AUTHORS index 84d768e..81d1071 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,7 +1,7 @@ zathura is written by: Moritz Lipp -Sebastian Ramacher +Sebastian Ramacher Other contributors are (in no particular order): @@ -20,3 +20,7 @@ Roland Schatz Abdó Roig-Maranges Benoît Knecht Rob Cornish +Marwan Tanager +Diego Joss +Ignas Anikevicius +oblique diff --git a/LICENSE b/LICENSE index 7d84c04..f9fa617 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009-2012 pwmt.org +Copyright (c) 2009-2013 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 index 99628a7..669d6a4 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,12 @@ else SOURCE = $(filter-out database-sqlite.c,$(OSOURCE)) endif +ifneq ($(WITH_MAGIC),0) +INCS += $(MAGIC_INC) +LIBS += $(MAGIC_LIB) +CPPFLAGS += -DWITH_MAGIC +endif + ifneq ($(wildcard ${VALGRIND_SUPPRESSION_FILE}),) VALGRIND_ARGUMENTS += --suppressions=${VALGRIND_SUPPRESSION_FILE} endif diff --git a/README b/README index 3c447b9..38ddc8d 100644 --- a/README +++ b/README @@ -6,12 +6,12 @@ girara user interface library and several document libraries. Requirements ------------ gtk2 (>= 2.28) -glib (>= 2.32) girara -sqlite3 (>= 3.5.9) +sqlite3 (optional, >= 3.5.9) check (for tests) intltool -python-docutils (for man pages) +python-docutils (optional, for man pages) +libmagic from file(1) (optional, for mime-type detection) 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 @@ -23,9 +23,15 @@ If it is not installed, the man pages won't be built. 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. Please note that sqlite3 -with metadata support is required, i.e. sqlite3 has to be built with +with meta data support is required, i.e. sqlite3 has to be built with SQLITE_ENABLE_COLUMN_METADATA defined. +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. + Installation ------------ To build and install zathura: diff --git a/adjustment.c b/adjustment.c new file mode 100644 index 0000000..9452c54 --- /dev/null +++ b/adjustment.c @@ -0,0 +1,56 @@ +/* See LICENSE file for license and copyright information */ + +#include "adjustment.h" +#include "utils.h" + +GtkAdjustment* +zathura_adjustment_clone(GtkAdjustment* adjustment) +{ + gdouble value = gtk_adjustment_get_value(adjustment); + gdouble lower = gtk_adjustment_get_lower(adjustment); + gdouble upper = gtk_adjustment_get_upper(adjustment); + gdouble step_increment = gtk_adjustment_get_step_increment(adjustment); + gdouble page_increment = gtk_adjustment_get_page_increment(adjustment); + gdouble page_size = gtk_adjustment_get_page_size(adjustment); + + return GTK_ADJUSTMENT(gtk_adjustment_new(value, lower, upper, step_increment, + page_increment, page_size)); +} + +void +zathura_adjustment_set_value(GtkAdjustment* adjustment, gdouble value) +{ + gtk_adjustment_set_value(adjustment, + MAX(gtk_adjustment_get_lower(adjustment), + MIN(gtk_adjustment_get_upper(adjustment) - + gtk_adjustment_get_page_size(adjustment), + value))); +} + +gdouble +zathura_adjustment_get_ratio(GtkAdjustment* adjustment) +{ + gdouble lower = gtk_adjustment_get_lower(adjustment); + gdouble upper = gtk_adjustment_get_upper(adjustment); + gdouble page_size = gtk_adjustment_get_page_size(adjustment); + gdouble value = gtk_adjustment_get_value(adjustment); + + return (value - lower + page_size / 2.0) / (upper - lower); +} + +void +zathura_adjustment_set_value_from_ratio(GtkAdjustment* adjustment, + gdouble ratio) +{ + if (ratio == 0.0) { + return; + } + + gdouble lower = gtk_adjustment_get_lower(adjustment); + gdouble upper = gtk_adjustment_get_upper(adjustment); + gdouble page_size = gtk_adjustment_get_page_size(adjustment); + + gdouble value = (upper - lower) * ratio + lower - page_size / 2.0; + + zathura_adjustment_set_value(adjustment, value); +} diff --git a/adjustment.h b/adjustment.h new file mode 100644 index 0000000..63b4f88 --- /dev/null +++ b/adjustment.h @@ -0,0 +1,49 @@ +/* See LICENSE file for license and copyright information */ + +#ifndef ZATHURA_ADJUSTMENT_H +#define ZATHURA_ADJUSTMENT_H + +#include + +/* Clone a GtkAdjustment + * + * Creates a new adjustment with the same value, lower and upper bounds, step + * and page increments and page_size as the original adjustment. + * + * @param adjustment Adjustment instance to be cloned + * @return Pointer to the new adjustment + */ +GtkAdjustment* zathura_adjustment_clone(GtkAdjustment* adjustment); + +/** + * Set the adjustment value while enforcing its limits + * + * @param adjustment Adjustment instance + * @param value Adjustment value + */ +void zathura_adjustment_set_value(GtkAdjustment* adjustment, gdouble value); + +/** + * Compute the adjustment ratio + * + * That is, the ratio between the length from the lower bound to the middle of + * the slider, and the total length of the scrollbar. + * + * @param adjustment Scrollbar adjustment + * @return Adjustment ratio + */ +gdouble zathura_adjustment_get_ratio(GtkAdjustment* adjustment); + +/** + * Set the adjustment value from ratio + * + * The ratio is usually obtained from a previous call to + * zathura_adjustment_get_ratio(). + * + * @param adjustment Adjustment instance + * @param ratio Ratio from which the adjustment value will be set + */ +void zathura_adjustment_set_value_from_ratio(GtkAdjustment* adjustment, + gdouble ratio); + +#endif /* ZATHURA_ADJUSTMENT_H */ diff --git a/callbacks.c b/callbacks.c index 72fc348..124837c 100644 --- a/callbacks.c +++ b/callbacks.c @@ -18,6 +18,7 @@ #include "shortcuts.h" #include "page-widget.h" #include "page.h" +#include "adjustment.h" gboolean cb_destroy(GtkWidget* UNUSED(widget), zathura_t* zathura) @@ -93,7 +94,11 @@ cb_view_vadjustment_value_changed(GtkAdjustment* GIRARA_UNUSED(adjustment), gpoi zathura->ui.session->gtk.view, 0, 0, &page_rect.x, &page_rect.y); if (gdk_rectangle_intersect(&view_rect, &page_rect, NULL) == TRUE) { - zathura_page_set_visibility(page, true); + if (zathura_page_get_visibility(page) == false) { + zathura_page_set_visibility(page, true); + zathura_page_widget_update_view_time(ZATHURA_PAGE(page_widget)); + zathura_page_cache_add(zathura, zathura_page_get_index(page)); + } if (zathura->global.update_page_number == true && updated == false && gdk_rectangle_intersect(¢er, &page_rect, NULL) == TRUE) { zathura_document_set_current_page_number(zathura->document, page_id); @@ -102,12 +107,93 @@ cb_view_vadjustment_value_changed(GtkAdjustment* GIRARA_UNUSED(adjustment), gpoi } else { zathura_page_set_visibility(page, false); } - zathura_page_widget_update_view_time(ZATHURA_PAGE(page_widget)); } statusbar_page_number_update(zathura); } +void +cb_view_hadjustment_changed(GtkAdjustment* adjustment, gpointer data) +{ + zathura_t* zathura = data; + g_return_if_fail(zathura != NULL); + + zathura_adjust_mode_t adjust_mode = + zathura_document_get_adjust_mode(zathura->document); + + gdouble lower, upper, page_size, value, ratio; + bool zoom_center = false; + + switch (adjust_mode) { + center: + case ZATHURA_ADJUST_BESTFIT: + case ZATHURA_ADJUST_WIDTH: + lower = gtk_adjustment_get_lower(adjustment); + upper = gtk_adjustment_get_upper(adjustment); + page_size = gtk_adjustment_get_page_size(adjustment); + value = ((upper - lower) - page_size) / 2.0; + zathura_adjustment_set_value(adjustment, value); + break; + default: + girara_setting_get(zathura->ui.session, "zoom-center", &zoom_center); + if (zoom_center) { + goto center; + } + + ratio = zathura_adjustment_get_ratio(zathura->ui.hadjustment); + zathura_adjustment_set_value_from_ratio(adjustment, ratio); + break; + } +} + +void +cb_view_vadjustment_changed(GtkAdjustment* adjustment, gpointer data) +{ + zathura_t* zathura = data; + g_return_if_fail(zathura != NULL); + + zathura_adjust_mode_t adjust_mode = + zathura_document_get_adjust_mode(zathura->document); + + /* Don't scroll we're focusing the inputbar. */ + if (adjust_mode == ZATHURA_ADJUST_INPUTBAR) { + return; + } + + double ratio = zathura_adjustment_get_ratio(zathura->ui.vadjustment); + zathura_adjustment_set_value_from_ratio(adjustment, ratio); +} + +void +cb_adjustment_track_value(GtkAdjustment* adjustment, gpointer data) +{ + GtkAdjustment* tracker = data; + + gdouble lower = gtk_adjustment_get_lower(adjustment); + gdouble upper = gtk_adjustment_get_upper(adjustment); + if (lower != gtk_adjustment_get_lower(tracker) || + upper != gtk_adjustment_get_upper(tracker)) { + return; + } + + gdouble value = gtk_adjustment_get_value(adjustment); + gtk_adjustment_set_value(tracker, value); +} + +void +cb_adjustment_track_bounds(GtkAdjustment* adjustment, gpointer data) +{ + GtkAdjustment* tracker = data; + gdouble value = gtk_adjustment_get_value(adjustment); + gdouble lower = gtk_adjustment_get_lower(adjustment); + gdouble upper = gtk_adjustment_get_upper(adjustment); + gdouble page_size = gtk_adjustment_get_page_size(adjustment); + gtk_adjustment_set_value(tracker, value); + gtk_adjustment_set_lower(tracker, lower); + gtk_adjustment_set_upper(tracker, upper); + gtk_adjustment_set_page_size(tracker, page_size); +} + void cb_pages_per_row_value_changed(girara_session_t* session, const char* UNUSED(name), girara_setting_type_t UNUSED(type), void* value, void* UNUSED(data)) { @@ -340,7 +426,8 @@ cb_password_dialog(GtkEntry* entry, zathura_password_dialog_info_t* dialog) } /* try to open document again */ - if (document_open(dialog->zathura, dialog->path, input) == false) { + if (document_open(dialog->zathura, dialog->path, input, + ZATHURA_PAGE_NUMBER_UNSPECIFIED) == false) { gdk_threads_add_idle(password_dialog, dialog); } else { g_free(dialog->path); diff --git a/callbacks.h b/callbacks.h index 4ce2e2e..d879732 100644 --- a/callbacks.h +++ b/callbacks.h @@ -35,6 +35,53 @@ void cb_buffer_changed(girara_session_t* session); * @param data NULL */ void cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data); + +/** + * This function gets called when the bounds or the page_size of the horizontal + * scrollbar change (e.g. when the zoom level is changed). + * + * It adjusts the value of the horizontal scrollbar, possibly based on its + * previous adjustment, stored in the tracking adjustment + * zathura->ui.hadjustment. + * + * @param adjustment The horizontal adjustment of a gtkScrolledWindow + * @param data The zathura instance + */ +void cb_view_hadjustment_changed(GtkAdjustment *adjustment, gpointer data); + +/** + * This function gets called when the bounds or the page_size of the vertical + * scrollbar change (e.g. when the zoom level is changed). + * + * It adjusts the value of the vertical scrollbar based on its previous + * adjustment, stored in the tracking adjustment zathura->ui.hadjustment. + * + * @param adjustment The vertical adjustment of a gtkScrolledWindow + * @param data The zathura instance + */ +void cb_view_vadjustment_changed(GtkAdjustment *adjustment, gpointer data); + +/* This function gets called when the value of the adjustment changes. + * + * It updates the value of the tracking adjustment, only if the bounds of the + * adjustment have not changed (if they did change, + * cb_adjustment_track_bounds() will take care of updating everything). + * + * @param adjustment The adjustment instance + * @param data The tracking adjustment instance + */ +void cb_adjustment_track_value(GtkAdjustment* adjustment, gpointer data); + +/* This function gets called when the bounds or the page_size of the adjustment + * change. + * + * It updates the value, bounds and page_size of the tracking adjustment. + * + * @param adjustment The adjustment instance + * @param data The tracking adjustment instance + */ +void cb_adjustment_track_bounds(GtkAdjustment* adjustment, gpointer data); + /** * This function gets called when the value of the "pages-per-row" * variable changes diff --git a/commands.c b/commands.c index b6ad942..38f7470 100644 --- a/commands.c +++ b/commands.c @@ -225,7 +225,9 @@ cmd_open(girara_session_t* session, girara_list_t* argument_list) document_close(zathura, false); } - document_open(zathura, girara_list_nth(argument_list, 0), (argc == 2) ? girara_list_nth(argument_list, 1) : NULL); + document_open(zathura, girara_list_nth(argument_list, 0), + (argc == 2) ? girara_list_nth(argument_list, 1) : NULL, + ZATHURA_PAGE_NUMBER_UNSPECIFIED); } else { girara_notify(session, GIRARA_ERROR, _("No arguments given.")); return false; @@ -531,7 +533,7 @@ cmd_offset(girara_session_t* session, girara_list_t* argument_list) } /* no argument: take current page as offset */ - unsigned int page_offset = zathura_document_get_current_page_number(zathura->document); + int page_offset = zathura_document_get_current_page_number(zathura->document); /* retrieve offset from argument */ if (girara_list_size(argument_list) == 1) { @@ -545,9 +547,7 @@ cmd_offset(girara_session_t* session, girara_list_t* argument_list) } } - if (page_offset < zathura_document_get_number_of_pages(zathura->document)) { - zathura_document_set_page_offset(zathura->document, page_offset); - } + zathura_document_set_page_offset(zathura->document, page_offset); return true; } diff --git a/config.c b/config.c index 1753594..1be86d8 100644 --- a/config.c +++ b/config.c @@ -52,6 +52,10 @@ cb_color_change(girara_session_t* session, const char* name, gdk_color_parse(string_value, &(zathura->ui.colors.recolor_dark_color)); } else if (g_strcmp0(name, "recolor-lightcolor") == 0) { gdk_color_parse(string_value, &(zathura->ui.colors.recolor_light_color)); + } else if (g_strcmp0(name, "render-loading-bg") == 0) { + gdk_color_parse(string_value, &(zathura->ui.colors.render_loading_bg)); + } else if (g_strcmp0(name, "render-loading-fg") == 0) { + gdk_color_parse(string_value, &(zathura->ui.colors.render_loading_fg)); } render_all(zathura); @@ -143,7 +147,7 @@ config_load_default(zathura_t* zathura) girara_setting_add(gsession, "first-page-column", &int_value, INT, false, _("Column of the first page"),cb_first_page_column_value_changed, NULL); float_value = 40; girara_setting_add(gsession, "scroll-step", &float_value, FLOAT, false, _("Scroll step"), NULL, NULL); - float_value = -1; + float_value = 40; girara_setting_add(gsession, "scroll-hstep", &float_value, FLOAT, false, _("Horizontal scroll step"), NULL, NULL); float_value = 0.0; girara_setting_add(gsession, "scroll-full-overlap", &float_value, FLOAT, false, _("Full page scroll overlap"), NULL, NULL); @@ -151,9 +155,8 @@ config_load_default(zathura_t* zathura) girara_setting_add(gsession, "zoom-min", &int_value, INT, false, _("Zoom minimum"), NULL, NULL); int_value = 1000; girara_setting_add(gsession, "zoom-max", &int_value, INT, false, _("Zoom maximum"), NULL, NULL); - int_value = 20; - girara_setting_add(gsession, "page-store-threshold", &int_value, INT, false, _("Life time (in seconds) of a hidden page"), NULL, NULL); - girara_setting_add(gsession, "page-store-interval", &int_value, INT, true, _("Amount of seconds between each cache purge"), NULL, NULL); + int_value = ZATHURA_PAGE_CACHE_DEFAULT_SIZE; + girara_setting_add(gsession, "page-cache-size", &int_value, INT, true, _("Maximum number of pages to keep in the cache"), NULL, NULL); int_value = 20; girara_setting_add(gsession, "jumplist-size", &int_value, INT, false, _("Number of positions to remember in the jumplist"), cb_jumplist_change, NULL); @@ -165,6 +168,10 @@ config_load_default(zathura_t* zathura) girara_setting_set(gsession, "highlight-color", "#9FBC00"); girara_setting_add(gsession, "highlight-active-color", NULL, STRING, false, _("Color for highlighting (active)"), cb_color_change, NULL); girara_setting_set(gsession, "highlight-active-color", "#00BC00"); + girara_setting_add(gsession, "render-loading-bg", NULL, STRING, false, _("'Loading ...' background color"), cb_color_change, NULL); + girara_setting_set(gsession, "render-loading-bg", "#FFFFFF"); + girara_setting_add(gsession, "render-loading-fg", NULL, STRING, false, _("'Loading ...' foreground color"), cb_color_change, NULL); + girara_setting_set(gsession, "render-loading-fg", "#000000"); bool_value = false; girara_setting_add(gsession, "recolor", &bool_value, BOOLEAN, false, _("Recolor pages"), cb_setting_recolor_change, NULL); @@ -179,6 +186,8 @@ config_load_default(zathura_t* zathura) bool_value = false; girara_setting_add(gsession, "zoom-center", &bool_value, BOOLEAN, false, _("Horizontally centered zoom"), NULL, NULL); bool_value = true; + girara_setting_add(gsession, "link-hadjust", &bool_value, BOOLEAN, false, _("Align link target to the left"), NULL, NULL); + bool_value = true; girara_setting_add(gsession, "search-hadjust", &bool_value, BOOLEAN, false, _("Center result horizontally"), NULL, NULL); float_value = 0.5; girara_setting_add(gsession, "highlight-transparency", &float_value, FLOAT, false, _("Transparency for highlighting"), NULL, NULL); @@ -200,6 +209,8 @@ config_load_default(zathura_t* zathura) bool_value = false; girara_setting_add(gsession, "window-title-basename", &bool_value, BOOLEAN, false, _("Use basename of the file in the window title"), NULL, NULL); bool_value = false; + girara_setting_add(gsession, "statusbar-basename", &bool_value, BOOLEAN, false, _("Use basename of the file in the statusbar"), NULL, NULL); + bool_value = false; girara_setting_add(gsession, "synctex", &bool_value, BOOLEAN, false, _("Enable synctex support"), NULL, NULL); /* define default shortcuts */ @@ -244,6 +255,7 @@ config_load_default(zathura_t* zathura) girara_shortcut_add(gsession, 0, GDK_KEY_Up, NULL, sc_navigate, FULLSCREEN, PREVIOUS, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_Page_Up, NULL, sc_navigate, FULLSCREEN, PREVIOUS, NULL); girara_shortcut_add(gsession, GDK_SHIFT_MASK, GDK_KEY_space, NULL, sc_navigate, FULLSCREEN, PREVIOUS, NULL); + girara_shortcut_add(gsession, 0, GDK_KEY_BackSpace, NULL, sc_navigate, FULLSCREEN, PREVIOUS, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_k, NULL, sc_navigate_index, INDEX, UP, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_j, NULL, sc_navigate_index, INDEX, DOWN, NULL); @@ -286,7 +298,8 @@ config_load_default(zathura_t* zathura) girara_shortcut_add(gsession, GDK_SHIFT_MASK, GDK_KEY_space, NULL, sc_scroll, NORMAL, FULL_UP, NULL); girara_shortcut_add(gsession, GDK_CONTROL_MASK, GDK_KEY_o, NULL, sc_jumplist, NORMAL, BACKWARD, NULL); girara_shortcut_add(gsession, GDK_CONTROL_MASK, GDK_KEY_i, NULL, sc_jumplist, NORMAL, FORWARD, NULL); - + girara_shortcut_add(gsession, GDK_CONTROL_MASK, GDK_KEY_j, NULL, sc_bisect, NORMAL, FORWARD, NULL); + girara_shortcut_add(gsession, GDK_CONTROL_MASK, GDK_KEY_k, NULL, sc_bisect, NORMAL, BACKWARD, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_n, NULL, sc_search, NORMAL, FORWARD, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_N, NULL, sc_search, NORMAL, BACKWARD, NULL); @@ -299,6 +312,7 @@ config_load_default(zathura_t* zathura) girara_shortcut_add(gsession, 0, GDK_KEY_d, NULL, sc_toggle_page_mode, NORMAL, 0, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_q, NULL, sc_quit, NORMAL, 0, NULL); + girara_shortcut_add(gsession, 0, GDK_KEY_q, NULL, sc_quit, FULLSCREEN, 0, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_plus, NULL, sc_zoom, NORMAL, ZOOM_IN, NULL); girara_shortcut_add(gsession, 0, GDK_KEY_KP_Add, NULL, sc_zoom, NORMAL, ZOOM_IN, NULL); @@ -388,6 +402,7 @@ config_load_default(zathura_t* zathura) girara_shortcut_mapping_add(gsession, "follow", sc_follow); girara_shortcut_mapping_add(gsession, "goto", sc_goto); girara_shortcut_mapping_add(gsession, "jumplist", sc_jumplist); + girara_shortcut_mapping_add(gsession, "bisect", sc_bisect); girara_shortcut_mapping_add(gsession, "navigate", sc_navigate); girara_shortcut_mapping_add(gsession, "navigate_index", sc_navigate_index); girara_shortcut_mapping_add(gsession, "print", sc_print); diff --git a/config.mk b/config.mk index bd20747..5bfa7c2 100644 --- a/config.mk +++ b/config.mk @@ -3,7 +3,7 @@ ZATHURA_VERSION_MAJOR = 0 ZATHURA_VERSION_MINOR = 2 -ZATHURA_VERSION_REV = 2 +ZATHURA_VERSION_REV = 3 # 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. @@ -16,13 +16,17 @@ ZATHURA_GTK_VERSION ?= 2 # minimum required zathura version # If you want to disable the check, set GIRARA_VERSION_CHECK to 0. -GIRARA_MIN_VERSION = 0.1.5 +GIRARA_MIN_VERSION = 0.1.6 GIRARA_VERSION_CHECK ?= $(shell pkg-config --atleast-version=$(GIRARA_MIN_VERSION) girara-gtk${ZATHURA_GTK_VERSION}; echo $$?) # 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) +# 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 @@ -56,6 +60,11 @@ SQLITE_INC ?= $(shell pkg-config --cflags sqlite3) SQLITE_LIB ?= $(shell pkg-config --libs sqlite3) endif +ifneq (${WITH_MAGIC},0) +MAGIC_INC ?= +MAGIC_LIB ?= -lmagic +endif + INCS = ${GIRARA_INC} ${GTK_INC} ${GTHREAD_INC} ${GMODULE_INC} LIBS = ${GIRARA_LIB} ${GTK_LIB} ${GTHREAD_LIB} ${GMODULE_LIB} -lpthread -lm diff --git a/database-plain.c b/database-plain.c index fcc0558..a8d6e6f 100644 --- a/database-plain.c +++ b/database-plain.c @@ -1,6 +1,7 @@ /* See LICENSE file for license and copyright information */ #define _POSIX_SOURCE +#define _XOPEN_SOURCE 500 #include #include @@ -10,11 +11,13 @@ #include #include #include +#include #include "database-plain.h" #define BOOKMARKS "bookmarks" #define HISTORY "history" +#define INPUT_HISTORY "input-history" #define KEY_PAGE "page" #define KEY_OFFSET "offset" @@ -37,9 +40,11 @@ #endif static void zathura_database_interface_init(ZathuraDatabaseInterface* iface); +static void io_interface_init(GiraraInputHistoryIOInterface* iface); G_DEFINE_TYPE_WITH_CODE(ZathuraPlainDatabase, zathura_plaindatabase, G_TYPE_OBJECT, - G_IMPLEMENT_INTERFACE(ZATHURA_TYPE_DATABASE, zathura_database_interface_init)) + G_IMPLEMENT_INTERFACE(ZATHURA_TYPE_DATABASE, zathura_database_interface_init) + G_IMPLEMENT_INTERFACE(GIRARA_TYPE_INPUT_HISTORY_IO, io_interface_init)) static void plain_finalize(GObject* object); static bool plain_add_bookmark(zathura_database_t* db, const char* file, @@ -54,6 +59,8 @@ static bool plain_get_fileinfo(zathura_database_t* db, const char* file, zathura_fileinfo_t* file_info); static void plain_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec); +static void plain_io_append(GiraraInputHistoryIO* db, const char*); +static girara_list_t* plain_io_read(GiraraInputHistoryIO* db); /* forward declaration */ static bool zathura_db_check_file(const char* path); @@ -70,6 +77,8 @@ typedef struct zathura_plaindatabase_private_s { char* history_path; GKeyFile* history; GFileMonitor* history_monitor; + + char* input_history_path; } zathura_plaindatabase_private_t; #define ZATHURA_PLAINDATABASE_GET_PRIVATE(obj) \ @@ -105,6 +114,14 @@ zathura_database_interface_init(ZathuraDatabaseInterface* iface) iface->get_fileinfo = plain_get_fileinfo; } +static void +io_interface_init(GiraraInputHistoryIOInterface* iface) +{ + /* initialize interface */ + iface->append = plain_io_append; + iface->read = plain_io_read; +} + static void zathura_plaindatabase_class_init(ZathuraPlainDatabaseClass* class) { @@ -117,8 +134,8 @@ zathura_plaindatabase_class_init(ZathuraPlainDatabaseClass* class) object_class->set_property = plain_set_property; g_object_class_install_property(object_class, PROP_PATH, - g_param_spec_string("path", "path", "path to directory where the bookmarks and history are locates", - NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); + g_param_spec_string("path", "path", "path to directory where the bookmarks and history are locates", + NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); } static void @@ -126,12 +143,13 @@ zathura_plaindatabase_init(ZathuraPlainDatabase* db) { zathura_plaindatabase_private_t* priv = ZATHURA_PLAINDATABASE_GET_PRIVATE(db); - priv->bookmark_path = NULL; - priv->bookmark_monitor = NULL; - priv->bookmarks = NULL; - priv->history_path = NULL; - priv->history_monitor = NULL; - priv->history = NULL; + priv->bookmark_path = NULL; + priv->bookmark_monitor = NULL; + priv->bookmarks = NULL; + priv->history_path = NULL; + priv->history_monitor = NULL; + priv->history = NULL; + priv->input_history_path = NULL; } zathura_database_t* @@ -208,6 +226,12 @@ plain_db_init(ZathuraPlainDatabase* db, const char* dir) goto error_free; } + /* input history */ + priv->input_history_path = g_build_filename(dir, INPUT_HISTORY, NULL); + if (zathura_db_check_file(priv->input_history_path) == false) { + goto error_free; + } + return; error_free: @@ -239,6 +263,10 @@ error_free: g_key_file_free(priv->history); priv->history = NULL; } + + /* input history */ + g_free(priv->input_history_path); + priv->input_history_path = NULL; } static void @@ -283,6 +311,9 @@ plain_finalize(GObject* object) g_key_file_free(priv->history); } + /* input history */ + g_free(priv->input_history_path); + G_OBJECT_CLASS(zathura_plaindatabase_parent_class)->finalize(object); } @@ -595,3 +626,76 @@ cb_zathura_db_watch_file(GFileMonitor* UNUSED(monitor), GFile* file, GFile* UNUS g_free(path); } + +static girara_list_t* +plain_io_read(GiraraInputHistoryIO* db) +{ + zathura_plaindatabase_private_t* priv = ZATHURA_PLAINDATABASE_GET_PRIVATE(db); + + /* open file */ + FILE* file = fopen(priv->input_history_path, "r"); + if (file == NULL) { + return NULL; + } + + /* read input history file */ + file_lock_set(fileno(file), F_RDLCK); + char* content = girara_file_read2(file); + file_lock_set(fileno(file), F_UNLCK); + fclose(file); + + girara_list_t* res = girara_list_new2(g_free); + char** tmp = g_strsplit(content, "\n", 0); + for (size_t i = 0; tmp[i] != NULL; ++i) { + if (strlen(tmp[i]) == 0 || strchr(":/", tmp[i][0]) == NULL) { + continue; + } + girara_list_append(res, g_strdup(tmp[i])); + } + g_strfreev(tmp); + free(content); + + return res; +} + +#include + +static void +plain_io_append(GiraraInputHistoryIO* db, const char* input) +{ + zathura_plaindatabase_private_t* priv = ZATHURA_PLAINDATABASE_GET_PRIVATE(db); + + /* open file */ + FILE* file = fopen(priv->input_history_path, "r+"); + if (file == NULL) { + return; + } + + /* read input history file */ + file_lock_set(fileno(file), F_WRLCK); + char* content = girara_file_read2(file); + + rewind(file); + if (ftruncate(fileno(file), 0) != 0) { + free(content); + file_lock_set(fileno(file), F_UNLCK); + fclose(file); + return; + } + + char** tmp = g_strsplit(content, "\n", 0); + free(content); + + /* write input history file */ + for (size_t i = 0; tmp[i] != NULL; ++i) { + if (strlen(tmp[i]) == 0 || strchr(":/", tmp[i][0]) == NULL || strcmp(tmp[i], input) == 0) { + continue; + } + fprintf(file, "%s\n", tmp[i]); + } + g_strfreev(tmp); + fprintf(file, "%s\n", input); + + file_lock_set(fileno(file), F_UNLCK); + fclose(file); +} diff --git a/database-sqlite.c b/database-sqlite.c index a9f0a6d..44829ed 100644 --- a/database-sqlite.c +++ b/database-sqlite.c @@ -3,14 +3,17 @@ #include #include #include +#include #include #include "database-sqlite.h" static void zathura_database_interface_init(ZathuraDatabaseInterface* iface); +static void io_interface_init(GiraraInputHistoryIOInterface* iface); G_DEFINE_TYPE_WITH_CODE(ZathuraSQLDatabase, zathura_sqldatabase, G_TYPE_OBJECT, - G_IMPLEMENT_INTERFACE(ZATHURA_TYPE_DATABASE, zathura_database_interface_init)) + G_IMPLEMENT_INTERFACE(ZATHURA_TYPE_DATABASE, zathura_database_interface_init) + G_IMPLEMENT_INTERFACE(GIRARA_TYPE_INPUT_HISTORY_IO, io_interface_init)) static void sqlite_finalize(GObject* object); static bool sqlite_add_bookmark(zathura_database_t* db, const char* file, @@ -25,6 +28,8 @@ static bool sqlite_get_fileinfo(zathura_database_t* db, const char* file, zathura_fileinfo_t* file_info); static void sqlite_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec); +static void sqlite_io_append(GiraraInputHistoryIO* db, const char*); +static girara_list_t* sqlite_io_read(GiraraInputHistoryIO* db); typedef struct zathura_sqldatabase_private_s { sqlite3* session; @@ -49,6 +54,14 @@ zathura_database_interface_init(ZathuraDatabaseInterface* iface) iface->get_fileinfo = sqlite_get_fileinfo; } +static void +io_interface_init(GiraraInputHistoryIOInterface* iface) +{ + /* initialize interface */ + iface->append = sqlite_io_append; + iface->read = sqlite_io_read; +} + static void zathura_sqldatabase_class_init(ZathuraSQLDatabaseClass* class) { @@ -61,7 +74,8 @@ zathura_sqldatabase_class_init(ZathuraSQLDatabaseClass* class) object_class->set_property = sqlite_set_property; g_object_class_install_property(object_class, PROP_PATH, - g_param_spec_string("path", "path", "path to the database", NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); + g_param_spec_string("path", "path", "path to the database", NULL, + G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); } static void @@ -79,7 +93,7 @@ zathura_sqldatabase_new(const char* path) zathura_database_t* db = g_object_new(ZATHURA_TYPE_SQLDATABASE, "path", path, NULL); zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); if (priv->session == NULL) { - g_object_unref(db); + g_object_unref(G_OBJECT(db)); return NULL; } @@ -132,6 +146,12 @@ sqlite_db_init(ZathuraSQLDatabase* db, const char* path) static const char SQL_FILEINFO_ALTER2[] = "ALTER TABLE fileinfo ADD COLUMN first_page_column INTEGER;"; + static const char SQL_HISTORY_INIT[] = + "CREATE TABLE IF NOT EXISTS history (" + "time TIMESTAMP," + "line TEXT," + "PRIMARY KEY(line));"; + sqlite3* session = NULL; if (sqlite3_open(path, &session) != SQLITE_OK) { girara_error("Could not open database: %s\n", path); @@ -150,6 +170,12 @@ sqlite_db_init(ZathuraSQLDatabase* db, const char* path) return; } + if (sqlite3_exec(session, SQL_HISTORY_INIT, NULL, 0, NULL) != SQLITE_OK) { + girara_error("Failed to initialize database: %s\n", path); + sqlite3_close(session); + return; + } + const char* data_type = NULL; if (sqlite3_table_column_metadata(session, NULL, "fileinfo", "pages_per_row", &data_type, NULL, NULL, NULL, NULL) != SQLITE_OK) { girara_debug("old database table layout detected; updating ..."); @@ -380,3 +406,51 @@ sqlite_get_fileinfo(zathura_database_t* db, const char* file, return true; } + +static void +sqlite_io_append(GiraraInputHistoryIO* db, const char* input) +{ + static const char SQL_HISTORY_SET[] = + "REPLACE INTO history (line, time) VALUES (?, DATETIME('now'));"; + + zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); + sqlite3_stmt* stmt = prepare_statement(priv->session, SQL_HISTORY_SET); + if (stmt == NULL) { + return; + } + + if (sqlite3_bind_text(stmt, 1, input, -1, NULL) != SQLITE_OK) { + sqlite3_finalize(stmt); + girara_error("Failed to bind arguments."); + return; + } + + sqlite3_step(stmt); + sqlite3_finalize(stmt); +} + +static girara_list_t* +sqlite_io_read(GiraraInputHistoryIO* db) +{ + static const char SQL_HISTORY_GET[] = + "SELECT line FROM history ORDER BY time"; + + zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db); + sqlite3_stmt* stmt = prepare_statement(priv->session, SQL_HISTORY_GET); + if (stmt == NULL) { + return NULL; + } + + girara_list_t* list = girara_list_new2((girara_free_function_t) 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))); + } + + sqlite3_finalize(stmt); + return list; +} diff --git a/database.c b/database.c index d042747..81e3a27 100644 --- a/database.c +++ b/database.c @@ -9,16 +9,6 @@ zathura_database_default_init(ZathuraDatabaseInterface* GIRARA_UNUSED(iface)) { } -void -zathura_db_free(zathura_database_t* db) -{ - if (db == NULL) { - return; - } - - g_object_unref(db); -} - bool zathura_db_add_bookmark(zathura_database_t* db, const char* file, zathura_bookmark_t* bookmark) diff --git a/database.h b/database.h index 5161b35..0c8dd44 100644 --- a/database.h +++ b/database.h @@ -50,13 +50,6 @@ struct _ZathuraDatabaseInterface GType zathura_database_get_type(void); -/** - * Free database instance. - * - * @param db The database instance to free. - */ -void zathura_db_free(zathura_database_t* db); - /** * Add or update bookmark in the database. * diff --git a/document.c b/document.c index ae85aa9..2e6e557 100644 --- a/document.c +++ b/document.c @@ -2,7 +2,6 @@ #define _BSD_SOURCE #define _XOPEN_SOURCE 700 -// TODO: Implement realpath #include #include @@ -12,6 +11,9 @@ #include #include #include +#ifdef WITH_MAGIC +#include +#endif #include #include @@ -45,7 +47,7 @@ struct zathura_document_s { unsigned int rotate; /**< Rotation */ void* data; /**< Custom data */ zathura_adjust_mode_t adjust_mode; /**< Adjust mode (best-fit, width) */ - unsigned int page_offset; /**< Page offset */ + int page_offset; /**< Page offset */ /** * Document pages @@ -360,14 +362,10 @@ zathura_document_set_adjust_mode(zathura_document_t* document, zathura_adjust_mo return; } - if (mode == ZATHURA_ADJUST_BESTFIT || mode == ZATHURA_ADJUST_WIDTH) { - document->adjust_mode = mode; - } else { - document->adjust_mode = ZATHURA_ADJUST_NONE; - } + document->adjust_mode = mode; } -unsigned int +int zathura_document_get_page_offset(zathura_document_t* document) { if (document == NULL) { @@ -384,9 +382,7 @@ zathura_document_set_page_offset(zathura_document_t* document, unsigned int page return; } - if (page_offset < document->number_of_pages) { - document->page_offset = page_offset; - } + document->page_offset = page_offset; } void @@ -518,17 +514,61 @@ zathura_document_get_information(zathura_document_t* document, zathura_error_t* static const gchar* guess_type(const char* path) { - gboolean uncertain; - const gchar* content_type = g_content_type_guess(path, NULL, 0, &uncertain); - if (content_type == NULL) { - return NULL; + const gchar* content_type = NULL; +#ifdef WITH_MAGIC + const char* mime_type = NULL; + + /* creat magic cookie */ + const int flags = + MAGIC_MIME_TYPE | + MAGIC_SYMLINK | + MAGIC_NO_CHECK_APPTYPE | + MAGIC_NO_CHECK_CDF | + MAGIC_NO_CHECK_ELF | + MAGIC_NO_CHECK_ENCODING; + magic_t magic = magic_open(flags); + if (magic == NULL) { + girara_debug("failed creating the magic cookie"); + goto cleanup; } - if (uncertain == FALSE) { + /* ... and load mime database */ + if (magic_load(magic, NULL) < 0) { + girara_debug("failed loading the magic database: %s", magic_error(magic)); + goto cleanup; + } + + /* get the mime type */ + mime_type = magic_file(magic, path); + if (mime_type == NULL) { + girara_debug("failed guessing filetype: %s", magic_error(magic)); + goto cleanup; + } + + girara_debug("magic detected filetype: %s", mime_type); + content_type = g_strdup(mime_type); + +cleanup: + if (magic != NULL) { + magic_close(magic); + } + + if (content_type != NULL) { return content_type; } - - girara_debug("g_content_type is uncertain, guess: %s\n", content_type); + /* else fallback to g_content_type_guess method */ +#endif /*WITH_MAGIC*/ + gboolean uncertain = FALSE; + content_type = g_content_type_guess(path, NULL, 0, &uncertain); + if (content_type == NULL) { + girara_debug("g_content_type failed\n"); + } else { + if (uncertain == FALSE) { + girara_debug("g_content_type detected filetype: %s", content_type); + return content_type; + } + girara_debug("g_content_type is uncertain, guess: %s", content_type); + } FILE* f = fopen(path, "rb"); if (f == NULL) { @@ -551,7 +591,7 @@ guess_type(const char* path) length += bytes_read; content_type = g_content_type_guess(NULL, content, length, &uncertain); - girara_debug("new guess: %s uncertain: %d, read: %zu\n", content_type, uncertain, length); + girara_debug("new guess: %s uncertain: %d, read: %zu", content_type, uncertain, length); } fclose(f); diff --git a/document.h b/document.h index 113344e..5f18047 100644 --- a/document.h +++ b/document.h @@ -143,7 +143,7 @@ void zathura_document_set_adjust_mode(zathura_document_t* document, zathura_adju * @param document The document * @return The page offset */ -unsigned int zathura_document_get_page_offset(zathura_document_t* document); +int zathura_document_get_page_offset(zathura_document_t* document); /** * Sets the new page offset of the document diff --git a/glib-compat.h b/glib-compat.h new file mode 100644 index 0000000..d13e59f --- /dev/null +++ b/glib-compat.h @@ -0,0 +1,33 @@ +/* See LICENSE file for license and copyright information */ + +#ifndef GLIB_COMPAT_H +#define GLIB_COMPAT_H + +#include + +/* GStaticMutex is deprecated starting with glib 2.32 */ +#if !GLIB_CHECK_VERSION(2, 31, 0) +#define mutex GStaticMutex +#define mutex_init(m) g_static_mutex_init((m)) +#define mutex_lock(m) g_static_mutex_lock((m)) +#define mutex_unlock(m) g_static_mutex_unlock((m)) +#define mutex_free(m) g_static_mutex_free((m)) +#else +#define mutex GMutex +#define mutex_init(m) g_mutex_init((m)) +#define mutex_lock(m) g_mutex_lock((m)) +#define mutex_unlock(m) g_mutex_unlock((m)) +#define mutex_free(m) g_mutex_clear((m)) +#endif + +/* g_get_real_time appeared in 2.28 */ +#if !GLIB_CHECK_VERSION(2, 27, 0) +inline static gint64 g_get_real_time(void) +{ + GTimeVal tv; + g_get_current_time(&tv); + return (((gint64) tv.tv_sec) * 1000000) + tv.tv_usec; +} +#endif + +#endif diff --git a/links.c b/links.c index 0e2c400..4ce1487 100644 --- a/links.c +++ b/links.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "links.h" #include "zathura.h" @@ -30,6 +31,7 @@ zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position, link->position = position; switch (type) { + case ZATHURA_LINK_NONE: case ZATHURA_LINK_GOTO_DEST: link->target = target; @@ -64,6 +66,7 @@ zathura_link_free(zathura_link_t* link) } switch (link->type) { + case ZATHURA_LINK_NONE: case ZATHURA_LINK_GOTO_DEST: case ZATHURA_LINK_GOTO_REMOTE: case ZATHURA_LINK_URI: @@ -133,11 +136,8 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link) return; } - zathura_document_set_current_page_number(zathura->document, link->target.page_number); - - /* get page offset */ - page_offset_t offset; - page_calculate_offset(zathura, page, &offset); + page_offset_t offset; + page_calculate_offset(zathura, page, &offset); if (link->target.destination_type == ZATHURA_LINK_DESTINATION_XYZ) { if (link->target.left != -1) { @@ -149,8 +149,18 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link) } } - position_set_delayed(zathura, offset.x, offset.y); - statusbar_page_number_update(zathura); + /* jump to the page */ + page_set(zathura, link->target.page_number); + + /* move to the target position */ + bool link_hadjust = true; + girara_setting_get(zathura->ui.session, "link-hadjust", &link_hadjust); + + if (link_hadjust == true) { + position_set_delayed(zathura, offset.x, offset.y); + } else { + position_set_delayed(zathura, -1, offset.y); + } } break; case ZATHURA_LINK_GOTO_REMOTE: diff --git a/main.c b/main.c index 0920adb..69562a4 100644 --- a/main.c +++ b/main.c @@ -21,7 +21,9 @@ main(int argc, char* argv[]) textdomain(GETTEXT_PACKAGE); /* init gtk */ +#if !GLIB_CHECK_VERSION(2, 31, 0) g_thread_init(NULL); +#endif gdk_threads_init(); gtk_init(&argc, &argv); @@ -41,6 +43,7 @@ main(int argc, char* argv[]) bool forkback = false; bool print_version = false; bool synctex = false; + int page_number = ZATHURA_PAGE_NUMBER_UNSPECIFIED; #if (GTK_MAJOR_VERSION == 3) Window embed = 0; @@ -55,6 +58,7 @@ main(int argc, char* argv[]) { "plugins-dir", 'p', 0, G_OPTION_ARG_STRING, &plugin_path, _("Path to the directories containing plugins"), "path" }, { "fork", '\0',0, G_OPTION_ARG_NONE, &forkback, _("Fork into the background"), NULL }, { "password", 'w', 0, G_OPTION_ARG_STRING, &password, _("Document password"), "password" }, + { "page", 'P', 0, G_OPTION_ARG_INT, &page_number, _("Page number to go to"), "number" }, { "debug", 'l', 0, G_OPTION_ARG_STRING, &loglevel, _("Log level (debug, info, warning, error)"), "level" }, { "version", 'v', 0, G_OPTION_ARG_NONE, &print_version, _("Print version information"), NULL }, { "synctex", 's', 0, G_OPTION_ARG_NONE, &synctex, _("Enable synctex support"), NULL }, @@ -126,7 +130,9 @@ main(int argc, char* argv[]) /* open document if passed */ if (argc > 1) { - document_open_idle(zathura, argv[1], password); + if (page_number > 0) + --page_number; + document_open_idle(zathura, argv[1], password, page_number); /* open additional files */ for (int i = 2; i < argc; i++) { diff --git a/marks.c b/marks.c index d5e4d47..0fac33d 100644 --- a/marks.c +++ b/marks.c @@ -235,9 +235,7 @@ 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) { - double old_scale = zathura_document_get_scale(zathura->document); zathura_document_set_scale(zathura->document, mark->scale); - readjust_view_after_zooming(zathura, old_scale, true); render_all(zathura); position_set_delayed(zathura, mark->position_x, mark->position_y); diff --git a/page-widget.c b/page-widget.c index ac7e93d..7bcb186 100644 --- a/page-widget.c +++ b/page-widget.c @@ -7,6 +7,7 @@ #include #include +#include "glib-compat.h" #include "links.h" #include "page-widget.h" #include "page.h" @@ -21,8 +22,9 @@ typedef struct zathura_page_widget_private_s { zathura_page_t* page; /**< Page object */ zathura_t* zathura; /**< Zathura object */ cairo_surface_t* surface; /**< Cairo surface */ + bool render_requested; /**< No surface and rendering has been requested */ gint64 last_view; /**< Last time the page has been viewed */ - GStaticMutex lock; /**< Lock */ + mutex lock; /**< Lock */ struct { girara_list_t* list; /**< List of links on the page */ @@ -114,34 +116,35 @@ zathura_page_widget_class_init(ZathuraPageClass* class) /* add properties */ g_object_class_install_property(object_class, PROP_PAGE, - g_param_spec_pointer("page", "page", "the page to draw", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); + g_param_spec_pointer("page", "page", "the page to draw", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_ZATHURA, - g_param_spec_pointer("zathura", "zathura", "the zathura instance", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); + g_param_spec_pointer("zathura", "zathura", "the zathura instance", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_DRAW_LINKS, - g_param_spec_boolean("draw-links", "draw-links", "Set to true if links should be drawn", FALSE, G_PARAM_WRITABLE)); + g_param_spec_boolean("draw-links", "draw-links", "Set to true if links should be drawn", FALSE, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_LINKS_OFFSET, - g_param_spec_int("offset-links", "offset-links", "Offset for the link numbers", 0, INT_MAX, 0, G_PARAM_WRITABLE)); + g_param_spec_int("offset-links", "offset-links", "Offset for the link numbers", 0, INT_MAX, 0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_LINKS_NUMBER, - g_param_spec_int("number-of-links", "number-of-links", "Number of links", 0, INT_MAX, 0, G_PARAM_READABLE)); + g_param_spec_int("number-of-links", "number-of-links", "Number of links", 0, INT_MAX, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_SEARCH_RESULTS, - g_param_spec_pointer("search-results", "search-results", "Set to the list of search results", G_PARAM_WRITABLE | G_PARAM_READABLE)); + g_param_spec_pointer("search-results", "search-results", "Set to the list of search results", G_PARAM_WRITABLE | G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_SEARCH_RESULTS_CURRENT, - g_param_spec_int("search-current", "search-current", "The current search result", -1, INT_MAX, 0, G_PARAM_WRITABLE | G_PARAM_READABLE)); + g_param_spec_int("search-current", "search-current", "The current search result", -1, INT_MAX, 0, G_PARAM_WRITABLE | G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_SEARCH_RESULTS_LENGTH, - g_param_spec_int("search-length", "search-length", "The number of search results", -1, INT_MAX, 0, G_PARAM_READABLE)); + g_param_spec_int("search-length", "search-length", "The number of search results", -1, INT_MAX, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_DRAW_SEACH_RESULTS, - g_param_spec_boolean("draw-search-results", "draw-search-results", "Set to true if search results should be drawn", FALSE, G_PARAM_WRITABLE)); + g_param_spec_boolean("draw-search-results", "draw-search-results", "Set to true if search results should be drawn", FALSE, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_LAST_VIEW, - g_param_spec_int("last-view", "last-view", "Last time the page has been viewed", -1, INT_MAX, 0, G_PARAM_READABLE)); + g_param_spec_int64("last-view", "last-view", "Last time the page has been viewed", -1, G_MAXINT64, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } static void zathura_page_widget_init(ZathuraPage* widget) { zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(widget); - priv->page = NULL; - priv->surface = NULL; - priv->last_view = g_get_real_time(); + priv->page = NULL; + priv->surface = NULL; + priv->render_requested = false; + priv->last_view = g_get_real_time(); priv->links.list = NULL; priv->links.retrieved = false; @@ -162,7 +165,7 @@ zathura_page_widget_init(ZathuraPage* widget) priv->mouse.selection_basepoint.x = -1; priv->mouse.selection_basepoint.y = -1; - g_static_mutex_init(&(priv->lock)); + mutex_init(&(priv->lock)); /* we want mouse events */ gtk_widget_add_events(GTK_WIDGET(widget), @@ -195,7 +198,7 @@ zathura_page_widget_finalize(GObject* object) girara_list_free(priv->links.list); } - g_static_mutex_free(&(priv->lock)); + mutex_free(&(priv->lock)); G_OBJECT_CLASS(zathura_page_widget_parent_class)->finalize(object); } @@ -294,7 +297,7 @@ zathura_page_widget_get_property(GObject* object, guint prop_id, GValue* value, g_value_set_pointer(value, priv->search.list); break; case PROP_LAST_VIEW: - g_value_set_int(value, priv->last_view); + g_value_set_int64(value, priv->last_view); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); @@ -325,7 +328,7 @@ static gboolean zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) { zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(widget); - g_static_mutex_lock(&(priv->lock)); + mutex_lock(&(priv->lock)); zathura_document_t* document = zathura_page_get_document(priv->page); @@ -435,7 +438,8 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) GdkColor color = priv->zathura->ui.colors.recolor_light_color; cairo_set_source_rgb(cairo, color.red/65535.0, color.green/65535.0, color.blue/65535.0); } else { - cairo_set_source_rgb(cairo, 1, 1, 1); + GdkColor color = priv->zathura->ui.colors.render_loading_bg; + cairo_set_source_rgb(cairo, color.red/65535.0, color.green/65535.0, color.blue/65535.0); } cairo_rectangle(cairo, 0, 0, page_width, page_height); cairo_fill(cairo); @@ -449,7 +453,8 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) GdkColor color = priv->zathura->ui.colors.recolor_dark_color; cairo_set_source_rgb(cairo, color.red/65535.0, color.green/65535.0, color.blue/65535.0); } else { - cairo_set_source_rgb(cairo, 0, 0, 0); + GdkColor color = priv->zathura->ui.colors.render_loading_fg; + cairo_set_source_rgb(cairo, color.red/65535.0, color.green/65535.0, color.blue/65535.0); } const char* text = _("Loading..."); @@ -464,9 +469,12 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) } /* render real page */ - render_page(priv->zathura->sync.render_thread, priv->page); + if (priv->render_requested == false) { + priv->render_requested = true; + render_page(priv->zathura->sync.render_thread, priv->page); + } } - g_static_mutex_unlock(&(priv->lock)); + mutex_unlock(&(priv->lock)); return FALSE; } @@ -481,15 +489,18 @@ void zathura_page_widget_update_surface(ZathuraPage* widget, cairo_surface_t* surface) { zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(widget); - g_static_mutex_lock(&(priv->lock)); + mutex_lock(&(priv->lock)); if (priv->surface != NULL) { cairo_surface_finish(priv->surface); cairo_surface_destroy(priv->surface); } + priv->render_requested = false; priv->surface = surface; - g_static_mutex_unlock(&(priv->lock)); + mutex_unlock(&(priv->lock)); /* force a redraw here */ - zathura_page_widget_redraw_canvas(widget); + if (priv->surface != NULL) { + zathura_page_widget_redraw_canvas(widget); + } } static void @@ -849,19 +860,3 @@ zathura_page_widget_update_view_time(ZathuraPage* widget) priv->last_view = g_get_real_time(); } } - -void -zathura_page_widget_purge_unused(ZathuraPage* widget, gint64 threshold) -{ - g_return_if_fail(ZATHURA_IS_PAGE(widget) == TRUE); - zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(widget); - if (zathura_page_get_visibility(priv->page) == true || priv->surface == NULL || threshold <= 0) { - return; - } - - const gint64 now = g_get_real_time(); - if (now - priv->last_view >= threshold * G_USEC_PER_SEC) { - girara_debug("purge page %d from cache (unseen for %f seconds)", zathura_page_get_index(priv->page), ((double)now - priv->last_view) / G_USEC_PER_SEC); - zathura_page_widget_update_surface(widget, NULL); - } -} diff --git a/page-widget.h b/page-widget.h index fe0b67a..5609e78 100644 --- a/page-widget.h +++ b/page-widget.h @@ -88,12 +88,4 @@ zathura_link_t* zathura_page_widget_link_get(ZathuraPage* widget, unsigned int i */ void zathura_page_widget_update_view_time(ZathuraPage* widget); -/** - * If the page has not been viewed for some time, purge the surface. - * - * @param widget the widget - * @param threshold the threshold (in seconds) - */ -void zathura_page_widget_purge_unused(ZathuraPage* widget, gint64 threshold); - #endif diff --git a/po/ca.po b/po/ca.po new file mode 100644 index 0000000..24e0bee --- /dev/null +++ b/po/ca.po @@ -0,0 +1,461 @@ +# zathura - language file (Catalan) +# See LICENSE file for license and copyright information +# +# Translators: +# norbux , 2013 +# norbux , 2012 +# mvdan , 2012 +msgid "" +msgstr "" +"Project-Id-Version: zathura\n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:47+0200\n" +"Last-Translator: Sebastian Ramacher \n" +"Language-Team: Catalan (http://www.transifex.com/projects/p/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" + +#: ../callbacks.c:304 +#, c-format +msgid "Invalid input '%s' given." +msgstr "Entrada invàlida '%s'." + +#: ../callbacks.c:342 +#, c-format +msgid "Invalid index '%s' given." +msgstr "Índex invàlid '%s'." + +#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 +msgid "No document opened." +msgstr "No s'ha obert cap document." + +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 +msgid "Invalid number of arguments given." +msgstr "Nombre d'arguments invàlids." + +#: ../commands.c:49 +#, c-format +msgid "Bookmark successfuly updated: %s" +msgstr "Marcador actualitzat correctament: %s" + +#: ../commands.c:55 +#, c-format +msgid "Could not create bookmark: %s" +msgstr "No s'ha pogut crear el marcador: %s" + +#: ../commands.c:59 +#, c-format +msgid "Bookmark successfuly created: %s" +msgstr "Marcador creat correctament: %s" + +#: ../commands.c:82 +#, c-format +msgid "Removed bookmark: %s" +msgstr "Esborrat el marcador: %s" + +#: ../commands.c:84 +#, c-format +msgid "Failed to remove bookmark: %s" +msgstr "No s'ha pogut esborrar el marcador: %s" + +#: ../commands.c:110 +#, c-format +msgid "No such bookmark: %s" +msgstr "Marcador no existent: %s" + +#: ../commands.c:161 ../commands.c:183 +msgid "No information available." +msgstr "Cap informació disponible." + +#: ../commands.c:221 +msgid "Too many arguments." +msgstr "Massa arguments." + +#: ../commands.c:232 +msgid "No arguments given." +msgstr "Cap argument subministrat." + +#: ../commands.c:291 ../commands.c:317 +msgid "Document saved." +msgstr "Document desat." + +#: ../commands.c:293 ../commands.c:319 +msgid "Failed to save document." +msgstr "No s'ha pogut desar el document." + +#: ../commands.c:296 ../commands.c:322 +msgid "Invalid number of arguments." +msgstr "Nombre d'arguments invàlids." + +#: ../commands.c:434 +#, c-format +msgid "Couldn't write attachment '%s' to '%s'." +msgstr "No s'ha pogut escriure el fitxer adjunt '%s' a '%s'." + +#: ../commands.c:436 +#, c-format +msgid "Wrote attachment '%s' to '%s'." +msgstr "S'ha escrit el fitxer adjunt '%s' a '%s'." + +#: ../commands.c:480 +#, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "S'ha escrit la imatge '%s' a '%s'." + +#: ../commands.c:482 +#, c-format +msgid "Couldn't write image '%s' to '%s'." +msgstr "No s'ha pogut escriure la imatge '%s' a '%s'." + +#: ../commands.c:489 +#, c-format +msgid "Unknown image '%s'." +msgstr "Imatge desconeguda '%s'." + +#: ../commands.c:493 +#, c-format +msgid "Unknown attachment or image '%s'." +msgstr "Imatge o fitxer adjunt desconegut '%s'." + +#: ../commands.c:544 +msgid "Argument must be a number." +msgstr "L'argument ha de ser un nombre." + +#: ../completion.c:250 +#, c-format +msgid "Page %d" +msgstr "Pàgina %d" + +#: ../completion.c:293 +msgid "Attachments" +msgstr "Fitxers adjunts" + +#. add images +#: ../completion.c:324 +msgid "Images" +msgstr "Imatges" + +#. zathura settings +#: ../config.c:139 +msgid "Database backend" +msgstr "Base de dades de rerefons" + +#: ../config.c:141 +msgid "Zoom step" +msgstr "Pas d'ampliació" + +#: ../config.c:143 +msgid "Padding between pages" +msgstr "Separació entre pàgines" + +#: ../config.c:145 +msgid "Number of pages per row" +msgstr "Nombre de pàgines per fila" + +#: ../config.c:147 +msgid "Column of the first page" +msgstr "Columna de la primera pàgina" + +#: ../config.c:149 +msgid "Scroll step" +msgstr "Pas de desplaçament" + +#: ../config.c:151 +msgid "Horizontal scroll step" +msgstr "Pas de desplaçament horitzontal" + +#: ../config.c:153 +msgid "Full page scroll overlap" +msgstr "Superposició de pàgines completes de desplaçament" + +#: ../config.c:155 +msgid "Zoom minimum" +msgstr "Zoom mínim" + +#: ../config.c:157 +msgid "Zoom maximum" +msgstr "Zoom màxim" + +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" + +#: ../config.c:161 +msgid "Number of positions to remember in the jumplist" +msgstr "Nombre de posicions per recordar al jumplist" + +#: ../config.c:163 +msgid "Recoloring (dark color)" +msgstr "Recolorejant (color fosc)" + +#: ../config.c:165 +msgid "Recoloring (light color)" +msgstr "Recolorejant (color clar)" + +#: ../config.c:167 +msgid "Color for highlighting" +msgstr "Color de realçament" + +#: ../config.c:169 +msgid "Color for highlighting (active)" +msgstr "Color de realçament (activat)" + +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 +msgid "Recolor pages" +msgstr "Recolorejant les pàgines" + +#: ../config.c:179 +msgid "When recoloring keep original hue and adjust lightness only" +msgstr "Quan recoloregis manté el to original i ajusta només la lluminositat" + +#: ../config.c:181 +msgid "Wrap scrolling" +msgstr "Desplaçament recollit" + +#: ../config.c:183 +msgid "Page aware scrolling" +msgstr "Desplaçament recollit" + +#: ../config.c:185 +msgid "Advance number of pages per row" +msgstr "Avançar nombre de pàgines per fila" + +#: ../config.c:187 +msgid "Horizontally centered zoom" +msgstr "Zoom centrat horitzontalment" + +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 +msgid "Center result horizontally" +msgstr "Centra el resultat horitzontalment" + +#: ../config.c:193 +msgid "Transparency for highlighting" +msgstr "Transparència del realçat" + +#: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "Renderitza 'Carregant ...'" + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "Ajustar al fitxer quan s'obri" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "Mostra els directoris i fitxers ocults" + +#: ../config.c:200 +msgid "Show directories" +msgstr "Mostra els directoris" + +#: ../config.c:202 +msgid "Always open on first page" +msgstr "Obrir sempre la primera pàgina" + +#: ../config.c:204 +msgid "Highlight search results" +msgstr "Realça els resultats de recerca" + +#: ../config.c:206 +msgid "Enable incremental search" +msgstr "Habilita la cerca incremental" + +#: ../config.c:208 +msgid "Clear search results on abort" +msgstr "Esborra els resultats de recerca a l'interrompre" + +#: ../config.c:210 +msgid "Use basename of the file in the window title" +msgstr "Utilitza el nom base del fitxer en el títol de la finestra" + +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 +msgid "Enable synctex support" +msgstr "Habilitar la compatibilitat amb synctex" + +#. define default inputbar commands +#: ../config.c:373 +msgid "Add a bookmark" +msgstr "Afegir un marcador" + +#: ../config.c:374 +msgid "Delete a bookmark" +msgstr "Esborrar un marcador" + +#: ../config.c:375 +msgid "List all bookmarks" +msgstr "Llista tots els marcadors" + +#: ../config.c:376 +msgid "Close current file" +msgstr "Tancar el fitxer actual" + +#: ../config.c:377 +msgid "Show file information" +msgstr "Mostra informació sobre el fitxer" + +#: ../config.c:378 +msgid "Execute a command" +msgstr "Executar una comanda" + +#: ../config.c:379 +msgid "Show help" +msgstr "Mostrar l'ajuda" + +#: ../config.c:380 +msgid "Open document" +msgstr "Obrir document" + +#: ../config.c:381 +msgid "Close zathura" +msgstr "Tancar Zathura" + +#: ../config.c:382 +msgid "Print document" +msgstr "Imprimir document" + +#: ../config.c:383 +msgid "Save document" +msgstr "Desar document" + +#: ../config.c:384 +msgid "Save document (and force overwriting)" +msgstr "Desar document (i forçar la sobreescritura)" + +#: ../config.c:385 +msgid "Save attachments" +msgstr "Desa els fitxers adjunts" + +#: ../config.c:386 +msgid "Set page offset" +msgstr "Assigna el desplaçament de pàgina" + +#: ../config.c:387 +msgid "Mark current location within the document" +msgstr "Marca la posició actual dins el document" + +#: ../config.c:388 +msgid "Delete the specified marks" +msgstr "Esborrar les marques especificades" + +#: ../config.c:389 +msgid "Don't highlight current search results" +msgstr "No realcis els resultats de la recerca actual" + +#: ../config.c:390 +msgid "Highlight current search results" +msgstr "Realça els resultats de recerca actual" + +#: ../config.c:391 +msgid "Show version information" +msgstr "Mostra informació sobre la versió" + +#: ../links.c:171 ../links.c:250 +msgid "Failed to run xdg-open." +msgstr "No s'ha pogut executar xdg-open." + +#: ../links.c:189 +#, c-format +msgid "Link: page %d" +msgstr "Enllaçar: pàgina %d" + +#: ../links.c:196 +#, c-format +msgid "Link: %s" +msgstr "Enllaç: %s" + +#: ../links.c:200 +msgid "Link: Invalid" +msgstr "Enllaç: Invàlid" + +#: ../main.c:55 +msgid "Reparents to window specified by xid" +msgstr "Reassigna a la finestra especificada per xid" + +#: ../main.c:56 +msgid "Path to the config directory" +msgstr "Ruta al directori de configuració" + +#: ../main.c:57 +msgid "Path to the data directory" +msgstr "Camí al directori de dades" + +#: ../main.c:58 +msgid "Path to the directories containing plugins" +msgstr "Camí al directori que conté els plugins" + +#: ../main.c:59 +msgid "Fork into the background" +msgstr "Bifurca en segon pla" + +#: ../main.c:60 +msgid "Document password" +msgstr "Contrasenya del document" + +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 +msgid "Log level (debug, info, warning, error)" +msgstr "Nivell de registre (depuració, informació, advertiments, errors)" + +#: ../main.c:63 +msgid "Print version information" +msgstr "Imprimeix informació sobre la versió" + +#: ../main.c:65 +msgid "Synctex editor (forwarded to the synctex command)" +msgstr "Editor synctex (reenviat a l'ordre synctex)" + +#: ../page-widget.c:460 +msgid "Loading..." +msgstr "Carregant..." + +#: ../page-widget.c:657 +#, c-format +msgid "Copied selected text to clipboard: %s" +msgstr "Copiat el text seleccionat al porta-retalls: %s" + +#: ../page-widget.c:755 +msgid "Copy image" +msgstr "Copia la imatge" + +#: ../page-widget.c:756 +msgid "Save image as" +msgstr "Desa imatge com a" + +#: ../shortcuts.c:1108 +msgid "This document does not contain any index" +msgstr "Aquest document no conté cap índex" + +#: ../zathura.c:224 ../zathura.c:956 +msgid "[No name]" +msgstr "[Sense nom]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/cs.po b/po/cs.po index d148050..8b5d1c6 100644 --- a/po/cs.po +++ b/po/cs.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-06-19 23:59+0200\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:44+0200\n" "Last-Translator: Martin Pelikan \n" "Language-Team: pwmt.org \n" "Language: cs\n" @@ -14,24 +14,24 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Neplatný vstup: %s" -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Neplatný index: %s" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Není otevřený žádný dokument." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Špatný počet argumentů." @@ -73,53 +73,53 @@ msgstr "Nejsou dostupné žádné informace." msgid "Too many arguments." msgstr "Příliš mnoho argumentů." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Nezadali jste argumenty." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Dokument uložen." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Nepovedlo se uložit dokument." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Špatný počet argumentů." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Nepovedlo se zapsat přílohu '%s' do '%s'." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Příloha '%s' zapsána do '%s'." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Obrázek '%s' zapsán do '%s'." -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Nepovedlo se zapsat obrázek '%s' do '%s'." -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "Neznámý obrázek '%s'." -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Neznámá příloha nebo obrázek '%s'." -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Argumentem musí být číslo." @@ -138,298 +138,318 @@ msgid "Images" msgstr "Obrázky" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Databázový backend" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Zoom step" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Mezery mezi stránkami" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Počet stránek na řádek" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Scroll step" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Oddálit" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Přiblížit" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Délka života skryté stránky v sekundách" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Počet sekund mezi čištěními cache" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Přebarvuji do tmava" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Přebarvuji do světla" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Barva zvýrazňovače" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Barva zvýrazňovače (aktivní)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Přebarvit stránky" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Scrollovat přes konce" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Průhlednost při zvýrazňování" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Vypisovat 'Načítám ...'" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Přiblížení po otevření souboru" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Zobrazovat skryté soubory" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Zobrazovat adresáře" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Vždy otevírat na první straně" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "Zvýrazňovat výsledky hledání" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "Při abortu smazat výsledky hledání" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Přidat záložku" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Smazat záložku" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Vypsat záložky" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Zavřít tenhle soubor" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Zobrazit informace o souboru" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Zobrazit nápovědu" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Otevřít dokument" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Zavřít zathuru" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Tisknout dokument" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Uložit dokument" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Uložit a přepsat dokument" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Uložit přílohy" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "Označit současnou pozici v dokumentu" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "Smazat vybrané značky" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "Nezvýrazňovat výsledky tohoto hledání" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "Zvýrazňovat výsledky tohoto hledání" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Nepovedlo se spustit xdg-open." -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Cesta k souboru s nastavením" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Cesta k adresáři s daty" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Cesta k adresářům s pluginy" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Forknout se na pozadí" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "Heslo" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Úroveň logování (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Zobrazit informace o souboru" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Načítám ..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Vybraný text zkopírován do schránky: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Zkopíruj obrázek" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "Ulož obrázek jako" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Tenhle dokument neobsahuje žádné indexy" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Nepojmenovaný]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/de.po b/po/de.po index 22d0860..78ee239 100644 --- a/po/de.po +++ b/po/de.po @@ -2,38 +2,40 @@ # See LICENSE file for license and copyright information # # Translators: +# , 2012. msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-08-05 16:08+0100\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:44+0200\n" "Last-Translator: Sebastian Ramacher \n" -"Language-Team: pwmt.org \n" +"Language-Team: German (http://www.transifex.com/projects/p/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" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Ungültige Eingabe '%s' angegeben." -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Ungültiger Index '%s' angegeben." #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Kein Dokument geöffnet." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Ungültige Anzahl an Argumenten angegeben." @@ -75,53 +77,53 @@ msgstr "Keine Information verfügbar." msgid "Too many arguments." msgstr "Zu viele Argumente angegeben." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Keine Argumente angegeben." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Dokument gespeichert." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Konnte Dokument nicht speichern." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Ungültige Anzahl an Argumenten." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Konnte Anhang '%s' nicht nach '%s' schreiben." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Anhang '%s' nach '%s' geschrieben." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Anhang '%s' nach '%s' geschrieben." -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Konnte Anhang '%s' nicht nach '%s' schreiben." -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "Unbekanntes Bild '%s'." -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Unbekannter Anhanng oder Bild '%s'." -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Das Argument ist keine Zahl." @@ -140,301 +142,320 @@ msgid "Images" msgstr "Bilder" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Datenbank Backend" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Vergrößerungsstufe" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Abstand zwischen den Seiten" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Anzahl der Seiten in einer Reihe" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "Spalte der ersten Seite" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Schrittgröße beim Scrollen" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "Horizontale Schrittgröße beim Scrollen" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Minimale Vergrößerungsstufe" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Maximale Vergrößerungsstufe" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Zeit (in Sekunden) bevor nicht sichtbare Seiten gelöscht werden" - -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" msgstr "" -"Anzahl der Sekunden zwischen jeder Prüfung von nicht angezeigten Seiten" -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Neufärben (Dunkle Farbe)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Neufärben (Helle Farbe)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Farbe für eine Markierung" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Farbe für die aktuelle Markierung" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Färbe die Seiten ein" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" "Behalte beim Neuzeichnen den ursprünglichen Hue-Wert bei und stimme nur die " "Helligkeit ab" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Scroll-Umbruch" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "Gehe Anzahl der Seiten in einer Reihe weiter" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "Horizontal zentrierter Zoom" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "Zentriere Ergebnis horizontal" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Transparenz einer Markierung" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Zeige 'Lädt...'-Text beim Zeichnen einer Seite" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Seite einpassen" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Zeige versteckte Dateien und Ordner an" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Zeige Ordner an" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Öffne Dokument immer auf der ersten Seite" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "Hebe Suchergebnisse hervor" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "Lösche Suchergebnisse bei Abbruch" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "Verwende den Dateinamen der Datei im Fenstertitel" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "Verwende den Dateinamen der Datei in der Statusleiste" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" -msgstr "" +msgstr "Aktiviere SyncTeX-Unterstützung" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Füge Lesezeichen hinzu" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Lösche ein Lesezeichen" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Liste all Lesezeichen auf" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Schließe das aktuelle Dokument" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Zeige Dokumentinformationen an" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" -msgstr "" +msgstr "Führe einen Befehl aus" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Zeige Hilfe an" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Öffne Dokument" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Beende zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Drucke Dokument" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Speichere Dokument" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Speichere Dokument (und überschreibe bestehende)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Speichere Anhänge" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Setze den Seitenabstand" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "Markiere aktuelle Position im Doukument" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "Lösche angegebene Markierung" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "Hebe aktuelle Suchergebnisse nicht hervor" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "Hebe aktuelle Suchergebnisse hervor" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "Zeige Versionsinformationen an" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Konnte xdg-open nicht ausführen." -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "Verknüpfung: Seite %d" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "Verknüpfung: %s" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "Verknüpfung: ungültig" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Reparentiert zathura an das Fenster mit der xid" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Pfad zum Konfigurationsverzeichnis" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Pfad zum Datenverzeichnis" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Pfad zum Pluginverzeichnis" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Forkt den Prozess in den Hintergrund" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "Dokument Passwort" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Log-Stufe (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Zeige Versionsinformationen an" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Synctex Editor (wird an synctex weitergeleitet)" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Lädt..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Der gewählte Text wurde in die Zwischenablage kopiert: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Bild kopieren" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "Bild speichern als" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Dieses Dokument beinhaltet kein Inhaltsverzeichnis." -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Kein Name]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "Dieses Dokument beinhaltet kein Seiten" diff --git a/po/el.po b/po/el.po new file mode 100644 index 0000000..4858709 --- /dev/null +++ b/po/el.po @@ -0,0 +1,462 @@ +# zathura - language file (Greek) +# See LICENSE file for license and copyright information +# +# Translators: +# Nisok Kosin , 2012. +# Nisok Kosin , 2012. +msgid "" +msgstr "" +"Project-Id-Version: zathura\n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:45+0200\n" +"Last-Translator: Sebastian Ramacher \n" +"Language-Team: Greek (http://www.transifex.com/projects/p/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" + +#: ../callbacks.c:304 +#, c-format +msgid "Invalid input '%s' given." +msgstr "Η είσοδος '%s' είναι άκυρη." + +#: ../callbacks.c:342 +#, c-format +msgid "Invalid index '%s' given." +msgstr "Ο δείκτης '%s' είναι άκυρος." + +#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 +msgid "No document opened." +msgstr "Δεν άνοιξε κανένα αρχείο. " + +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 +msgid "Invalid number of arguments given." +msgstr "Μη έγκυρος αριθμός παραμέτρων." + +#: ../commands.c:49 +#, c-format +msgid "Bookmark successfuly updated: %s" +msgstr "Η ενημέρωση του σελιδοδείκτη: %s ήταν επιτυχής. " + +#: ../commands.c:55 +#, c-format +msgid "Could not create bookmark: %s" +msgstr "Η δημιουργία του σελιδοδείκτη: %s δεν ήταν δυνατή." + +#: ../commands.c:59 +#, c-format +msgid "Bookmark successfuly created: %s" +msgstr "Η δημιουργία του σελιδοδείκτη: %s ήταν επιτυχής." + +#: ../commands.c:82 +#, c-format +msgid "Removed bookmark: %s" +msgstr "Ο σελιδοδείκτης: %s διεγράφει. " + +#: ../commands.c:84 +#, c-format +msgid "Failed to remove bookmark: %s" +msgstr "Η διαγραφή του σελιδοδείκτη: %s απέτυχε. " + +#: ../commands.c:110 +#, c-format +msgid "No such bookmark: %s" +msgstr "Ο σελιδοδείκτης: %s δεν βρέθηκε. " + +#: ../commands.c:161 ../commands.c:183 +msgid "No information available." +msgstr "Δεν υπάρχουν διαθέσιμες πληροφορίες." + +#: ../commands.c:221 +msgid "Too many arguments." +msgstr "Εισήχθησαν πολλές παράμετροι. " + +#: ../commands.c:232 +msgid "No arguments given." +msgstr "Δεν εισήχθησαν παράμετροι. " + +#: ../commands.c:291 ../commands.c:317 +msgid "Document saved." +msgstr "Το αρχείο αποθηκεύτηκε." + +#: ../commands.c:293 ../commands.c:319 +msgid "Failed to save document." +msgstr "Η αποθήκευση του αρχείου απέτυχε. " + +#: ../commands.c:296 ../commands.c:322 +msgid "Invalid number of arguments." +msgstr "Μη έγκυρος ο αριθμός των παραμέτρων. " + +#: ../commands.c:434 +#, c-format +msgid "Couldn't write attachment '%s' to '%s'." +msgstr "Μη επιτυχής η εγγραγή της προσάρτησης '%s' στην '%s'." + +#: ../commands.c:436 +#, c-format +msgid "Wrote attachment '%s' to '%s'." +msgstr "Επιτυχής η εγγραφή της προσάρτησης '%s' στην '%s'." + +#: ../commands.c:480 +#, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "Ενεγράφει η εικόνα '%s' στην '%s'" + +#: ../commands.c:482 +#, c-format +msgid "Couldn't write image '%s' to '%s'." +msgstr "Δεν ενεγράφει η εικόνα '%s' στην '%s'." + +#: ../commands.c:489 +#, c-format +msgid "Unknown image '%s'." +msgstr "Άγνωστη εικόνα '%s'. " + +#: ../commands.c:493 +#, c-format +msgid "Unknown attachment or image '%s'." +msgstr "Άγνωστο προσάρτημα είτε εικόνα '%s'. " + +#: ../commands.c:544 +msgid "Argument must be a number." +msgstr "Η παράμετρος πρέπει να είναι αριθμός." + +#: ../completion.c:250 +#, c-format +msgid "Page %d" +msgstr "Σελίδα %d" + +#: ../completion.c:293 +msgid "Attachments" +msgstr "Προσαρτήσεις" + +#. add images +#: ../completion.c:324 +msgid "Images" +msgstr "Εικόνες" + +#. zathura settings +#: ../config.c:139 +msgid "Database backend" +msgstr "Το βασικό εργαλείο της βάσης δεδομένων" + +#: ../config.c:141 +msgid "Zoom step" +msgstr "Βήμα μεγέθυνσης" + +#: ../config.c:143 +msgid "Padding between pages" +msgstr "Διάκενο μεταξύ σελίδων" + +#: ../config.c:145 +msgid "Number of pages per row" +msgstr "Αριθμός σελίδων ανά γραμμή" + +#: ../config.c:147 +msgid "Column of the first page" +msgstr "Στήλη της πρώτης σελίδας" + +#: ../config.c:149 +msgid "Scroll step" +msgstr "Βήμα κύλισης" + +#: ../config.c:151 +msgid "Horizontal scroll step" +msgstr "Βήμα οριζόντιας κύλησης" + +#: ../config.c:153 +msgid "Full page scroll overlap" +msgstr "" + +#: ../config.c:155 +msgid "Zoom minimum" +msgstr "Ελάχιστη μεγέθυνση" + +#: ../config.c:157 +msgid "Zoom maximum" +msgstr "Μέγιστη μεγέθυνση" + +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" + +#: ../config.c:161 +msgid "Number of positions to remember in the jumplist" +msgstr "" + +#: ../config.c:163 +msgid "Recoloring (dark color)" +msgstr "Επαναχρωματισμός (σκούρο χρώμα)" + +#: ../config.c:165 +msgid "Recoloring (light color)" +msgstr "Επαναχρωματισμός (ανοικτό χρώμα)" + +#: ../config.c:167 +msgid "Color for highlighting" +msgstr "Χρώμα τονισμού" + +#: ../config.c:169 +msgid "Color for highlighting (active)" +msgstr "Χρώμα τονισμού (ενεργό)" + +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 +msgid "Recolor pages" +msgstr "Επαναχρωματισμός σελίδων" + +#: ../config.c:179 +msgid "When recoloring keep original hue and adjust lightness only" +msgstr "" +"Κατά τον επαναχρωματισμό της σελιδάς διατήρηση της αρχικής απόχρωσης και " +"αλλαγή μόνο της φωτεινότητας" + +#: ../config.c:181 +msgid "Wrap scrolling" +msgstr "Κυκλική κύληση" + +#: ../config.c:183 +msgid "Page aware scrolling" +msgstr "" + +#: ../config.c:185 +msgid "Advance number of pages per row" +msgstr "Προώθηση σε αριθμό σελίδων ανά γραμμή" + +#: ../config.c:187 +msgid "Horizontally centered zoom" +msgstr "Μεγένθηση οριζοντίως κεντραρισμένη" + +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 +msgid "Center result horizontally" +msgstr "Οριζόντιο κεντράρισμα αποτελεσμάτων" + +#: ../config.c:193 +msgid "Transparency for highlighting" +msgstr "Διαφάνεια για τονισμό" + +#: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "Εμφάνιση της ένδειξης 'Φορτώνει ...'" + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "Προσαρμογή κατά το άνοιγμα του αρχείου" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "Εμφάνιση κρυφών αρχείων και φακέλων" + +#: ../config.c:200 +msgid "Show directories" +msgstr "Εμφάνιση καταλόγων" + +#: ../config.c:202 +msgid "Always open on first page" +msgstr "Άνοιγμα πάντα στην πρώτη σελίδα" + +#: ../config.c:204 +msgid "Highlight search results" +msgstr "Τονισμός αποτελεσμάτων αναζήτησης" + +#: ../config.c:206 +msgid "Enable incremental search" +msgstr "" + +#: ../config.c:208 +msgid "Clear search results on abort" +msgstr "Εκκαθάριση των απολεσμάτων αναζήτησης κατά την διακοπή" + +#: ../config.c:210 +msgid "Use basename of the file in the window title" +msgstr "Χρήση του ονόματος του αρχείο στο τίτλο του παραθύρου" + +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 +msgid "Enable synctex support" +msgstr "Ενεργοποίηση υποστήριξης synctex" + +#. define default inputbar commands +#: ../config.c:373 +msgid "Add a bookmark" +msgstr "Προσθήκη σελιδοδείκτη" + +#: ../config.c:374 +msgid "Delete a bookmark" +msgstr "Διαγραφή σελιδοδείκτη" + +#: ../config.c:375 +msgid "List all bookmarks" +msgstr "Εμφάνιση όλων των σελιδοδεικτών" + +#: ../config.c:376 +msgid "Close current file" +msgstr "Κλείσιμο αρχείου" + +#: ../config.c:377 +msgid "Show file information" +msgstr "Προβολή πληροφοριών αρχείου" + +#: ../config.c:378 +msgid "Execute a command" +msgstr "Εκτέλεση εντολής" + +#: ../config.c:379 +msgid "Show help" +msgstr "Εμφάνιση βοήθειας" + +#: ../config.c:380 +msgid "Open document" +msgstr "Άνοιγμα αρχείου" + +#: ../config.c:381 +msgid "Close zathura" +msgstr "Κλείσιμο" + +#: ../config.c:382 +msgid "Print document" +msgstr "Εκτύπωση αρχείου" + +#: ../config.c:383 +msgid "Save document" +msgstr "Αποθήκευση αρχείου" + +#: ../config.c:384 +msgid "Save document (and force overwriting)" +msgstr "Αποθήκευση αρχείου (και αντικατάσταση)" + +#: ../config.c:385 +msgid "Save attachments" +msgstr "Αποθήκευση προσαρτήσεων. " + +#: ../config.c:386 +msgid "Set page offset" +msgstr "Ρύθμιση αντιστάθμισης σελίδας" + +#: ../config.c:387 +msgid "Mark current location within the document" +msgstr "Επισήμανση τρέχουσας θέσης στο κείμενο" + +#: ../config.c:388 +msgid "Delete the specified marks" +msgstr "Διαγραφή επιλεγμένων σημείων" + +#: ../config.c:389 +msgid "Don't highlight current search results" +msgstr "Χωρίς τονισμό τα τρέχοντα αποτελέσματα της αναζήτησης" + +#: ../config.c:390 +msgid "Highlight current search results" +msgstr "Τονισμός στα τρέχοντα αποτελέσματα της αναζήτησης" + +#: ../config.c:391 +msgid "Show version information" +msgstr "Εμφάνιση πληροφοριών έκδοσης" + +#: ../links.c:171 ../links.c:250 +msgid "Failed to run xdg-open." +msgstr "Απέτυχε η εκτέλεση του xdg-open. " + +#: ../links.c:189 +#, c-format +msgid "Link: page %d" +msgstr "" + +#: ../links.c:196 +#, c-format +msgid "Link: %s" +msgstr "" + +#: ../links.c:200 +msgid "Link: Invalid" +msgstr "" + +#: ../main.c:55 +msgid "Reparents to window specified by xid" +msgstr "Reparents to window specified by xid" + +#: ../main.c:56 +msgid "Path to the config directory" +msgstr "Διαδρομή του αρχείου ρυθμίσεων" + +#: ../main.c:57 +msgid "Path to the data directory" +msgstr "Διαδρομή του φακέλου δεδομένων" + +#: ../main.c:58 +msgid "Path to the directories containing plugins" +msgstr "Διαδρομή φακέλου που περιέχει τα πρόσθετα" + +#: ../main.c:59 +msgid "Fork into the background" +msgstr "Διακλάδωση στο παρασκήνιο" + +#: ../main.c:60 +msgid "Document password" +msgstr "Κωδικός αρχείου" + +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 +msgid "Log level (debug, info, warning, error)" +msgstr "Επίπεδο καταγραφής (debug, info, warning, error)" + +#: ../main.c:63 +msgid "Print version information" +msgstr "Εκτύπωση πληροφοριών έκδοσης" + +#: ../main.c:65 +msgid "Synctex editor (forwarded to the synctex command)" +msgstr "Synctex editor (Προώθηση στην εντολή synctex)" + +#: ../page-widget.c:460 +msgid "Loading..." +msgstr "Φορτώνει ..." + +#: ../page-widget.c:657 +#, c-format +msgid "Copied selected text to clipboard: %s" +msgstr "Το επιλεγμένο κείμενο αποθηκεύτηκε στην μνήμη: %s" + +#: ../page-widget.c:755 +msgid "Copy image" +msgstr "Αντιγραφή εικόνας" + +#: ../page-widget.c:756 +msgid "Save image as" +msgstr "Αποθήκευση εικόνας ως..." + +#: ../shortcuts.c:1108 +msgid "This document does not contain any index" +msgstr "Το αρχείο δεν περιέχει κανένα δείκτη" + +#: ../zathura.c:224 ../zathura.c:956 +msgid "[No name]" +msgstr "[Χωρίς όνομα]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/eo.po b/po/eo.po index 8de9d95..d134177 100644 --- a/po/eo.po +++ b/po/eo.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-08-09 13:21+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:45+0200\n" "Last-Translator: norbux \n" "Language-Team: Esperanto (http://www.transifex.com/projects/p/zathura/" "language/eo/)\n" @@ -18,24 +18,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Nevalida enigo '%s' uzata." -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Nevalida indekso '%s' uzata." #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Neniu dokumento malfermita." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Nevalida nombro da argumentoj uzata." @@ -77,53 +77,53 @@ msgstr "Neniu informacio disponebla." msgid "Too many arguments." msgstr "Tro multe da argumentoj." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Neniuj argumentoj uzata." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Dokumento konservita." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Neeble konservi dokumenton." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Nevalida nombro da argumentoj." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Neeble skribi kunsendaĵon '%s' en '%s'." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Skribis kunsendaĵon '%s' en '%s'." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Skribis kunsendaĵon '%s' en '%s'." -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Neeble skribi kunsendaĵon '%s' en '%s'." -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "Nekonata bildo '%s'." -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Argumento devas esti nombro." @@ -142,298 +142,318 @@ msgid "Images" msgstr "Bildoj" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Zompaŝo" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Interpaĝa plenigo" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Nombro da paĝoj po vico" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Rulumpaŝo" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Mimimuma zomo" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Maksimuma zomo" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Vivdaŭro (sekunda) de kaŝita paĝo" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Nombro da sekundoj inter repurigo de kaŝmemoro" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Rekolorigo (malhela koloro)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Rekolorigo (hela koloro)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Koloro por fonlumo" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Koloro por fonlumo (aktiva)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Rekoloru paĝojn" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Ĉirkaŭflua rulumado" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Travidebleco por fonlumo" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Bildigu 'Ŝargado ...'" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Adaptaĵo ĉe malfermo de dosiero" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Montru kaŝitajn dosierojn kaj -ujojn" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Montru dosierujojn" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Ĉiam malfermu ĉe unua paĝo" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Aldonu paĝosignon" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Forigu paĝosignon" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Listigu ĉiujn paĝosignojn" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Fermu nunan dosieron" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Montru dosiera informacio" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Montru helpon" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Malfermu dokumenton" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Fermu zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Presu dokumenton" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Konservu dokumenton" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Konservu dokumenton (deviga anstataŭo)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Konservu kunsendaĵojn" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Agordu paĝdelokado" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Fiaskis iro de xdg-open" -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Vojo al la agorda dosierujo" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Vojo al la datuma dosierujo" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Vojoj al dosierujoj enhavantaj kromaĵojn" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Nivelo de ĵurnalo (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Montru dosiera informacio" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Ŝargado ..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Selektita teksto estas kopiita en la poŝo: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Kopiu bildon" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "Savi bildojn kiel" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Ĉi-tiu dokumento enhavas neniam indekson." -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Neniu nomo]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/es.po b/po/es.po index eea55de..91d5f2e 100644 --- a/po/es.po +++ b/po/es.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-04-03 15:25+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:45+0200\n" "Last-Translator: Moritz Lipp \n" "Language-Team: Spanish (Castilian) (http://www.transifex.net/projects/p/" "zathura/language/es/)\n" @@ -17,24 +17,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Entrada inválida: '%s'." -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Índice invalido: '%s'." #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Ningún documento abierto." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Número de argumentos inválido." @@ -76,53 +76,53 @@ msgstr "No hay información disponible." msgid "Too many arguments." msgstr "Demasiados argumentos." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Ningún argumento recibido." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Documento guardado." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Error al guardar el documento." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Número de argumentos inválido." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Escrito fichero adjunto '%s' a '%s'." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Escrito fichero adjunto '%s' a '%s'." -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "Imagen desconocida '%s'." -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Adjunto o imagen desconocidos '%s'." -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "El argumento ha de ser un número." @@ -141,300 +141,320 @@ msgid "Images" msgstr "Imágenes" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Base de datos" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Unidad de zoom" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Separación entre páginas" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Número de páginas por fila" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "Columna de la primera página" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Paso de desplazamiento" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "Paso de desplazamiento horizontal" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "Solapamiento del desplazamiento de página" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Zoom mínimo" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Zoom máximo" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Tiempo de vida (en segundos) de una página oculta" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Cantidad de segundos entre limpieza de caché" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "Número de posiciones a recordar en la lista de saltos" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Recoloreado (color oscuro)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Recoloreado (color claro)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Color para destacar" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Color para destacar (activo)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Recolorear páginas" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" "Cuando se recoloree, mantener el tono original y ajustar únicamente la " "luminosidad" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Navegación/Scroll cíclica/o" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "Zoom centrado horizontalmente" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "Centrar el resultado horizontalmente" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Transparencia para el destacado" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Renderizado 'Cargando ...'" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Ajustarse al abrir un fichero" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Mostrar directorios y ficheros ocultos" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Mostrar directorios" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Abrir siempre la primera página" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "Destacar los resultados de búsqueda" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "Habilitar la búsqueda incremental" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "Borrar resultados de búsqueda al abortar" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "Usar el nombre del archivo en el título de la ventana" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "Habilitar soporte synctex" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Añadir Favorito" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Eliminar Favorito" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Listar favoritos" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Cerrar fichero actual" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Mostrar información del fichero" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "Ejecutar un comando" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Mostrar ayuda" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Abrir documento" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Salir de zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Imprimir documento" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Guardar documento" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Guardar documento (y sobreescribir)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Guardar ficheros adjuntos" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Asignar el desplazamiento de página" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "Marcar la posición actual en el documento" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "Borrar las marcas especificadas" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "No destacar los resultados de la búsqueda actual" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "Destacar los resultados de la búsqueda actual" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "Mostrar versión" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Error al tratar de ejecutar xdg-open" -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Reasignar a la ventana especificada por xid" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Ruta al directorio de configuración" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Ruta para el directorio de datos" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Ruta a los directorios que contienen los plugins" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Fork, ejecutándose en background" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "Contraseña del documento" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Nivel de log (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Mostrar información del fichero" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Editor de Synctex (reenvíado al commando synctex)" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Cargando ..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Se ha copiado el texto seleccionado al portapapeles: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Copiar imagen" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "Salvar imagen como" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Este documento no contiene ningún índice" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Sin nombre]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/es_CL.po b/po/es_CL.po index 9adfe02..a4c558c 100644 --- a/po/es_CL.po +++ b/po/es_CL.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-04-03 15:26+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:45+0200\n" "Last-Translator: watsh1ken \n" "Language-Team: Spanish (Chile) (http://www.transifex.net/projects/p/zathura/" "language/es_CL/)\n" @@ -18,24 +18,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Entrada inválida: '%s'." -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Índice invalido: '%s'." #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Ningún documento abierto." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Número de argumentos inválido." @@ -77,53 +77,53 @@ msgstr "No hay información disponible." msgid "Too many arguments." msgstr "Demasiados argumentos." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Ningún argumento recibido." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Documento guardado." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Error al guardar el documento." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Número de argumentos inválido." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Fichero adjunto escrito '%s' a '%s'." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Fichero adjunto escrito '%s' a '%s'." -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "No se pudo escribir el fichero adjunto '%s' a '%s'." -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "El argumento debe ser un número." @@ -142,299 +142,318 @@ msgid "Images" msgstr "" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Fin de la base de datos." -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Unidad de zoom" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Separación entre páginas" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Numero de páginas por fila" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Unidad de desplazamiento" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Zoom mínimo" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Zoom máximo" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "" -"Cantidad de segundos entre las comprobaciones de las páginas invisibles" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Recolorando (color oscuro)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Recolorando (color claro)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Color para destacar" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Color para destacar (activo)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Recolorar páginas" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Scroll cíclico" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Transparencia para lo destacado" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Renderizando 'Cargando...'" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Ajustar al abrirse un archivo" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Mostrar archivos ocultos y directorios" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Mostrar directorios" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Siempre abrir en primera página" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Agregar un marcador" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Eliminar un marcador" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Listar todos los marcadores" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Cerrar archivo actual" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Mostrar información del archivo" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Mostrar ayuda" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Abrir documento" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Cerrar zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Imprimir documento" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Guardar documento" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Guardar documento (y forzar sobreescritura)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Guardar archivos adjuntos" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Asignar desplazamiento de la página" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Error al ejecutar xdg-open." -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Reasignar a la ventana especificada por xid" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Ruta al directorio de configuración" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Ruta al directorio de datos" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Ruta al directorio que contiene plugins" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Ejecución en background" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Nivel de log (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Mostrar información del archivo" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Cargando..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Texto seleccionado copiado al portapapeles: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Copiar imagen" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Este document no contiene índice" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Sin nombre]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/et.po b/po/et.po index 46e67ea..59fb30b 100644 --- a/po/et.po +++ b/po/et.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" "PO-Revision-Date: 2012-04-03 15:25+0000\n" "Last-Translator: Rivo Zängov \n" "Language-Team: Estonian (http://www.transifex.net/projects/p/zathura/" @@ -18,24 +18,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "" -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "" -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "" @@ -77,53 +77,53 @@ msgstr "" msgid "Too many arguments." msgstr "" -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "" -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "" -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "" -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "" -#: ../commands.c:432 -#, c-format -msgid "Couldn't write attachment '%s' to '%s'." -msgstr "" - #: ../commands.c:434 #, c-format -msgid "Wrote attachment '%s' to '%s'." +msgid "Couldn't write attachment '%s' to '%s'." msgstr "" -#: ../commands.c:478 +#: ../commands.c:436 #, c-format -msgid "Wrote image '%s' to '%s'." +msgid "Wrote attachment '%s' to '%s'." msgstr "" #: ../commands.c:480 #, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "" + +#: ../commands.c:482 +#, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "" @@ -142,298 +142,318 @@ msgid "Images" msgstr "" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Esiletõstmise värv" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Esiletõstmise värv (aktiivne)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 -msgid "Center result horizontally" -msgstr "" - -#: ../config.c:184 -msgid "Transparency for highlighting" -msgstr "" - -#: ../config.c:186 -msgid "Render 'Loading ...'" -msgstr "" - -#: ../config.c:187 -msgid "Adjust to when opening file" -msgstr "" - #: ../config.c:189 -msgid "Show hidden files and directories" +msgid "Align link target to the left" msgstr "" #: ../config.c:191 +msgid "Center result horizontally" +msgstr "" + +#: ../config.c:193 +msgid "Transparency for highlighting" +msgstr "" + +#: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "" + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "" + +#: ../config.c:200 msgid "Show directories" msgstr "Näita kaustasid" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Ava alati esimene leht" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Lisa järjehoidja" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Kustuta järjehoidja" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Näita kõiki järjehoidjaid" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Sulge praegune fail" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Näita faili infot" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Näita abiinfot" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Ava dokument" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Sule zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Prindi dokument" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Salvesta dokument" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Salvesta manused" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "" -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Näita faili infot" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "" -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Kopeeri pilt" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Nime pole]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/fr.po b/po/fr.po index 5d248ef..272d5b8 100644 --- a/po/fr.po +++ b/po/fr.po @@ -2,6 +2,7 @@ # See LICENSE file for license and copyright information # # Translators: +# Dorian , 2012. # Quentin Stiévenart , 2012. # Stéphane Aulery , 2012. # Benoît Knecht , 2012. @@ -9,35 +10,35 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-12-14 00:08+0100\n" -"Last-Translator: Benoît Knecht \n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-03-17 11:30+0100\n" +"Last-Translator: Benoît Knecht \n" "Language-Team: French (http://www.transifex.com/projects/p/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" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Entrée invalide : '%s'" -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Index invalide : '%s'" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Aucun document ouvert." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Nombre d'arguments invalide." @@ -79,53 +80,53 @@ msgstr "Aucune information disponible." msgid "Too many arguments." msgstr "Trop d'arguments." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Aucun argument passé." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Document enregistré." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Échec lors de l'enregistrement du document." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Nombre d'arguments invalide." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Impossible d'écrire la pièce jointe '%s' dans '%s'." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Pièce jointe '%s' écrite dans '%s'." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Image '%s' écrite dans '%s'." -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Impossible d'écrire l'image '%s' dans '%s'." -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "Image '%s' inconnue." -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Pièce jointe ou image '%s' inconnue." -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "L'argument doit être un nombre." @@ -144,300 +145,326 @@ msgid "Images" msgstr "Images" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Gestionnaire de base de données" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Incrément de zoom" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Espacement entre les pages" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Nombre de page par rangée" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "Colonne de la première page" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Incrément de défilement" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "Incrément de défilement horizontal" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "Recouvrement lors du défilement par page entière" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Zoom minimum" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Zoom maximum" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Durée de vie (en secondes) d'une page cachée" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Délai en secondes entre chaque purge du cache" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "Nombre de positions à mémoriser dans la liste de sauts" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Recoloration (couleur sombre)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Recoloration (couleur claire)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Couleur de surbrillance" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Couleur de surbrillance (active)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "Couleur d'arrière-plan de 'Chargement...'" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "Couleur de 'Chargement...'" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Recoloriser les pages" -#: ../config.c:172 +#: ../config.c:179 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é" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Défiler en boucle" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "Défilement tenant compte des limites de page" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "Augmenter le nombre de pages par rangée" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "Zoom centré horizontalement" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "Centrer le résultat horizontalement" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Transparence de la surbrillance" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Afficher 'Chargement...'" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Ajuster à l'ouverture du fichier" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Montrer les fichiers et dossiers cachés" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Montrer les dossiers" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Toujours ouvrir à la première page" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "Surligner les résultats de la recherche" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "Activer la recherche incrémentale" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "Effacer les résultats de recherche en cas d'annulation" -#: ../config.c:201 +#: ../config.c:210 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" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "Utiliser le nom de base du fichier dans la barre d'état" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "Activer la prise en charge de synctex" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Ajouter un marque-page" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Supprimer un marque-page" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Lister tous les marque-pages" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Fermer le fichier actuel" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Montrer les informations sur le fichier" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "Exécuter une commande" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Afficher l'aide" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Ouvrir un document" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Quitter zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Imprimer le document" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Sauver le document" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Sauver le document (et forcer l'écrasement)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Enregistrer les pièces jointes" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Définir le décalage de page" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "Marquer l'emplacement actuel dans le document" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "Supprimer les marques indiquées" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "Ne pas surligner les résultats de la recherche en cours" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "Surligner les résultats de la recherche en cours" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "Afficher les informations de version" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Échec lors du lancement de xdg-open." -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "Lien : page %d" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "Lien : %s" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "Lien : Invalide" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Rattacher à la fenêtre spécifiée par xid" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Chemin vers le dossier de configuration" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Chemin vers le dossier de données" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Chemin vers le dossier de plugins" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Détacher en arrière-plan" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "Mot de passe du document" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "Numéro de page où aller" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Niveau de journalisation (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Afficher les informations de version" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "Éditeur synctex (transféré à la commande synctex)" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Chargement..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Texte sélectionné copié dans le presse-papiers : %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Copier l'image" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "Enregistrer l'image sous" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Ce document ne contient pas d'index" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Sans nom]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "Ce document ne contient aucune page" + +#~ msgid "Life time (in seconds) of a hidden page" +#~ msgstr "Durée de vie (en secondes) d'une page cachée" + +#~ msgid "Amount of seconds between each cache purge" +#~ msgstr "Délai en secondes entre chaque purge du cache" diff --git a/po/he.po b/po/he.po new file mode 100644 index 0000000..11da2e3 --- /dev/null +++ b/po/he.po @@ -0,0 +1,458 @@ +# zathura - language file (Hebrew) +# See LICENSE file for license and copyright information +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: zathura\n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-01-13 14:12+0000\n" +"Last-Translator: Sebastian Ramacher \n" +"Language-Team: Hebrew (http://www.transifex.com/projects/p/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" + +#: ../callbacks.c:304 +#, c-format +msgid "Invalid input '%s' given." +msgstr "" + +#: ../callbacks.c:342 +#, c-format +msgid "Invalid index '%s' given." +msgstr "" + +#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 +msgid "No document opened." +msgstr "" + +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 +msgid "Invalid number of arguments given." +msgstr "" + +#: ../commands.c:49 +#, c-format +msgid "Bookmark successfuly updated: %s" +msgstr "" + +#: ../commands.c:55 +#, c-format +msgid "Could not create bookmark: %s" +msgstr "" + +#: ../commands.c:59 +#, c-format +msgid "Bookmark successfuly created: %s" +msgstr "" + +#: ../commands.c:82 +#, c-format +msgid "Removed bookmark: %s" +msgstr "" + +#: ../commands.c:84 +#, c-format +msgid "Failed to remove bookmark: %s" +msgstr "" + +#: ../commands.c:110 +#, c-format +msgid "No such bookmark: %s" +msgstr "" + +#: ../commands.c:161 ../commands.c:183 +msgid "No information available." +msgstr "" + +#: ../commands.c:221 +msgid "Too many arguments." +msgstr "" + +#: ../commands.c:232 +msgid "No arguments given." +msgstr "" + +#: ../commands.c:291 ../commands.c:317 +msgid "Document saved." +msgstr "" + +#: ../commands.c:293 ../commands.c:319 +msgid "Failed to save document." +msgstr "" + +#: ../commands.c:296 ../commands.c:322 +msgid "Invalid number of arguments." +msgstr "" + +#: ../commands.c:434 +#, c-format +msgid "Couldn't write attachment '%s' to '%s'." +msgstr "" + +#: ../commands.c:436 +#, c-format +msgid "Wrote attachment '%s' to '%s'." +msgstr "" + +#: ../commands.c:480 +#, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "" + +#: ../commands.c:482 +#, c-format +msgid "Couldn't write image '%s' to '%s'." +msgstr "" + +#: ../commands.c:489 +#, c-format +msgid "Unknown image '%s'." +msgstr "" + +#: ../commands.c:493 +#, c-format +msgid "Unknown attachment or image '%s'." +msgstr "" + +#: ../commands.c:544 +msgid "Argument must be a number." +msgstr "" + +#: ../completion.c:250 +#, c-format +msgid "Page %d" +msgstr "" + +#: ../completion.c:293 +msgid "Attachments" +msgstr "" + +#. add images +#: ../completion.c:324 +msgid "Images" +msgstr "" + +#. zathura settings +#: ../config.c:139 +msgid "Database backend" +msgstr "" + +#: ../config.c:141 +msgid "Zoom step" +msgstr "" + +#: ../config.c:143 +msgid "Padding between pages" +msgstr "" + +#: ../config.c:145 +msgid "Number of pages per row" +msgstr "" + +#: ../config.c:147 +msgid "Column of the first page" +msgstr "" + +#: ../config.c:149 +msgid "Scroll step" +msgstr "" + +#: ../config.c:151 +msgid "Horizontal scroll step" +msgstr "" + +#: ../config.c:153 +msgid "Full page scroll overlap" +msgstr "" + +#: ../config.c:155 +msgid "Zoom minimum" +msgstr "" + +#: ../config.c:157 +msgid "Zoom maximum" +msgstr "" + +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" + +#: ../config.c:161 +msgid "Number of positions to remember in the jumplist" +msgstr "" + +#: ../config.c:163 +msgid "Recoloring (dark color)" +msgstr "" + +#: ../config.c:165 +msgid "Recoloring (light color)" +msgstr "" + +#: ../config.c:167 +msgid "Color for highlighting" +msgstr "" + +#: ../config.c:169 +msgid "Color for highlighting (active)" +msgstr "" + +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 +msgid "Recolor pages" +msgstr "" + +#: ../config.c:179 +msgid "When recoloring keep original hue and adjust lightness only" +msgstr "" + +#: ../config.c:181 +msgid "Wrap scrolling" +msgstr "" + +#: ../config.c:183 +msgid "Page aware scrolling" +msgstr "" + +#: ../config.c:185 +msgid "Advance number of pages per row" +msgstr "" + +#: ../config.c:187 +msgid "Horizontally centered zoom" +msgstr "" + +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 +msgid "Center result horizontally" +msgstr "" + +#: ../config.c:193 +msgid "Transparency for highlighting" +msgstr "" + +#: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "" + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "" + +#: ../config.c:200 +msgid "Show directories" +msgstr "" + +#: ../config.c:202 +msgid "Always open on first page" +msgstr "" + +#: ../config.c:204 +msgid "Highlight search results" +msgstr "" + +#: ../config.c:206 +msgid "Enable incremental search" +msgstr "" + +#: ../config.c:208 +msgid "Clear search results on abort" +msgstr "" + +#: ../config.c:210 +msgid "Use basename of the file in the window title" +msgstr "" + +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 +msgid "Enable synctex support" +msgstr "" + +#. define default inputbar commands +#: ../config.c:373 +msgid "Add a bookmark" +msgstr "" + +#: ../config.c:374 +msgid "Delete a bookmark" +msgstr "" + +#: ../config.c:375 +msgid "List all bookmarks" +msgstr "" + +#: ../config.c:376 +msgid "Close current file" +msgstr "" + +#: ../config.c:377 +msgid "Show file information" +msgstr "" + +#: ../config.c:378 +msgid "Execute a command" +msgstr "" + +#: ../config.c:379 +msgid "Show help" +msgstr "" + +#: ../config.c:380 +msgid "Open document" +msgstr "" + +#: ../config.c:381 +msgid "Close zathura" +msgstr "" + +#: ../config.c:382 +msgid "Print document" +msgstr "" + +#: ../config.c:383 +msgid "Save document" +msgstr "" + +#: ../config.c:384 +msgid "Save document (and force overwriting)" +msgstr "" + +#: ../config.c:385 +msgid "Save attachments" +msgstr "" + +#: ../config.c:386 +msgid "Set page offset" +msgstr "" + +#: ../config.c:387 +msgid "Mark current location within the document" +msgstr "" + +#: ../config.c:388 +msgid "Delete the specified marks" +msgstr "" + +#: ../config.c:389 +msgid "Don't highlight current search results" +msgstr "" + +#: ../config.c:390 +msgid "Highlight current search results" +msgstr "" + +#: ../config.c:391 +msgid "Show version information" +msgstr "" + +#: ../links.c:171 ../links.c:250 +msgid "Failed to run xdg-open." +msgstr "" + +#: ../links.c:189 +#, c-format +msgid "Link: page %d" +msgstr "" + +#: ../links.c:196 +#, c-format +msgid "Link: %s" +msgstr "" + +#: ../links.c:200 +msgid "Link: Invalid" +msgstr "" + +#: ../main.c:55 +msgid "Reparents to window specified by xid" +msgstr "" + +#: ../main.c:56 +msgid "Path to the config directory" +msgstr "" + +#: ../main.c:57 +msgid "Path to the data directory" +msgstr "" + +#: ../main.c:58 +msgid "Path to the directories containing plugins" +msgstr "" + +#: ../main.c:59 +msgid "Fork into the background" +msgstr "" + +#: ../main.c:60 +msgid "Document password" +msgstr "" + +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 +msgid "Log level (debug, info, warning, error)" +msgstr "" + +#: ../main.c:63 +msgid "Print version information" +msgstr "" + +#: ../main.c:65 +msgid "Synctex editor (forwarded to the synctex command)" +msgstr "" + +#: ../page-widget.c:460 +msgid "Loading..." +msgstr "" + +#: ../page-widget.c:657 +#, c-format +msgid "Copied selected text to clipboard: %s" +msgstr "" + +#: ../page-widget.c:755 +msgid "Copy image" +msgstr "" + +#: ../page-widget.c:756 +msgid "Save image as" +msgstr "" + +#: ../shortcuts.c:1108 +msgid "This document does not contain any index" +msgstr "" + +#: ../zathura.c:224 ../zathura.c:956 +msgid "[No name]" +msgstr "" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/hr.po b/po/hr.po new file mode 100644 index 0000000..98957a3 --- /dev/null +++ b/po/hr.po @@ -0,0 +1,459 @@ +# zathura - language file (Croatian) +# See LICENSE file for license and copyright information +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: zathura\n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-01-13 14:12+0000\n" +"Last-Translator: Sebastian Ramacher \n" +"Language-Team: Croatian (http://www.transifex.com/projects/p/zathura/" +"language/hr/)\n" +"Language: hr\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" + +#: ../callbacks.c:304 +#, c-format +msgid "Invalid input '%s' given." +msgstr "" + +#: ../callbacks.c:342 +#, c-format +msgid "Invalid index '%s' given." +msgstr "" + +#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 +msgid "No document opened." +msgstr "" + +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 +msgid "Invalid number of arguments given." +msgstr "" + +#: ../commands.c:49 +#, c-format +msgid "Bookmark successfuly updated: %s" +msgstr "" + +#: ../commands.c:55 +#, c-format +msgid "Could not create bookmark: %s" +msgstr "" + +#: ../commands.c:59 +#, c-format +msgid "Bookmark successfuly created: %s" +msgstr "" + +#: ../commands.c:82 +#, c-format +msgid "Removed bookmark: %s" +msgstr "" + +#: ../commands.c:84 +#, c-format +msgid "Failed to remove bookmark: %s" +msgstr "" + +#: ../commands.c:110 +#, c-format +msgid "No such bookmark: %s" +msgstr "" + +#: ../commands.c:161 ../commands.c:183 +msgid "No information available." +msgstr "" + +#: ../commands.c:221 +msgid "Too many arguments." +msgstr "" + +#: ../commands.c:232 +msgid "No arguments given." +msgstr "" + +#: ../commands.c:291 ../commands.c:317 +msgid "Document saved." +msgstr "" + +#: ../commands.c:293 ../commands.c:319 +msgid "Failed to save document." +msgstr "" + +#: ../commands.c:296 ../commands.c:322 +msgid "Invalid number of arguments." +msgstr "" + +#: ../commands.c:434 +#, c-format +msgid "Couldn't write attachment '%s' to '%s'." +msgstr "" + +#: ../commands.c:436 +#, c-format +msgid "Wrote attachment '%s' to '%s'." +msgstr "" + +#: ../commands.c:480 +#, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "" + +#: ../commands.c:482 +#, c-format +msgid "Couldn't write image '%s' to '%s'." +msgstr "" + +#: ../commands.c:489 +#, c-format +msgid "Unknown image '%s'." +msgstr "" + +#: ../commands.c:493 +#, c-format +msgid "Unknown attachment or image '%s'." +msgstr "" + +#: ../commands.c:544 +msgid "Argument must be a number." +msgstr "" + +#: ../completion.c:250 +#, c-format +msgid "Page %d" +msgstr "" + +#: ../completion.c:293 +msgid "Attachments" +msgstr "" + +#. add images +#: ../completion.c:324 +msgid "Images" +msgstr "" + +#. zathura settings +#: ../config.c:139 +msgid "Database backend" +msgstr "" + +#: ../config.c:141 +msgid "Zoom step" +msgstr "" + +#: ../config.c:143 +msgid "Padding between pages" +msgstr "" + +#: ../config.c:145 +msgid "Number of pages per row" +msgstr "" + +#: ../config.c:147 +msgid "Column of the first page" +msgstr "" + +#: ../config.c:149 +msgid "Scroll step" +msgstr "" + +#: ../config.c:151 +msgid "Horizontal scroll step" +msgstr "" + +#: ../config.c:153 +msgid "Full page scroll overlap" +msgstr "" + +#: ../config.c:155 +msgid "Zoom minimum" +msgstr "" + +#: ../config.c:157 +msgid "Zoom maximum" +msgstr "" + +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" + +#: ../config.c:161 +msgid "Number of positions to remember in the jumplist" +msgstr "" + +#: ../config.c:163 +msgid "Recoloring (dark color)" +msgstr "" + +#: ../config.c:165 +msgid "Recoloring (light color)" +msgstr "" + +#: ../config.c:167 +msgid "Color for highlighting" +msgstr "" + +#: ../config.c:169 +msgid "Color for highlighting (active)" +msgstr "" + +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 +msgid "Recolor pages" +msgstr "" + +#: ../config.c:179 +msgid "When recoloring keep original hue and adjust lightness only" +msgstr "" + +#: ../config.c:181 +msgid "Wrap scrolling" +msgstr "" + +#: ../config.c:183 +msgid "Page aware scrolling" +msgstr "" + +#: ../config.c:185 +msgid "Advance number of pages per row" +msgstr "" + +#: ../config.c:187 +msgid "Horizontally centered zoom" +msgstr "" + +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 +msgid "Center result horizontally" +msgstr "" + +#: ../config.c:193 +msgid "Transparency for highlighting" +msgstr "" + +#: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "" + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "" + +#: ../config.c:200 +msgid "Show directories" +msgstr "" + +#: ../config.c:202 +msgid "Always open on first page" +msgstr "" + +#: ../config.c:204 +msgid "Highlight search results" +msgstr "" + +#: ../config.c:206 +msgid "Enable incremental search" +msgstr "" + +#: ../config.c:208 +msgid "Clear search results on abort" +msgstr "" + +#: ../config.c:210 +msgid "Use basename of the file in the window title" +msgstr "" + +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 +msgid "Enable synctex support" +msgstr "" + +#. define default inputbar commands +#: ../config.c:373 +msgid "Add a bookmark" +msgstr "" + +#: ../config.c:374 +msgid "Delete a bookmark" +msgstr "" + +#: ../config.c:375 +msgid "List all bookmarks" +msgstr "" + +#: ../config.c:376 +msgid "Close current file" +msgstr "" + +#: ../config.c:377 +msgid "Show file information" +msgstr "" + +#: ../config.c:378 +msgid "Execute a command" +msgstr "" + +#: ../config.c:379 +msgid "Show help" +msgstr "" + +#: ../config.c:380 +msgid "Open document" +msgstr "" + +#: ../config.c:381 +msgid "Close zathura" +msgstr "" + +#: ../config.c:382 +msgid "Print document" +msgstr "" + +#: ../config.c:383 +msgid "Save document" +msgstr "" + +#: ../config.c:384 +msgid "Save document (and force overwriting)" +msgstr "" + +#: ../config.c:385 +msgid "Save attachments" +msgstr "" + +#: ../config.c:386 +msgid "Set page offset" +msgstr "" + +#: ../config.c:387 +msgid "Mark current location within the document" +msgstr "" + +#: ../config.c:388 +msgid "Delete the specified marks" +msgstr "" + +#: ../config.c:389 +msgid "Don't highlight current search results" +msgstr "" + +#: ../config.c:390 +msgid "Highlight current search results" +msgstr "" + +#: ../config.c:391 +msgid "Show version information" +msgstr "" + +#: ../links.c:171 ../links.c:250 +msgid "Failed to run xdg-open." +msgstr "" + +#: ../links.c:189 +#, c-format +msgid "Link: page %d" +msgstr "" + +#: ../links.c:196 +#, c-format +msgid "Link: %s" +msgstr "" + +#: ../links.c:200 +msgid "Link: Invalid" +msgstr "" + +#: ../main.c:55 +msgid "Reparents to window specified by xid" +msgstr "" + +#: ../main.c:56 +msgid "Path to the config directory" +msgstr "" + +#: ../main.c:57 +msgid "Path to the data directory" +msgstr "" + +#: ../main.c:58 +msgid "Path to the directories containing plugins" +msgstr "" + +#: ../main.c:59 +msgid "Fork into the background" +msgstr "" + +#: ../main.c:60 +msgid "Document password" +msgstr "" + +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 +msgid "Log level (debug, info, warning, error)" +msgstr "" + +#: ../main.c:63 +msgid "Print version information" +msgstr "" + +#: ../main.c:65 +msgid "Synctex editor (forwarded to the synctex command)" +msgstr "" + +#: ../page-widget.c:460 +msgid "Loading..." +msgstr "" + +#: ../page-widget.c:657 +#, c-format +msgid "Copied selected text to clipboard: %s" +msgstr "" + +#: ../page-widget.c:755 +msgid "Copy image" +msgstr "" + +#: ../page-widget.c:756 +msgid "Save image as" +msgstr "" + +#: ../shortcuts.c:1108 +msgid "This document does not contain any index" +msgstr "" + +#: ../zathura.c:224 ../zathura.c:956 +msgid "[No name]" +msgstr "" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/id_ID.po b/po/id_ID.po new file mode 100644 index 0000000..d7b6938 --- /dev/null +++ b/po/id_ID.po @@ -0,0 +1,459 @@ +# zathura - language file (Inonesian (Indonesia)) +# See LICENSE file for license and copyright information +# +# Translators: +# andjeng , 2013 +msgid "" +msgstr "" +"Project-Id-Version: zathura\n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:45+0200\n" +"Last-Translator: andjeng \n" +"Language-Team: Indonesian (Indonesia) (http://www.transifex.com/projects/p/" +"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" + +#: ../callbacks.c:304 +#, c-format +msgid "Invalid input '%s' given." +msgstr "Masukan '%s' tidak valid" + +#: ../callbacks.c:342 +#, c-format +msgid "Invalid index '%s' given." +msgstr "Index '%s' tidak valid" + +#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 +msgid "No document opened." +msgstr "Tidak ada dokumen yang terbuka." + +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 +msgid "Invalid number of arguments given." +msgstr "jumlah argumen yang diberikan tidak valid" + +#: ../commands.c:49 +#, c-format +msgid "Bookmark successfuly updated: %s" +msgstr "bookmark yang sukses terupdate : %s" + +#: ../commands.c:55 +#, c-format +msgid "Could not create bookmark: %s" +msgstr "Tidak dapat membuat bookmark: %s" + +#: ../commands.c:59 +#, c-format +msgid "Bookmark successfuly created: %s" +msgstr "Bookmark yang sukses dibuat: %s" + +#: ../commands.c:82 +#, c-format +msgid "Removed bookmark: %s" +msgstr "Bookmark %s telah sukses dihapus" + +#: ../commands.c:84 +#, c-format +msgid "Failed to remove bookmark: %s" +msgstr "Gagal menghapus bookmark: %s" + +#: ../commands.c:110 +#, c-format +msgid "No such bookmark: %s" +msgstr "Tidak ada bookmark: %s" + +#: ../commands.c:161 ../commands.c:183 +msgid "No information available." +msgstr "Tidak ada informasi tersedia" + +#: ../commands.c:221 +msgid "Too many arguments." +msgstr "Argumen terlalu banyak" + +#: ../commands.c:232 +msgid "No arguments given." +msgstr "Tidak ada argumen yang diberikan" + +#: ../commands.c:291 ../commands.c:317 +msgid "Document saved." +msgstr "Dokumen telah disimpan" + +#: ../commands.c:293 ../commands.c:319 +msgid "Failed to save document." +msgstr "Gagal menyimpan dokumen" + +#: ../commands.c:296 ../commands.c:322 +msgid "Invalid number of arguments." +msgstr "Jumlah argumen tidak valid" + +#: ../commands.c:434 +#, c-format +msgid "Couldn't write attachment '%s' to '%s'." +msgstr "Tidak dapat menulis lampiran '%s' ke '%s'" + +#: ../commands.c:436 +#, c-format +msgid "Wrote attachment '%s' to '%s'." +msgstr "Tidak dapat menyimpan lampiran '%s' ke '%s'" + +#: ../commands.c:480 +#, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "Menulis citra dari '%s' ke '%s'" + +#: ../commands.c:482 +#, c-format +msgid "Couldn't write image '%s' to '%s'." +msgstr "Tidak dapat menulis citra '%s' ke %s'" + +#: ../commands.c:489 +#, c-format +msgid "Unknown image '%s'." +msgstr "Citra tidak diketahui '%s'" + +#: ../commands.c:493 +#, c-format +msgid "Unknown attachment or image '%s'." +msgstr "Lampiran atau gambar tidak diketahui '%s'" + +#: ../commands.c:544 +msgid "Argument must be a number." +msgstr "Argumen harus berupa angka." + +#: ../completion.c:250 +#, c-format +msgid "Page %d" +msgstr "Halaman %d" + +#: ../completion.c:293 +msgid "Attachments" +msgstr "Lampiran" + +#. add images +#: ../completion.c:324 +msgid "Images" +msgstr "Citra" + +#. zathura settings +#: ../config.c:139 +msgid "Database backend" +msgstr "" + +#: ../config.c:141 +msgid "Zoom step" +msgstr "Tingkat pembesaran" + +#: ../config.c:143 +msgid "Padding between pages" +msgstr "Selisih antar halaman" + +#: ../config.c:145 +msgid "Number of pages per row" +msgstr "Jumlah halaman tiap kolom" + +#: ../config.c:147 +msgid "Column of the first page" +msgstr "Kolom pada halaman pertama" + +#: ../config.c:149 +msgid "Scroll step" +msgstr "Tingkat menggulung" + +#: ../config.c:151 +msgid "Horizontal scroll step" +msgstr "Tingkat penggulungan horisontal" + +#: ../config.c:153 +msgid "Full page scroll overlap" +msgstr "" + +#: ../config.c:155 +msgid "Zoom minimum" +msgstr "Pembesaran minimum" + +#: ../config.c:157 +msgid "Zoom maximum" +msgstr "Pembesaran maksimal" + +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" + +#: ../config.c:161 +msgid "Number of positions to remember in the jumplist" +msgstr "Jumlah posisi yang diingat pada jumplist" + +#: ../config.c:163 +msgid "Recoloring (dark color)" +msgstr "Mewarnai ulang (warna gelap)" + +#: ../config.c:165 +msgid "Recoloring (light color)" +msgstr "Mewarnai ulang (warna cerah)" + +#: ../config.c:167 +msgid "Color for highlighting" +msgstr "Warna sorotan" + +#: ../config.c:169 +msgid "Color for highlighting (active)" +msgstr "Warna sorotan (aktif)" + +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 +msgid "Recolor pages" +msgstr "Mewarnai ulang halaman" + +#: ../config.c:179 +msgid "When recoloring keep original hue and adjust lightness only" +msgstr "Ketika mewarnai ulang, jaga hue dan sesuaikan kecerahan saja" + +#: ../config.c:181 +msgid "Wrap scrolling" +msgstr "" + +#: ../config.c:183 +msgid "Page aware scrolling" +msgstr "Penggulungan sadar halaman" + +#: ../config.c:185 +msgid "Advance number of pages per row" +msgstr "Jumlah halaman per baris \"lanjutan\"" + +#: ../config.c:187 +msgid "Horizontally centered zoom" +msgstr "Pembesaran horisontal tengah" + +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 +msgid "Center result horizontally" +msgstr "Tengah-horisontalkan hasil" + +#: ../config.c:193 +msgid "Transparency for highlighting" +msgstr "Transparansi sorotan" + +#: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "Memuat Render..." + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "Menyesuaikan ketika membuka file" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "Perlihatkan file dan direktori tersembunyi" + +#: ../config.c:200 +msgid "Show directories" +msgstr "Perlihatkan direktori" + +#: ../config.c:202 +msgid "Always open on first page" +msgstr "Selalu buka halaman pertama" + +#: ../config.c:204 +msgid "Highlight search results" +msgstr "Sorot hasil pencarian" + +#: ../config.c:206 +msgid "Enable incremental search" +msgstr "Fungsikan pencarian berkelanjutan" + +#: ../config.c:208 +msgid "Clear search results on abort" +msgstr "Hapus hasil pencarian ketika batal mencari" + +#: ../config.c:210 +msgid "Use basename of the file in the window title" +msgstr "Gunakan nama dasar file pada judul jendela" + +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 +msgid "Enable synctex support" +msgstr "Support synctex" + +#. define default inputbar commands +#: ../config.c:373 +msgid "Add a bookmark" +msgstr "Tambahkan pada bookmark" + +#: ../config.c:374 +msgid "Delete a bookmark" +msgstr "Hapus bookmark" + +#: ../config.c:375 +msgid "List all bookmarks" +msgstr "Perlihatkan semua bookmark" + +#: ../config.c:376 +msgid "Close current file" +msgstr "Tutup file ini" + +#: ../config.c:377 +msgid "Show file information" +msgstr "Informasi file" + +#: ../config.c:378 +msgid "Execute a command" +msgstr "Jalankan perintah" + +#: ../config.c:379 +msgid "Show help" +msgstr "Bantuan" + +#: ../config.c:380 +msgid "Open document" +msgstr "Buka dokumen" + +#: ../config.c:381 +msgid "Close zathura" +msgstr "Tutup zathura" + +#: ../config.c:382 +msgid "Print document" +msgstr "Cetak dokumen" + +#: ../config.c:383 +msgid "Save document" +msgstr "Simpan dokumen" + +#: ../config.c:384 +msgid "Save document (and force overwriting)" +msgstr "Simpan dokumen (dan menimpa berkas)" + +#: ../config.c:385 +msgid "Save attachments" +msgstr "Simpan lampiran" + +#: ../config.c:386 +msgid "Set page offset" +msgstr "Set offset halaman" + +#: ../config.c:387 +msgid "Mark current location within the document" +msgstr "Tandai lokasi sekarang dalam dokumen" + +#: ../config.c:388 +msgid "Delete the specified marks" +msgstr "Hapus tanda terpilih" + +#: ../config.c:389 +msgid "Don't highlight current search results" +msgstr "Jangan menyorot hasil cari sekarang" + +#: ../config.c:390 +msgid "Highlight current search results" +msgstr "" + +#: ../config.c:391 +msgid "Show version information" +msgstr "Tunjukan informasi versi" + +#: ../links.c:171 ../links.c:250 +msgid "Failed to run xdg-open." +msgstr "Gagal menjalankan program xdg-open" + +#: ../links.c:189 +#, c-format +msgid "Link: page %d" +msgstr "Link: halaman %d" + +#: ../links.c:196 +#, c-format +msgid "Link: %s" +msgstr "Link: %s" + +#: ../links.c:200 +msgid "Link: Invalid" +msgstr "Link: Tidak valid" + +#: ../main.c:55 +msgid "Reparents to window specified by xid" +msgstr "Mengembalikan jendela sesuai dengan xid yang ditentukan" + +#: ../main.c:56 +msgid "Path to the config directory" +msgstr "Path ke direktori konfigurasi" + +#: ../main.c:57 +msgid "Path to the data directory" +msgstr "Path ke direktori data" + +#: ../main.c:58 +msgid "Path to the directories containing plugins" +msgstr "Path ke direktori plugin" + +#: ../main.c:59 +msgid "Fork into the background" +msgstr "Jalankan pada latar" + +#: ../main.c:60 +msgid "Document password" +msgstr "Kata sandi dokumen" + +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 +msgid "Log level (debug, info, warning, error)" +msgstr "Tingkat log (debug, info, peringatan, error)" + +#: ../main.c:63 +msgid "Print version information" +msgstr "Cetak informasi versi" + +#: ../main.c:65 +msgid "Synctex editor (forwarded to the synctex command)" +msgstr "Synctex editor (diteruskan ke perintah synctex)" + +#: ../page-widget.c:460 +msgid "Loading..." +msgstr "Memuat....." + +#: ../page-widget.c:657 +#, c-format +msgid "Copied selected text to clipboard: %s" +msgstr "Menyalin teks terpilih ke papan semat: %s" + +#: ../page-widget.c:755 +msgid "Copy image" +msgstr "Salin gambar" + +#: ../page-widget.c:756 +msgid "Save image as" +msgstr "Simpan gambar sebagai" + +#: ../shortcuts.c:1108 +msgid "This document does not contain any index" +msgstr "Dokumen ini tidak mempunyai indeks" + +#: ../zathura.c:224 ../zathura.c:956 +msgid "[No name]" +msgstr "[Tidak berjudul]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/it.po b/po/it.po index 6db739e..74f0ca9 100644 --- a/po/it.po +++ b/po/it.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-06-20 14:58+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:45+0200\n" "Last-Translator: Sebastian Ramacher \n" "Language-Team: Italian (http://www.transifex.com/projects/p/zathura/language/" "it/)\n" @@ -18,24 +18,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Input inserito '%s' non valido." -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Indice inserito '%s' non valido." #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Nessun documento aperto." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Numero di argomenti errato." @@ -77,53 +77,53 @@ msgstr "Nessun' informazione disponibile." msgid "Too many arguments." msgstr "Numero di argomenti eccessivo." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Nessun argomento specificato." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Documento salvato." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Impossibile salvare il documento." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Numero di argomenti non valido." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Impossibile salvare l' allegato '%s' in '%s'" -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Allegato '%s' salvato in '%s'" -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "L' argomento dev' essere un numero." @@ -142,298 +142,318 @@ msgid "Images" msgstr "" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Backend del database" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Spaziatura tra le pagine" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Numero di pagine per riga" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Zoom minimo" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Zoom massimo" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Durata (in secondi) di una pagina nascosta" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Tempo in secondi tra le invalidazioni della cache" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Ricolora le pagine" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Scrolling continuo" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Mostra file e cartelle nascosti" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Mostra cartelle" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Apri sempre alla prima pagina" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Aggiungi un segnalibro" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Elimina un segnalibro" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Mostra i segnalibri" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Chiudi il file corrente" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Mostra le informazioni sul file" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Mostra l' aiuto" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Apri un documento" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Chiudi zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Stampa il documento" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Salva il documento" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Salva il documento (e sovrascrivi)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Salva allegati" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Imposta l' offset della pagina" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Impossibile eseguire xdg-open." -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Percorso della directory della configurazione" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Percorso della directory dei dati" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Percorso della directory contenente i plugin" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Crea un processo separato" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Livello di log (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Mostra le informazioni sul file" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "" -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "La selezione è stato copiata negli appunti:%s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Copia immagine" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Questo documento non contiene l' indice" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Nessun nome]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/pl.po b/po/pl.po index 7bf8d44..f1d1b72 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-04-03 16:07+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:45+0200\n" "Last-Translator: p \n" "Language-Team: Polish (http://www.transifex.net/projects/p/zathura/language/" "pl/)\n" @@ -19,24 +19,24 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2)\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Nieprawidłowy argument: %s" -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Nieprawidłowy indeks: %s" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Nie otwarto żadnego pliku" -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Nieprawidłowa liczba parametrów polecenia" @@ -78,53 +78,53 @@ msgstr "Brak informacji o pliku" msgid "Too many arguments." msgstr "Za dużo parametrów polecenia" -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Nie podano parametrów polecenia" -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Zapisano dokument" -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Błąd zapisu" -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Niewłaściwa liczba parametrów polecenia" -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Nie można dodać załącznika %s do pliku %s" -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Zapisano załącznik %s do pliku %s" -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "Zapisano obrazek %s do pliku %s" -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "Nie można dodać obrazka %s do pliku %s" -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "Nieznany obrazek '%s'." -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "Nieznany załącznik lub obrazek '%s'." -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Parametr polecenia musi być liczbą" @@ -143,298 +143,318 @@ msgid "Images" msgstr "Obrazki" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Baza danych" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Skok powiększenia" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Odstęp pomiędzy stronami" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Liczba stron w wierszu" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Skok przewijania" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Minimalne powiększenie" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Maksymalne powiększenie" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Czas życia niewidocznej strony (w sekundach)" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Okres sprawdzania widoczności stron (w sekundach)" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Ciemny kolor negatywu" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Jasny kolor negatywu" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Kolor wyróżnienia" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Kolor wyróżnienia bieżącego elementu" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Negatyw" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Zawijanie dokumentu" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "Liczba stron w wierszu" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Przezroczystość wyróżnienia" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Wyświetlaj: „Wczytywanie pliku...”" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Dopasowanie widoku pliku" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Wyświetl ukryte pliki i katalogi" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Wyświetl katalogi" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Zawsze otwieraj na pierwszej stronie" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "Podświetl wyniki wyszukiwania" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "Wyczyść wyniki wyszukiwania po przerwaniu" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Dodaj zakładkę" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Usuń zakładkę" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Wyświetl zakładki" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Zamknij plik" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Wyświetl informacje o pliku" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Wyświetl pomoc" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Otwórz plik" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Zakończ" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Wydrukuj" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Zapisz" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Zapisz (nadpisując istniejący plik)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Zapisz załączniki" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Ustaw przesunięcie numerów stron" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "Zaznacz aktualną pozycję w dokumencie" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "Skasuj określone zakładki" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "Nie podświetlaj aktualnych wyników wyszukiwania " -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "Podświetl aktualne wyniki wyszukiwania" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "Wyświetl informacje o wersji" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Wystąpił problem z uruchomieniem xdg-open" -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Przypisz proces do rodzica o danym xid" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Ścieżka do katalogu konfiguracyjnego" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Ścieżka do katalogu danych" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Ścieżka do katalogu wtyczek" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Forkuj w tle" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "Hasło dokumentu" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Szczegółowość komunikatów (debug, info, warning, error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Wyświetl informacje o wersji" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Wczytywanie pliku..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Zaznaczony tekst skopiowano do schowka: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Skopiuj obrazek" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "Zapisz obrazek jako" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Dokument nie zawiera indeksu" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[bez nazwy]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po new file mode 100644 index 0000000..e39c7c0 --- /dev/null +++ b/po/pt_BR.po @@ -0,0 +1,461 @@ +# zathura - language file (Portuguese (Brazil)) +# See LICENSE file for license and copyright information +# +# Translators: +# salmora8 , 2013 +# salmora8 , 2012-2013 +msgid "" +msgstr "" +"Project-Id-Version: zathura\n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:46+0200\n" +"Last-Translator: salmora8 \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/" +"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" + +#: ../callbacks.c:304 +#, c-format +msgid "Invalid input '%s' given." +msgstr "Dados de entrada inválida '%s' ." + +#: ../callbacks.c:342 +#, c-format +msgid "Invalid index '%s' given." +msgstr "Dados de índice invalido '%s'." + +#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 +msgid "No document opened." +msgstr "Nenhum documento aberto." + +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 +msgid "Invalid number of arguments given." +msgstr "Número de argumentos dados inválidos." + +#: ../commands.c:49 +#, c-format +msgid "Bookmark successfuly updated: %s" +msgstr "Favorito atualizado com sucesso: %s" + +#: ../commands.c:55 +#, c-format +msgid "Could not create bookmark: %s" +msgstr "Não foi possível criar favorito: %s" + +#: ../commands.c:59 +#, c-format +msgid "Bookmark successfuly created: %s" +msgstr "Favorito criado com sucesso: %s" + +#: ../commands.c:82 +#, c-format +msgid "Removed bookmark: %s" +msgstr "Favorito removido: %s" + +#: ../commands.c:84 +#, c-format +msgid "Failed to remove bookmark: %s" +msgstr "Falha ao remover favorito: %s" + +#: ../commands.c:110 +#, c-format +msgid "No such bookmark: %s" +msgstr "Não há favoritos: %s" + +#: ../commands.c:161 ../commands.c:183 +msgid "No information available." +msgstr "Nenhuma informação disponível." + +#: ../commands.c:221 +msgid "Too many arguments." +msgstr "Muitos argumentos." + +#: ../commands.c:232 +msgid "No arguments given." +msgstr "Nenhum argumento dado." + +#: ../commands.c:291 ../commands.c:317 +msgid "Document saved." +msgstr "Documento salvo." + +#: ../commands.c:293 ../commands.c:319 +msgid "Failed to save document." +msgstr "Falha ao salvar o documento." + +#: ../commands.c:296 ../commands.c:322 +msgid "Invalid number of arguments." +msgstr "Número de argumento invalido." + +#: ../commands.c:434 +#, c-format +msgid "Couldn't write attachment '%s' to '%s'." +msgstr "Não foi possível gravar anexo '%s' para '%s'." + +#: ../commands.c:436 +#, c-format +msgid "Wrote attachment '%s' to '%s'." +msgstr "Escreveu anexo '%s' para '%s'." + +#: ../commands.c:480 +#, c-format +msgid "Wrote image '%s' to '%s'." +msgstr "Escreveu imagem '%s' para '%s'." + +#: ../commands.c:482 +#, c-format +msgid "Couldn't write image '%s' to '%s'." +msgstr "Não foi possível gravar imagem '%s' para '%s'." + +#: ../commands.c:489 +#, c-format +msgid "Unknown image '%s'." +msgstr "Imagem desconhecida '%s'." + +#: ../commands.c:493 +#, c-format +msgid "Unknown attachment or image '%s'." +msgstr "Anexo desconhecido ou imagem '%s'." + +#: ../commands.c:544 +msgid "Argument must be a number." +msgstr "O argumento deve ser um número." + +#: ../completion.c:250 +#, c-format +msgid "Page %d" +msgstr "Página %d" + +#: ../completion.c:293 +msgid "Attachments" +msgstr "Anexos" + +#. add images +#: ../completion.c:324 +msgid "Images" +msgstr "Imagens" + +#. zathura settings +#: ../config.c:139 +msgid "Database backend" +msgstr "Fim da base de dados" + +#: ../config.c:141 +msgid "Zoom step" +msgstr "Grau de Zoom" + +#: ../config.c:143 +msgid "Padding between pages" +msgstr "Preenchimento entre páginas" + +#: ../config.c:145 +msgid "Number of pages per row" +msgstr "Número de paginas por linha" + +#: ../config.c:147 +msgid "Column of the first page" +msgstr "Coluna da primeira página" + +#: ../config.c:149 +msgid "Scroll step" +msgstr "Fase de Rolagem" + +#: ../config.c:151 +msgid "Horizontal scroll step" +msgstr "Etapa de rolagem horizontal" + +#: ../config.c:153 +msgid "Full page scroll overlap" +msgstr "Sobreposição de rolagem de página inteira" + +#: ../config.c:155 +msgid "Zoom minimum" +msgstr "Zoom minimo" + +#: ../config.c:157 +msgid "Zoom maximum" +msgstr "Zoom máximo" + +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "Número máximo de páginas para manter no cache" + +#: ../config.c:161 +msgid "Number of positions to remember in the jumplist" +msgstr "Numero de posições para lembrar na lista de salto" + +#: ../config.c:163 +msgid "Recoloring (dark color)" +msgstr "Recolorindo (cor escura)" + +#: ../config.c:165 +msgid "Recoloring (light color)" +msgstr "Recolorindo (cor clara)" + +#: ../config.c:167 +msgid "Color for highlighting" +msgstr "Cor para destacar" + +#: ../config.c:169 +msgid "Color for highlighting (active)" +msgstr "Cor para destacar (ativo)" + +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "'Carregando ...' cor de fundo" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "'Carregando ...' cor de primeiro plano" + +#: ../config.c:177 +msgid "Recolor pages" +msgstr "Recolorir páginas" + +#: ../config.c:179 +msgid "When recoloring keep original hue and adjust lightness only" +msgstr "" +"Quando recolorir, manter tonalidade original e ajustar somente a luminosidade" + +#: ../config.c:181 +msgid "Wrap scrolling" +msgstr "Rolagem envoltório" + +#: ../config.c:183 +msgid "Page aware scrolling" +msgstr "Rolagem de página consciente" + +#: ../config.c:185 +msgid "Advance number of pages per row" +msgstr "Numero de avanço de paginas por linha" + +#: ../config.c:187 +msgid "Horizontally centered zoom" +msgstr "Zoom centrado horizontalmente" + +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "Alinhe destino do link à esquerda" + +#: ../config.c:191 +msgid "Center result horizontally" +msgstr "Resultado centrado horizontalmente" + +#: ../config.c:193 +msgid "Transparency for highlighting" +msgstr "Transparência para destacar" + +#: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "Renderizando 'Carregando...'" + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "Ajuste para quando abrir o arquivo" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "Mostrar arquivos ocultos e diretórios" + +#: ../config.c:200 +msgid "Show directories" +msgstr "Mostrar diretórios" + +#: ../config.c:202 +msgid "Always open on first page" +msgstr "Sempre abrir na primeira página" + +#: ../config.c:204 +msgid "Highlight search results" +msgstr "Destaque resultados de busca" + +#: ../config.c:206 +msgid "Enable incremental search" +msgstr "Ativar pesquisa incremental" + +#: ../config.c:208 +msgid "Clear search results on abort" +msgstr "Limpar resultados de busca ou abortar" + +#: ../config.c:210 +msgid "Use basename of the file in the window title" +msgstr "Usar nome do arquivo na barra de titulo" + +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "Use o nome do arquivo na barra de status" + +#: ../config.c:214 ../main.c:64 +msgid "Enable synctex support" +msgstr "Ativar suporte synctex" + +#. define default inputbar commands +#: ../config.c:373 +msgid "Add a bookmark" +msgstr "Adicionar um favorito" + +#: ../config.c:374 +msgid "Delete a bookmark" +msgstr "Deletar um favorito" + +#: ../config.c:375 +msgid "List all bookmarks" +msgstr "Listar todos favoritos" + +#: ../config.c:376 +msgid "Close current file" +msgstr "Fechar arquivo atual" + +#: ../config.c:377 +msgid "Show file information" +msgstr "Mostrar informações do arquivo" + +#: ../config.c:378 +msgid "Execute a command" +msgstr "Executar um comando" + +#: ../config.c:379 +msgid "Show help" +msgstr "Mostrar ajuda" + +#: ../config.c:380 +msgid "Open document" +msgstr "Abrir documento" + +#: ../config.c:381 +msgid "Close zathura" +msgstr "Fechar zathura" + +#: ../config.c:382 +msgid "Print document" +msgstr "Imprimir documento" + +#: ../config.c:383 +msgid "Save document" +msgstr "Salvar documento" + +#: ../config.c:384 +msgid "Save document (and force overwriting)" +msgstr "Salvar documento (e forçar sobrescrever)" + +#: ../config.c:385 +msgid "Save attachments" +msgstr "Salvar anexos" + +#: ../config.c:386 +msgid "Set page offset" +msgstr "Definir deslocamento da página" + +#: ../config.c:387 +msgid "Mark current location within the document" +msgstr "Marcar localização atual no documento" + +#: ../config.c:388 +msgid "Delete the specified marks" +msgstr "Apagar as marcas especificadas" + +#: ../config.c:389 +msgid "Don't highlight current search results" +msgstr "Não destacar resultados de busca atual" + +#: ../config.c:390 +msgid "Highlight current search results" +msgstr "Destacar resultado de busca atual" + +#: ../config.c:391 +msgid "Show version information" +msgstr "Mostrar informações sobre a versão" + +#: ../links.c:171 ../links.c:250 +msgid "Failed to run xdg-open." +msgstr "Falha ao executar xdg-open." + +#: ../links.c:189 +#, c-format +msgid "Link: page %d" +msgstr "Link: página %d" + +#: ../links.c:196 +#, c-format +msgid "Link: %s" +msgstr "Link: %s" + +#: ../links.c:200 +msgid "Link: Invalid" +msgstr "Link: Inválido" + +#: ../main.c:55 +msgid "Reparents to window specified by xid" +msgstr "Reparar a janela especificada por xid" + +#: ../main.c:56 +msgid "Path to the config directory" +msgstr "Caminho de diretório para configuração" + +#: ../main.c:57 +msgid "Path to the data directory" +msgstr "Caminho para diretório de dados" + +#: ../main.c:58 +msgid "Path to the directories containing plugins" +msgstr "Caminho de diretório que contenham plugins" + +#: ../main.c:59 +msgid "Fork into the background" +msgstr "Deslocar no fundo" + +#: ../main.c:60 +msgid "Document password" +msgstr "Senha do documento" + +#: ../main.c:61 +msgid "Page number to go to" +msgstr "Número da página para ir" + +#: ../main.c:62 +msgid "Log level (debug, info, warning, error)" +msgstr "Nível de log (depurar, informação, aviso, erro)" + +#: ../main.c:63 +msgid "Print version information" +msgstr "Imprimir informações sobre a versão" + +#: ../main.c:65 +msgid "Synctex editor (forwarded to the synctex command)" +msgstr "Editor synctex (encaminhado para o comando synctex)" + +#: ../page-widget.c:460 +msgid "Loading..." +msgstr "Carregando..." + +#: ../page-widget.c:657 +#, c-format +msgid "Copied selected text to clipboard: %s" +msgstr "Texto selecionado copiado para área de transferência: %s " + +#: ../page-widget.c:755 +msgid "Copy image" +msgstr "Copiar imagem" + +#: ../page-widget.c:756 +msgid "Save image as" +msgstr "Salvar imagem para" + +#: ../shortcuts.c:1108 +msgid "This document does not contain any index" +msgstr "Este documento não contem qualquer índice" + +#: ../zathura.c:224 ../zathura.c:956 +msgid "[No name]" +msgstr "[Sem nome]" + +#: ../zathura.c:589 +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 affdc88..f61cd1e 100644 --- a/po/ru.po +++ b/po/ru.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-06-20 14:58+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:46+0200\n" "Last-Translator: Sebastian Ramacher \n" "Language-Team: Russian (http://www.transifex.com/projects/p/zathura/language/" "ru/)\n" @@ -19,24 +19,24 @@ 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" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Неправильный ввод: %s" -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Получен неверный индекс %s" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Документ не открыт" -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Неверное число аргументов" @@ -78,53 +78,53 @@ msgstr "Нет доступной информации" msgid "Too many arguments." msgstr "Слишком много аргументов" -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Отсутствуют аргументы" -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Документ сохранён" -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Не удалось сохранить документ" -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Неверное количество аргументов" -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Не могу сохранить приложенный файл %s в %s" -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Файл %s сохранён в %s" -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Аргумент должен быть числом" @@ -143,298 +143,318 @@ msgid "Images" msgstr "" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Бэкэнд базы данных" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Шаг увеличения" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Разрыв между страницами" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Количество страниц в ряд" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Шаг прокрутки" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Минимальное увеличение" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Максимальное увеличение" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Время жизни (секунды) скрытой страницы" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Время (в секундах) между очисткой кэшей" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Перекрашивание (тёмные тона)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Перекрашивание (светлые тона)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Цвет для подсветки" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Цвет для подсветки (активной)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Перекрасить страницы" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Плавная прокрутка" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "Увеличить количество страниц в ряду" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Прозрачность подсветки" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Рендер 'Загружается ...'" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Показывать скрытые файлы и директории" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Показывать директории" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Всегда открывать на первой странице" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Добавить закладку" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Удалить закладку" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Показать все закладки" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Закрыть текущий файл" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Показать информацию о файле" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Помощь" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Открыть документ" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Выход" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Печать" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Сохранить документ" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Сохранить документ (с перезапиьсю)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Сохранить прикреплённые файлы" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Сохранить смещение страницы" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "Пометить текущую позицию в документе" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "Удалить указанные пометки" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Не удалось запустить xdg-open" -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Сменить материнское окно на окно, указанное в xid" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Путь к директории конфига" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Путь к директории с данными" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Путь к директории с плагинами" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Уйти в бэкграунд" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Уровень логирования (debug,info,warning,error)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Показать информацию о файле" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "" -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Выделенный текст скопирован в буфер: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Скопировать изображение" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "В документе нету индекса" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[No name]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/ta_IN.po b/po/ta_IN.po index 4451aed..0f9c0cd 100644 --- a/po/ta_IN.po +++ b/po/ta_IN.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-04-03 15:25+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:46+0200\n" "Last-Translator: mankand007 \n" "Language-Team: Tamil (India) (http://www.transifex.net/projects/p/zathura/" "language/ta_IN/)\n" @@ -18,24 +18,24 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "கொடுக்கப்பட்ட உள்ளீடு(input) '%s' தவறு" -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "கொடுக்கப்பட்ட index '%s' தவறு" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "எந்தக் ஆவணமும் திறக்கப்படவில்லை" -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "கொடுக்கப்பட்ட arguments-களின் எண்ணிக்கை தவறு" @@ -77,53 +77,53 @@ msgstr "எந்தத் தகவலும் இல்லை" msgid "Too many arguments." msgstr "Argumentகளின் எண்ணிக்கை மிகவும் அதிகம்" -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "எந்த argument-ம் தரப்படவில்லை" -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "கோப்பு சேமிக்கப்பட்டது" -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "ஆவணத்தை சேமிக்க இயலவில்லை" -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "கொடுக்கப்பட்ட argument-களின் எண்ணிக்கை தவறு" -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "" -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "" -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Argument ஒரு எண்ணாக இருக்க வேண்டும்" @@ -142,298 +142,318 @@ msgid "Images" msgstr "" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Zoom அமைப்பு" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "இரு பக்கங்களுக்கிடையில் உள்ள நிரப்பல்(padding)" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "ஒரு வரிசையில் எத்தனை பக்கங்களைக் காட்ட வேண்டும்" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "திரை உருளல்(scroll) அளவு" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "முடிந்தவரை சிறியதாகக் காட்டு" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "முடிந்தவரை பெரிதாகக் காட்டு" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 -msgid "Center result horizontally" -msgstr "" - -#: ../config.c:184 -msgid "Transparency for highlighting" -msgstr "" - -#: ../config.c:186 -msgid "Render 'Loading ...'" -msgstr "" - -#: ../config.c:187 -msgid "Adjust to when opening file" -msgstr "" - #: ../config.c:189 -msgid "Show hidden files and directories" +msgid "Align link target to the left" msgstr "" #: ../config.c:191 -msgid "Show directories" +msgid "Center result horizontally" msgstr "" #: ../config.c:193 -msgid "Always open on first page" +msgid "Transparency for highlighting" msgstr "" #: ../config.c:195 +msgid "Render 'Loading ...'" +msgstr "" + +#: ../config.c:196 +msgid "Adjust to when opening file" +msgstr "" + +#: ../config.c:198 +msgid "Show hidden files and directories" +msgstr "" + +#: ../config.c:200 +msgid "Show directories" +msgstr "" + +#: ../config.c:202 +msgid "Always open on first page" +msgstr "" + +#: ../config.c:204 msgid "Highlight search results" msgstr "" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "புதிய bookmark உருவாக்கு" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Bookmark-ஐ அழித்துவிடு" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "அனைத்து bookmark-களையும் பட்டியலிடு" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "ஆவணம் பற்றிய தகவல்களைக் காட்டு" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "உதவியைக் காட்டு" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "ஒரு ஆவணத்தைத் திற" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "zathura-வை விட்டு வெளியேறு" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "ஆவணத்தை அச்சிடு" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "ஆவணத்தை சேமிக்கவும்" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "இணைப்புகளைச் சேமிக்கவும்" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "xdg-open-ஐ இயக்க முடியவில்லை" -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "ஆவணம் பற்றிய தகவல்களைக் காட்டு" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "" -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "படத்தை ஒரு பிரதியெடு" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "இந்த ஆவணத்தில் எந்த index-ம் இல்லை" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "பெயரற்ற ஆவணம்" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/tr.po b/po/tr.po index f61f75f..61fea33 100644 --- a/po/tr.po +++ b/po/tr.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-05-01 20:38+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:46+0200\n" "Last-Translator: hsngrms \n" "Language-Team: Turkish (http://www.transifex.net/projects/p/zathura/language/" "tr/)\n" @@ -17,26 +17,26 @@ msgstr "" "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" +"Plural-Forms: nplurals=1; plural=0;\n" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Hatalı girdi '%s'" -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Hatalı dizin '%s'" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Açık belge yok." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Yanlış sayıda argüman" @@ -78,60 +78,60 @@ msgstr "Bilgi mevcut değil." msgid "Too many arguments." msgstr "Çok fazla sayıda argüman." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Argüman verilmedi." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Belge kaydedildi." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Belge kaydedilemedi." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Yanlış sayıda argüman." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazılamadı." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazıldı." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazıldı." -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "'%s' eki '%s' konumuna yazılamadı." -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." -msgstr "" +msgstr "Tanınmayan resim dosyası '%s'" -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." -msgstr "" +msgstr "Tanınmayan eklenti veya resim dosyası '%s'" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Argüman bir sayı olmalı." #: ../completion.c:250 #, c-format msgid "Page %d" -msgstr "" +msgstr "Sayfa %d" #: ../completion.c:293 msgid "Attachments" @@ -140,301 +140,321 @@ msgstr "Ekleri kaydet" #. add images #: ../completion.c:324 msgid "Images" -msgstr "" +msgstr "Resimler" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Veritabanı arkayüzü" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Yakınlaşma/uzaklaşma aralığı" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Sayfalar arasındaki boşluk" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Satır başına sayfa sayısı" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" -msgstr "" +msgstr "İlk sayfanın sütunu" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Kaydırma aralığı" -#: ../config.c:147 -msgid "Horizontal scroll step" -msgstr "" - -#: ../config.c:149 -msgid "Full page scroll overlap" -msgstr "" - #: ../config.c:151 +msgid "Horizontal scroll step" +msgstr "Yatay kaydırma adımı" + +#: ../config.c:153 +msgid "Full page scroll overlap" +msgstr "Tam ekran kaydırma kaplaması" + +#: ../config.c:155 msgid "Zoom minimum" msgstr "En fazla uzaklaşma" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "En fazla yakınlaşma" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Gizli pencerenin açık kalma süresi (saniye)" - -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Önbellek temizliği yapılma sıklığı, saniye cinsinden" - -#: ../config.c:158 -msgid "Number of positions to remember in the jumplist" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" msgstr "" -#: ../config.c:160 +#: ../config.c:161 +msgid "Number of positions to remember in the jumplist" +msgstr "Atlama listesinde hatırlanacak pozisyon sayısı" + +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Renk değişimi (koyu renk)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Renk değişimi (açık renk)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "İşaretleme rengi" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "İşaretleme rengi (etkin)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Sayga rengini değiştir" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" -msgstr "" +msgstr "Yeniden renklendirirken renk değerini tut ve sadece parlaklığı ayarla" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Kaydırmayı sarmala" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "Satır başına sayfa sayısı" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" +msgstr "Yatay olarak ortalanmış büyütme" + +#: ../config.c:189 +msgid "Align link target to the left" msgstr "" -#: ../config.c:182 +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Ön plana çıkarmak için saydamlaştır" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "'Yüklüyor ...' yazısını göster" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Dosya açarken ayarla" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Gizli dosyaları ve dizinleri göster" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Dizinleri göster" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Her zaman ilk sayfayı aç" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" -msgstr "" +msgstr "Arama sonuçlarını vurgula" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" -msgstr "" +msgstr "Artımlı aramayı etkinleştir" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" -msgstr "" +msgstr "Kapatınca arama sonuçlarını temizle" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" +msgstr "Pencere başlığı olarak dosyanın adını kullan" + +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Yer imi ekle" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Yer imi sil" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Yer imlerini listele" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Geçerli dosyayı kapat" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Dosya bilgisi göster" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" -msgstr "" +msgstr "Bir komut çalıştır" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Yardım bilgisi göster" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Belge aç" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Zathura'yı kapat" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Belge yazdır" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Belgeyi kaydet" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Belgeyi kaydet (ve sormadan üzerine yaz)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Ekleri kaydet" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Sayfa derinliğini ayarla" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "Bu belgede bu konumu işaretle" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "Seçilen işaretlemeleri sil" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" -msgstr "" +msgstr "Şuanki arama sonuçlarını vurgulama" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" -msgstr "" +msgstr "Şuanki arama sonuçlarını vurgula" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" -msgstr "" +msgstr "Versiyon bilgisi göster" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "xdg-open çalıştırılamadı" -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Xid tarafından belirlendiği gibi bir üst seviye pencereye bağlı" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Ayar dizini adresi" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Veri dizini adresi" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Eklentileri içeren dizinin adresi" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Arka planda işlemden çocuk oluştur" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" +msgstr "Belge şifresi" + +#: ../main.c:61 +msgid "Page number to go to" msgstr "" -#: ../main.c:58 +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Kayıt seviyesi (hata ayıklama, bilgi, uyarı, hata)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Dosya bilgisi göster" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "Yüklüyor ..." -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Seçili metin panoya kopyalandı: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Resim kopyala" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" -msgstr "" +msgstr "Resmi farklı kaydet" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Bu belge fihrist içermiyor" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[İsimsiz]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/po/uk_UA.po b/po/uk_UA.po index 1b0fa8b..8bd90af 100644 --- a/po/uk_UA.po +++ b/po/uk_UA.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" "Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" -"POT-Creation-Date: 2013-01-13 15:08+0100\n" -"PO-Revision-Date: 2012-06-20 14:58+0000\n" +"POT-Creation-Date: 2013-04-28 13:23+0200\n" +"PO-Revision-Date: 2013-04-28 14:46+0200\n" "Last-Translator: Sebastian Ramacher \n" "Language-Team: Ukrainian (Ukraine) (http://www.transifex.com/projects/p/" "zathura/language/uk_UA/)\n" @@ -19,24 +19,24 @@ 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" -#: ../callbacks.c:218 +#: ../callbacks.c:304 #, c-format msgid "Invalid input '%s' given." msgstr "Вказано невірний аргумент: %s." -#: ../callbacks.c:256 +#: ../callbacks.c:342 #, c-format msgid "Invalid index '%s' given." msgstr "Вказано невірний індекс: %s" #: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139 -#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:408 -#: ../commands.c:529 ../shortcuts.c:475 ../shortcuts.c:1053 -#: ../shortcuts.c:1082 +#: ../commands.c:255 ../commands.c:285 ../commands.c:311 ../commands.c:410 +#: ../commands.c:531 ../shortcuts.c:486 ../shortcuts.c:1205 +#: ../shortcuts.c:1234 msgid "No document opened." msgstr "Документ не відкрито." -#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:413 +#: ../commands.c:41 ../commands.c:76 ../commands.c:103 ../commands.c:415 msgid "Invalid number of arguments given." msgstr "Вказана невірна кількість аргументів." @@ -78,53 +78,53 @@ msgstr "Інформація недоступна." msgid "Too many arguments." msgstr "Забагато аргументів." -#: ../commands.c:230 +#: ../commands.c:232 msgid "No arguments given." msgstr "Жодного аргументу не вказано." -#: ../commands.c:289 ../commands.c:315 +#: ../commands.c:291 ../commands.c:317 msgid "Document saved." msgstr "Документ збережено." -#: ../commands.c:291 ../commands.c:317 +#: ../commands.c:293 ../commands.c:319 msgid "Failed to save document." msgstr "Документ не вдалося зберегти." -#: ../commands.c:294 ../commands.c:320 +#: ../commands.c:296 ../commands.c:322 msgid "Invalid number of arguments." msgstr "Невірна кількість аргументів." -#: ../commands.c:432 +#: ../commands.c:434 #, c-format msgid "Couldn't write attachment '%s' to '%s'." msgstr "Неможливо записати прикріплення '%s' до '%s'." -#: ../commands.c:434 +#: ../commands.c:436 #, c-format msgid "Wrote attachment '%s' to '%s'." msgstr "Прикріплення записано %s до %s." -#: ../commands.c:478 +#: ../commands.c:480 #, c-format msgid "Wrote image '%s' to '%s'." msgstr "" -#: ../commands.c:480 +#: ../commands.c:482 #, c-format msgid "Couldn't write image '%s' to '%s'." msgstr "" -#: ../commands.c:487 +#: ../commands.c:489 #, c-format msgid "Unknown image '%s'." msgstr "" -#: ../commands.c:491 +#: ../commands.c:493 #, c-format msgid "Unknown attachment or image '%s'." msgstr "" -#: ../commands.c:542 +#: ../commands.c:544 msgid "Argument must be a number." msgstr "Аргумент повинен бути цифрою." @@ -143,298 +143,318 @@ msgid "Images" msgstr "" #. zathura settings -#: ../config.c:135 +#: ../config.c:139 msgid "Database backend" msgstr "Буфер бази" -#: ../config.c:137 +#: ../config.c:141 msgid "Zoom step" msgstr "Збільшення" -#: ../config.c:139 +#: ../config.c:143 msgid "Padding between pages" msgstr "Заповнення між сторінками" -#: ../config.c:141 +#: ../config.c:145 msgid "Number of pages per row" msgstr "Кількість сторінок в одному рядку" -#: ../config.c:143 +#: ../config.c:147 msgid "Column of the first page" msgstr "" -#: ../config.c:145 +#: ../config.c:149 msgid "Scroll step" msgstr "Прокручування" -#: ../config.c:147 +#: ../config.c:151 msgid "Horizontal scroll step" msgstr "" -#: ../config.c:149 +#: ../config.c:153 msgid "Full page scroll overlap" msgstr "" -#: ../config.c:151 +#: ../config.c:155 msgid "Zoom minimum" msgstr "Максимальне зменшення" -#: ../config.c:153 +#: ../config.c:157 msgid "Zoom maximum" msgstr "Максимальне збільшення" -#: ../config.c:155 -msgid "Life time (in seconds) of a hidden page" -msgstr "Час (у сек) схованої сторінки" +#: ../config.c:159 +msgid "Maximum number of pages to keep in the cache" +msgstr "" -#: ../config.c:156 -msgid "Amount of seconds between each cache purge" -msgstr "Кількість секунд між кожним очищенням кешу" - -#: ../config.c:158 +#: ../config.c:161 msgid "Number of positions to remember in the jumplist" msgstr "" -#: ../config.c:160 +#: ../config.c:163 msgid "Recoloring (dark color)" msgstr "Перефарбування (темний колір)" -#: ../config.c:162 +#: ../config.c:165 msgid "Recoloring (light color)" msgstr "Перефарбування (світлий колір)" -#: ../config.c:164 +#: ../config.c:167 msgid "Color for highlighting" msgstr "Колір для виділення" -#: ../config.c:166 +#: ../config.c:169 msgid "Color for highlighting (active)" msgstr "Колір для виділення (активний)" -#: ../config.c:170 +#: ../config.c:171 +msgid "'Loading ...' background color" +msgstr "" + +#: ../config.c:173 +msgid "'Loading ...' foreground color" +msgstr "" + +#: ../config.c:177 msgid "Recolor pages" msgstr "Змінити кольори" -#: ../config.c:172 +#: ../config.c:179 msgid "When recoloring keep original hue and adjust lightness only" msgstr "" -#: ../config.c:174 +#: ../config.c:181 msgid "Wrap scrolling" msgstr "Плавне прокручування" -#: ../config.c:176 +#: ../config.c:183 msgid "Page aware scrolling" msgstr "" -#: ../config.c:178 +#: ../config.c:185 msgid "Advance number of pages per row" msgstr "" -#: ../config.c:180 +#: ../config.c:187 msgid "Horizontally centered zoom" msgstr "" -#: ../config.c:182 +#: ../config.c:189 +msgid "Align link target to the left" +msgstr "" + +#: ../config.c:191 msgid "Center result horizontally" msgstr "" -#: ../config.c:184 +#: ../config.c:193 msgid "Transparency for highlighting" msgstr "Прозорість для виділення" -#: ../config.c:186 +#: ../config.c:195 msgid "Render 'Loading ...'" msgstr "Рендер 'Завантажується ...'" -#: ../config.c:187 +#: ../config.c:196 msgid "Adjust to when opening file" msgstr "Підлаштовутись при відкритті файлу" -#: ../config.c:189 +#: ../config.c:198 msgid "Show hidden files and directories" msgstr "Показати приховані файли та директорії" -#: ../config.c:191 +#: ../config.c:200 msgid "Show directories" msgstr "Показати диреторії" -#: ../config.c:193 +#: ../config.c:202 msgid "Always open on first page" msgstr "Завжди відкривати на першій сторінці" -#: ../config.c:195 +#: ../config.c:204 msgid "Highlight search results" msgstr "" -#: ../config.c:197 +#: ../config.c:206 msgid "Enable incremental search" msgstr "" -#: ../config.c:199 +#: ../config.c:208 msgid "Clear search results on abort" msgstr "" -#: ../config.c:201 +#: ../config.c:210 msgid "Use basename of the file in the window title" msgstr "" -#: ../config.c:203 ../main.c:60 +#: ../config.c:212 +msgid "Use basename of the file in the statusbar" +msgstr "" + +#: ../config.c:214 ../main.c:64 msgid "Enable synctex support" msgstr "" #. define default inputbar commands -#: ../config.c:359 +#: ../config.c:373 msgid "Add a bookmark" msgstr "Додати закладку" -#: ../config.c:360 +#: ../config.c:374 msgid "Delete a bookmark" msgstr "Вилучити закладку" -#: ../config.c:361 +#: ../config.c:375 msgid "List all bookmarks" msgstr "Дивитись усі закладки" -#: ../config.c:362 +#: ../config.c:376 msgid "Close current file" msgstr "Закрити документ" -#: ../config.c:363 +#: ../config.c:377 msgid "Show file information" msgstr "Показати інформацію файлу" -#: ../config.c:364 +#: ../config.c:378 msgid "Execute a command" msgstr "" -#: ../config.c:365 +#: ../config.c:379 msgid "Show help" msgstr "Показати довідку" -#: ../config.c:366 +#: ../config.c:380 msgid "Open document" msgstr "Відкрити документ" -#: ../config.c:367 +#: ../config.c:381 msgid "Close zathura" msgstr "Вийти із zathura" -#: ../config.c:368 +#: ../config.c:382 msgid "Print document" msgstr "Друкувати документ" -#: ../config.c:369 +#: ../config.c:383 msgid "Save document" msgstr "Зберегти документ" -#: ../config.c:370 +#: ../config.c:384 msgid "Save document (and force overwriting)" msgstr "Зберегти документ (форсувати перезапис)" -#: ../config.c:371 +#: ../config.c:385 msgid "Save attachments" msgstr "Зберегти прикріплення" -#: ../config.c:372 +#: ../config.c:386 msgid "Set page offset" msgstr "Встановити зміщення сторінки" -#: ../config.c:373 +#: ../config.c:387 msgid "Mark current location within the document" msgstr "" -#: ../config.c:374 +#: ../config.c:388 msgid "Delete the specified marks" msgstr "" -#: ../config.c:375 +#: ../config.c:389 msgid "Don't highlight current search results" msgstr "" -#: ../config.c:376 +#: ../config.c:390 msgid "Highlight current search results" msgstr "" -#: ../config.c:377 +#: ../config.c:391 msgid "Show version information" msgstr "" -#: ../links.c:161 ../links.c:240 +#: ../links.c:171 ../links.c:250 msgid "Failed to run xdg-open." msgstr "Запуск xdg-open не вдався." -#: ../links.c:179 +#: ../links.c:189 #, c-format msgid "Link: page %d" msgstr "" -#: ../links.c:186 +#: ../links.c:196 #, c-format msgid "Link: %s" msgstr "" -#: ../links.c:190 +#: ../links.c:200 msgid "Link: Invalid" msgstr "" -#: ../main.c:52 +#: ../main.c:55 msgid "Reparents to window specified by xid" msgstr "Вертатися до вікна, вказаного xid" -#: ../main.c:53 +#: ../main.c:56 msgid "Path to the config directory" msgstr "Шлях до теки конфігурації" -#: ../main.c:54 +#: ../main.c:57 msgid "Path to the data directory" msgstr "Шлях до теки з даними" -#: ../main.c:55 +#: ../main.c:58 msgid "Path to the directories containing plugins" msgstr "Шлях до теки з плаґінами" -#: ../main.c:56 +#: ../main.c:59 msgid "Fork into the background" msgstr "Працювати у фоні" -#: ../main.c:57 +#: ../main.c:60 msgid "Document password" msgstr "" -#: ../main.c:58 +#: ../main.c:61 +msgid "Page number to go to" +msgstr "" + +#: ../main.c:62 msgid "Log level (debug, info, warning, error)" msgstr "Рівень логування (налагодження, інфо, застереження, помилка)" -#: ../main.c:59 +#: ../main.c:63 msgid "Print version information" msgstr "Показати інформацію файлу" -#: ../main.c:61 +#: ../main.c:65 msgid "Synctex editor (forwarded to the synctex command)" msgstr "" -#: ../page-widget.c:455 +#: ../page-widget.c:460 msgid "Loading..." msgstr "" -#: ../page-widget.c:646 +#: ../page-widget.c:657 #, c-format msgid "Copied selected text to clipboard: %s" msgstr "Вибраний текст скопійовано до буферу: %s" -#: ../page-widget.c:744 +#: ../page-widget.c:755 msgid "Copy image" msgstr "Копіювати картинку" -#: ../page-widget.c:745 +#: ../page-widget.c:756 msgid "Save image as" msgstr "" -#: ../shortcuts.c:956 +#: ../shortcuts.c:1108 msgid "This document does not contain any index" msgstr "Індекс відсутній в цьому документі" -#: ../zathura.c:193 ../zathura.c:865 +#: ../zathura.c:224 ../zathura.c:956 msgid "[No name]" msgstr "[Без назви]" + +#: ../zathura.c:589 +msgid "Document does not contain any pages" +msgstr "" diff --git a/render.c b/render.c index c410e66..b2ad38b 100644 --- a/render.c +++ b/render.c @@ -6,6 +6,7 @@ #include #include +#include "glib-compat.h" #include "render.h" #include "zathura.h" #include "document.h" @@ -19,7 +20,7 @@ static gint render_thread_sort(gconstpointer a, gconstpointer b, gpointer data); struct render_thread_s { GThreadPool* pool; /**< Pool of threads */ - GMutex mutex; /**< Render lock */ + mutex mutex; /**< Render lock */ bool about_to_close; /**< Render thread is to be freed */ }; @@ -32,9 +33,9 @@ render_job(void* data, void* user_data) return; } - girara_debug("rendering page %d ...", zathura_page_get_index(page)); + girara_debug("rendering page %d ...", zathura_page_get_index(page) + 1); if (render(zathura, page) != true) { - girara_error("Rendering failed (page %d)\n", zathura_page_get_index(page)); + girara_error("Rendering failed (page %d)\n", zathura_page_get_index(page) + 1); } } @@ -51,7 +52,7 @@ render_init(zathura_t* zathura) render_thread->about_to_close = false; g_thread_pool_set_sort_function(render_thread->pool, render_thread_sort, zathura); - g_mutex_init(&render_thread->mutex); + mutex_init(&render_thread->mutex); return render_thread; @@ -73,6 +74,7 @@ render_free(render_thread_t* render_thread) g_thread_pool_free(render_thread->pool, TRUE, TRUE); } + mutex_free(&(render_thread->mutex)); g_free(render_thread); } @@ -150,7 +152,7 @@ render(zathura_t* zathura, zathura_page_t* page) /* create cairo surface */ unsigned int page_width = 0; unsigned int page_height = 0; - page_calc_height_width(page, &page_height, &page_width, false); + const double real_scale = page_calc_height_width(page, &page_height, &page_width, false); cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_RGB24, page_width, page_height); @@ -172,9 +174,8 @@ render(zathura_t* zathura, zathura_page_t* page) cairo_restore(cairo); cairo_save(cairo); - double scale = zathura_document_get_scale(zathura->document); - if (fabs(scale - 1.0f) > FLT_EPSILON) { - cairo_scale(cairo, scale, scale); + if (fabs(real_scale - 1.0f) > FLT_EPSILON) { + cairo_scale(cairo, real_scale, real_scale); } render_lock(zathura->sync.render_thread); @@ -306,8 +307,8 @@ render_thread_sort(gconstpointer a, gconstpointer b, gpointer data) unsigned int page_a_index = zathura_page_get_index(page_a); unsigned int page_b_index = zathura_page_get_index(page_b); - unsigned int last_view_a = 0; - unsigned int last_view_b = 0; + gint64 last_view_a = 0; + gint64 last_view_b = 0; g_object_get(zathura->pages[page_a_index], "last-view", &last_view_a, NULL); g_object_get(zathura->pages[page_b_index], "last-view", &last_view_b, NULL); @@ -328,7 +329,7 @@ render_lock(render_thread_t* render_thread) return; } - g_mutex_lock(&render_thread->mutex); + mutex_lock(&render_thread->mutex); } void @@ -338,5 +339,5 @@ render_unlock(render_thread_t* render_thread) return; } - g_mutex_unlock(&render_thread->mutex); + mutex_unlock(&render_thread->mutex); } diff --git a/shortcuts.c b/shortcuts.c index 44b790f..3af1531 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -17,6 +17,7 @@ #include "page.h" #include "print.h" #include "page-widget.h" +#include "adjustment.h" /* Helper function; see sc_display_link and sc_follow. */ static bool @@ -105,7 +106,6 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument, goto error_ret; } - float old_zoom = zathura_document_get_scale(zathura->document); zathura_document_set_adjust_mode(zathura->document, argument->n); if (argument->n == ZATHURA_ADJUST_NONE) { /* there is nothing todo */ @@ -144,7 +144,7 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument, if (argument->n == ZATHURA_ADJUST_WIDTH || (argument->n == ZATHURA_ADJUST_BESTFIT && page_ratio < window_ratio)) { scale = (double)(width - (pages_per_row - 1) * padding) / - (double)(pages_per_row * cell_width + (pages_per_row - 1) * padding); + (double)(pages_per_row * cell_width); zathura_document_set_scale(zathura->document, scale); bool show_scrollbars = false; @@ -165,7 +165,7 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument, if (0 < requisition.width && (unsigned)requisition.width < width) { width -= requisition.width; scale = (double)(width - (pages_per_row - 1) * padding) / - (double)(pages_per_row * cell_width + (pages_per_row - 1) * padding); + (double)(pages_per_row * cell_width); zathura_document_set_scale(zathura->document, scale); } } @@ -180,9 +180,6 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument, goto error_ret; } - /* keep position */ - readjust_view_after_zooming(zathura, old_zoom, false); - /* re-render all pages */ render_all(zathura); @@ -218,6 +215,7 @@ sc_display_link(girara_session_t* session, girara_argument_t* UNUSED(argument), /* ask for input */ if (show_links) { + zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_INPUTBAR); girara_dialog(zathura->ui.session, "Display link:", FALSE, NULL, (girara_callback_inputbar_activate_t) cb_sc_display_link, zathura->ui.session); @@ -235,6 +233,8 @@ sc_focus_inputbar(girara_session_t* session, girara_argument_t* argument, girara zathura_t* zathura = session->global.data; g_return_val_if_fail(argument != NULL, false); + zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_INPUTBAR); + if (gtk_widget_get_visible(GTK_WIDGET(session->gtk.inputbar)) == false) { gtk_widget_show(GTK_WIDGET(session->gtk.inputbar)); } @@ -296,6 +296,7 @@ sc_follow(girara_session_t* session, girara_argument_t* UNUSED(argument), /* ask for input */ if (show_links == true) { + zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_INPUTBAR); girara_dialog(zathura->ui.session, "Follow link:", FALSE, NULL, (girara_callback_inputbar_activate_t) cb_sc_follow, zathura->ui.session); } @@ -314,18 +315,19 @@ sc_goto(girara_session_t* session, girara_argument_t* argument, girara_event_t* zathura_jumplist_save(zathura); if (t != 0) { /* add offset */ - unsigned int page_offset = zathura_document_get_page_offset(zathura->document); - if (page_offset > 0) { - t += page_offset; - } + t += zathura_document_get_page_offset(zathura->document); - page_set(zathura, t-1); + page_set(zathura, t - 1); } else if (argument->n == TOP) { page_set(zathura, 0); } else if (argument->n == BOTTOM) { page_set(zathura, zathura_document_get_number_of_pages(zathura->document) - 1); } + /* adjust horizontal position */ + GtkAdjustment* hadjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(session->gtk.view)); + cb_view_hadjustment_changed(hadjustment, zathura); + zathura_jumplist_add(zathura); return false; @@ -375,8 +377,10 @@ sc_mouse_scroll(girara_session_t* session, girara_argument_t* argument, girara_e return false; } - set_adjustment(x_adj, gtk_adjustment_get_value(x_adj) - (event->x - x)); - set_adjustment(y_adj, gtk_adjustment_get_value(y_adj) - (event->y - y)); + zathura_adjustment_set_value(x_adj, + gtk_adjustment_get_value(x_adj) - (event->x - x)); + zathura_adjustment_set_value(y_adj, + gtk_adjustment_get_value(y_adj) - (event->y - y)); break; /* unhandled events */ @@ -460,6 +464,10 @@ sc_navigate(girara_session_t* session, girara_argument_t* argument, page_set(zathura, new_page); + /* adjust horizontal position */ + GtkAdjustment* hadjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(session->gtk.view)); + cb_view_hadjustment_changed(hadjustment, zathura); + return false; } @@ -511,7 +519,9 @@ sc_reload(girara_session_t* session, girara_argument_t* UNUSED(argument), document_close(zathura, true); /* reopen document */ - document_open(zathura, zathura->file_monitor.file_path, zathura->file_monitor.password); + document_open(zathura, zathura->file_monitor.file_path, + zathura->file_monitor.password, + ZATHURA_PAGE_NUMBER_UNSPECIFIED); return false; } @@ -551,7 +561,7 @@ sc_rotate(girara_session_t* session, girara_argument_t* argument, bool sc_scroll(girara_session_t* session, girara_argument_t* argument, - girara_event_t* UNUSED(event), unsigned int UNUSED(t)) + girara_event_t* UNUSED(event), unsigned int t) { g_return_val_if_fail(session != NULL, false); g_return_val_if_fail(session->global.data != NULL, false); @@ -561,6 +571,10 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument, return false; } + if (t == 0) { + t = 1; + } + GtkAdjustment* adjustment = NULL; if ( (argument->n == LEFT) || (argument->n == FULL_LEFT) || (argument->n == HALF_LEFT) || (argument->n == RIGHT) || (argument->n == FULL_RIGHT) || (argument->n == HALF_RIGHT)) { @@ -612,16 +626,16 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument, new_value = value + ((view_size + padding) / 2); break; case LEFT: - new_value = value - scroll_hstep; + new_value = value - scroll_hstep * t; break; case UP: - new_value = value - scroll_step; + new_value = value - scroll_step * t; break; case RIGHT: - new_value = value + scroll_hstep; + new_value = value + scroll_hstep * t; break; case DOWN: - new_value = value + scroll_step; + new_value = value + scroll_step * t; break; case TOP: new_value = 0; @@ -692,14 +706,15 @@ sc_scroll(girara_session_t* session, girara_argument_t* argument, } } - set_adjustment(adjustment, new_value); + zathura_adjustment_set_value(adjustment, new_value); return false; } bool -sc_jumplist(girara_session_t* session, girara_argument_t* argument, girara_event_t* UNUSED(event), unsigned int UNUSED(t)) +sc_jumplist(girara_session_t* session, girara_argument_t* 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); @@ -731,6 +746,140 @@ sc_jumplist(girara_session_t* session, girara_argument_t* argument, girara_event return false; } + +bool +sc_bisect(girara_session_t* session, girara_argument_t* argument, + girara_event_t* UNUSED(event), unsigned int 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; + g_return_val_if_fail(argument != NULL, false); + g_return_val_if_fail(zathura->document != NULL, false); + + unsigned int number_of_pages, cur_page, prev_page, prev2_page; + bool have_prev, have_prev2; + + zathura_jump_t* prev_jump = NULL; + zathura_jump_t* prev2_jump = NULL; + + number_of_pages= zathura_document_get_number_of_pages(zathura->document); + cur_page = zathura_document_get_current_page_number(zathura->document); + + prev_page = prev2_page = 0; + have_prev = have_prev2 = false; + + /* save position at current jump point */ + zathura_jumplist_save(zathura); + + /* process arguments */ + int direction; + if (t > 0 && t <= number_of_pages) { + /* jump to page t, and bisect between cur_page and t */ + page_set(zathura, t-1); + zathura_jumplist_add(zathura); + if (t-1 > cur_page) { + direction = BACKWARD; + } else { + direction = FORWARD; + } + + } else if (argument != NULL) { + direction = argument->n; + + } else { + return false; + } + + cur_page = zathura_document_get_current_page_number(zathura->document); + + if (zathura_jumplist_has_previous(zathura)) { + /* If there is a previous jump, get its page */ + zathura_jumplist_backward(zathura); + prev_jump = zathura_jumplist_current(zathura); + if (prev_jump) { + prev_page = prev_jump->page; + have_prev = true; + } + + if (zathura_jumplist_has_previous(zathura)) { + /* If there is a second previous jump, get its page. */ + zathura_jumplist_backward(zathura); + prev2_jump = zathura_jumplist_current(zathura); + if (prev2_jump) { + prev2_page = prev2_jump->page; + have_prev2 = true; + } + zathura_jumplist_forward(zathura); + } + zathura_jumplist_forward(zathura); + } + + /* now, we are back at the initial jump. prev_page and prev2_page contain + the pages for previous and second previous jump if they exist. */ + + /* bisect */ + switch(direction) { + case FORWARD: + if (have_prev && cur_page <= prev_page) { + /* add a new jump point */ + if (cur_page < prev_page) { + page_set(zathura, (cur_page + prev_page)/2); + zathura_jumplist_add(zathura); + } + + } else if (have_prev2 && cur_page <= prev2_page) { + /* save current position at previous jump point */ + if (cur_page < prev2_page) { + zathura_jumplist_backward(zathura); + zathura_jumplist_save(zathura); + zathura_jumplist_forward(zathura); + + page_set(zathura, (cur_page + prev2_page)/2); + zathura_jumplist_save(zathura); + } + } else { + /* none of prev_page or prev2_page comes after cur_page */ + page_set(zathura, (cur_page + number_of_pages - 1)/2); + zathura_jumplist_add(zathura); + } + break; + + case BACKWARD: + if (have_prev && prev_page <= cur_page) { + /* add a new jump point */ + if (prev_page < cur_page) { + page_set(zathura, (cur_page + prev_page)/2); + zathura_jumplist_add(zathura); + } + + } else if (have_prev2 && prev2_page <= cur_page) { + /* save current position at previous jump point */ + if (prev2_page < cur_page) { + zathura_jumplist_backward(zathura); + zathura_jumplist_save(zathura); + zathura_jumplist_forward(zathura); + + page_set(zathura, (cur_page + prev2_page)/2); + zathura_jumplist_save(zathura); + } + + } else { + /* none of prev_page or prev2_page comes before cur_page */ + page_set(zathura, cur_page/2); + zathura_jumplist_add(zathura); + } + break; + } + + /* adjust horizontal position */ + GtkAdjustment* hadjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(session->gtk.view)); + cb_view_hadjustment_changed(hadjustment, zathura); + + return false; +} + + bool sc_search(girara_session_t* session, girara_argument_t* argument, girara_event_t* UNUSED(event), unsigned int UNUSED(t)) @@ -812,14 +961,14 @@ sc_search(girara_session_t* session, girara_argument_t* argument, GtkAdjustment* view_vadjustment = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); int y = offset.y - gtk_adjustment_get_page_size(view_vadjustment) / 2 + rectangle.y1; - set_adjustment(view_vadjustment, y); + zathura_adjustment_set_value(view_vadjustment, y); bool search_hadjust = true; girara_setting_get(session, "search-hadjust", &search_hadjust); if (search_hadjust == true) { GtkAdjustment* view_hadjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); int x = offset.x - gtk_adjustment_get_page_size(view_hadjustment) / 2 + rectangle.x1; - set_adjustment(view_hadjustment, x); + zathura_adjustment_set_value(view_hadjustment, x); } } @@ -1208,9 +1357,6 @@ sc_zoom(girara_session_t* session, girara_argument_t* argument, girara_event_t* zathura_document_set_scale(zathura->document, zoom_max); } - /* keep position */ - readjust_view_after_zooming(zathura, old_zoom, true); - render_all(zathura); return false; diff --git a/shortcuts.h b/shortcuts.h index 3572cf1..c3231c6 100644 --- a/shortcuts.h +++ b/shortcuts.h @@ -172,7 +172,7 @@ bool sc_rotate(girara_session_t* session, girara_argument_t* argument, girara_ev bool sc_scroll(girara_session_t* session, girara_argument_t* argument, girara_event_t* event, unsigned int t); /** - * Scroll through the pages + * Navigate through the jumplist * * @param session The used girara session * @param argument The used argument @@ -182,6 +182,17 @@ bool sc_scroll(girara_session_t* session, girara_argument_t* argument, girara_ev */ bool sc_jumplist(girara_session_t* session, girara_argument_t* argument, girara_event_t* event, unsigned int t); +/** + * Bisect through the document + * + * @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 occured otherwise false + */ +bool sc_bisect(girara_session_t* session, girara_argument_t* argument, girara_event_t* event, unsigned int t); + /** * Search through the document for the latest search item * diff --git a/tests/Makefile b/tests/Makefile index 990156b..75a198b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -21,6 +21,12 @@ else ZSOURCE = $(filter-out ../database-sqlite.c,$(ZOSOURCE)) endif +ifneq ($(WITH_MAGIC),0) +INCS += $(MAGIC_INC) +LIBS += $(MAGIC_LIB) +CPPFLAGS += -DWITH_MAGIC +endif + ZOBJECTS = ${ZSOURCE:.c=.o} all: ${PROJECT} diff --git a/tests/test_utils.c b/tests/test_utils.c index 6f927e2..a36b3a9 100644 --- a/tests/test_utils.c +++ b/tests/test_utils.c @@ -25,6 +25,38 @@ START_TEST(test_file_valid_extension_null) { fail_unless(file_valid_extension(NULL, "pdf") == false, NULL); } END_TEST +START_TEST(test_strings_replace_substrings_invalid) { + fail_unless(replace_substring(NULL, NULL, NULL) == NULL); + fail_unless(replace_substring("", NULL, NULL) == NULL); + fail_unless(replace_substring("", "", NULL) == NULL); +} END_TEST + +START_TEST(test_strings_replace_substrings_nothing_to_replace) { + fail_unless(replace_substring("test", "n", "y") == NULL); +} END_TEST + +START_TEST(test_strings_replace_substrings_1) { + char* result = replace_substring("test", "e", "f"); + fail_unless(result != NULL); + fail_unless(strncmp(result, "tfst", 5) == 0); + g_free(result); +} END_TEST + +START_TEST(test_strings_replace_substrings_2) { + char* result = replace_substring("test", "es", "f"); + fail_unless(result != NULL); + fail_unless(strncmp(result, "tft", 4) == 0); + g_free(result); +} END_TEST + +START_TEST(test_strings_replace_substrings_3) { + char* result = replace_substring("test", "e", "fg"); + fail_unless(result != NULL); + fail_unless(strncmp(result, "tfgst", 6) == 0); + g_free(result); +} END_TEST + + Suite* suite_utils() { TCase* tcase = NULL; @@ -42,5 +74,14 @@ Suite* suite_utils() tcase_add_test(tcase, test_file_valid_extension_null); suite_add_tcase(suite, tcase); + /* strings */ + tcase = tcase_create("strings"); + tcase_add_test(tcase, test_strings_replace_substrings_invalid); + tcase_add_test(tcase, test_strings_replace_substrings_nothing_to_replace); + tcase_add_test(tcase, test_strings_replace_substrings_1); + tcase_add_test(tcase, test_strings_replace_substrings_2); + tcase_add_test(tcase, test_strings_replace_substrings_3); + suite_add_tcase(suite, tcase); + return suite; } diff --git a/types.h b/types.h index 8aade9a..50bacb6 100644 --- a/types.h +++ b/types.h @@ -85,7 +85,8 @@ typedef enum zathura_adjust_mode_e { ZATHURA_ADJUST_NONE, /**< No adjustment */ ZATHURA_ADJUST_BESTFIT, /**< Adjust to best-fit */ - ZATHURA_ADJUST_WIDTH /**< Adjust to width */ + ZATHURA_ADJUST_WIDTH, /**< Adjust to width */ + ZATHURA_ADJUST_INPUTBAR /**< Focusing the inputbar */ } zathura_adjust_mode_t; /** diff --git a/utils.c b/utils.c index 06de445..7c462b3 100644 --- a/utils.c +++ b/utils.c @@ -29,24 +29,16 @@ const char* file_get_extension(const char* path) { - if (!path) { + if (path == NULL) { return NULL; } - unsigned int i = strlen(path); - for (; i > 0; i--) { - if (*(path + i) != '.') { - continue; - } else { - break; - } - } - - if (!i) { + const char* res = strrchr(path, '.'); + if (res == NULL) { return NULL; } - return path + i + 1; + return res + 1; } bool @@ -185,7 +177,8 @@ page_calculate_offset(zathura_t* zathura, zathura_page_t* page, page_offset_t* o zathura->ui.page_widget, 0, 0, &(offset->x), &(offset->y)) == true); } -zathura_rectangle_t rotate_rectangle(zathura_rectangle_t rectangle, unsigned int degree, int height, int width) +zathura_rectangle_t +rotate_rectangle(zathura_rectangle_t rectangle, unsigned int degree, double height, double width) { zathura_rectangle_t tmp; switch (degree) { @@ -234,33 +227,11 @@ recalc_rectangle(zathura_page_t* page, zathura_rectangle_t rectangle) double page_width = zathura_page_get_width(page); double scale = zathura_document_get_scale(document); - zathura_rectangle_t tmp; - - switch (zathura_document_get_rotation(document)) { - case 90: - tmp.x1 = (page_height - rectangle.y2) * scale; - tmp.x2 = (page_height - rectangle.y1) * scale; - tmp.y1 = rectangle.x1 * scale; - tmp.y2 = rectangle.x2 * scale; - break; - case 180: - tmp.x1 = (page_width - rectangle.x2) * scale; - tmp.x2 = (page_width - rectangle.x1) * scale; - tmp.y1 = (page_height - rectangle.y2) * scale; - tmp.y2 = (page_height - rectangle.y1) * scale; - break; - case 270: - tmp.x1 = rectangle.y1 * scale; - tmp.x2 = rectangle.y2 * scale; - tmp.y1 = (page_width - rectangle.x2) * scale; - tmp.y2 = (page_width - rectangle.x1) * scale; - break; - default: - tmp.x1 = rectangle.x1 * scale; - tmp.x2 = rectangle.x2 * scale; - tmp.y1 = rectangle.y1 * scale; - tmp.y2 = rectangle.y2 * scale; - } + zathura_rectangle_t tmp = rotate_rectangle(rectangle, zathura_document_get_rotation(document), page_height, page_width); + tmp.x1 *= scale; + tmp.x2 *= scale; + tmp.y1 *= scale; + tmp.y2 *= scale; return tmp; @@ -269,34 +240,32 @@ error_ret: return rectangle; } -void -set_adjustment(GtkAdjustment* adjustment, gdouble value) -{ - gtk_adjustment_set_value(adjustment, MAX(gtk_adjustment_get_lower(adjustment), - MIN(gtk_adjustment_get_upper(adjustment) - gtk_adjustment_get_page_size(adjustment), value))); -} - -void +double page_calc_height_width(zathura_page_t* page, unsigned int* page_height, unsigned int* page_width, bool rotate) { - g_return_if_fail(page != NULL && page_height != NULL && page_width != NULL); + g_return_val_if_fail(page != NULL && page_height != NULL && page_width != NULL, 0.0); zathura_document_t* document = zathura_page_get_document(page); if (document == NULL) { - return; + return 0.0; } double height = zathura_page_get_height(page); double width = zathura_page_get_width(page); double scale = zathura_document_get_scale(document); + double real_scale; if (rotate && zathura_document_get_rotation(document) % 180) { *page_width = ceil(height * scale); *page_height = ceil(width * scale); + real_scale = MAX(*page_width / height, *page_height / width); } else { *page_width = ceil(width * scale); *page_height = ceil(height * scale); + real_scale = MAX(*page_width / width, *page_height / height); } + + return real_scale; } void @@ -348,35 +317,6 @@ zathura_page_get_widget(zathura_t* zathura, zathura_page_t* page) return zathura->pages[page_number]; } -void -readjust_view_after_zooming(zathura_t *zathura, float old_zoom, bool delay) -{ - if (zathura == NULL || zathura->document == NULL) { - return; - } - - GtkScrolledWindow *window = GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view); - GtkAdjustment* vadjustment = gtk_scrolled_window_get_vadjustment(window); - GtkAdjustment* hadjustment = gtk_scrolled_window_get_hadjustment(window); - - double scale = zathura_document_get_scale(zathura->document); - gdouble valx = gtk_adjustment_get_value(hadjustment) / old_zoom * scale; - gdouble valy = gtk_adjustment_get_value(vadjustment) / old_zoom * scale; - - bool zoom_center = false; - girara_setting_get(zathura->ui.session, "zoom-center", &zoom_center); - if (zoom_center) { - valx += gtk_adjustment_get_page_size(hadjustment) * (scale / old_zoom - 1) / 2; - } - - if (delay == true) { - position_set_delayed(zathura, valx, valy); - } else { - set_adjustment(vadjustment, valx); - set_adjustment(vadjustment, valy); - } -} - void document_draw_search_results(zathura_t* zathura, bool value) { @@ -461,7 +401,7 @@ replace_substring(const char* string, const char* old, const char* new) /* replace */ while (*string != '\0') { if (strstr(string, old) == string) { - strcpy(&ret[i], new); + strncpy(&ret[i], new, new_len); i += new_len; string += old_len; } else { diff --git a/utils.h b/utils.h index 45990d0..ce6baf6 100644 --- a/utils.h +++ b/utils.h @@ -74,7 +74,7 @@ void page_calculate_offset(zathura_t* zathura, zathura_page_t* page, page_offset * @param width the width of the enclosing rectangle * @return the rotated rectangle */ -zathura_rectangle_t rotate_rectangle(zathura_rectangle_t rectangle, unsigned int degree, int height, int width); +zathura_rectangle_t rotate_rectangle(zathura_rectangle_t rectangle, unsigned int degree, double height, double width); /** * Calculates the new coordinates based on the rotation and scale level of the @@ -86,13 +86,6 @@ zathura_rectangle_t rotate_rectangle(zathura_rectangle_t rectangle, unsigned int */ zathura_rectangle_t recalc_rectangle(zathura_page_t* page, zathura_rectangle_t rectangle); -/** - * Set adjustment of a GtkAdjustment respecting its limits. - * @param adjust the GtkAdkustment instance - * @param value the new adjustment - */ -void set_adjustment(GtkAdjustment* adjust, gdouble value); - /** * Calculate the page size according to the corrent scaling and rotation if * desired. @@ -100,8 +93,9 @@ void set_adjustment(GtkAdjustment* adjust, gdouble value); * @param page_height the resulting page height * @param page_width the resultung page width * @param rotate honor page's rotation + * @return real scale after rounding */ -void +double page_calc_height_width(zathura_page_t* page, unsigned int* page_height, unsigned int* page_width, bool rotate); /** @@ -131,15 +125,6 @@ void zathura_get_document_size(zathura_t* zathura, */ GtkWidget* zathura_page_get_widget(zathura_t* zathura, zathura_page_t* page); -/** - * Re-adjust view - * - * @param zathura Zathura instance - * @param old_zoom Old zoom value - * @param delay true if action should be delayed - */ -void readjust_view_after_zooming(zathura_t* zathura, float old_zoom, bool delay); - /** * Set if the search results should be drawn or not * diff --git a/zathura.1.rst b/zathura.1.rst index cd980b4..664b525 100644 --- a/zathura.1.rst +++ b/zathura.1.rst @@ -41,6 +41,11 @@ OPTIONS will be used for the first one and zathura will ask for the passwords of the remaining files if needed. +-P [number], --page [number] + Open the document at the given page number. Pages are numbered starting with + 1, and negative numbers indicate page numbers starting from the end of the + document, -1 being the last page. + --fork Fork into the background @@ -70,6 +75,8 @@ gg, G, nG Goto to the first, the last or to the nth page ^o, ^i Move backward and forward through the jump list +^j, ^k + Bisect forward and backward between the last two jump points ^c, Escape Abort a, s @@ -94,6 +101,8 @@ R Reload document Tab Show index and switch to **Index mode** +d + Toggle dual page view F5 Switch to fullscreen mode ^m diff --git a/zathura.c b/zathura.c index b499801..cdf4eac 100644 --- a/zathura.c +++ b/zathura.c @@ -32,11 +32,13 @@ #include "page.h" #include "page-widget.h" #include "plugin.h" +#include "adjustment.h" typedef struct zathura_document_info_s { zathura_t* zathura; const char* path; const char* password; + int page_number; } zathura_document_info_t; typedef struct page_set_delayed_s { @@ -51,7 +53,10 @@ typedef struct position_set_delayed_s { } position_set_delayed_t; static gboolean document_info_open(gpointer data); -static gboolean purge_pages(gpointer data); +static bool zathura_page_cache_is_cached(zathura_t* zathura, unsigned int page_index); +static ssize_t zathura_page_cache_lru_invalidate(zathura_t* zathura); +static void zathura_page_cache_invalidate_all(zathura_t* zathura); +static bool zathura_page_cache_is_full(zathura_t* zathura, bool* result); /* function implementation */ zathura_t* @@ -151,11 +156,37 @@ zathura_init(zathura_t* zathura) g_signal_connect(G_OBJECT(zathura->ui.session->gtk.window), "size-allocate", G_CALLBACK(cb_view_resized), zathura); - /* callbacks */ - GtkAdjustment* view_vadjustment = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); - g_signal_connect(G_OBJECT(view_vadjustment), "value-changed", G_CALLBACK(cb_view_vadjustment_value_changed), zathura); - GtkAdjustment* view_hadjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); - g_signal_connect(G_OBJECT(view_hadjustment), "value-changed", G_CALLBACK(cb_view_vadjustment_value_changed), zathura); + /* Setup hadjustment tracker */ + GtkAdjustment* hadjustment = gtk_scrolled_window_get_hadjustment( + GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); + zathura->ui.hadjustment = zathura_adjustment_clone(hadjustment); + g_object_ref_sink(zathura->ui.hadjustment); + + /* Connect hadjustment signals */ + g_signal_connect(G_OBJECT(hadjustment), "value-changed", + G_CALLBACK(cb_view_vadjustment_value_changed), zathura); + g_signal_connect(G_OBJECT(hadjustment), "value-changed", + G_CALLBACK(cb_adjustment_track_value), zathura->ui.hadjustment); + g_signal_connect(G_OBJECT(hadjustment), "changed", + G_CALLBACK(cb_view_hadjustment_changed), zathura); + g_signal_connect(G_OBJECT(hadjustment), "changed", + G_CALLBACK(cb_adjustment_track_bounds), zathura->ui.hadjustment); + + /* Setup vadjustment tracker */ + GtkAdjustment* vadjustment = gtk_scrolled_window_get_vadjustment( + GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); + zathura->ui.vadjustment = zathura_adjustment_clone(vadjustment); + g_object_ref_sink(zathura->ui.vadjustment); + + /* Connect vadjustment signals */ + g_signal_connect(G_OBJECT(vadjustment), "value-changed", + G_CALLBACK(cb_view_vadjustment_value_changed), zathura); + g_signal_connect(G_OBJECT(vadjustment), "value-changed", + G_CALLBACK(cb_adjustment_track_value), zathura->ui.vadjustment); + g_signal_connect(G_OBJECT(vadjustment), "changed", + G_CALLBACK(cb_view_vadjustment_changed), zathura); + g_signal_connect(G_OBJECT(vadjustment), "changed", + G_CALLBACK(cb_adjustment_track_bounds), zathura->ui.vadjustment); /* page view alignment */ zathura->ui.page_widget_alignment = gtk_alignment_new(0.5, 0.5, 0, 0); @@ -228,17 +259,14 @@ zathura_init(zathura_t* zathura) if (zathura->database == NULL) { girara_error("Unable to initialize database. Bookmarks won't be available."); + } else { + g_object_set(zathura->ui.session->command_history, "io", zathura->database, NULL); } /* bookmarks */ zathura->bookmarks.bookmarks = girara_sorted_list_new2((girara_compare_function_t) zathura_bookmarks_compare, (girara_free_function_t) zathura_bookmark_free); - /* add even to purge old pages */ - int interval = 30; - girara_setting_get(zathura->ui.session, "page-store-interval", &interval); - g_timeout_add_seconds(interval, purge_pages, zathura); - /* jumplist */ zathura->jumplist.max_size = 20; @@ -249,6 +277,21 @@ zathura_init(zathura_t* zathura) zathura->jumplist.cur = NULL; zathura_jumplist_append_jump(zathura); zathura->jumplist.cur = girara_list_iterator(zathura->jumplist.list); + + /* page cache */ + + int cache_size = 0; + girara_setting_get(zathura->ui.session, "page-cache-size", &cache_size); + if (cache_size <= 0) { + girara_warning("page-cache-size is not positive, using %d instead", ZATHURA_PAGE_CACHE_DEFAULT_SIZE); + zathura->page_cache.size = ZATHURA_PAGE_CACHE_DEFAULT_SIZE; + } else { + zathura->page_cache.size = cache_size; + } + + zathura->page_cache.cache = g_malloc(zathura->page_cache.size * sizeof(int)); + zathura_page_cache_invalidate_all(zathura); + return true; error_free: @@ -277,6 +320,13 @@ zathura_free(zathura_t* zathura) girara_session_destroy(zathura->ui.session); } + if (zathura->ui.hadjustment != NULL) { + g_object_unref(G_OBJECT(zathura->ui.hadjustment)); + } + if (zathura->ui.vadjustment != NULL) { + g_object_unref(G_OBJECT(zathura->ui.vadjustment)); + } + /* stdin support */ if (zathura->stdin_support.file != NULL) { g_unlink(zathura->stdin_support.file); @@ -287,7 +337,9 @@ zathura_free(zathura_t* zathura) girara_list_free(zathura->bookmarks.bookmarks); /* database */ - zathura_db_free(zathura->database); + if (zathura->database != NULL) { + g_object_unref(G_OBJECT(zathura->database)); + } /* free print settings */ if (zathura->print.settings != NULL) { @@ -314,6 +366,8 @@ zathura_free(zathura_t* zathura) girara_list_iterator_free(zathura->jumplist.cur); } + g_free(zathura->page_cache.cache); + g_free(zathura); } @@ -485,7 +539,8 @@ document_info_open(gpointer data) } if (file != NULL) { - document_open(document_info->zathura, file, document_info->password); + document_open(document_info->zathura, file, document_info->password, + document_info->page_number); g_free(file); } } @@ -495,12 +550,14 @@ document_info_open(gpointer data) } bool -document_open(zathura_t* zathura, const char* path, const char* password) +document_open(zathura_t* zathura, const char* path, const char* password, + int page_number) { if (zathura == NULL || zathura->plugins.manager == NULL || path == NULL) { goto error_out; } + gchar* file_uri = NULL; zathura_error_t error = ZATHURA_ERROR_OK; zathura_document_t* document = zathura_document_open(zathura->plugins.manager, path, password, &error); @@ -527,6 +584,12 @@ document_open(zathura_t* zathura, const char* path, const char* password) const char* file_path = zathura_document_get_path(document); unsigned int number_of_pages = zathura_document_get_number_of_pages(document); + if (number_of_pages == 0) { + girara_notify(zathura->ui.session, GIRARA_WARNING, + _("Document does not contain any pages")); + goto error_free; + } + /* read history file */ zathura_fileinfo_t file_info = { 0, 0, 1, 0, 0, 0, 0, 0 }; bool known_file = zathura_db_get_fileinfo(zathura->database, file_path, &file_info); @@ -543,11 +606,16 @@ document_open(zathura_t* zathura, const char* path, const char* password) } /* check current page number */ - if (file_info.current_page > number_of_pages) { + /* if it wasn't specified on the command-line, get it from file_info */ + if (page_number == ZATHURA_PAGE_NUMBER_UNSPECIFIED) + page_number = file_info.current_page; + if (page_number < 0) + page_number += number_of_pages; + if ((unsigned)page_number > number_of_pages) { girara_warning("document info: '%s' has an invalid page number", file_path); zathura_document_set_current_page_number(document, 0); } else { - zathura_document_set_current_page_number(document, file_info.current_page); + zathura_document_set_current_page_number(document, page_number); } /* check for valid rotation */ @@ -581,10 +649,18 @@ document_open(zathura_t* zathura, const char* path, const char* password) } /* update statusbar */ - girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, file_path); + bool basename_only = false; + girara_setting_get(zathura->ui.session, "statusbar-basename", &basename_only); + if (basename_only == false) { + girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, file_path); + } else { + char* tmp = g_path_get_basename(file_path); + girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, tmp); + g_free(tmp); + } /* install file monitor */ - gchar* file_uri = g_filename_to_uri(file_path, NULL, NULL); + file_uri = g_filename_to_uri(file_path, NULL, NULL); if (file_uri == NULL) { goto error_free; } @@ -690,7 +766,7 @@ document_open(zathura_t* zathura, const char* path, const char* password) zathura_bookmarks_load(zathura, file_path); /* update title */ - bool basename_only = false; + basename_only = false; girara_setting_get(zathura->ui.session, "window-title-basename", &basename_only); if (basename_only == false) { girara_set_window_title(zathura->ui.session, file_path); @@ -714,6 +790,9 @@ document_open(zathura_t* zathura, const char* path, const char* password) cb_view_vadjustment_value_changed(NULL, zathura); } + /* Invalidate all current entries in the page cache */ + zathura_page_cache_invalidate_all(zathura); + return true; error_free: @@ -730,7 +809,8 @@ error_out: } void -document_open_idle(zathura_t* zathura, const char* path, const char* password) +document_open_idle(zathura_t* zathura, const char* path, const char* password, + int page_number) { if (zathura == NULL || path == NULL) { return; @@ -738,9 +818,10 @@ document_open_idle(zathura_t* zathura, const char* path, const char* password) zathura_document_info_t* document_info = g_malloc0(sizeof(zathura_document_info_t)); - document_info->zathura = zathura; - document_info->path = path; - document_info->password = password; + document_info->zathura = zathura; + document_info->path = path; + document_info->password = password; + document_info->page_number = page_number; gdk_threads_add_idle(document_info_open, document_info); } @@ -852,6 +933,7 @@ document_close(zathura_t* zathura, bool keep_monitor) gtk_container_foreach(GTK_CONTAINER(zathura->ui.page_widget), remove_page_from_table, (gpointer) 1); for (unsigned int i = 0; i < zathura_document_get_number_of_pages(zathura->document); i++) { g_object_unref(zathura->pages[i]); + g_object_unref(zathura->pages[i]); // FIXME } free(zathura->pages); zathura->pages = NULL; @@ -927,8 +1009,8 @@ page_set(zathura_t* zathura, unsigned int page_id) GtkAdjustment* view_vadjustment = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); GtkAdjustment* view_hadjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(zathura->ui.session->gtk.view)); - set_adjustment(view_hadjustment, offset.x); - set_adjustment(view_vadjustment, offset.y); + zathura_adjustment_set_value(view_hadjustment, offset.x); + zathura_adjustment_set_value(view_vadjustment, offset.y); statusbar_page_number_update(zathura); @@ -1003,30 +1085,6 @@ page_widget_set_mode(zathura_t* zathura, unsigned int pages_per_row, unsigned in gtk_widget_show_all(zathura->ui.page_widget); } -static -gboolean purge_pages(gpointer data) -{ - zathura_t* zathura = data; - if (zathura == NULL || zathura->document == NULL) { - return TRUE; - } - - int threshold = 0; - girara_setting_get(zathura->ui.session, "page-store-threshold", &threshold); - if (threshold <= 0) { - return TRUE; - } - - girara_debug("purging pages ..."); - unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document); - for (unsigned int page_id = 0; page_id < number_of_pages; page_id++) { - zathura_page_t* page = zathura_document_get_page(zathura->document, page_id); - GtkWidget* page_widget = zathura_page_get_widget(zathura, page); - zathura_page_widget_purge_unused(ZATHURA_PAGE(page_widget), threshold); - } - return TRUE; -} - static gboolean position_set_delayed_impl(gpointer data) { @@ -1036,8 +1094,14 @@ position_set_delayed_impl(gpointer data) GtkAdjustment* vadjustment = gtk_scrolled_window_get_vadjustment(window); GtkAdjustment* hadjustment = gtk_scrolled_window_get_hadjustment(window); - set_adjustment(hadjustment, p->position_x); - set_adjustment(vadjustment, p->position_y); + /* negative values mean: don't set the position */ + if (p->position_x >= 0) { + zathura_adjustment_set_value(hadjustment, p->position_x); + } + + if (p->position_y >= 0) { + zathura_adjustment_set_value(vadjustment, p->position_y); + } g_free(p); @@ -1059,6 +1123,18 @@ position_set_delayed(zathura_t* zathura, double position_x, double position_y) } +bool +zathura_jumplist_has_previous(zathura_t* zathura) +{ + return girara_list_iterator_has_previous(zathura->jumplist.cur); +} + +bool +zathura_jumplist_has_has_next(zathura_t* zathura) +{ + return girara_list_iterator_has_next(zathura->jumplist.cur); +} + zathura_jump_t* zathura_jumplist_current(zathura_t* zathura) { @@ -1152,3 +1228,117 @@ zathura_jumplist_save(zathura_t* zathura) cur->y = gtk_adjustment_get_value(view_vadjustment) / zathura_document_get_scale(zathura->document);; } } + +static bool +zathura_page_cache_is_cached(zathura_t* zathura, unsigned int page_index) +{ + g_return_val_if_fail(zathura != NULL, false); + + unsigned int i; + + if (zathura->page_cache.num_cached_pages != 0) { + for (i = 0; i < zathura->page_cache.size; ++i) { + if (zathura->page_cache.cache[i] >= 0 && page_index == (unsigned int)zathura->page_cache.cache[i]) { + girara_debug("Page %d is a cache hit", page_index + 1); + return true; + } + } + } + + girara_debug("Page %d is a cache miss", page_index + 1); + return false; +} + +static ssize_t +zathura_page_cache_lru_invalidate(zathura_t* zathura) +{ + g_return_val_if_fail(zathura != NULL, -1); + + ssize_t lru_index = 0; + gint64 view_time = 0; + gint64 lru_view_time = G_MAXINT64; + GtkWidget* page_widget; + + for (unsigned int i = 0; i < zathura->page_cache.size; ++i) { + page_widget = zathura_page_get_widget(zathura, zathura_document_get_page(zathura->document, zathura->page_cache.cache[i])); + g_return_val_if_fail(page_widget != NULL, -1); + g_object_get(G_OBJECT(page_widget), "last-view", &view_time, NULL); + + if (view_time < lru_view_time) { + lru_view_time = view_time; + lru_index = i; + } + } + + zathura_page_t* page = zathura_document_get_page(zathura->document, zathura->page_cache.cache[lru_index]); + g_return_val_if_fail(page != NULL, -1); + + page_widget = zathura_page_get_widget(zathura, page); + g_return_val_if_fail(page_widget != NULL, -1); + + zathura_page_widget_update_surface(ZATHURA_PAGE(page_widget), NULL); + girara_debug("Invalidated page %d at cache index %ld", zathura->page_cache.cache[lru_index] + 1, lru_index); + zathura->page_cache.cache[lru_index] = -1; + --zathura->page_cache.num_cached_pages; + + return lru_index; +} + +static bool +zathura_page_cache_is_full(zathura_t* zathura, bool* result) +{ + g_return_val_if_fail(zathura != NULL && result != NULL, false); + + *result = zathura->page_cache.num_cached_pages == zathura->page_cache.size; + + return true; +} + +void +zathura_page_cache_invalidate_all(zathura_t* zathura) +{ + g_return_if_fail(zathura != NULL); + + unsigned int i; + + for (i = 0; i < zathura->page_cache.size; ++i) { + zathura->page_cache.cache[i] = -1; + } + + zathura->page_cache.num_cached_pages = 0; +} + +void +zathura_page_cache_add(zathura_t* zathura, unsigned int page_index) +{ + g_return_if_fail(zathura != NULL); + + zathura_page_t* page = zathura_document_get_page(zathura->document, page_index); + + g_return_if_fail(page != NULL); + + if (zathura_page_cache_is_cached(zathura, page_index)) { + return; + } + + bool full; + + if (zathura_page_cache_is_full(zathura, &full) == false) { + return; + } else if (full == true) { + ssize_t idx = zathura_page_cache_lru_invalidate(zathura); + + if (idx == -1) { + return; + } + + zathura->page_cache.cache[idx] = page_index; + ++zathura->page_cache.num_cached_pages; + girara_debug("Page %d is cached at cache index %ld", page_index + 1, idx); + return; + } + + zathura->page_cache.cache[zathura->page_cache.num_cached_pages++] = page_index; + girara_debug("Page %d is cached at cache index %d", page_index + 1, zathura->page_cache.num_cached_pages - 1); + return; +} diff --git a/zathura.desktop b/zathura.desktop index 64fd6f7..852ebf2 100644 --- a/zathura.desktop +++ b/zathura.desktop @@ -3,15 +3,20 @@ Version=1.0 Type=Application Name=Zathura Comment=A minimalistic document viewer +Comment[ca]=Un visualitzador de documents minimalista Comment[de]=Ein minimalistischer Dokumenten-Betrachter -Comment[fr]=Un visionneur de document minimaliste -Comment[ru]=Минималистичный просмотрщик документов -Comment[tr]=Minimalist bir belge görüntüleyicisi +Comment[el]=Ένας ελαφρύς προβολέας κειμένων +Comment[eo]=Malpeza dokumento spektanto Comment[es_CL]=Un visor de documentos minimalista -Comment[uk_UA]=Легкий переглядач документів +Comment[fr]=Un visionneur de document minimaliste +Comment[he]=מציג מסמכים מינימליסטי +Comment[id_ID]=Pembaca dokumen minimalis Comment[it]=Un visualizzatore di documenti minimalista Comment[pl]=Minimalistyczna przeglądarka dokumentów -Exec=zathura %f +Comment[pt_BR]=Um visualizador de documentos minimalista +Comment[ru]=Минималистичный просмотрщик документов +Comment[tr]=Minimalist bir belge görüntüleyicisi +Comment[uk_UA]=Легкий переглядач документів +Exec=zathura Terminal=false Categories=Office;Viewer; -MimeType=application/pdf;application/postscript;application/eps;application/x-eps;image/eps;image/x-eps;image/vnd.djvu; diff --git a/zathura.h b/zathura.h index 6970063..fd1d626 100644 --- a/zathura.h +++ b/zathura.h @@ -13,6 +13,8 @@ #include #endif +#define ZATHURA_PAGE_CACHE_DEFAULT_SIZE 15 + enum { NEXT, PREVIOUS, LEFT, RIGHT, UP, DOWN, BOTTOM, TOP, HIDE, HIGHLIGHT, DELETE_LAST_WORD, DELETE_LAST_CHAR, DEFAULT, ERROR, WARNING, NEXT_GROUP, PREVIOUS_GROUP, ZOOM_IN, ZOOM_OUT, ZOOM_ORIGINAL, ZOOM_SPECIFIC, FORWARD, @@ -21,6 +23,11 @@ enum { NEXT, PREVIOUS, LEFT, RIGHT, UP, DOWN, BOTTOM, TOP, HIDE, HIGHLIGHT, FULL_DOWN, HALF_LEFT, HALF_RIGHT, FULL_LEFT, FULL_RIGHT, NEXT_CHAR, PREVIOUS_CHAR, DELETE_TO_LINE_START, APPEND_FILEPATH, ROTATE_CW, ROTATE_CCW }; +/* unspecified page number */ +enum { + ZATHURA_PAGE_NUMBER_UNSPECIFIED = INT_MIN +}; + /* forward declaration for types form database.h */ typedef struct _ZathuraDatabase zathura_database_t; @@ -57,11 +64,16 @@ struct zathura_s GdkColor recolor_light_color; /**< Light color for recoloring */ GdkColor highlight_color; /**< Color for highlighting */ GdkColor highlight_color_active; /** Color for highlighting */ + GdkColor render_loading_bg; /**< Background color for render "Loading..." */ + GdkColor render_loading_fg; /**< Foreground color for render "Loading..." */ } colors; GtkWidget *page_widget_alignment; GtkWidget *page_widget; /**< Widget that contains all rendered pages */ GtkWidget *index; /**< Widget to show the index of the document */ + + GtkAdjustment *hadjustment; /**< Tracking hadjustment */ + GtkAdjustment *vadjustment; /**< Tracking vadjustment */ } ui; struct @@ -142,6 +154,15 @@ struct zathura_s gchar* file_path; /**< Save file path */ gchar* password; /**< Save password */ } file_monitor; + + /** + * The page cache + */ + struct { + int* cache; + unsigned int size; + unsigned int num_cached_pages; + } page_cache; }; /** @@ -235,7 +256,8 @@ void zathura_set_argv(zathura_t* zathura, char** argv); * * @return If no error occured true, otherwise false, is returned. */ -bool document_open(zathura_t* zathura, const char* path, const char* password); +bool document_open(zathura_t* zathura, const char* path, const char* password, + int page_number); /** * Opens a file (idle) @@ -244,7 +266,8 @@ bool document_open(zathura_t* zathura, const char* path, const char* password); * @param path The path to the file * @param password The password of the file */ -void document_open_idle(zathura_t* zathura, const char* path, const char* password); +void document_open_idle(zathura_t* zathura, const char* path, + const char* password, int page_number); /** * Save a open file @@ -311,6 +334,22 @@ void page_widget_set_mode(zathura_t* zathura, unsigned int pages_per_row, unsign */ void statusbar_page_number_update(zathura_t* zathura); +/** + * Checks whether current jump has a previous jump + * + * @param zathura The zathura session + * @return true if current jump has a previous jump + */ +bool zathura_jumplist_has_previous(zathura_t* zathura); + +/** + * Checks whether current jump has a next jump + * + * @param zathura The zathura session + * @return true if current jump has a next jump + */ +bool zathura_jumplist_has_next(zathura_t* zathura); + /** * Return current jump in the jumplist * @@ -354,5 +393,12 @@ void zathura_jumplist_add(zathura_t* zathura); */ void zathura_jumplist_append_jump(zathura_t* zathura); +/** + * Add a page to the page cache + * + * @param zathura The zathura session + * @param page_index The index of the page to be cached + */ +void zathura_page_cache_add(zathura_t* zathura, unsigned int page_index); #endif // ZATHURA_H diff --git a/zathurarc.5.rst b/zathurarc.5.rst index ae58bc7..80f571b 100644 --- a/zathurarc.5.rst +++ b/zathurarc.5.rst @@ -375,6 +375,20 @@ Defines the foreground color for the inputbar * Value type: String * Default value: #9FBC00 +notification-bg +^^^^^^^^^^^^^^^^^^^^^ +Defines the background color for a notification + +* Value type: String +* Default value: #FFFFFF + +notification-fg +^^^^^^^^^^^^^^^^^^^^^ +Defines the foreground color for a notification + +* Value type: String +* Default value: #000000 + notification-error-bg ^^^^^^^^^^^^^^^^^^^^^ Defines the background color for an error notification @@ -530,20 +544,16 @@ The page padding defines the gap in pixels between each rendered page. * Value type: Integer * Default value: 1 -page-store-threshold -^^^^^^^^^^^^^^^^^^^^ -Pages that are not visible get unloaded after some time. Every page that has not -been visible for page-store-treshold seconds will be unloaded. +page-cache-size +^^^^^^^^^^^^^^^ +Defines the maximum number of pages that could be kept in the page cache. When +the cache is full and a new page that isn't cached becomes visible, the least +recently viewed page in the cache will be evicted to make room for the new one. +Large values for this variable are NOT recommended, because this will lead to +consuming a significant portion of the system memory. * Value type: Integer -* Default value: 30 - -page-store-interval -^^^^^^^^^^^^^^^^^^^ -Defines the amount of seconds between the check to unload invisible pages. - -* Value type: Integer -* Default value: 30 +* Default value: 15 pages-per-row ^^^^^^^^^^^^^ @@ -594,6 +604,20 @@ Defines if the "Loading..." text should be displayed if a page is rendered. * Value type: Boolean * Default value: true +render-loading-bg +^^^^^^^^^^^^^^^^^ +Defines the background color that is used for the "Loading..." text. + +* Value type: String +* Default value: #FFFFFF + +render-loading-fg +^^^^^^^^^^^^^^^^^ +Defines the foreground color that is used for the "Loading..." text. + +* Value type: String +* Default value: #000000 + scroll-hstep ^^^^^^^^^^^^ Defines the horizontal step size of scrolling by calling the scroll command once @@ -630,6 +654,13 @@ Defines if scrolling by half or full pages stops at page boundaries. * Value type: Boolean * Default value: false +link-hadjust +^^^^^^^^^^^^ +En/Disables aligning to the left internal link targets, for example from the index + +* Value type: Boolean +* Default value: true + search-hadjust ^^^^^^^^^^^^^^ En/Disables horizontally centered search results @@ -644,6 +675,13 @@ Use basename of the file in the window title. * Value type: Boolean * Default value: false +statusbar-basename +^^^^^^^^^^^^^^^^^^ +Use basename of the file in the statusbar. + +* Value type: Boolean +* Default value: false + zoom-center ^^^^^^^^^^^ En/Disables horizontally centered zooming