From 9c8f65ee0ae2bde2d2ea4b99d00ebb264e4147c7 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 21 Sep 2006 14:24:12 +0000 Subject: [PATCH] plug-ins/pygimp/plug-ins/py-slice.py prepared for translation. 2006-09-21 Sven Neumann * plug-ins/pygimp/plug-ins/py-slice.py * plug-ins/pygimp/plug-ins/shadow_bevel.py: prepared for translation. --- ChangeLog | 5 ++ plug-ins/pygimp/plug-ins/py-slice.py | 33 +++++----- plug-ins/pygimp/plug-ins/shadow_bevel.py | 21 ++++--- po-python/POTFILES.in | 2 + po-python/de.po | 78 +++++++++++++++++++++++- 5 files changed, 115 insertions(+), 24 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf266d441f..1d7fa00245 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-21 Sven Neumann + + * plug-ins/pygimp/plug-ins/py-slice.py + * plug-ins/pygimp/plug-ins/shadow_bevel.py: prepared for translation. + 2006-09-21 Sven Neumann * menus/image-menu.xml.in: added align-tool (bug #356260). diff --git a/plug-ins/pygimp/plug-ins/py-slice.py b/plug-ins/pygimp/plug-ins/py-slice.py index 8c9ea4b084..d669a9fee7 100755 --- a/plug-ins/pygimp/plug-ins/py-slice.py +++ b/plug-ins/pygimp/plug-ins/py-slice.py @@ -31,6 +31,8 @@ import os from gimpfu import * import os.path +gettext.install("gimp20-python", gimp.locale_directory, unicode=1) + def pyslice(image, drawable, save_path, html_filename, image_basename, image_extension, separate, image_path, cellspacing, animate, skip_caps): @@ -52,7 +54,7 @@ def pyslice(image, drawable, save_path, html_filename, if len(vert) == 0 and len(horz) == 0: return - gimp.progress_init("Py-Slice") + gimp.progress_init(_("Slice")) progress_increment = 1 / ((len(horz) + 1) * (len(vert) + 1)) progress = 0.0 @@ -411,7 +413,7 @@ End of the part generated by the GIMP register( "python-fu-slice", - "Cuts an image along its guides and create images and a HTML table snippet", + N_("Cuts an image along its guides, creates images and a HTML table snippet"), """Add guides to an image. Then run this. It will cut along the guides, and give you the html to reassemble the resulting images. If you choose to generate javascript for onmouseover and clicked events, it @@ -422,26 +424,27 @@ register( "Manish Singh", "Manish Singh", "2003", - "_Py-Slice...", + _("_Slice..."), "*", [ - (PF_DIRNAME, "save-path", "The path to export the HTML to", os.getcwd()), - (PF_STRING, "html-filename", "Filename to export", "py-slice.html"), - (PF_STRING, "image-basename", "What to call the images", "pyslice"), - (PF_RADIO, "image-extension", "The format of the images: {gif, jpg, png}", + (PF_DIRNAME, "save-path", _("Path for HTML export"), os.getcwd()), + (PF_STRING, "html-filename", _("Filename for export"), "slice.html"), + (PF_STRING, "image-basename", _("Image name prefix"), "slice"), + (PF_RADIO, "image-extension", _("Image format") + "{gif, jpg, png}", "gif", (("gif", "gif"), ("jpg", "jpg"), ("png", "png"))), - (PF_TOGGLE, "separate-image-dir", "Use a separate directory for images?", + (PF_TOGGLE, "separate-image-dir", _("Separate image folder"), False), - (PF_STRING, "relative-image-path", "The path where to export the" + - " images, relative to the Save Path", "images/"), - (PF_SPINNER, "cellspacing", "Add space between the table elements", 0, + (PF_STRING, "relative-image-path", _("Folder for image export"), "images/"), + (PF_SPINNER, "cellspacing", _("Space between table elements"), 0, (0,15,1)), - (PF_TOGGLE, "animate", "Generate javascript for onmouseover and clicked?", + (PF_TOGGLE, "animate", _("Javascript for onmouseover and clicked)"), False), - (PF_TOGGLE, "skip-caps", "Skip animation for table caps?", True) - + (PF_TOGGLE, "skip-caps", _("Skip animation for table caps"), True) ], [], - pyslice, menu="/Filters/Web") + pyslice, + menu="/Filters/Web", + domain=("gimp20-python", gimp.locale_directory) + ) main() diff --git a/plug-ins/pygimp/plug-ins/shadow_bevel.py b/plug-ins/pygimp/plug-ins/shadow_bevel.py index 13605da83d..593fd2a556 100755 --- a/plug-ins/pygimp/plug-ins/shadow_bevel.py +++ b/plug-ins/pygimp/plug-ins/shadow_bevel.py @@ -19,6 +19,8 @@ from gimpfu import * +gettext.install("gimp20-python", gimp.locale_directory, unicode=1) + def shadow_bevel(img, drawable, blur, bevel, do_shadow, drop_x, drop_y): # disable undo for the image img.undo_group_start() @@ -56,21 +58,24 @@ def shadow_bevel(img, drawable, blur, bevel, do_shadow, drop_x, drop_y): register( "python-fu-shadow-bevel", - "Add a drop shadow to a layer, and optionally bevel it", + N_("Add a drop shadow to a layer, and optionally bevel it"), "Add a drop shadow to a layer, and optionally bevel it", "James Henstridge", "James Henstridge", "1999", - "_Drop Shadow and Bevel...", + N_("_Drop Shadow and Bevel..."), "RGBA, GRAYA", [ - (PF_SLIDER, "blur", "Shadow blur", 6, (1, 30, 1)), - (PF_BOOL, "bevel", "Bevel the image", True), - (PF_BOOL, "shadow", "Make a drop shadow", True), - (PF_INT, "drop-x", "Drop shadow X displacement", 3), - (PF_INT, "drop-y", "Drop shadow Y displacement", 6) + (PF_SLIDER, "blur", _("Shadow blur"), 6, (1, 30, 1)), + (PF_BOOL, "bevel", _("Bevel"), True), + (PF_BOOL, "shadow", _("Drop shadow"), True), + (PF_INT, "drop-x", _("Drop shadow X displacement"), 3), + (PF_INT, "drop-y", _("Drop shadow Y displacement"), 6) ], [], - shadow_bevel, menu="/Filters/Light and Shadow/Shadow") + shadow_bevel, + menu="/Filters/Light and Shadow/Shadow", + domain=("gimp20-python", gimp.locale_directory) + ) main() diff --git a/po-python/POTFILES.in b/po-python/POTFILES.in index f39ed383ae..91250cd12a 100644 --- a/po-python/POTFILES.in +++ b/po-python/POTFILES.in @@ -13,3 +13,5 @@ plug-ins/pygimp/plug-ins/palette-offset.py plug-ins/pygimp/plug-ins/palette-sort.py plug-ins/pygimp/plug-ins/palette-to-gradient.py plug-ins/pygimp/plug-ins/pdbbrowse.py +plug-ins/pygimp/plug-ins/py-slice.py +plug-ins/pygimp/plug-ins/shadow_bevel.py diff --git a/po-python/de.po b/po-python/de.po index 525769b8c0..8c2f84a5c5 100644 --- a/po-python/de.po +++ b/po-python/de.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gimp-python HEAD\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-09-21 16:06+0200\n" +"POT-Creation-Date: 2006-09-21 16:21+0200\n" "PO-Revision-Date: 2006-09-21 16:06+0200\n" "Last-Translator: Sven Neumann \n" "Language-Team: German \n" @@ -214,3 +214,79 @@ msgstr "Die Datenbank an Prozeduren durchsuchen" #: ../plug-ins/pygimp/plug-ins/pdbbrowse.py:42 msgid "_Procedure Browser" msgstr "Prozedurbrowser" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:57 +msgid "Slice" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:416 +msgid "Cuts an image along its guides, creates images and a HTML table snippet" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:427 +msgid "_Slice..." +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:430 +msgid "Path for HTML export" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:431 +msgid "Filename for export" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:432 +msgid "Image name prefix" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:433 +msgid "Image format" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:435 +msgid "Separate image folder" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:437 +msgid "Folder for image export" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:438 +msgid "Space between table elements" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:440 +msgid "Javascript for onmouseover and clicked)" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/py-slice.py:442 +msgid "Skip animation for table caps" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/shadow_bevel.py:61 +msgid "Add a drop shadow to a layer, and optionally bevel it" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/shadow_bevel.py:66 +msgid "_Drop Shadow and Bevel..." +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/shadow_bevel.py:69 +msgid "Shadow blur" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/shadow_bevel.py:70 +msgid "Bevel" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/shadow_bevel.py:71 +msgid "Drop shadow" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/shadow_bevel.py:72 +msgid "Drop shadow X displacement" +msgstr "" + +#: ../plug-ins/pygimp/plug-ins/shadow_bevel.py:73 +msgid "Drop shadow Y displacement" +msgstr ""