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 115633 - Don't split sentences in gedit
Don't split sentences in gedit
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
git master
Other All
: High normal
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
: 116695 117360 119409 121047 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-06-20 21:36 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against HEAD. - obsoleted by newer patch (31.57 KB, patch)
2003-06-28 15:39 UTC, Christian Neumair
none Details | Review
Tested patch against HEAD to fix some of the strings. (2.11 KB, patch)
2003-08-11 23:25 UTC, Dafydd Harries
committed Details | Review
Proposed patch. Don't insert "\n\n" where g_warning is used, always use \" characters around file name. (6.88 KB, patch)
2003-12-31 12:52 UTC, Christian Neumair
none Details | Review

Description Christian Rose 2003-06-20 21:36:56 UTC
#: gedit/dialogs/gedit-page-setup-dialog.c:587
#: gedit/dialogs/gedit-page-setup-dialog.c:629
msgid ""
"page-setup-dialog.glade2'.\n"
"\n"
"Reinstall gedit."

#: gedit/dialogs/gedit-page-setup-dialog.c:587
msgid "Could not find '"

#: gedit/dialogs/gedit-page-setup-dialog.c:628
msgid "Could not find the required widgets inside '"


This split message design is horribly broken with regards to localization.
Sentences can only be translated in their entireness, don't split sentences
into several paragraphs. More details about this problem on
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#split-sentences.

In addition, please do not include explicit file names in messages; replace
them with %s where possible. More about that and the reasons for that on 
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#generic.
Comment 1 Christian Neumair 2003-06-28 15:39:26 UTC
Created attachment 17856 [details] [review]
Patch against HEAD. - obsoleted by newer patch
Comment 2 Christian Neumair 2003-06-28 15:41:15 UTC
This patch reconcatenates the strings Christian was referring to and
removes all newline characters from our msgids :).
The onliest problem remaining is the markup.
Changing some bug data.

regs,
 Chris
Comment 3 Paolo Maggi 2003-06-28 15:48:00 UTC
Chris: thanks for the patch.
I will give a detailed look at it ASAP.
ATM, I have only a comment:
- don't use C++ like comments in C code.

What you mean with "Changing some bug data."? Which ones?
Comment 4 Christian Neumair 2003-06-28 16:06:16 UTC
Paolo: Forgot to do so. I wanted to add PATCH keyword, lower severity
to minor and raise priority to high (because of the patch).
What do you mean by CPP code comments?
I'm used to add one-liners by // and the rest using /**/.
BTW: What is the preferred coding style? I discovered several
inconsistencies in your's, namely the argument intention:
g_strconcat (_("I'm a string"),
<----------->_("me, too"),
<----------->NULL);
vs.
g_strconcat (
<--tab-->_("I'm a string"),
<--tab-->_("me, too"),
<--tab-->NULL);

regs,
 Chris
Comment 5 Christian Neumair 2003-06-28 16:07:05 UTC
Do'h, forgot again. Changing some bug data (really!).

regs,
 Chris
Comment 6 Paolo Maggi 2003-06-28 16:13:20 UTC
You should not use // in C code.
About coding style... actually I'm not so religious about coding style
in gedit. It have had a lot of authors and mantainers, so the coding
style is  a mix of different styles.

I prefer to use:

g_strconcat (_("I'm a string"),
<TAB><TAB><->_("me, too"),
<TAB><TAB><->NULL);

Where <-> is the needed number of spaces.
Comment 7 Christian Neumair 2003-06-28 16:20:04 UTC
That's my favorite argument coding style, too.
I don't want you to be religious about that at all, it should just be
made clear what's preferable so that the coders can halfway stick to
that suggested layout.

regs,
 Chris
Comment 8 Abel Cheung 2003-07-19 01:25:38 UTC
How's this going?
Comment 9 Christian Rose 2003-08-08 10:33:43 UTC
*** Bug 116695 has been marked as a duplicate of this bug. ***
Comment 10 Christian Rose 2003-08-08 10:39:23 UTC
*** Bug 119409 has been marked as a duplicate of this bug. ***
Comment 11 Christian Rose 2003-08-08 10:43:16 UTC
Bumping severity to normal, as the current design may very well make
these messages impossible to translate correctly in some languages.
Comment 12 Dafydd Harries 2003-08-11 23:25:16 UTC
Created attachment 19130 [details] [review]
Tested patch against HEAD to fix some of the strings.
Comment 13 Dafydd Harries 2003-08-11 23:30:28 UTC
Attached a patch at for fixing a couple of the problems with
gnome-page-setup-dialog.c, plus one other string. This patch is a
slightly modified version of that proposed for bug #117360. The
strings in gnome-page-setup-dialog.c should not change from the user's
point of view; they should just be a lot easier to translate.
Comment 14 Abel Cheung 2003-08-30 07:37:44 UTC
*** Bug 121047 has been marked as a duplicate of this bug. ***
Comment 15 Wang Jian 2003-08-30 07:52:21 UTC
This problem is really bad. Please fix it ASAP. I wish it is fixed 
before GNOME  2.4 released.
Comment 16 Dafydd Harries 2003-08-30 10:27:09 UTC
This is a nasty problem. However, there is a problem with fixing this
before 2.4. Although the strings wouldn't change from a user-visible
point of view, it would break all existing translations of gedit. This
bug has been around for a while and encouragements were made to fix
this before the string freeze, but it didn't happen.

We might just have to accept that gedit isn't properly l10nable for 2.4.
Comment 17 Paolo Maggi 2003-08-30 10:43:27 UTC
I'm really sorry but, due to personal reason, I had not the time to
fix it before string freeze.
It will be surely fixed in the next majorrelease.
Comment 18 Paolo Maggi 2003-10-21 15:56:32 UTC
Applied a modified version of the Dafydd Harries' patch
Comment 19 Paolo Maggi 2003-10-21 16:12:27 UTC
Christian: may you attach an updated version of your patch?

Note that in 

--- gedit/gedit-document.c	12 Jun 2003 09:32:16 -0000	1.72
+++ gedit/gedit-document.c	28 Jun 2003 15:38:30 -0000

you are leaking msg.

Please, remember to use /* */ comments (instead of // ones)

Is it better "The file \"%s\" is" or "The file '%s' is", i.e. should I
use single or double quotes?
Comment 20 Paolo Maggi 2003-10-21 16:15:50 UTC
From bug #117360:

Most of the remaining strings that I don't like occur within glade files
and I have no idea about improving them. The problem is that messages have
been broken up, making them much much more difficult to translate
accurately:

#: gedit/dialogs/gedit-preferences.glade2.h:39
msgid "Print _line numbers every"

#: gedit/dialogs/gedit-preferences.glade2.h:54
msgid "_Autosave current file every"

#: gedit/dialogs/page-setup-dialog.glade2.h:14
msgid "_Number every"
Comment 21 Paolo Maggi 2003-10-21 16:22:45 UTC
*** Bug 117360 has been marked as a duplicate of this bug. ***
Comment 22 Paolo Maggi 2003-10-21 16:28:19 UTC
hmmm... is it really necessary to remove all newline characters from
msgids?
Comment 23 Christian Rose 2003-10-23 00:29:35 UTC
Not necessarily, but preferrable. Newlines should only be used where
necessary, and not for line wrapping where automatic line wrapping can
be used instead.
Comment 24 Paolo Maggi 2003-12-31 00:34:23 UTC
Christian: may you please attach an updated version of your patch?
Comment 25 Christian Neumair 2003-12-31 12:52:16 UTC
Created attachment 22796 [details] [review]
Proposed patch. Don't insert "\n\n" where g_warning is used, always use \" characters around file name.
Comment 26 Paolo Maggi 2004-02-13 23:24:56 UTC
Are you guys still getting this problem in CVS HEAD?
Comment 27 Paolo Borelli 2004-12-05 16:02:17 UTC
closing. These strings are fixed in cvs HEAD. If you find other specific strings
with split sentences, feel free to open other bugs.