diff options
31 files changed, 845 insertions, 308 deletions
diff --git a/.travis.yml b/.travis.yml index 0076a548..d65e57dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ after_success: fi' env: - - DISTRO="archlinux:latest" +# - DISTRO="archlinux:latest" - DISTRO="debian:testing" - DISTRO="fedora:latest" - DISTRO="ubuntu:rolling" diff --git a/Makefile.am b/Makefile.am index 719d155d..68950e21 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,6 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} SUBDIRS = \ - po \ cut-n-paste \ data \ libdocument \ @@ -12,6 +11,10 @@ SUBDIRS = \ shell \ help +if USE_NLS + SUBDIRS += po +endif + if ENABLE_TESTS SUBDIRS += test endif @@ -38,7 +41,7 @@ header_DATA = \ atril-view.h \ $(NULL) -# Applications +# Applications EXTRA_DIST = \ $(header_DATA) \ autogen.sh \ @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: atril 1.25.0\n" -"Report-Msgid-Bugs-To: https://mate-desktop.org/\n" -"POT-Creation-Date: 2020-06-22 23:50+0200\n" +"Report-Msgid-Bugs-To: https://github.com/mate-desktop/atril/issues\n" +"POT-Creation-Date: 2021-02-08 15:30+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <[email protected]>\n" "Language-Team: LANGUAGE <[email protected]>\n" @@ -42,7 +42,7 @@ msgstr "" msgid "Can't find an appropriate command to decompress this type of comic book" msgstr "" -#: backend/comics/comics-document.c:540 backend/epub/epub-document.c:632 +#: backend/comics/comics-document.c:540 backend/epub/epub-document.c:642 #: libdocument/ev-document-factory.c:143 libdocument/ev-document-factory.c:286 msgid "Unknown MIME Type" msgstr "" @@ -60,7 +60,7 @@ msgstr "" msgid "No images found in archive %s" msgstr "" -#: backend/comics/comics-document.c:866 backend/epub/epub-document.c:1769 +#: backend/comics/comics-document.c:866 backend/epub/epub-document.c:1779 #, c-format msgid "There was an error deleting “%s”." msgstr "" @@ -96,59 +96,495 @@ msgstr "" msgid "DVI Documents" msgstr "" -#: backend/epub/epub-document.c:649 +#: backend/dvi/mdvi-lib/dviread.c:209 +msgid "unexpected EOF\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:425 +#, c-format +msgid "could not load font `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:479 +#, c-format +msgid "could not reload `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:704 +#, c-format +msgid "%s: unsupported DVI format (version %u)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:864 +msgid "no pages selected\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:897 +#, c-format +msgid "%s: File corrupted, or not a DVI file\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:978 +#, c-format +msgid "%s: vf macro had errors\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:981 +#, c-format +msgid "%s: stack not empty after vf macro\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1006 +#, c-format +msgid "%s: could not reopen file (%s)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1023 +#, c-format +msgid "%s: page %d out of range\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1030 +#, c-format +msgid "%s: bad offset at page %d\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1093 +msgid "stack not empty at end of page\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1250 +msgid "no default font set yet\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1260 +#, c-format +msgid "requested character %d does not exist in `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1333 +msgid "enlarging stack\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1351 +msgid "stack underflow\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1465 backend/dvi/mdvi-lib/dviread.c:1487 +#, c-format +msgid "font %d is not defined\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1504 +msgid "malformed special length\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1531 +#, c-format +msgid "font %d is not defined in postamble\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1543 +#, c-format +msgid "unexpected opcode %d\n" +msgstr "" + +#: backend/dvi/mdvi-lib/dviread.c:1549 +#, c-format +msgid "undefined opcode %d\n" +msgstr "" + +#: backend/dvi/mdvi-lib/font.c:474 +#, c-format +msgid "%s: no fonts defined\n" +msgstr "" + +#: backend/dvi/mdvi-lib/fontmap.c:590 +#, c-format +msgid "%s: %d: [%s] requested encoding `%s' does not match vector `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/fontmap.c:757 +#, c-format +msgid "%s: could not load fontmap\n" +msgstr "" + +#: backend/dvi/mdvi-lib/fontmap.c:771 +#, c-format +msgid "%s: could not set as default encoding\n" +msgstr "" + +#: backend/dvi/mdvi-lib/fontmap.c:850 +#, c-format +msgid "encoding vector `%s' is in use\n" +msgstr "" + +#: backend/dvi/mdvi-lib/gf.c:111 +#, c-format +msgid "GF: invalid opcode %d in character %d\n" +msgstr "" + +#: backend/dvi/mdvi-lib/gf.c:209 +#, c-format +msgid "(gf) Character %d: invalid opcode %d\n" +msgstr "" + +#: backend/dvi/mdvi-lib/gf.c:225 +#, c-format +msgid "(gf) character %d has an incorrect bounding box\n" +msgstr "" + +#: backend/dvi/mdvi-lib/gf.c:288 +#, c-format +msgid "%s: bad checksum (expected %u, found %u)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/gf.c:324 +#, c-format +msgid "%s: junk in postamble\n" +msgstr "" + +#: backend/dvi/mdvi-lib/gf.c:361 +#, c-format +msgid "%s: File corrupted, or not a GF file\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pagesel.c:212 +#, c-format +msgid "invalid page specification `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pagesel.c:232 +msgid "garbage after DVI page specification ignored\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pagesel.c:260 +msgid "more than 10 counters in page specification\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pagesel.c:262 +msgid "garbage after TeX page specification ignored\n" +msgstr "" + +#: backend/dvi/mdvi-lib/paper.c:104 backend/dvi/mdvi-lib/paper.c:111 +msgid "custom" +msgstr "" + +#: backend/dvi/mdvi-lib/pk.c:309 +msgid "Bad PK file: More bits than required\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pk.c:363 +#, c-format +msgid "%s: checksum mismatch (expected %u, got %u)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pk.c:420 +#, c-format +msgid "%s: unexpected preamble\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pk.c:477 +#, c-format +msgid "%s: unexpected charcode (%d)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pk.c:512 +#, c-format +msgid "%s: unexpected end of file (no postamble)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pk.c:518 +msgid "invalid PK file! (junk in postamble)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/pk.c:535 +#, c-format +msgid "%s: File corrupted, or not a PK file\n" +msgstr "" + +#: backend/dvi/mdvi-lib/special.c:241 +#, c-format +msgid "%s: tried to pop top level layer\n" +msgstr "" + +#: backend/dvi/mdvi-lib/sp-epsf.c:150 +#, c-format +msgid "%s: malformed value for key `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/sp-epsf.c:161 +#, c-format +msgid "%s: unknown key `%s' ignored\n" +msgstr "" + +#: backend/dvi/mdvi-lib/sp-epsf.c:166 +#, c-format +msgid "%s: no argument for key `%s', using defaults\n" +msgstr "" + +#: backend/dvi/mdvi-lib/sp-epsf.c:170 +#, c-format +msgid "%s: argument `%s' ignored for key `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/t1.c:187 +msgid "(t1) failed to reset device resolution\n" +msgstr "" + +#: backend/dvi/mdvi-lib/t1.c:215 +#, c-format +msgid "%s: could not encode font\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tfm.c:175 +#, c-format +msgid "%s: Checksum mismatch (got %u, expected %u)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tfmfile.c:91 +#, c-format +msgid "%s: Error reading AFM data\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tfmfile.c:182 +#, c-format +msgid "Warning: TFM file `%s' has suspicious size\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tfmfile.c:232 backend/dvi/mdvi-lib/tfmfile.c:512 +#, c-format +msgid "%s: font coding scheme truncated to 40 bytes\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tfmfile.c:292 backend/dvi/mdvi-lib/tfmfile.c:590 +#, c-format +msgid "%s: File corrupted, or not a TFM file\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:151 +#, c-format +msgid "(tt) %s: could not load face: %s\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:159 +#, c-format +msgid "(tt) %s: could not create face: %s\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:168 +#, c-format +msgid "(tt) %s: could not create glyph: %s\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:201 +#, c-format +msgid "(tt) %s: no acceptable map found, using #0\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:214 +#, c-format +msgid "(tt) %s: could not set resolution: %s\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:221 +#, c-format +msgid "(tt) %s: could not set point size: %s\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:240 +#, c-format +msgid "(tt) %s: could not load PS name table\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:265 +#, c-format +msgid "%s: no encoding vector found, expect bad output\n" +msgstr "" + +#: backend/dvi/mdvi-lib/tt.c:325 +#, c-format +msgid "(tt) %s: no font metric data\n" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:35 +msgid "Ooops!" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:36 +msgid "Aieeeee!!" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:37 +msgid "Ouch!" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:38 +msgid "Houston, we have a problem" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:39 +msgid "3.. 2.. 1.. BOOM!" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:40 +msgid "I'm history" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:41 +msgid "I'm going down" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:42 +msgid "I smell a rat" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:151 +msgid "Crashing" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:161 +#, c-format +msgid "%s: Error: " +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:168 +msgid "Error" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:177 +#, c-format +msgid "%s: Warning: " +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:184 libview/ev-print-operation.c:1238 +msgid "Warning" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:193 +#, c-format +msgid "%s: Fatal: " +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:200 +msgid "Fatal" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:214 +#, c-format +msgid "out of memory allocating %u bytes\n" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:224 +msgid "attempted to reallocate with zero size\n" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:227 +#, c-format +msgid "failed to reallocate %u bytes\n" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:236 +msgid "attempted to callocate 0 members\n" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:238 +#, c-format +msgid "attempted to callocate %u members with size 0\n" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:242 +#, c-format +msgid "failed to allocate %ux%u bytes\n" +msgstr "" + +#: backend/dvi/mdvi-lib/util.c:250 +msgid "attempted to free NULL pointer\n" +msgstr "" + +#: backend/dvi/mdvi-lib/vf.c:82 +#, c-format +msgid "%s: Checksum mismatch (expected %u, got %u)\n" +msgstr "" + +#: backend/dvi/mdvi-lib/vf.c:130 +#, c-format +msgid "(vf) %s: could not load font `%s'\n" +msgstr "" + +#: backend/dvi/mdvi-lib/vf.c:170 +#, c-format +msgid "(vf) %s: unexpected character %d\n" +msgstr "" + +#: backend/dvi/mdvi-lib/vf.c:186 +#, c-format +msgid "(vf) %s: character %d redefined\n" +msgstr "" + +#: backend/dvi/mdvi-lib/vf.c:209 +#, c-format +msgid "(vf) %s: no postamble\n" +msgstr "" + +#: backend/dvi/mdvi-lib/vf.c:235 +#, c-format +msgid "%s: File corrupted, or not a VF file.\n" +msgstr "" + +#: backend/epub/epub-document.c:659 msgid "Not an ePub document" msgstr "" -#: backend/epub/epub-document.c:750 +#: backend/epub/epub-document.c:760 msgid "could not retrieve filename" msgstr "" -#: backend/epub/epub-document.c:778 +#: backend/epub/epub-document.c:788 msgid "could not open archive" msgstr "" -#: backend/epub/epub-document.c:794 backend/epub/epub-document.c:810 +#: backend/epub/epub-document.c:804 backend/epub/epub-document.c:820 msgid "could not extract archive" msgstr "" -#: backend/epub/epub-document.c:842 backend/epub/epub-document.c:925 +#: backend/epub/epub-document.c:852 backend/epub/epub-document.c:935 msgid "could not retrieve container file" msgstr "" -#: backend/epub/epub-document.c:854 +#: backend/epub/epub-document.c:864 msgid "could not open container file" msgstr "" -#: backend/epub/epub-document.c:864 +#: backend/epub/epub-document.c:874 msgid "container file is corrupt" msgstr "" -#: backend/epub/epub-document.c:874 +#: backend/epub/epub-document.c:884 msgid "epub file is invalid or corrupt" msgstr "" -#: backend/epub/epub-document.c:884 +#: backend/epub/epub-document.c:894 msgid "epub file is corrupt, no container" msgstr "" -#: backend/epub/epub-document.c:958 +#: backend/epub/epub-document.c:968 msgid "could not parse content manifest" msgstr "" -#: backend/epub/epub-document.c:967 +#: backend/epub/epub-document.c:977 msgid "content file is invalid" msgstr "" -#: backend/epub/epub-document.c:976 +#: backend/epub/epub-document.c:986 msgid "epub file has no spine" msgstr "" -#: backend/epub/epub-document.c:985 +#: backend/epub/epub-document.c:995 msgid "epub file has no manifest" msgstr "" -#: backend/epub/epub-document.c:1071 +#: backend/epub/epub-document.c:1081 msgid "Could not set up document tree for loading, some files missing" msgstr "" @@ -274,7 +710,7 @@ msgstr "" msgid "All Documents" msgstr "" -#: libdocument/ev-document-factory.c:391 +#: libdocument/ev-document-factory.c:390 msgid "All Files" msgstr "" @@ -381,15 +817,15 @@ msgstr "" msgid "Separator" msgstr "" -#: cut-n-paste/zoom-control/ephy-zoom.h:49 shell/ev-window.c:6859 +#: cut-n-paste/zoom-control/ephy-zoom.h:49 shell/ev-window.c:6861 msgid "Fit Page" msgstr "" -#: cut-n-paste/zoom-control/ephy-zoom.h:50 shell/ev-window.c:6863 +#: cut-n-paste/zoom-control/ephy-zoom.h:50 shell/ev-window.c:6865 msgid "Fit Width" msgstr "" -#: cut-n-paste/zoom-control/ephy-zoom.h:51 shell/ev-window.c:6499 +#: cut-n-paste/zoom-control/ephy-zoom.h:51 shell/ev-window.c:6501 msgid "Expand Window to Fit" msgstr "" @@ -449,16 +885,16 @@ msgstr "" msgid "6400%" msgstr "" -#: data/atril.appdata.xml.in:7 data/atril.desktop.in.in:3 -#: shell/ev-window.c:5446 +#: data/atril.appdata.xml.in.in:7 data/atril.desktop.in.in:3 +#: shell/ev-window.c:5447 msgid "Atril Document Viewer" msgstr "" -#: data/atril.appdata.xml.in:8 +#: data/atril.appdata.xml.in.in:8 msgid "A Document Viewer for the MATE desktop environment" msgstr "" -#: data/atril.appdata.xml.in:10 +#: data/atril.appdata.xml.in.in:10 msgid "" "Atril is a simple multi-page document viewer. It can display and print " "PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI, XPS and Portable " @@ -467,7 +903,7 @@ msgid "" "to the clipboard, hypertext navigation and table-of-contents bookmarks." msgstr "" -#: data/atril.appdata.xml.in:18 +#: data/atril.appdata.xml.in.in:18 msgid "" "Atril is a fork of Evince and part of the MATE Desktop Environment. If you " "would like to know more about MATE and Atril, please visit the project's " @@ -535,7 +971,7 @@ msgstr "" msgid "Print settings file" msgstr "" -#: previewer/ev-previewer.c:107 previewer/ev-previewer.c:141 +#: previewer/ev-previewer.c:107 previewer/ev-previewer.c:143 msgid "MATE Document Previewer" msgstr "" @@ -548,75 +984,75 @@ msgstr "" msgid "The selected printer '%s' could not be found" msgstr "" -#: previewer/ev-previewer-window.c:284 shell/ev-window.c:6460 +#: previewer/ev-previewer-window.c:284 shell/ev-window.c:6462 msgid "_Close" msgstr "" -#: previewer/ev-previewer-window.c:287 shell/ev-window.c:6506 +#: previewer/ev-previewer-window.c:287 shell/ev-window.c:6508 msgid "_Previous Page" msgstr "" -#: previewer/ev-previewer-window.c:288 shell/ev-window.c:6507 +#: previewer/ev-previewer-window.c:288 shell/ev-window.c:6509 msgid "Go to the previous page" msgstr "" -#: previewer/ev-previewer-window.c:290 shell/ev-window.c:6509 +#: previewer/ev-previewer-window.c:290 shell/ev-window.c:6511 msgid "_Next Page" msgstr "" -#: previewer/ev-previewer-window.c:291 shell/ev-window.c:6510 +#: previewer/ev-previewer-window.c:291 shell/ev-window.c:6512 msgid "Go to the next page" msgstr "" -#: previewer/ev-previewer-window.c:293 shell/ev-window.c:6486 +#: previewer/ev-previewer-window.c:293 shell/ev-window.c:6488 msgid "Zoom _In" msgstr "" -#: previewer/ev-previewer-window.c:294 shell/ev-window.c:6487 +#: previewer/ev-previewer-window.c:294 shell/ev-window.c:6489 msgid "Enlarge the document" msgstr "" -#: previewer/ev-previewer-window.c:296 shell/ev-window.c:6489 +#: previewer/ev-previewer-window.c:296 shell/ev-window.c:6491 msgid "Zoom _Out" msgstr "" -#: previewer/ev-previewer-window.c:297 shell/ev-window.c:6490 +#: previewer/ev-previewer-window.c:297 shell/ev-window.c:6492 msgid "Shrink the document" msgstr "" -#: previewer/ev-previewer-window.c:300 shell/ev-window.c:6493 +#: previewer/ev-previewer-window.c:300 shell/ev-window.c:6495 msgid "Reset zoom to 100%" msgstr "" -#: previewer/ev-previewer-window.c:304 libview/ev-print-operation.c:1321 +#: previewer/ev-previewer-window.c:304 libview/ev-print-operation.c:1319 msgid "Print" msgstr "" -#: previewer/ev-previewer-window.c:305 shell/ev-window.c:6456 +#: previewer/ev-previewer-window.c:305 shell/ev-window.c:6458 msgid "Print this document" msgstr "" -#: previewer/ev-previewer-window.c:339 shell/ev-window.c:6612 +#: previewer/ev-previewer-window.c:339 shell/ev-window.c:6614 msgid "Fit Pa_ge" msgstr "" -#: previewer/ev-previewer-window.c:340 shell/ev-window.c:6613 +#: previewer/ev-previewer-window.c:340 shell/ev-window.c:6615 msgid "Make the current document fill the window" msgstr "" -#: previewer/ev-previewer-window.c:342 shell/ev-window.c:6615 +#: previewer/ev-previewer-window.c:342 shell/ev-window.c:6617 msgid "Fit _Width" msgstr "" -#: previewer/ev-previewer-window.c:343 shell/ev-window.c:6616 +#: previewer/ev-previewer-window.c:343 shell/ev-window.c:6618 msgid "Make the current document fill the window width" msgstr "" -#: previewer/ev-previewer-window.c:553 shell/ev-window.c:6769 +#: previewer/ev-previewer-window.c:553 shell/ev-window.c:6771 msgid "Page" msgstr "" -#: previewer/ev-previewer-window.c:554 shell/ev-window.c:6770 +#: previewer/ev-previewer-window.c:554 shell/ev-window.c:6772 msgid "Select Page" msgstr "" @@ -681,7 +1117,7 @@ msgstr "" msgid "Paper Size:" msgstr "" -#: properties/ev-properties-view.c:193 libview/ev-print-operation.c:1906 +#: properties/ev-properties-view.c:193 libview/ev-print-operation.c:1902 msgid "None" msgstr "" @@ -709,14 +1145,23 @@ msgstr "" msgid "%s, Landscape (%s)" msgstr "" -#: properties/libatril-properties-page.caja-extension.desktop.in:5 +#: properties/libatril-properties-page.caja-extension.desktop.in.in:5 msgid "Atril properties" msgstr "" -#: properties/libatril-properties-page.caja-extension.desktop.in:6 +#: properties/libatril-properties-page.caja-extension.desktop.in.in:6 msgid "Shows details for Atril documents" msgstr "" +#: properties/libatril-properties-page.caja-extension.desktop.in.in:10 +msgid "" +"Copyright (C) 2000, 2001 Eazel Inc.\n" +"Copyright (C) 2003 Andrew Sobala <[email protected]>\n" +"Copyright (C) 2005 Bastien Nocera <[email protected]>\n" +"Copyright (C) 2005 Red Hat, Inc\n" +"Copyright (C) 2012–2021 The MATE developers" +msgstr "" + #: libmisc/ev-page-action-widget.c:64 #, c-format msgid "(%d of %d)" @@ -740,35 +1185,31 @@ msgstr "" msgid "Printing page %d of %d…" msgstr "" -#: libview/ev-print-operation.c:1174 +#: libview/ev-print-operation.c:1172 msgid "Printing is not supported on this printer." msgstr "" -#: libview/ev-print-operation.c:1239 +#: libview/ev-print-operation.c:1237 msgid "Invalid page selection" msgstr "" #: libview/ev-print-operation.c:1240 -msgid "Warning" -msgstr "" - -#: libview/ev-print-operation.c:1242 msgid "Your print range selection does not include any pages" msgstr "" -#: libview/ev-print-operation.c:1900 +#: libview/ev-print-operation.c:1896 msgid "Page Scaling:" msgstr "" -#: libview/ev-print-operation.c:1907 +#: libview/ev-print-operation.c:1903 msgid "Shrink to Printable Area" msgstr "" -#: libview/ev-print-operation.c:1908 +#: libview/ev-print-operation.c:1904 msgid "Fit to Printable Area" msgstr "" -#: libview/ev-print-operation.c:1911 +#: libview/ev-print-operation.c:1907 msgid "" "Scale document pages to fit the selected printer page. Select from one of " "the following:\n" @@ -782,31 +1223,36 @@ msgid "" "required to fit the printable area of the printer page.\n" msgstr "" -#: libview/ev-print-operation.c:1923 +#: libview/ev-print-operation.c:1919 msgid "Auto Rotate and Center" msgstr "" -#: libview/ev-print-operation.c:1926 +#: libview/ev-print-operation.c:1922 msgid "" "Rotate printer page orientation of each page to match orientation of each " "document page. Document pages will be centered within the printer page." msgstr "" -#: libview/ev-print-operation.c:1931 +#: libview/ev-print-operation.c:1927 msgid "Select page size using document page size" msgstr "" -#: libview/ev-print-operation.c:1933 +#: libview/ev-print-operation.c:1929 msgid "" "When enabled, each page will be printed on the same size paper as the " "document page." msgstr "" -#: libview/ev-print-operation.c:2015 +#: libview/ev-print-operation.c:2011 msgid "Page Handling" msgstr "" -#: libview/ev-jobs.c:1726 +#: libview/ev-jobs.c:622 +#, c-format +msgid "Failed to render page %d" +msgstr "" + +#: libview/ev-jobs.c:1737 #, c-format msgid "Failed to print page %d: %s" msgstr "" @@ -839,46 +1285,46 @@ msgstr "" msgid "End of presentation. Click to exit." msgstr "" -#: libview/ev-view.c:1905 +#: libview/ev-view.c:1901 msgid "Go to first page" msgstr "" -#: libview/ev-view.c:1907 +#: libview/ev-view.c:1903 msgid "Go to previous page" msgstr "" -#: libview/ev-view.c:1909 +#: libview/ev-view.c:1905 msgid "Go to next page" msgstr "" -#: libview/ev-view.c:1911 +#: libview/ev-view.c:1907 msgid "Go to last page" msgstr "" -#: libview/ev-view.c:1913 +#: libview/ev-view.c:1909 msgid "Go to page" msgstr "" -#: libview/ev-view.c:1915 +#: libview/ev-view.c:1911 msgid "Find" msgstr "" -#: libview/ev-view.c:1943 +#: libview/ev-view.c:1939 #, c-format msgid "Go to page %s" msgstr "" -#: libview/ev-view.c:1949 +#: libview/ev-view.c:1945 #, c-format msgid "Go to %s on file “%s”" msgstr "" -#: libview/ev-view.c:1952 +#: libview/ev-view.c:1948 #, c-format msgid "Go to file “%s”" msgstr "" -#: libview/ev-view.c:1960 +#: libview/ev-view.c:1956 #, c-format msgid "Launch %s" msgstr "" @@ -1033,19 +1479,19 @@ msgstr "" msgid "Remember _forever" msgstr "" -#: shell/ev-properties-dialog.c:62 +#: shell/ev-properties-dialog.c:120 msgid "Properties" msgstr "" -#: shell/ev-properties-dialog.c:94 +#: shell/ev-properties-dialog.c:158 msgid "General" msgstr "" -#: shell/ev-properties-dialog.c:104 +#: shell/ev-properties-dialog.c:168 msgid "Fonts" msgstr "" -#: shell/ev-properties-dialog.c:117 +#: shell/ev-properties-dialog.c:181 msgid "Document License" msgstr "" @@ -1107,8 +1553,8 @@ msgstr "" msgid "_Remove Bookmark" msgstr "" -#: shell/ev-sidebar-bookmarks.c:314 shell/ev-window.c:1014 -#: shell/ev-window.c:5069 +#: shell/ev-sidebar-bookmarks.c:314 shell/ev-window.c:1011 +#: shell/ev-window.c:5070 #, c-format msgid "Page %s" msgstr "" @@ -1141,107 +1587,107 @@ msgstr "" msgid "Thumbnails" msgstr "" -#: shell/ev-window.c:1011 +#: shell/ev-window.c:1008 #, c-format msgid "Page %s — %s" msgstr "" -#: shell/ev-window.c:1171 +#: shell/ev-window.c:1168 msgid "" "Cannot enter presentation mode with ePub documents, use fullscreen mode " "instead." msgstr "" -#: shell/ev-window.c:1777 +#: shell/ev-window.c:1774 msgid "The document contains no pages" msgstr "" -#: shell/ev-window.c:1780 +#: shell/ev-window.c:1777 msgid "The document contains only empty pages" msgstr "" -#: shell/ev-window.c:1819 +#: shell/ev-window.c:1816 msgid "Presentation mode is not supported for ePub documents." msgstr "" -#: shell/ev-window.c:2013 shell/ev-window.c:2181 +#: shell/ev-window.c:2010 shell/ev-window.c:2178 msgid "Unable to open document" msgstr "" -#: shell/ev-window.c:2150 +#: shell/ev-window.c:2147 #, c-format msgid "Loading document from “%s”" msgstr "" -#: shell/ev-window.c:2292 shell/ev-window.c:2583 +#: shell/ev-window.c:2289 shell/ev-window.c:2580 #, c-format msgid "Downloading document (%d%%)" msgstr "" -#: shell/ev-window.c:2325 +#: shell/ev-window.c:2322 msgid "Failed to load remote file." msgstr "" -#: shell/ev-window.c:2527 +#: shell/ev-window.c:2524 #, c-format msgid "Reloading document from %s" msgstr "" -#: shell/ev-window.c:2559 +#: shell/ev-window.c:2556 msgid "Failed to reload document." msgstr "" -#: shell/ev-window.c:2777 +#: shell/ev-window.c:2774 msgid "Open Document" msgstr "" -#: shell/ev-window.c:3056 +#: shell/ev-window.c:3053 #, c-format msgid "Saving document to %s" msgstr "" -#: shell/ev-window.c:3059 +#: shell/ev-window.c:3056 #, c-format msgid "Saving attachment to %s" msgstr "" -#: shell/ev-window.c:3062 +#: shell/ev-window.c:3059 #, c-format msgid "Saving image to %s" msgstr "" -#: shell/ev-window.c:3106 shell/ev-window.c:3206 +#: shell/ev-window.c:3103 shell/ev-window.c:3203 #, c-format msgid "The file could not be saved as “%s”." msgstr "" -#: shell/ev-window.c:3137 +#: shell/ev-window.c:3134 #, c-format msgid "Uploading document (%d%%)" msgstr "" -#: shell/ev-window.c:3141 +#: shell/ev-window.c:3138 #, c-format msgid "Uploading attachment (%d%%)" msgstr "" -#: shell/ev-window.c:3145 +#: shell/ev-window.c:3142 #, c-format msgid "Uploading image (%d%%)" msgstr "" -#: shell/ev-window.c:3258 +#: shell/ev-window.c:3255 msgid "Save As…" msgstr "" -#: shell/ev-window.c:3336 +#: shell/ev-window.c:3333 msgid "Could not send current document" msgstr "" -#: shell/ev-window.c:3586 +#: shell/ev-window.c:3585 #, c-format -msgid "%d pending job in queue" -msgid_plural "%d pending jobs in queue" +msgid "%lu pending job in queue" +msgid_plural "%lu pending jobs in queue" msgstr[0] "" msgstr[1] "" @@ -1271,7 +1717,7 @@ msgstr "" msgid "Close _without Saving" msgstr "" -#: shell/ev-window.c:3910 shell/ev-window.c:6449 +#: shell/ev-window.c:3910 shell/ev-window.c:6451 msgid "_Save As…" msgstr "" @@ -1280,7 +1726,7 @@ msgstr "" msgid "Wait until print job “%s” finishes before closing?" msgstr "" -#: shell/ev-window.c:3985 +#: shell/ev-window.c:3986 #, c-format msgid "There is %d print job active. Wait until print finishes before closing?" msgid_plural "" @@ -1288,54 +1734,54 @@ msgid_plural "" msgstr[0] "" msgstr[1] "" -#: shell/ev-window.c:4000 +#: shell/ev-window.c:4001 msgid "If you close the window, pending print jobs will not be printed." msgstr "" -#: shell/ev-window.c:4004 +#: shell/ev-window.c:4005 msgid "Cancel _print and Close" msgstr "" -#: shell/ev-window.c:4008 +#: shell/ev-window.c:4009 msgid "Close _after Printing" msgstr "" -#: shell/ev-window.c:4405 +#: shell/ev-window.c:4406 msgid "Running in presentation mode" msgstr "" -#: shell/ev-window.c:4472 +#: shell/ev-window.c:4473 msgid "Presentation mode is not supported for ePub documents" msgstr "" -#: shell/ev-window.c:4790 +#: shell/ev-window.c:4791 msgid "Toolbar Editor" msgstr "" -#: shell/ev-window.c:5115 +#: shell/ev-window.c:5116 msgid "There was an error displaying help" msgstr "" -#: shell/ev-window.c:5373 +#: shell/ev-window.c:5374 #, c-format msgid "" "Atril is a simple multi-page document viewer,\n" "powered by SyncTex %s and %s %s." msgstr "" -#: shell/ev-window.c:5376 +#: shell/ev-window.c:5377 msgid "Atril is a simple multi-page document viewer." msgstr "" -#: shell/ev-window.c:5389 +#: shell/ev-window.c:5390 msgid "MATE Documentation Team" msgstr "" -#: shell/ev-window.c:5390 +#: shell/ev-window.c:5391 msgid "GNOME Documentation Team" msgstr "" -#: shell/ev-window.c:5395 +#: shell/ev-window.c:5396 msgid "" "Atril is free software; you can redistribute it and/or modify it under the " "terms of the GNU General Public License as published by the Free Software " @@ -1343,7 +1789,7 @@ msgid "" "version." msgstr "" -#: shell/ev-window.c:5399 +#: shell/ev-window.c:5400 msgid "" "Atril is distributed in the hope that it will be useful, but WITHOUT ANY " "WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS " @@ -1351,415 +1797,415 @@ msgid "" "details." msgstr "" -#: shell/ev-window.c:5403 +#: shell/ev-window.c:5404 msgid "" "You should have received a copy of the GNU General Public License along with " "Atril; if not, write to the Free Software Foundation, Inc., 51 Franklin " "Street, Fifth Floor, Boston, MA 02110-1301 USA" msgstr "" -#: shell/ev-window.c:5448 +#: shell/ev-window.c:5449 msgid "About Atril Document Viewer" msgstr "" -#: shell/ev-window.c:5449 +#: shell/ev-window.c:5450 msgid "" "Copyright © 1996–2009 The Evince authors\n" -"Copyright © 2012–2020 The MATE developers" +"Copyright © 2012–2021 The MATE developers" msgstr "" -#: shell/ev-window.c:5456 +#: shell/ev-window.c:5457 msgid "translator-credits" msgstr "" -#: shell/ev-window.c:5750 +#: shell/ev-window.c:5752 #, c-format msgid "%d found on this page" msgid_plural "%d found on this page" msgstr[0] "" msgstr[1] "" -#: shell/ev-window.c:5755 +#: shell/ev-window.c:5757 msgid "Not found" msgstr "" -#: shell/ev-window.c:5761 +#: shell/ev-window.c:5763 #, c-format msgid "%3d%% remaining to search" msgstr "" -#: shell/ev-window.c:6116 +#: shell/ev-window.c:6118 msgid "Enable caret navigation?" msgstr "" -#: shell/ev-window.c:6118 +#: shell/ev-window.c:6120 msgid "_Enable" msgstr "" -#: shell/ev-window.c:6121 +#: shell/ev-window.c:6123 msgid "" "Pressing F7 turns the caret navigation on or off. This feature places a " "movable cursor in text pages, allowing you to move around and select text " "with your keyboard. Do you want to enable the caret navigation?" msgstr "" -#: shell/ev-window.c:6126 +#: shell/ev-window.c:6128 msgid "Don't show this message again" msgstr "" -#: shell/ev-window.c:6435 +#: shell/ev-window.c:6437 msgid "_File" msgstr "" -#: shell/ev-window.c:6436 +#: shell/ev-window.c:6438 msgid "_Edit" msgstr "" -#: shell/ev-window.c:6437 +#: shell/ev-window.c:6439 msgid "_View" msgstr "" -#: shell/ev-window.c:6438 +#: shell/ev-window.c:6440 msgid "_Go" msgstr "" -#: shell/ev-window.c:6439 +#: shell/ev-window.c:6441 msgid "_Bookmarks" msgstr "" -#: shell/ev-window.c:6440 +#: shell/ev-window.c:6442 msgid "_Help" msgstr "" -#: shell/ev-window.c:6443 shell/ev-window.c:6810 +#: shell/ev-window.c:6445 shell/ev-window.c:6812 msgid "_Open…" msgstr "" -#: shell/ev-window.c:6444 shell/ev-window.c:6811 +#: shell/ev-window.c:6446 shell/ev-window.c:6813 msgid "Open an existing document" msgstr "" -#: shell/ev-window.c:6446 +#: shell/ev-window.c:6448 msgid "Op_en a Copy" msgstr "" -#: shell/ev-window.c:6447 +#: shell/ev-window.c:6449 msgid "Open a copy of the current document in a new window" msgstr "" -#: shell/ev-window.c:6450 +#: shell/ev-window.c:6452 msgid "Save a copy of the current document" msgstr "" -#: shell/ev-window.c:6452 +#: shell/ev-window.c:6454 msgid "Send _To..." msgstr "" -#: shell/ev-window.c:6453 +#: shell/ev-window.c:6455 msgid "Send current document by mail, instant message..." msgstr "" -#: shell/ev-window.c:6455 +#: shell/ev-window.c:6457 msgid "_Print…" msgstr "" -#: shell/ev-window.c:6458 +#: shell/ev-window.c:6460 msgid "P_roperties" msgstr "" -#: shell/ev-window.c:6464 +#: shell/ev-window.c:6466 msgid "_Copy" msgstr "" -#: shell/ev-window.c:6466 +#: shell/ev-window.c:6468 msgid "Select _All" msgstr "" -#: shell/ev-window.c:6468 +#: shell/ev-window.c:6470 msgid "_Find…" msgstr "" -#: shell/ev-window.c:6469 +#: shell/ev-window.c:6471 msgid "Find a word or phrase in the document" msgstr "" -#: shell/ev-window.c:6471 +#: shell/ev-window.c:6473 msgid "Find Ne_xt" msgstr "" -#: shell/ev-window.c:6473 +#: shell/ev-window.c:6475 msgid "Find Pre_vious" msgstr "" -#: shell/ev-window.c:6475 +#: shell/ev-window.c:6477 msgid "T_oolbar" msgstr "" -#: shell/ev-window.c:6477 +#: shell/ev-window.c:6479 msgid "Rotate _Left" msgstr "" -#: shell/ev-window.c:6479 +#: shell/ev-window.c:6481 msgid "Rotate _Right" msgstr "" -#: shell/ev-window.c:6481 +#: shell/ev-window.c:6483 msgid "Save Current Settings as _Default" msgstr "" -#: shell/ev-window.c:6492 +#: shell/ev-window.c:6494 msgid "_Reset Zoom" msgstr "" -#: shell/ev-window.c:6495 +#: shell/ev-window.c:6497 msgid "_Reload" msgstr "" -#: shell/ev-window.c:6496 +#: shell/ev-window.c:6498 msgid "Reload the document" msgstr "" -#: shell/ev-window.c:6498 +#: shell/ev-window.c:6500 msgid "_Expand Window to Fit" msgstr "" -#: shell/ev-window.c:6502 +#: shell/ev-window.c:6504 msgid "Auto_scroll" msgstr "" -#: shell/ev-window.c:6512 +#: shell/ev-window.c:6514 msgid "_First Page" msgstr "" -#: shell/ev-window.c:6513 +#: shell/ev-window.c:6515 msgid "Go to the first page" msgstr "" -#: shell/ev-window.c:6515 +#: shell/ev-window.c:6517 msgid "_Last Page" msgstr "" -#: shell/ev-window.c:6516 +#: shell/ev-window.c:6518 msgid "Go to the last page" msgstr "" -#: shell/ev-window.c:6520 +#: shell/ev-window.c:6522 msgid "_Add Bookmark" msgstr "" -#: shell/ev-window.c:6521 +#: shell/ev-window.c:6523 msgid "Add a bookmark for the current page" msgstr "" -#: shell/ev-window.c:6525 +#: shell/ev-window.c:6527 msgid "_Contents" msgstr "" -#: shell/ev-window.c:6528 +#: shell/ev-window.c:6530 msgid "_About" msgstr "" -#: shell/ev-window.c:6532 +#: shell/ev-window.c:6534 msgid "Leave Fullscreen" msgstr "" -#: shell/ev-window.c:6533 +#: shell/ev-window.c:6535 msgid "Leave fullscreen mode" msgstr "" -#: shell/ev-window.c:6535 +#: shell/ev-window.c:6537 msgid "Start Presentation" msgstr "" -#: shell/ev-window.c:6536 +#: shell/ev-window.c:6538 msgid "Start a presentation" msgstr "" -#: shell/ev-window.c:6591 +#: shell/ev-window.c:6593 msgid "_Toolbar" msgstr "" -#: shell/ev-window.c:6592 +#: shell/ev-window.c:6594 msgid "Show or hide the toolbar" msgstr "" -#: shell/ev-window.c:6594 +#: shell/ev-window.c:6596 msgid "Side _Pane" msgstr "" -#: shell/ev-window.c:6595 +#: shell/ev-window.c:6597 msgid "Show or hide the side pane" msgstr "" -#: shell/ev-window.c:6597 +#: shell/ev-window.c:6599 msgid "_Continuous" msgstr "" -#: shell/ev-window.c:6598 +#: shell/ev-window.c:6600 msgid "Show the entire document" msgstr "" -#: shell/ev-window.c:6600 +#: shell/ev-window.c:6602 msgid "_Dual" msgstr "" -#: shell/ev-window.c:6601 +#: shell/ev-window.c:6603 msgid "Show two pages at once" msgstr "" -#: shell/ev-window.c:6603 +#: shell/ev-window.c:6605 msgid "_Odd pages left" msgstr "" -#: shell/ev-window.c:6604 +#: shell/ev-window.c:6606 msgid "Show odd pages on the left in dual mode" msgstr "" -#: shell/ev-window.c:6606 +#: shell/ev-window.c:6608 msgid "_Fullscreen" msgstr "" -#: shell/ev-window.c:6607 +#: shell/ev-window.c:6609 msgid "Expand the window to fill the screen" msgstr "" -#: shell/ev-window.c:6609 +#: shell/ev-window.c:6611 msgid "Pre_sentation" msgstr "" -#: shell/ev-window.c:6610 +#: shell/ev-window.c:6612 msgid "Run document as a presentation" msgstr "" -#: shell/ev-window.c:6618 +#: shell/ev-window.c:6620 msgid "Inverted _Colors" msgstr "" -#: shell/ev-window.c:6619 +#: shell/ev-window.c:6621 msgid "Show page contents with the colors inverted" msgstr "" -#: shell/ev-window.c:6621 +#: shell/ev-window.c:6623 msgid "Caret _Navigation" msgstr "" -#: shell/ev-window.c:6622 +#: shell/ev-window.c:6624 msgid "Activate or disable caret-navigation" msgstr "" -#: shell/ev-window.c:6630 +#: shell/ev-window.c:6632 msgid "_Open Link" msgstr "" -#: shell/ev-window.c:6632 +#: shell/ev-window.c:6634 msgid "_Go To" msgstr "" -#: shell/ev-window.c:6634 +#: shell/ev-window.c:6636 msgid "Open in New _Window" msgstr "" -#: shell/ev-window.c:6636 +#: shell/ev-window.c:6638 msgid "_Copy Link Address" msgstr "" -#: shell/ev-window.c:6638 +#: shell/ev-window.c:6640 msgid "_Save Image As…" msgstr "" -#: shell/ev-window.c:6640 +#: shell/ev-window.c:6642 msgid "Copy _Image" msgstr "" -#: shell/ev-window.c:6642 +#: shell/ev-window.c:6644 msgid "Annotation Properties…" msgstr "" -#: shell/ev-window.c:6644 +#: shell/ev-window.c:6646 msgid "Remove Annot…" msgstr "" -#: shell/ev-window.c:6649 +#: shell/ev-window.c:6651 msgid "_Open Attachment" msgstr "" -#: shell/ev-window.c:6651 +#: shell/ev-window.c:6653 msgid "_Save Attachment As…" msgstr "" -#: shell/ev-window.c:6784 +#: shell/ev-window.c:6786 msgid "Zoom" msgstr "" -#: shell/ev-window.c:6786 +#: shell/ev-window.c:6788 msgid "Adjust the zoom level" msgstr "" -#: shell/ev-window.c:6796 +#: shell/ev-window.c:6798 msgid "Navigation" msgstr "" -#: shell/ev-window.c:6798 +#: shell/ev-window.c:6800 msgid "Back" msgstr "" -#: shell/ev-window.c:6801 +#: shell/ev-window.c:6803 msgid "Move across visited pages" msgstr "" -#: shell/ev-window.c:6832 +#: shell/ev-window.c:6834 msgid "Send To" msgstr "" -#: shell/ev-window.c:6838 +#: shell/ev-window.c:6840 msgid "Previous" msgstr "" -#: shell/ev-window.c:6843 +#: shell/ev-window.c:6845 msgid "Next" msgstr "" -#: shell/ev-window.c:6847 +#: shell/ev-window.c:6849 msgid "Zoom In" msgstr "" -#: shell/ev-window.c:6851 +#: shell/ev-window.c:6853 msgid "Zoom Out" msgstr "" -#: shell/ev-window.c:6855 +#: shell/ev-window.c:6857 msgid "Reset Zoom" msgstr "" -#: shell/ev-window.c:6999 shell/ev-window.c:7015 +#: shell/ev-window.c:7001 shell/ev-window.c:7017 msgid "Unable to launch external application." msgstr "" -#: shell/ev-window.c:7072 +#: shell/ev-window.c:7074 msgid "Unable to open external link" msgstr "" -#: shell/ev-window.c:7266 +#: shell/ev-window.c:7268 msgid "Couldn't find appropriate format to save image" msgstr "" -#: shell/ev-window.c:7298 +#: shell/ev-window.c:7300 msgid "The image could not be saved." msgstr "" -#: shell/ev-window.c:7330 +#: shell/ev-window.c:7332 msgid "Save Image" msgstr "" -#: shell/ev-window.c:7468 +#: shell/ev-window.c:7470 msgid "Unable to open attachment" msgstr "" -#: shell/ev-window.c:7524 +#: shell/ev-window.c:7526 msgid "The attachment could not be saved." msgstr "" -#: shell/ev-window.c:7569 +#: shell/ev-window.c:7571 msgid "Save Attachment" msgstr "" @@ -1772,7 +2218,7 @@ msgstr "" msgid "By extension" msgstr "" -#: shell/main.c:58 shell/main.c:238 +#: shell/main.c:58 shell/main.c:236 msgid "MATE Document Viewer" msgstr "" diff --git a/backend/comics/Makefile.am b/backend/comics/Makefile.am index 49821093..b27f9b85 100644 --- a/backend/comics/Makefile.am +++ b/backend/comics/Makefile.am @@ -23,7 +23,11 @@ libcomicsdocument_la_LIBADD = \ backend_in_files = comicsdocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/backend/djvu/Makefile.am b/backend/djvu/Makefile.am index 1f28ae76..a25134e8 100644 --- a/backend/djvu/Makefile.am +++ b/backend/djvu/Makefile.am @@ -28,7 +28,11 @@ libdjvudocument_la_LIBADD = \ backend_in_files = djvudocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/backend/dvi/Makefile.am b/backend/dvi/Makefile.am index c94c10ad..26571c6f 100644 --- a/backend/dvi/Makefile.am +++ b/backend/dvi/Makefile.am @@ -36,7 +36,11 @@ endif backend_in_files = dvidocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/backend/dvi/mdvi-lib/Makefile.am b/backend/dvi/mdvi-lib/Makefile.am index 5edcdd03..e41b10bc 100644 --- a/backend/dvi/mdvi-lib/Makefile.am +++ b/backend/dvi/mdvi-lib/Makefile.am @@ -37,7 +37,9 @@ libmdvi_la_SOURCES = \ tfmfile.c \ tt.c \ util.c \ - vf.c + vf.c +libmdvi_la_LIBADD = $(GLIB_LIBS) +libmdvi_la_CFLAGS = $(GLIB_CFLAGS) -include $(top_srcdir)/git.mk diff --git a/backend/dvi/mdvi-lib/dviread.c b/backend/dvi/mdvi-lib/dviread.c index 44005117..dbb4abbb 100644 --- a/backend/dvi/mdvi-lib/dviread.c +++ b/backend/dvi/mdvi-lib/dviread.c @@ -614,8 +614,6 @@ int mdvi_configure(DviContext *dvi, DviParamCode option, ...) return -1; if(np.mag <= 0.0) return -1; - if(np.density < 0) - return -1; if(np.hshrink < 1 || np.vshrink < 1) return -1; if(np.hdrift < 0 || np.vdrift < 0) diff --git a/backend/dvi/mdvi-lib/private.h b/backend/dvi/mdvi-lib/private.h index 9f89dc70..9bb89e13 100644 --- a/backend/dvi/mdvi-lib/private.h +++ b/backend/dvi/mdvi-lib/private.h @@ -16,8 +16,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _MDVI_PRIVATE_H -#define _MDVI_PRIVATE_H 1 +#include <config.h> +#include <glib/gi18n-lib.h> + +#define _MDVI_PRIVATE_H 1 #define HAVE_PROTOTYPES 1 #if STDC_HEADERS @@ -45,15 +48,6 @@ #define SKIPSP(p) while(ISSP(p)) p++ #define SKIPNSP(p) while(*(p) && !ISSP(p)) p++ -#ifdef ENABLE_NLS -#include <libintl.h> -#define _(x) gettext(x) -#define _G(x) x -#else -#define _(x) x -#define _G(x) x -#endif /* ENABLE_NLS */ - #if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2 #define _BREAKPOINT() do { __asm__ __volatile__ ("int $03"); } while(0) #elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2 diff --git a/backend/dvi/mdvi-lib/util.c b/backend/dvi/mdvi-lib/util.c index 15b53f13..feb55ee8 100644 --- a/backend/dvi/mdvi-lib/util.c +++ b/backend/dvi/mdvi-lib/util.c @@ -17,6 +17,8 @@ */ #include <config.h> +#include <glib/gi18n-lib.h> + #include <stdio.h> #include <stdlib.h> #include <stdarg.h> @@ -30,14 +32,14 @@ #include "private.h" static char *const messages[] = { - _G("Ooops!"), - _G("Aieeeee!!"), - _G("Ouch!"), - _G("Houston, we have a problem"), - _G("3.. 2.. 1.. BOOM!"), - _G("I'm history"), - _G("I'm going down"), - _G("I smell a rat") + N_("Ooops!"), + N_("Aieeeee!!"), + N_("Ouch!"), + N_("Houston, we have a problem"), + N_("3.. 2.. 1.. BOOM!"), + N_("I'm history"), + N_("I'm going down"), + N_("I smell a rat") }; #define NMSGS (sizeof(messages) / sizeof(char *)) @@ -139,7 +141,7 @@ void mdvi_crash(const char *format, ...) va_start(ap, format); fprintf(stderr, "%s: %s: ", program_name, - gettext(messages[(int)time(NULL) % NMSGS])); + _(messages[(int)time(NULL) % NMSGS])); vfprintf(stderr, format, ap); #ifndef __GNUC__ /* let's be portable */ diff --git a/backend/epub/Makefile.am b/backend/epub/Makefile.am index 9eca6519..e1dee6ca 100644 --- a/backend/epub/Makefile.am +++ b/backend/epub/Makefile.am @@ -15,7 +15,7 @@ backend_LTLIBRARIES = libepubdocument.la libepubdocument_la_SOURCES = \ epub-document.c \ - epub-document.h + epub-document.h libepubdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libepubdocument_la_LIBADD = \ @@ -29,7 +29,11 @@ backend_in_files = epubdocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/backend/pdf/Makefile.am b/backend/pdf/Makefile.am index e51dfdca..4934a31d 100644 --- a/backend/pdf/Makefile.am +++ b/backend/pdf/Makefile.am @@ -30,6 +30,10 @@ EXTRA_DIST = $(backend_in_files) CLEANFILES = $(backend_DATA) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif -include $(top_srcdir)/git.mk diff --git a/backend/pixbuf/Makefile.am b/backend/pixbuf/Makefile.am index 194c6be5..2c9a742b 100644 --- a/backend/pixbuf/Makefile.am +++ b/backend/pixbuf/Makefile.am @@ -21,7 +21,11 @@ libpixbufdocument_la_LIBADD = \ backend_in_files = pixbufdocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/backend/ps/Makefile.am b/backend/ps/Makefile.am index 0cac11ff..7e431376 100644 --- a/backend/ps/Makefile.am +++ b/backend/ps/Makefile.am @@ -24,7 +24,11 @@ backend_in_files = psdocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/backend/tiff/Makefile.am b/backend/tiff/Makefile.am index 1be66eca..5ceaa69c 100644 --- a/backend/tiff/Makefile.am +++ b/backend/tiff/Makefile.am @@ -24,7 +24,11 @@ libtiffdocument_la_LIBADD = \ backend_in_files = tiffdocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/backend/xps/Makefile.am b/backend/xps/Makefile.am index b0be0664..b2b2e5c7 100644 --- a/backend/xps/Makefile.am +++ b/backend/xps/Makefile.am @@ -22,7 +22,11 @@ libxpsdocument_la_LIBADD = \ backend_in_files = xpsdocument.atril-backend.desktop.in backend_DATA = $(backend_in_files:.atril-backend.desktop.in=.atril-backend) $(backend_DATA): $(backend_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword=TypeDescription --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif EXTRA_DIST = $(backend_in_files) diff --git a/configure.ac b/configure.ac index 8a57e361..05ac3a24 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,13 @@ m4_define([ev_binary_version], [ev_document_lt_current]) # ***************************************************************************** AC_PREREQ([2.57]) -AC_INIT([atril], [ev_version], [https://mate-desktop.org/], [atril]) + +AC_INIT([atril], + [ev_version], + [https://github.com/mate-desktop/atril/issues], + [atril], + [https://mate-desktop.org]) + AM_INIT_AUTOMAKE([1.10 foreign tar-ustar dist-xz no-dist-gzip check-news]) AC_CONFIG_HEADERS([config.h]) @@ -68,11 +74,12 @@ dnl FIXME: remove this when required gtk+ >= 2.19.7 DISABLE_DEPRECATED= AC_SUBST([DISABLE_DEPRECATED]) +AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION([0.19.8]) AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8]) -AM_GNU_GETTEXT([external]) +AM_CONDITIONAL([USE_NLS], [test "x${USE_NLS}" = "xyes"]) -GETTEXT_PACKAGE=atril +GETTEXT_PACKAGE=AC_PACKAGE_NAME AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package]) @@ -105,6 +112,7 @@ dnl Check dependencies AC_SEARCH_LIBS([hypot],[m]) +PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) PKG_CHECK_MODULES(LIBDOCUMENT, gtk+-3.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED) PKG_CHECK_MODULES(LIBVIEW, gtk+-3.0 >= $GTK_REQUIRED gail-3.0 >= $GTK_REQUIRED gthread-2.0 gio-2.0 >= $GLIB_REQUIRED) PKG_CHECK_MODULES(BACKEND, cairo >= $CAIRO_REQUIRED gtk+-3.0 >= $GTK_REQUIRED) @@ -113,6 +121,9 @@ PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GLIB_REQUIRED) PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-3.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 x11]) +AC_SUBST(GLIB_CFLAGS) +AC_SUBST(GLIB_LIBS) + # *************** # Build utilities # *************** @@ -717,6 +728,7 @@ cut-n-paste/smclient/Makefile cut-n-paste/smclient/libegg/Makefile cut-n-paste/toolbar-editor/Makefile cut-n-paste/zoom-control/Makefile +data/atril.appdata.xml.in data/atril.desktop.in data/Makefile data/icons/Makefile @@ -772,6 +784,9 @@ AC_OUTPUT echo " Configure summary: + ${PACKAGE_STRING} + `echo $PACKAGE_STRING | sed "s/./=/g"` + prefix..............: ${prefix} compiler............: ${CC} cflags..............: ${CFLAGS} @@ -786,6 +801,7 @@ Configure summary: Gtk-Doc Support.....: $enable_gtk_doc Debug mode..........: $enable_debug GObj. Introspection.: $enable_introspection + Use NLS.............: ${USE_NLS} Tests...............: $enable_tests PDF Backend.........: $enable_pdf diff --git a/data/Makefile.am b/data/Makefile.am index d357c793..f924481b 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -14,24 +14,27 @@ man_MANS=atril.1 # uidir = $(pkgdatadir) -ui_DATA = \ +ui_DATA = \ hand-open.png # # Desktop file # -DESKTOP_IN_FILES = atril.desktop.in -DESKTOP_FILES = $(DESKTOP_IN_FILES:.desktop.in=.desktop) - desktopdir = $(datadir)/applications -desktop_DATA = $(DESKTOP_FILES) -$(desktop_DATA): $(DESKTOP_IN_FILES) +desktop_in_files = atril.desktop.in +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) +$(desktop_DATA): $(desktop_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif # # DBus servide file # + if ENABLE_DBUS servicedir = $(datadir)/dbus-1/services service_in_files = org.mate.atril.Daemon.service.in @@ -44,15 +47,22 @@ endif # # App data file # + appdatadir = $(datadir)/metainfo -appdata_in_files = atril.appdata.xml.in +appdata_in_in_files = atril.appdata.xml.in.in +appdata_in_files = $(appdata_in_in_files:.appdata.xml.in.in=.appdata.xml.in) appdata_DATA = $(appdata_in_files:.xml.in=.xml) $(appdata_DATA): $(appdata_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif # # GSettings schema # + gsettings_SCHEMAS = org.mate.Atril.gschema.xml .PRECIOUS: $(gsettings_SCHEMAS) @@ -60,7 +70,6 @@ gsettings_SCHEMAS = org.mate.Atril.gschema.xml # include the appropriate makefile rules for schema handling - # # GTK icon cache # @@ -79,18 +88,18 @@ update-icon-cache: echo "*** $(gtk_update_icon_cache)"; \ fi - # # Extra files to be included in the tarball # EXTRA_DIST = \ - $(ui_DATA) \ - $(DESKTOP_IN_FILES) \ - $(appdata_in_files) \ + $(appdata_in_in_files) \ + $(desktop_in_files) \ $(gsettings_SCHEMAS) \ - org.mate.atril.Daemon.service.in \ $(man_MANS) \ + $(service_in_files) \ + $(ui_DATA) \ + org.mate.atril.Daemon.service.in \ $(NULL) # @@ -98,10 +107,13 @@ EXTRA_DIST = \ # CLEANFILES = \ - atril.appdata.xml + $(appdata_DATA) \ + $(desktop_DATA) \ + $(service_DATA) \ + $(NULL) DISTCLEANFILES = \ - $(DESKTOP_FILES) \ - $(service_DATA) + $(appdata_in_files) \ + $(NULL) -include $(top_srcdir)/git.mk diff --git a/data/atril.appdata.xml.in b/data/atril.appdata.xml.in.in index c54aee98..963e6d84 100644 --- a/data/atril.appdata.xml.in +++ b/data/atril.appdata.xml.in.in @@ -38,7 +38,7 @@ </image> </screenshot> </screenshots> - <url type="homepage">https://mate-desktop.org</url> + <url type="homepage">@[email protected]</url> <updatecontact>[email protected]</updatecontact> <project_group>MATE</project_group> </component> diff --git a/help/Makefile.am b/help/Makefile.am index a711b85e..7e0f9fc3 100644 --- a/help/Makefile.am +++ b/help/Makefile.am @@ -7,9 +7,13 @@ HELP_FILES = index.docbook legal.xml HELP_MEDIA = figures/atril_start_window.png # Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr +if USE_NLS IGNORE_HELP_LINGUAS = HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \ $(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \ $(subst /,,$(dir $(wildcard */*.po))) ) +else +HELP_LINGUAS = +endif -include $(top_srcdir)/git.mk diff --git a/help/atril.pot b/help/atril.pot index 9f18b9ec..1b1ffb26 100644 --- a/help/atril.pot +++ b/help/atril.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2020-01-10 10:49+0100\n" +"POT-Creation-Date: 2021-01-16 10:50+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <[email protected]>\n" "Language-Team: LANGUAGE <[email protected]>\n" @@ -26,7 +26,7 @@ msgstr "" #. (itstool) path: articleinfo/copyright #: C/index.docbook:32 -msgid "<year>2020</year> <holder>MATE Documentation Project</holder>" +msgid "<year>2021</year> <holder>MATE Documentation Project</holder>" msgstr "" #. (itstool) path: articleinfo/copyright diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h index 7fb1bf2f..67f53abb 100644 --- a/libdocument/ev-document.h +++ b/libdocument/ev-document.h @@ -27,6 +27,9 @@ #ifndef EV_DOCUMENT_H #define EV_DOCUMENT_H +#include <config.h> +#include <glib/gi18n-lib.h> + #include <glib-object.h> #include <glib.h> #include <gmodule.h> @@ -277,10 +280,6 @@ register_atril_backend (GTypeModule *module) \ (GInstanceInitFunc) backend_name##_init \ }; \ \ - /* Initialise the i18n stuff */ \ - bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); \ - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); \ - \ g_define_type_id = g_type_module_register_type (module, \ EV_TYPE_DOCUMENT, \ #BackendName, \ diff --git a/libdocument/ev-init.c b/libdocument/ev-init.c index 15cb555e..21aca668 100644 --- a/libdocument/ev-init.c +++ b/libdocument/ev-init.c @@ -38,8 +38,7 @@ ev_get_locale_dir (void) /** * ev_init: * - * Initializes the atril document library, and binds the atril - * gettext domain. + * Initializes the atril document library. * * You must call this before calling any other function in the atril * document library. @@ -54,10 +53,6 @@ ev_init (void) if (ev_init_count++ > 0) return have_backends; - /* set up translation catalog */ - bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir ()); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - _ev_debug_init (); _ev_file_helpers_init (); have_backends = _ev_backends_manager_init (); diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c index 0bcfe54d..c525e51f 100644 --- a/libview/ev-view-presentation.c +++ b/libview/ev-view-presentation.c @@ -425,7 +425,7 @@ ev_view_presentation_update_current_page (EvViewPresentation *pview, { gint jump; - if (page < 0 || page >= ev_document_get_n_pages (pview->document)) + if (page >= ev_document_get_n_pages (pview->document)) return; ev_view_presentation_animation_cancel (pview); diff --git a/po/Makevars b/po/Makevars index f32fa197..8a3d336c 100644 --- a/po/Makevars +++ b/po/Makevars @@ -8,7 +8,7 @@ subdir = po top_builddir = .. # These options get passed to xgettext. -XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --keyword=Description --keyword=TypeDescription --add-comments=Translators: +XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --keyword=Description --keyword=TypeDescription --keyword=Copyright --add-comments=Translators: # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding @@ -25,7 +25,7 @@ COPYRIGHT_HOLDER = MATE Desktop Environment team # Possible values are "yes", "no", or empty. If it is empty, try to # detect it automatically by scanning the files in $(top_srcdir) for # "GNU packagename" string. -PACKAGE_GNU = +PACKAGE_GNU = no # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: diff --git a/po/POTFILES.in b/po/POTFILES.in index 22e3e78a..02b9435c 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -6,6 +6,21 @@ backend/djvu/djvu-document.c backend/djvu/djvudocument.atril-backend.desktop.in backend/dvi/dvi-document.c backend/dvi/dvidocument.atril-backend.desktop.in +backend/dvi/mdvi-lib/dviread.c +backend/dvi/mdvi-lib/font.c +backend/dvi/mdvi-lib/fontmap.c +backend/dvi/mdvi-lib/gf.c +backend/dvi/mdvi-lib/pagesel.c +backend/dvi/mdvi-lib/paper.c +backend/dvi/mdvi-lib/pk.c +backend/dvi/mdvi-lib/special.c +backend/dvi/mdvi-lib/sp-epsf.c +backend/dvi/mdvi-lib/t1.c +backend/dvi/mdvi-lib/tfm.c +backend/dvi/mdvi-lib/tfmfile.c +backend/dvi/mdvi-lib/tt.c +backend/dvi/mdvi-lib/util.c +backend/dvi/mdvi-lib/vf.c backend/epub/epub-document.c backend/epub/epubdocument.atril-backend.desktop.in backend/pdf/ev-poppler.cc @@ -24,14 +39,14 @@ cut-n-paste/smclient/libegg/eggsmclient.c cut-n-paste/toolbar-editor/egg-editable-toolbar.c cut-n-paste/toolbar-editor/egg-toolbar-editor.c cut-n-paste/zoom-control/ephy-zoom.h -data/atril.appdata.xml.in +data/atril.appdata.xml.in.in data/atril.desktop.in.in data/org.mate.Atril.gschema.xml previewer/ev-previewer.c previewer/ev-previewer-window.c properties/ev-properties-main.c properties/ev-properties-view.c -properties/libatril-properties-page.caja-extension.desktop.in +properties/libatril-properties-page.caja-extension.desktop.in.in libmisc/ev-page-action.c libmisc/ev-page-action-widget.c libview/ev-print-operation.c diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c index e96db773..22c7ce4c 100644 --- a/previewer/ev-previewer.c +++ b/previewer/ev-previewer.c @@ -102,10 +102,12 @@ main (gint argc, gchar **argv) bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir()); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#endif +#endif /* ENABLE_NLS */ context = g_option_context_new (_("MATE Document Previewer")); +#ifdef ENABLE_NLS g_option_context_set_translation_domain (context, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_option_context_add_main_entries (context, goption_options, GETTEXT_PACKAGE); g_option_context_add_group (context, gtk_get_option_group (TRUE)); diff --git a/properties/Makefile.am b/properties/Makefile.am index a3cb40fb..5db27bc8 100644 --- a/properties/Makefile.am +++ b/properties/Makefile.am @@ -4,7 +4,7 @@ AM_CPPFLAGS= \ -I$(top_srcdir) \ -I$(top_builddir) \ $(FRONTEND_CFLAGS) \ - $(CAJA_CFLAGS) \ + $(CAJA_CFLAGS) \ $(DISABLE_DEPRECATED) \ $(WARN_CFLAGS) @@ -19,7 +19,7 @@ if ENABLE_CAJA cajaextension_LTLIBRARIES = libatril-properties-page.la libatril_properties_page_la_CFLAGS = -I$(top_srcdir) -libatril_properties_page_la_SOURCES = \ +libatril_properties_page_la_SOURCES = \ ev-properties-main.c libatril_properties_page_la_LIBADD = \ @@ -31,13 +31,19 @@ libatril_properties_page_la_LIBADD = \ libatril_properties_page_la_LDFLAGS = -module -avoid-version -no-undefined extensiondir = $(datadir)/caja/extensions -extension_in_files = libatril-properties-page.caja-extension.desktop.in +extension_in_in_files = libatril-properties-page.caja-extension.desktop.in.in +extension_in_files = $(extension_in_in_files:.caja-extension.desktop.in.in=.caja-extension.desktop.in) extension_DATA = $(extension_in_files:.caja-extension.desktop.in=.caja-extension) $(extension_DATA): $(extension_in_files) - $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Description --template $< -d $(top_srcdir)/po -o [email protected] +if USE_NLS + $(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Copyright --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o [email protected] +else + $(AM_V_GEN) cp -f $< [email protected] +endif -EXTRA_DIST = $(extension_in_files) +EXTRA_DIST = $(extension_in_in_files) +DISTCLEANFILES = $(extension_in_files) CLEANFILES = $(extension_DATA) endif # ENABLE_CAJA diff --git a/properties/libatril-properties-page.caja-extension.desktop.in.in b/properties/libatril-properties-page.caja-extension.desktop.in.in index dadb6600..cab6f623 100644 --- a/properties/libatril-properties-page.caja-extension.desktop.in.in +++ b/properties/libatril-properties-page.caja-extension.desktop.in.in @@ -5,5 +5,5 @@ Name=Atril properties Description=Shows details for Atril documents Author=Andrew Sobala <[email protected]>;Bastien Nocera <[email protected]> -Website=https://mate-desktop.org/ -Copyright=Copyright (C) 2000, 2001 Eazel Inc.\nCopyright (C) 2003 Andrew Sobala <[email protected]>\nCopyright (C) 2005 Bastien Nocera <[email protected]>\nCopyright (C) 2005 Red Hat, Inc\nCopyright (C) 2012–2018 The MATE developers +Copyright=Copyright (C) 2000, 2001 Eazel Inc.\nCopyright (C) 2003 Andrew Sobala <[email protected]>\nCopyright (C) 2005 Bastien Nocera <[email protected]>\nCopyright (C) 2005 Red Hat, Inc\nCopyright (C) 2012–2021 The MATE developers diff --git a/shell/ev-window.c b/shell/ev-window.c index b26795e1..f76e86fe 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -3580,9 +3580,12 @@ ev_window_print_update_pending_jobs_message (EvWindow *ev_window, } if (n_jobs > 1) { - text = g_strdup_printf (ngettext ("%d pending job in queue", - "%d pending jobs in queue", - n_jobs - 1), n_jobs - 1); + gulong n = (gulong) (n_jobs - 1); + text = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, + "%lu pending job in queue", + "%lu pending jobs in queue", + n), + n); } ev_message_area_set_secondary_text (EV_MESSAGE_AREA (ev_window->priv->message_area), @@ -3979,12 +3982,13 @@ ev_window_check_print_queue (EvWindow *ev_window) /* TRANS: the singular form is not really used as n_print_jobs > 1 but some languages distinguish between different plurals forms, so the ngettext is needed. */ - text = g_strdup_printf (ngettext("There is %d print job active. " - "Wait until print finishes before closing?", - "There are %d print jobs active. " - "Wait until print finishes before closing?", - n_print_jobs), - n_print_jobs); + text = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, + "There is %d print job active. " + "Wait until print finishes before closing?", + "There are %d print jobs active. " + "Wait until print finishes before closing?", + (gulong) n_print_jobs), + n_print_jobs); } markup = g_strdup_printf ("<b>%s</b>", text); @@ -5446,7 +5450,7 @@ ev_window_cmd_help_about (GtkAction *action, EvWindow *ev_window) "copyright", _("Copyright \xc2\xa9 1996–2009 The Evince authors\n" "Copyright \xc2\xa9 2012–2021 The MATE developers"), "license", license_trans, - "website", "https://mate-desktop.org/", + "website", PACKAGE_URL, "comments", comments, "authors", authors, "documenters", documenters, @@ -5744,10 +5748,11 @@ ev_window_update_find_status_message (EvWindow *ev_window) /* TRANS: Sometimes this could be better translated as "%d hit(s) on this page". Therefore this string contains plural cases. */ - message = g_strdup_printf (ngettext ("%d found on this page", - "%d found on this page", - n_results), - n_results); + message = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, + "%d found on this page", + "%d found on this page", + (gulong) n_results), + n_results); } else { message = g_strdup (_("Not found")); } diff --git a/shell/main.c b/shell/main.c index 7a4658be..79b92524 100644 --- a/shell/main.c +++ b/shell/main.c @@ -231,10 +231,12 @@ main (int argc, char *argv[]) bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir()); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#endif +#endif /* ENABLE_NLS */ context = g_option_context_new (N_("MATE Document Viewer")); +#ifdef ENABLE_NLS g_option_context_set_translation_domain(context, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_option_context_add_main_entries (context, goption_options, GETTEXT_PACKAGE); g_option_context_add_group (context, egg_sm_client_get_option_group ()); g_option_context_add_group (context, gtk_get_option_group (TRUE)); |