From a083e18c5b74aae511dc88b643ee9014d2476e74 Mon Sep 17 00:00:00 2001 From: helix84 Date: Tue, 26 May 2009 15:22:40 +0000 Subject: [PATCH] * [INTL:*] added i18n of patterns.svg * [INTL:*] make inkscape.pot * [INTL: sk] Slovak translation update (trunk) --- po/POTFILES.in | 1 + po/inkscape.pot | 166 +++++++++++++++++++++++++++++++++- po/sk.po | 179 +++++++++++++++++++++++++++++++++++-- share/patterns/Makefile.am | 8 +- share/patterns/README | 8 ++ share/patterns/i18n.py | 18 ++++ 6 files changed, 368 insertions(+), 12 deletions(-) create mode 100755 share/patterns/i18n.py diff --git a/po/POTFILES.in b/po/POTFILES.in index 8be134907..943c4b617 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -4,6 +4,7 @@ [encoding: UTF-8] inkscape.desktop.in share/filters/filters.svg.h +share/patterns/patterns.svg.h src/arc-context.cpp src/box3d-context.cpp src/box3d.cpp diff --git a/po/inkscape.pot b/po/inkscape.pot index 181c2f338..54a44d1c1 100644 --- a/po/inkscape.pot +++ b/po/inkscape.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: inkscape-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2009-05-26 13:43+0200\n" +"POT-Creation-Date: 2009-05-26 16:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1607,6 +1607,170 @@ msgstr "" msgid "Darken the edges with an inner blur" msgstr "" +#: ../share/patterns/patterns.svg.h:2 +msgid "Stripes 1:1" +msgstr "" + +#: ../share/patterns/patterns.svg.h:3 +msgid "Stripes 1:1 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:4 +msgid "Stripes 1:1.5" +msgstr "" + +#: ../share/patterns/patterns.svg.h:5 +msgid "Stripes 1:1.5 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:6 +msgid "Stripes 1:2" +msgstr "" + +#: ../share/patterns/patterns.svg.h:7 +msgid "Stripes 1:2 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:8 +msgid "Stripes 1:3" +msgstr "" + +#: ../share/patterns/patterns.svg.h:9 +msgid "Stripes 1:3 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:10 +msgid "Stripes 1:4" +msgstr "" + +#: ../share/patterns/patterns.svg.h:11 +msgid "Stripes 1:4 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:12 +msgid "Stripes 1:5" +msgstr "" + +#: ../share/patterns/patterns.svg.h:13 +msgid "Stripes 1:5 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:14 +msgid "Stripes 1:8" +msgstr "" + +#: ../share/patterns/patterns.svg.h:15 +msgid "Stripes 1:8 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:16 +msgid "Stripes 1:10" +msgstr "" + +#: ../share/patterns/patterns.svg.h:17 +msgid "Stripes 1:10 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:18 +msgid "Stripes 1:16" +msgstr "" + +#: ../share/patterns/patterns.svg.h:19 +msgid "Stripes 1:16 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:20 +msgid "Stripes 1:32" +msgstr "" + +#: ../share/patterns/patterns.svg.h:21 +msgid "Stripes 1:32 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:22 +msgid "Stripes 1:64" +msgstr "" + +#: ../share/patterns/patterns.svg.h:23 +msgid "Stripes 2:1" +msgstr "" + +#: ../share/patterns/patterns.svg.h:24 +msgid "Stripes 2:1 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:25 +msgid "Stripes 4:1" +msgstr "" + +#: ../share/patterns/patterns.svg.h:26 +msgid "Stripes 4:1 white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:27 +msgid "Checkerboard" +msgstr "" + +#: ../share/patterns/patterns.svg.h:28 +msgid "Checkerboard white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:29 +msgid "Packed circles" +msgstr "" + +#: ../share/patterns/patterns.svg.h:30 +msgid "Polka dots, small" +msgstr "" + +#: ../share/patterns/patterns.svg.h:31 +msgid "Polka dots, small white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:32 +msgid "Polka dots, medium" +msgstr "" + +#: ../share/patterns/patterns.svg.h:33 +msgid "Polka dots, medium white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:34 +msgid "Polka dots, large" +msgstr "" + +#: ../share/patterns/patterns.svg.h:35 +msgid "Polka dots, large white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:36 +msgid "Wavy" +msgstr "" + +#: ../share/patterns/patterns.svg.h:37 +msgid "Wavy white" +msgstr "" + +#: ../share/patterns/patterns.svg.h:38 +msgid "Camouflage" +msgstr "" + +#: ../share/patterns/patterns.svg.h:39 +msgid "Ermine" +msgstr "" + +#: ../share/patterns/patterns.svg.h:40 +msgid "Sand (bitmap)" +msgstr "" + +#: ../share/patterns/patterns.svg.h:41 +msgid "Cloth (bitmap)" +msgstr "" + +#: ../share/patterns/patterns.svg.h:42 +msgid "Old paint (bitmap)" +msgstr "" + #: ../src/arc-context.cpp:303 msgid "" "Ctrl: make circle or integer-ratio ellipse, snap arc/segment angle" diff --git a/po/sk.po b/po/sk.po index a7bdeac22..561bb3ef1 100644 --- a/po/sk.po +++ b/po/sk.po @@ -11,8 +11,8 @@ msgid "" msgstr "" "Project-Id-Version: inkscape\n" "Report-Msgid-Bugs-To: inkscape-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2009-05-26 13:32+0200\n" -"PO-Revision-Date: 2009-05-26 13:58+0100\n" +"POT-Creation-Date: 2009-05-26 16:30+0200\n" +"PO-Revision-Date: 2009-05-26 16:35+0100\n" "Last-Translator: Ivan Masár \n" "Language-Team: Slovak \n" "MIME-Version: 1.0\n" @@ -1634,6 +1634,170 @@ msgstr "Stmaviť okraje" msgid "Darken the edges with an inner blur" msgstr "Stmaviť okraj s vnútorným rozostrením" +#: ../share/patterns/patterns.svg.h:2 +msgid "Stripes 1:1" +msgstr "Prúžky 1:1" + +#: ../share/patterns/patterns.svg.h:3 +msgid "Stripes 1:1 white" +msgstr "Prúžky 1:1 biele" + +#: ../share/patterns/patterns.svg.h:4 +msgid "Stripes 1:1.5" +msgstr "Prúžky 1:1.5" + +#: ../share/patterns/patterns.svg.h:5 +msgid "Stripes 1:1.5 white" +msgstr "Prúžky 1:1.5 biele" + +#: ../share/patterns/patterns.svg.h:6 +msgid "Stripes 1:2" +msgstr "Prúžky 1:2" + +#: ../share/patterns/patterns.svg.h:7 +msgid "Stripes 1:2 white" +msgstr "Prúžky 1:2 biele" + +#: ../share/patterns/patterns.svg.h:8 +msgid "Stripes 1:3" +msgstr "Prúžky 1:3" + +#: ../share/patterns/patterns.svg.h:9 +msgid "Stripes 1:3 white" +msgstr "Prúžky 1:3 biele" + +#: ../share/patterns/patterns.svg.h:10 +msgid "Stripes 1:4" +msgstr "Prúžky 1:4" + +#: ../share/patterns/patterns.svg.h:11 +msgid "Stripes 1:4 white" +msgstr "Prúžky 1:4 biele" + +#: ../share/patterns/patterns.svg.h:12 +msgid "Stripes 1:5" +msgstr "Prúžky 1:5" + +#: ../share/patterns/patterns.svg.h:13 +msgid "Stripes 1:5 white" +msgstr "Prúžky 1:5 biele" + +#: ../share/patterns/patterns.svg.h:14 +msgid "Stripes 1:8" +msgstr "Prúžky 1:8" + +#: ../share/patterns/patterns.svg.h:15 +msgid "Stripes 1:8 white" +msgstr "Prúžky 1:8 biele" + +#: ../share/patterns/patterns.svg.h:16 +msgid "Stripes 1:10" +msgstr "Prúžky 1:10" + +#: ../share/patterns/patterns.svg.h:17 +msgid "Stripes 1:10 white" +msgstr "Prúžky 1:10 biele" + +#: ../share/patterns/patterns.svg.h:18 +msgid "Stripes 1:16" +msgstr "Prúžky 1:16" + +#: ../share/patterns/patterns.svg.h:19 +msgid "Stripes 1:16 white" +msgstr "Prúžky 1:16 biele" + +#: ../share/patterns/patterns.svg.h:20 +msgid "Stripes 1:32" +msgstr "Prúžky 1:32" + +#: ../share/patterns/patterns.svg.h:21 +msgid "Stripes 1:32 white" +msgstr "Prúžky 1:32 biele" + +#: ../share/patterns/patterns.svg.h:22 +msgid "Stripes 1:64" +msgstr "Prúžky 1:64" + +#: ../share/patterns/patterns.svg.h:23 +msgid "Stripes 2:1" +msgstr "Prúžky 2:1" + +#: ../share/patterns/patterns.svg.h:24 +msgid "Stripes 2:1 white" +msgstr "Prúžky 2:1 biele" + +#: ../share/patterns/patterns.svg.h:25 +msgid "Stripes 4:1" +msgstr "Prúžky 4:1" + +#: ../share/patterns/patterns.svg.h:26 +msgid "Stripes 4:1 white" +msgstr "Prúžky 4:1 bielewhite" + +#: ../share/patterns/patterns.svg.h:27 +msgid "Checkerboard" +msgstr "Šachovnica" + +#: ../share/patterns/patterns.svg.h:28 +msgid "Checkerboard white" +msgstr "Šachovnica biela" + +#: ../share/patterns/patterns.svg.h:29 +msgid "Packed circles" +msgstr "Výplň kružnicami" + +#: ../share/patterns/patterns.svg.h:30 +msgid "Polka dots, small" +msgstr "Polka, malé bodky" + +#: ../share/patterns/patterns.svg.h:31 +msgid "Polka dots, small white" +msgstr "Polka, malé biele bodky" + +#: ../share/patterns/patterns.svg.h:32 +msgid "Polka dots, medium" +msgstr "Polka, stredné bodky" + +#: ../share/patterns/patterns.svg.h:33 +msgid "Polka dots, medium white" +msgstr "Polka, stredné biele bodky" + +#: ../share/patterns/patterns.svg.h:34 +msgid "Polka dots, large" +msgstr "Polka, veľké bodky" + +#: ../share/patterns/patterns.svg.h:35 +msgid "Polka dots, large white" +msgstr "Polka, veľké biele bodky" + +#: ../share/patterns/patterns.svg.h:36 +msgid "Wavy" +msgstr "Vlnité" + +#: ../share/patterns/patterns.svg.h:37 +msgid "Wavy white" +msgstr "Vlnité biele" + +#: ../share/patterns/patterns.svg.h:38 +msgid "Camouflage" +msgstr "Kamufláž" + +#: ../share/patterns/patterns.svg.h:39 +msgid "Ermine" +msgstr "Hermelín" + +#: ../share/patterns/patterns.svg.h:40 +msgid "Sand (bitmap)" +msgstr "Piesok (bitmapa)" + +#: ../share/patterns/patterns.svg.h:41 +msgid "Cloth (bitmap)" +msgstr "Látka (bitmapa)" + +#: ../share/patterns/patterns.svg.h:42 +msgid "Old paint (bitmap)" +msgstr "Stará farba (bitmapa)" + #: ../src/arc-context.cpp:303 msgid "" "Ctrl: make circle or integer-ratio ellipse, snap arc/segment angle" @@ -2901,7 +3065,7 @@ msgstr "_Štítok" #: ../src/dialogs/item-properties.cpp:161 msgid "A freeform label for the object" -msgstr "Voľný štítok objektu" +msgstr "Označenie objektu bez predpísaného tvaru" #. Create the label for the object title #: ../src/dialogs/item-properties.cpp:173 @@ -15471,7 +15635,7 @@ msgstr "Nič nebolo vybrané" #: ../src/ui/widget/selected-style.cpp:161 #: ../src/ui/widget/style-swatch.cpp:296 msgid "None" -msgstr "Žiadne" +msgstr "žiadna" #: ../src/ui/widget/selected-style.cpp:164 #: ../src/ui/widget/style-swatch.cpp:298 @@ -15481,7 +15645,7 @@ msgstr "bez výplne" #: ../src/ui/widget/selected-style.cpp:164 #: ../src/ui/widget/style-swatch.cpp:298 msgid "No stroke" -msgstr "Bez ťahu" +msgstr "bez ťahu" #: ../src/ui/widget/selected-style.cpp:166 #: ../src/ui/widget/style-swatch.cpp:277 ../src/widgets/paint-selector.cpp:189 @@ -17526,7 +17690,7 @@ msgstr "" #: ../src/verbs.cpp:2668 msgid "_Object Properties..." -msgstr "Nastavenia objektu..." +msgstr "Vlastnosti objektu..." #: ../src/verbs.cpp:2669 msgid "Edit the ID, locked and visible status, and other object properties" @@ -23421,9 +23585,6 @@ msgstr "Vstup XAML" #~ "možné ľubovoľne meniť jeho veľkosť, avšak sa stratí alfa priehľadnosť, " #~ "značky a vzory." -#~ msgid "Print as bitmap" -#~ msgstr "Tlačiť ako bitmapu" - #~ msgid "" #~ "Print everything as bitmap. The resulting image is usually larger in file " #~ "size and cannot be arbitrarily scaled without quality loss, but all " diff --git a/share/patterns/Makefile.am b/share/patterns/Makefile.am index c92123e24..e79e262aa 100644 --- a/share/patterns/Makefile.am +++ b/share/patterns/Makefile.am @@ -2,7 +2,11 @@ patternsdir = $(datadir)/inkscape/patterns patterns_DATA = \ - patterns.svg \ - README + README \ + patterns.svg \ + patterns.svg.h + +patterns.svg.h: patterns.svg i18n.py + $(srcdir)/i18n.py $(srcdir)/patterns.svg > $(srcdir)/patterns.svg.h EXTRA_DIST = $(patterns_DATA) diff --git a/share/patterns/README b/share/patterns/README index b650370e4..7035a58a9 100644 --- a/share/patterns/README +++ b/share/patterns/README @@ -4,3 +4,11 @@ Inkscape, they can be accessed via the pattern fill option on either Fill or Stroke tab of the Fill & Stroke dialog (Ctrl+Shift+F). You can also create a new pattern from selected objects by the Objects to Pattern command. + +Internationalization + +This file is internationalized the same way as share/filters/filters/svg +The i18n.py script called from the makefile will extract strings from +patterns.svg into a patterns.svg.h file. Intltool is then able to extracts +these strings just like from normal .h files. + diff --git a/share/patterns/i18n.py b/share/patterns/i18n.py new file mode 100755 index 000000000..3fe7f2d34 --- /dev/null +++ b/share/patterns/i18n.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +from xml.dom import minidom +import sys + +doc = minidom.parse(sys.argv[1]) + +filters = doc.getElementsByTagName('pattern') + +print "char * stringlst = [" + +for filter in filters: + id = filter.getAttribute('id') + stockid = filter.getAttribute('inkscape:stockid') + + print "N_(\"" + stockid + "\")," + +print "];" -- 2.30.2