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 629217 - Missing msgctxt for translatable "_Delete" string
Missing msgctxt for translatable "_Delete" string
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: 2.26.0
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2010-09-09 20:27 UTC by Milo Casagrande
Modified: 2011-01-19 22:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32



Description Milo Casagrande 2010-09-09 20:27:28 UTC
In the seahorse translation there are two identical strings (_Delete): onw of this has a msgctxt, the other one has only a translators comment.

Looks like this is causing some troubles with the translations (at least in Ubuntu), and the translation that appears for the string without the context is the translation for the string with the context.

Will it be possible to add a context also to the other string? I have no idea if this will break string-freeze, but if it is possible to automatically updated all the PO files that are at 100% that would be awesome.

Thanks.
Comment 1 Stef Walter 2010-09-10 02:41:44 UTC
These are the two locations of the "_Delete" string in seahorse. Do you know how to add context to a gtkbuilder XML file? If so, could you add a patch?

gkr/seahorse-gkr-item-properties.xml:                            <property name="label" translatable="yes" comments="To translators: This is the infinitive not the imperative.  This string refers to the ability of an application to delete this secret from its key ring.">_Delete</property>

src/seahorse-viewer.c:	{ "edit-delete", GTK_STOCK_DELETE, NC_("This text refers to deleting an item from its type's backing store.", "_Delete"), NULL,
Comment 2 Milo Casagrande 2010-09-10 06:30:18 UTC
It should be as easy as:

context=""

The problem is that yesterday we tried, but after running intltool-update, the context string didn't show up. I don't know if it's a problem with intltool (maybe an old version?) or what else.

You can see here:
http://library.gnome.org/devel/gtk/unstable/GtkBuilder.html

Under "GtkBuilder UI Definitions".
Comment 3 André Klapper 2010-09-10 13:04:37 UTC
(In reply to comment #1)
> Do you know how to add context to a gtkbuilder XML file? 

http://live.gnome.org/TranslationProject/DevGuidelines/Use%20comments
Comment 4 Stef Walter 2011-01-19 22:28:04 UTC
commit 35f8f8be68074f24d2e903c477d828a1b118a9ac
Author: Stef Walter <stef@memberwebs.com>
Date:   Wed Jan 19 14:34:15 2011 -0600

    Added context to translatable strings.

    https://bugzilla.gnome.org/show_bug.cgi?id=629217