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 542658 - Add translator comments in fm-properties-window.c
Add translator comments in fm-properties-window.c
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Internationalization (i18n)
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-12 12:58 UTC by Claude Paroz
Modified: 2009-02-12 23:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add translator comments and some more strings for translation (1.50 KB, patch)
2008-07-12 12:59 UTC, Claude Paroz
none Details | Review
bump intltool req, use C_() instead (1.57 KB, patch)
2008-07-16 18:55 UTC, A. Walton
none Details | Review

Description Claude Paroz 2008-07-12 12:58:12 UTC
I suggest adding translator comment when using contextual markup in strings.
The following patch also adds more "--" marked for translation.
Comment 1 Claude Paroz 2008-07-12 12:59:07 UTC
Created attachment 114434 [details] [review]
Add translator comments and some more strings for translation
Comment 2 Christian Neumair 2008-07-12 14:46:04 UTC
Thanks for your bug report. I am a bit skeptical - how do you want to translate this? If you want to use a textual string, we should also use a string in the original (C) locale.

I think the idea was not to use "None" or "Unknown" because that would clutter the user interface with elements indicating that information is not available.
Comment 3 Claude Paroz 2008-07-12 15:02:45 UTC
You talk about "--"?
I saw that one was already marked for translation, and not the others. So either all or none should be marked. But if you think that they should not be marked at all, I see no problem.

But on the other hand, it's always difficult to assume that "--" means "nothing" in all languages/cultures.  
Comment 4 Christian Neumair 2008-07-12 15:45:11 UTC
> You talk about "--"?

Yes.

> it's always difficult to assume that "--" means "nothing" in all languages/cultures.

Every language except vietnamese seems to translate this to "--".
In vietnamese, it is a nice dash. I just committed a patch that removes the gettext call, and replaces the "--" by a dash:

http://svn.gnome.org/viewvc/nautilus?view=revision&revision=14351

Thanks, closing.
Comment 5 Claude Paroz 2008-07-12 19:17:29 UTC
Fine for me, but:
 * you omitted the translator comment at line 1363 (first change in my diff)
 * you have a left-over gettext call at line 3262 (_(INCONSISTENT_STATE_STRING))
Comment 6 A. Walton 2008-07-16 18:01:48 UTC
The first change shouldn't be necessary as it's explained by the Q_() macros' definition, but it may be a good idea to add it anyways for those using translator services. I'm not sure how well that plays with reality though. Do any of the other Q_() strings have comments like that?

The second point is definitely correct and is fixed now.
Comment 7 Claude Paroz 2008-07-16 18:35:31 UTC
In general, I prefer that all Q_() macros have translator comment. Experienced translators should not need it, but you know... :-)

But as the Q_() macro should soon become deprecated, you could also replace it by the new C_() macro, and so the comment would be no more necessary.
See http://live.gnome.org/GnomeGoals/MsgctxtMigration
Comment 8 A. Walton 2008-07-16 18:55:40 UTC
Created attachment 114678 [details] [review]
bump intltool req, use C_() instead

Here's the patch to do just that. I didn't commit it directly as I'm not sure if there's a procedure to do when bumping module requirements though.
Comment 9 Claude Paroz 2008-07-16 19:24:13 UTC
Sounds perfect to me.
Comment 10 Christian Neumair 2008-07-21 15:24:20 UTC
The patch has been committed some time ago by A. Walton. Thanks for staying tuned. Closing.
Comment 11 Claude Paroz 2008-07-21 16:29:23 UTC
I'm so sorry to reopen this, but I just discovered yesterday that C_ support in intltool was broken (#543665). It will be corrected in intltool 0.40.1, but I suggest we keep the Q_ macro for 2.24. We will probably launch a gnome-love campaign to replace Q_ by C_ during 2.25 cycle.
Comment 12 Christian Neumair 2008-07-22 14:16:13 UTC
Thanks, I have reverted the patch in Nautilus 2.23.5.1, which I am rolling ATM.
Comment 13 Cosimo Cecchi 2008-08-20 23:07:14 UTC
A comment for the first string in Claude's patch has been committed to trunk for the 2.24 release, along with a FIXME comment referring to this bug.
Comment 14 A. Walton 2008-10-27 10:51:03 UTC
Bug 543665 has been fixed, and gnome-i18n may be pushing this for 2.26, so I think this is probably safe to go in now.
Comment 15 Claude Paroz 2009-02-12 22:08:51 UTC
Ping, the Q_ to C_ change could be applied, and then this bug can be safely closed.
Comment 16 Cosimo Cecchi 2009-02-12 23:05:49 UTC
Committed to trunk a version of the patch that requires intltool 0.40.1.

2009-02-13  Cosimo Cecchi  <cosimoc@gnome.org>

	* configure.in: require intltool 0.40.1.
	* src/file-manager/fm-properties-window.c
	(value_field_update_internal): use C_() to handle translator
	comments. Patch by A. Walton (#542658).