[Xfce4-commits] <xfce4-docs:ristretto-master> Add update-po.sh (from xfce4-panel-master branch) - Update ristretto.pot

Stephan Arts noreply at xfce.org
Thu Nov 3 12:54:01 CET 2011


Updating branch refs/heads/ristretto-master
         to 8b0f082e29951bfa691718f304bec6e5faa90e13 (commit)
       from 960f5a1713646455b45ebeada4fd6fd33cdc8a73 (commit)

commit 8b0f082e29951bfa691718f304bec6e5faa90e13
Author: Stephan Arts <stephan at xfce.org>
Date:   Thu Nov 3 12:51:15 2011 +0100

    Add update-po.sh (from xfce4-panel-master branch)
    - Update ristretto.pot

 manual/po/ristretto.pot |  344 ++++++++++++++++++++++++++++++++++++++++-------
 tools/update-po.sh      |   22 +++
 2 files changed, 314 insertions(+), 52 deletions(-)

diff --git a/manual/po/ristretto.pot b/manual/po/ristretto.pot
index 1a62054..c1c6905 100644
--- a/manual/po/ristretto.pot
+++ b/manual/po/ristretto.pot
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2011-10-27 22:10+0200\n"
+"POT-Creation-Date: 2011-11-03 12:50+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -9,92 +9,332 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
-msgctxt "_"
-msgid "translator-credits"
+#: preferences.page:8(app) index.page:32(title)
+msgid "Image Viewer"
 msgstr ""
 
-#: index.page:8(info/title)
-msgctxt "link"
-msgid "Ristretto"
+#: preferences.page:8(desc)
+msgid "<placeholder-1/> Preferences"
 msgstr ""
 
-#: index.page:9(info/title)
-msgctxt "text"
-msgid "Ristretto"
+#: preferences.page:10(name) index.page:11(name) getting-started.page:11(name)
+msgid "Stephan Arts"
 msgstr ""
 
-#: index.page:15(license/p)
-#: set-wallpaper.page:15(license/p)
-#: slideshow.page:15(license/p)
-#: view-images.page:15(license/p)
+#: preferences.page:11(email) index.page:12(email) getting-started.page:12(email)
+msgid "stephan at xfce.org"
+msgstr ""
+
+#: preferences.page:14(p) index.page:15(p) getting-started.page:15(p)
 msgid "Creative Commons Share Alike 3.0"
 msgstr ""
 
-#: index.page:19(page/title)
-#: set-wallpaper.page:22(figure/title)
-#: view-images.page:22(figure/title)
+#: preferences.page:18(title) getting-started.page:130(gui)
+msgid "Preferences"
+msgstr ""
+
+#: preferences.page:20(app) preferences.page:27(app) preferences.page:52(app) preferences.page:62(app) preferences.page:82(app) preferences.page:97(app) preferences.page:119(app) preferences.page:125(app) preferences.page:139(app) preferences.page:146(app) preferences.page:149(app) index.page:8(title) index.page:9(title) index.page:19(title) getting-started.page:48(app) getting-started.page:79(app) getting-started.page:93(app) getting-started.page:98(app) getting-started.page:109(app)
 msgid "Ristretto"
 msgstr ""
 
-#: index.page:22(section/title)
+#: preferences.page:21(gui) preferences.page:24(title) getting-started.page:138(gui)
+msgid "Preferences Dialog"
+msgstr ""
+
+#: preferences.page:19(p)
+msgid "The behaviour and looks of <placeholder-1/> can be modified, mostly through options displayed in the <placeholder-2/>."
+msgstr ""
+
+#: preferences.page:25(p)
+msgid "The Preferences dialog allows a user to configure different aspects of <placeholder-1/>. These options are grouped under the following tabs."
+msgstr ""
+
+#: preferences.page:31(title) preferences.page:35(title)
+msgid "Display preferences"
+msgstr ""
+
+#: preferences.page:39(title)
+msgid "Override background color"
+msgstr ""
+
+#: preferences.page:40(p)
+msgid "Did you notice how the background-color around the image was the same as the rest of the window? It was themed by Gtk+, when you enable this option, the theme-color is overridden by whatever you set here. Most people like it black, but there is no limitation to the colors you can pick."
+msgstr ""
+
+#: preferences.page:50(title)
+msgid "Merge toolbars"
+msgstr ""
+
+#: preferences.page:51(p)
+msgid "By default, <placeholder-1/> comes with two toolbars, one containing the file-operations, and one for navigating the opened images. If you want to reduce the amount of space used for the different buttons, you can enable this option and the two toolbars merge into one."
+msgstr ""
+
+#: preferences.page:60(title)
+msgid "Hide Thumbnailbar when fullscreen"
+msgstr ""
+
+#: preferences.page:65(key) getting-started.page:77(key)
+msgid "Control"
+msgstr ""
+
+#: preferences.page:65(key)
+msgid "t"
+msgstr ""
+
+#: preferences.page:61(p)
+msgid "If the <placeholder-1/> window is fullscreen, you can choose to automatically hide the thumbnailbar. Even though the thumbnailbar is normally visible. This option overrides the <keyseq><placeholder-2/><placeholder-3/></keyseq> shortcut for toggleing the visibility of the thumbnailbar."
+msgstr ""
+
+#: preferences.page:71(title) preferences.page:75(title)
+msgid "Slideshow preferences"
+msgstr ""
+
+#: preferences.page:79(title)
+msgid "Timeout"
+msgstr ""
+
+#: preferences.page:80(p)
+msgid "When showing a slideshow of images, the value of this slider determines how long <placeholder-1/> will show each image."
+msgstr ""
+
+#: preferences.page:87(title) preferences.page:91(title)
+msgid "Control preferences"
+msgstr ""
+
+#: preferences.page:95(title)
+msgid "Revert zoom direction"
+msgstr ""
+
+#: preferences.page:97(em) preferences.page:103(em)
+msgid "in"
+msgstr ""
+
+#: preferences.page:98(em) preferences.page:102(em)
+msgid "out"
+msgstr ""
+
+#: preferences.page:96(p)
+msgid "By default, <placeholder-1/> zooms <placeholder-2/> when you turn the scroll-wheel forward, and zooms <placeholder-3/> when you turn the scroll-wheel backward. For touch-pads, this can be awkward, because a two-finger scroll is more of a pushing and pulling action. With this option set, turning the scroll-wheel forward will zoom <placeholder-4/> (pushing the image away) and turning the scroll-wheel backward will zoom <placeholder-5/> (pulling the image closer)."
+msgstr ""
+
+#: preferences.page:108(title) preferences.page:112(title)
+msgid "Behaviour preferences"
+msgstr ""
+
+#: preferences.page:116(title)
+msgid "Maximize window on startup when opening an image"
+msgstr ""
+
+#: preferences.page:117(p)
+msgid "This option will automatically maximize the main window whenever <placeholder-1/> is launched with a file argument."
+msgstr ""
+
+#: preferences.page:123(title) getting-started.page:136(gui) getting-started.page:138(gui)
+msgid "Wrap around images"
+msgstr ""
+
+#: preferences.page:126(gui)
+msgid "Next"
+msgstr ""
+
+#: preferences.page:127(gui)
+msgid "Previous"
+msgstr ""
+
+#: preferences.page:128(em)
+msgid "Last"
+msgstr ""
+
+#: preferences.page:128(em)
+msgid "First"
+msgstr ""
+
+#: preferences.page:124(p)
+msgid "With this option set, <placeholder-1/> will wrap around images. When pressing <placeholder-2/> on the last image, or <placeholder-3/> on the first image, it will jump to the <placeholder-4/> or <placeholder-5/> image respectively."
+msgstr ""
+
+#: preferences.page:133(title)
+msgid "Advanced options"
+msgstr ""
+
+#: preferences.page:137(title)
+msgid "Don't use Thunar to show the file-properties dialog"
+msgstr ""
+
+#: preferences.page:138(p)
+msgid "By default, <placeholder-1/> will ask thunar to pop-up the file-properties dialog. This way, you'll have the advantage of all of thunar's plugins that extend it's file-properties dialog beyond it's native functionality. Aswell as a consistent look-and-feel throughout the xfce desktop."
+msgstr ""
+
+#: preferences.page:145(p)
+msgid "However, there are some cases where you want <placeholder-1/> not to use Thunar, but go for the build-in dialog all the times. This can be the case when you have Thunar installed, but don't use it. Launching the file-properties dialog from <placeholder-2/> will then cause Thunar to be launched, making it a pretty expensive dialog."
+msgstr ""
+
+#: preferences.page:156(app)
+msgid "xfconf command-line utility"
+msgstr ""
+
+#: preferences.page:156(cmd)
+msgid "xfconf-query"
+msgstr ""
+
+#: preferences.page:153(p)
+msgid "Being a somewhat advanced feature, this option is not exposed through the preferences-dialog, and can only be enabled through the <placeholder-1/><placeholder-2/>. This can be done as followed:"
+msgstr ""
+
+#: preferences.page:159(output)
+msgid "$"
+msgstr ""
+
+#: preferences.page:159(input)
+msgid "xfconf-query -c ristretto -p /window/use-thunar-properties -n -t bool -s false"
+msgstr ""
+
+#: index.page:22(title)
 msgid "Introduction"
 msgstr ""
 
-#: index.page:23(section/p)
-msgid "The Ristretto Image Viewer is an application that can be used to scroll through images. It can be used to run a slideshow of images, open images with other applications like an image-editor or set the Xfce wallpaper."
+#: index.page:24(app) getting-started.page:9(app) getting-started.page:21(app)
+msgid "Ristretto Image Viewer"
 msgstr ""
 
-#: index.page:32(section/title)
-msgid "Image Viewer"
+#: index.page:23(p)
+msgid "The <placeholder-1/> is an application that can be used to scroll through images. It can be used to run a slideshow of images, open images with other applications like an image-editor or set the Xfce wallpaper."
 msgstr ""
 
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#.
-#. This is a reference to an external file such as an image or video. When
-#. the file changes, the md5 hash will change to let you know you need to
-#. update your localized copy. The msgstr is not used at all. Set it to
-#. whatever you like once you have updated your copy of the file.
-#: set-wallpaper.page:23(media)
-#: view-images.page:23(media)
-msgctxt "_"
-msgid "external ref='media/open-image.png' md5='__failed__'"
+#: getting-started.page:9(desc)
+msgid "Getting started with <placeholder-1/>"
 msgstr ""
 
-#: set-wallpaper.page:9(info/desc)
-msgid "Setting the Xfce wallpaper with <app>Ristretto</app>"
+#: getting-started.page:19(title)
+msgid "Getting Started..."
 msgstr ""
 
-#: set-wallpaper.page:11(credit/name)
-#: slideshow.page:11(credit/name)
-#: view-images.page:11(credit/name)
-msgid "Stephan Arts"
+#: getting-started.page:20(p)
+msgid "When <placeholder-1/> is first started, it shows an empty window with two toolbars."
 msgstr ""
 
-#: set-wallpaper.page:19(page/title)
-msgid "Set Wallpaper"
+#: getting-started.page:25(title)
+msgid "First Started"
 msgstr ""
 
-#: slideshow.page:9(info/desc)
-msgid "Show a slideshow of images"
+#: getting-started.page:29(gui)
+msgid "Open"
 msgstr ""
 
-#: slideshow.page:19(page/title)
+#: getting-started.page:30(gui)
+msgid "File"
+msgstr ""
+
+#: getting-started.page:28(p)
+msgid "Image-files can be opened using the <placeholder-1/> button on the top toolbar, or the <placeholder-2/> menu."
+msgstr ""
+
+#: getting-started.page:33(title) getting-started.page:40(title)
+msgid "Viewing an image"
+msgstr ""
+
+#: getting-started.page:34(p)
+msgid "When an image is opened in ristretto, it might look like the image below. Notice how a thumbnail-bar appears showing the other images in the same folder as the one just opened."
+msgstr ""
+
+#: getting-started.page:44(title) getting-started.page:58(gui)
+msgid "Zooming"
+msgstr ""
+
+#: getting-started.page:45(p)
+msgid "Showing an image like this is nice, but sometimes you want to zoom in on a detail, get a closer look. To do this <placeholder-1/> provides the ability to zoom in on a section of the image. There are several ways to do zoom in on an image,"
+msgstr ""
+
+#: getting-started.page:58(gui) getting-started.page:125(gui)
+msgid "View"
+msgstr ""
+
+#: getting-started.page:54(p)
+msgid "The first way to zoom is via the zoom buttons on the side toolbar. It is possible to zoom in, out, to 100% or to make the image fit the screen. These buttons can also be reached from the <guiseq><placeholder-1/><placeholder-2/></guiseq> menu."
+msgstr ""
+
+#: getting-started.page:62(p)
+msgid "A second way is using the scroll-wheel on the mouse, Moving the mouse-wheel forward zooms in on the image, moving the mouse-wheel backward will zoom out."
+msgstr ""
+
+#: getting-started.page:67(p)
+msgid "The zoom-direction of the mouse-wheel can be adjusted, see <link xref=\"preferences\"/> for more details."
+msgstr ""
+
+#: getting-started.page:77(keyseq)
+msgid "<placeholder-1/>Click"
+msgstr ""
+
+#: getting-started.page:74(p)
+msgid "The third, and last way to zoom on an image is using so-called BOX-ZOOM, or selection-zoom. Press <placeholder-1/>, and drag the mouse-cursor. This way a box appears, when the mouse-button is released, <placeholder-2/> will zoom in on the selected portion of the image."
+msgstr ""
+
+#: getting-started.page:85(title)
+msgid "Rotating"
+msgstr ""
+
+#: getting-started.page:89(gui)
+msgid "Rotate"
+msgstr ""
+
+#: getting-started.page:86(p)
+msgid "Sometimes, it is necessary to rotate an image because it is not positioned in the right orientation. To solve this, you can use the <placeholder-1/> buttons on the toolbar."
+msgstr ""
+
+#: getting-started.page:92(p)
+msgid "Some digital cameras store the image-orientation inside the EXIF data. If this information is present, <placeholder-1/> reads this information and automatically rotates the image."
+msgstr ""
+
+#: getting-started.page:101(app)
+msgid "The GIMP"
+msgstr ""
+
+#: getting-started.page:98(p)
+msgid "<placeholder-1/> does not provide a way to save the altered orientation back into the file. If you want to modify the image-data, this needs to be done with an image-editor, like <placeholder-2/>."
+msgstr ""
+
+#: getting-started.page:107(title)
+msgid "Switching between images"
+msgstr ""
+
+#: getting-started.page:110(gui) getting-started.page:117(gui)
+msgid "Thumbnailbar"
+msgstr ""
+
+#: getting-started.page:112(gui)
+msgid "navigation toolbar"
+msgstr ""
+
+#: getting-started.page:108(p)
+msgid "When an image is opened in <placeholder-1/>, it shows a list of images in the <placeholder-2/>, these are the other images located inside the same folder as the currently opened image. The arrow-buttons on the <placeholder-3/> allow for easy switching between different images."
+msgstr ""
+
+#: getting-started.page:115(p)
+msgid "Also, using the scroll-wheel on the opened image, or on the <placeholder-1/> will switch to the next or previous image. Allowing for fast and easy navigation between images."
+msgstr ""
+
+#: getting-started.page:121(title)
 msgid "Slideshow"
 msgstr ""
 
-#: slideshow.page:23(section/title)
-msgid "Configuring"
+#: getting-started.page:124(gui)
+msgid "Play"
+msgstr ""
+
+#: getting-started.page:122(p)
+msgid "To run a slideshow of all the opened images, all you need to do is press the <placeholder-1/> button. This can be found on the Toolbar and the <placeholder-2/> menu."
+msgstr ""
+
+#: getting-started.page:128(p)
+msgid "The duration of the timeout before the next image is shown can be configured inside the <placeholder-1/> dialog, by default it is set to 5 seconds."
 msgstr ""
 
-#: view-images.page:9(info/desc)
-msgid "Viewing images with <app>Ristretto</app>"
+#: getting-started.page:135(p)
+msgid "When <placeholder-1/> is disabled, the slideshow will stop at the last image. To prevent this, enable the option <placeholder-2/> in the <placeholder-3/>."
 msgstr ""
 
-#: view-images.page:19(page/title)
-msgid "View Images"
+#. Put one translator per line, in the form of NAME <EMAIL>, YEAR1, YEAR2
+#: getting-started.page:0(None)
+msgid "translator-credits"
 msgstr ""
 
diff --git a/tools/update-po.sh b/tools/update-po.sh
new file mode 100755
index 0000000..9c29f14
--- /dev/null
+++ b/tools/update-po.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+srcdir=$(pwd)
+potfile="ristretto.pot"
+
+if test -f "$srcdir/po/$potfile";
+then
+  mallardpages=$(echo *.page)
+  
+  echo "Regenerating pot file..."
+  rm "po/$potfile"
+  xml2po -o "po/$potfile" $mallardpages
+  
+  linguas=$(cd po && echo `/bin/ls *.po | sed 's,[.]po,,g'`) &> /dev/null
+  for lang in $linguas
+  do
+    xml2po -u "po/$lang.po" $mallardpages
+  done
+  
+else
+  echo "ERROR: Pot file \"$potfile\" no found!"
+fi


More information about the Xfce4-commits mailing list