After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321396 - Please avoid using markup in deskbar-applet messages
Please avoid using markup in deskbar-applet messages
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
Git master
Other All
: Normal normal
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-11-13 21:00 UTC by Christian Rose
Modified: 2008-08-24 15:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Rose 2005-11-13 21:00:52 UTC
#: ../deskbar/handlers/files.py:33 ../deskbar/handlers/beagle-live.py:60
#, python-format
msgid "Open <b>%(name)s</b>"

Please avoid including markup in translateable messages. Markup shouldn't be
translated anyway, and so by moving it outside of translateable messages there's
no danger of it getting mistranslated, and at the same time by doing this it no
longer unnecessarily clutters the po files for translators.

Please use a *printf-style approach instead, like this:

"Open %s"

Inside the %s, you can surround it with all markup you want.
Comment 1 Christian Rose 2005-11-13 21:05:44 UTC
Obviously also applies to these messages:

#: ../deskbar/handlers/directories.py:31
#, python-format
msgid "Open folder <b>%(name)s</b>"

#: ../deskbar/handlers/galago.py:27 ../deskbar/handlers/email_address.py:26
#, python-format
msgid "Send Email to <b>%(name)s</b>"

#: ../deskbar/handlers/gtkbookmarks.py:29 ../deskbar/handlers/volumes.py:45
#, python-format
msgid "Open location <b>%(name)s</b>"

#: ../deskbar/handlers/programs.py:64
#, python-format
msgid "Launch <b>%(name)s</b> (%(prog)s)"

#: ../deskbar/handlers/programs.py:77
#, python-format
msgid "Lookup <b>%(text)s</b> in dictionary"

#: ../deskbar/handlers/programs.py:85
#, python-format
msgid "Search for file names like <b>%(text)s</b>"

#: ../deskbar/handlers/pathprograms.py:30
#, python-format
msgid "Execute <b>%(text)s</b>"

#: ../deskbar/handlers/beagle.py:33
#, python-format
msgid "Search <b>%(name)s</b> with Beagle"

#: ../deskbar/handlers/volumes.py:41
#, python-format
msgid "Open network place <b>%(name)s</b>"

#: ../deskbar/handlers/volumes.py:43
#, python-format
msgid "Open audio disk <b>%(name)s</b>"

#: ../deskbar/handlers/web_address.py:35
#, python-format
msgid "Open the web page <b>%(name)s</b>"

#: ../deskbar/handlers/web_address.py:37
#, python-format
msgid "Open the location <b>%(name)s</b>"

#: ../deskbar/handlers_browsers.py:30
#, python-format
msgid "Open History Item <b>%(name)s</b>"

#: ../deskbar/handlers_browsers.py:32
#, python-format
msgid "Open Bookmark <b>%(name)s</b>"

#: ../deskbar/handlers_browsers.py:53
#, python-format
msgid "Search <b>%(name)s</b> for <i>%(text)s</i>"

#: ../deskbar/handlers/evolution.py:31
#, python-format
msgid "Send Email to <b>%(name)s</b> (%(email)s)"

#: ../deskbar/handlers/beagle-live.py:46
#, python-format
msgid "Addressbook entry for <b>%(name)s</b>"

#: ../deskbar/handlers/beagle-live.py:54
#, python-format
msgid "View email from <i>%(sender)s</i>: <b>%(name)s</b>"

#: ../deskbar/handlers/beagle-live.py:66
#, python-format
msgid "Open news item <b>%(name)s</b>"

#: ../deskbar/handlers/beagle-live.py:73
#, python-format
msgid "Open note <b>%(name)s</b>"

#: ../deskbar/handlers/beagle-live.py:79
#, python-format
msgid "View conversation with <b>%(name)s</b>"

#: ../deskbar/handlers/beagle-live.py:85
#, python-format
msgid "View calendar <b>%(name)s</b>"
Comment 2 Raphael Slinckx 2005-11-13 21:17:21 UTC
Right this is a problem for translators, we'll take care of that.
Comment 3 Raphael Slinckx 2005-11-14 14:11:47 UTC
This is fixed in CVS, of course all translations needs an update now :)
Comment 4 TLE 2008-08-24 15:42:26 UTC
And now some new ones have been added, or they have always been there

#. translators: First %s is the search engine name, second %s is the search term
#: ../deskbar/core/BrowserMatch.py:85
#, python-format
msgid "Search <b>%(name)s</b> for <i>%(text)s</i>"

#: ../deskbar/core/DeskbarHistory.py:22
msgid "<i>Empty history</i>"

#: ../deskbar/core/Web.py:116
#, python-format
msgid "<big><b>Login for %s</b></big>"

#: ../deskbar/core/Web.py:117
#, python-format
msgid "Please provide your credentials for <b>%s</b>"

#: ../deskbar/core/Web.py:235
#, python-format
msgid "<big><b>Login to %s rejected</b></big>"

#: ../deskbar/core/Web.py:236
#, python-format
msgid "Please verify your credentials for <b>%s</b>"

#: ../deskbar/handlers/googlecodesearch.py:108
#, fuzzy, python-format
msgid "View <i>%(name)s</i> at <b>Google Code Search</b>"

#: ../deskbar/handlers/googlecodesearch.py:116
#, fuzzy, python-format
msgid "Open package <i>%(name)s</i>"

there are more, but you can just as easily search through the po-file as I can.
Please reopen this bug

Regards Kenneth