Bug 556182 – Could you please explain a few strings [I18N]

2008-10-13  Sven Neumann  <sven@gimp.org>

	Bug 556182 – Could you please explain a few strings [I18N]
	
	* plug-ins/pygimp/plug-ins/py-slice.py: added translator 
comments.


svn path=/trunk/; revision=27272
This commit is contained in:
Sven Neumann 2008-10-13 20:33:31 +00:00 committed by Sven Neumann
parent 3f256652e6
commit af64515e53
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2008-10-13 Sven Neumann <sven@gimp.org>
Bug 556182 Could you please explain a few strings [I18N]
* plug-ins/pygimp/plug-ins/py-slice.py: added translator comments.
2008-10-13 Sven Neumann <sven@gimp.org> 2008-10-13 Sven Neumann <sven@gimp.org>
* app/Makefile.am * app/Makefile.am

View File

@ -396,16 +396,17 @@ End of the part generated by GIMP
try: try:
html_file = open (self.filename) html_file = open (self.filename)
#Regular expression to pick everything up to the next doublequote # Regular expression to pick everything up to the next
#character after finding the sequence 'href="'. The found sequences # doublequote character after finding the sequence 'href="'.
#will be returned as a list by the "findall" method. # The found sequences will be returned as a list by the
# "findall" method.
expr = re.compile (r"""href\=\"([^\"]*?)\"""") expr = re.compile (r"""href\=\"([^\"]*?)\"""")
url_list = expr.findall (html_file.read (2 ** 18)) url_list = expr.findall (html_file.read (2 ** 18))
html_file.close() html_file.close()
except: except:
#silently ignore any errors parsing this. The file being # silently ignore any errors parsing this. The file being
#ovewriten may not be a file genrated by py-slice. # overwritten may not be a file created by py-slice.
pass pass
return url_list return url_list
@ -413,6 +414,7 @@ End of the part generated by GIMP
register( register(
"python-fu-slice", "python-fu-slice",
# table snippet means a small piece of HTML code here
N_("Cuts an image along its guides, creates 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, """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 and give you the html to reassemble the resulting images. If you
@ -440,6 +442,7 @@ register(
(0,15,1)), (0,15,1)),
(PF_TOGGLE, "animate", _("Javascript for onmouseover and clicked"), (PF_TOGGLE, "animate", _("Javascript for onmouseover and clicked"),
False), False),
# table caps are table cells on the edge of the table
(PF_TOGGLE, "skip-caps", _("Skip animation for table caps"), True) (PF_TOGGLE, "skip-caps", _("Skip animation for table caps"), True)
], ],
[], [],