public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug translation/42467]  New: Localization fails with -gnat<options> line in gcc --help=Ada
@ 2009-12-22 19:27 karvonen dot jorma at gmail dot com
  2009-12-22 19:31 ` [Bug translation/42467] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: karvonen dot jorma at gmail dot com @ 2009-12-22 19:27 UTC (permalink / raw)
  To: gcc-bugs

The file gcc-4.5-b20091203.pot includes lines:

#: ada/gcc-interface/lang.opt:100
msgid "Specify options to GNAT"
msgstr "Translation with any language"

But file ada/gcc-interface/lang.opt includes the following lines:

gnat
Ada Joined
-gnat<options>  Specify options to GNAT

Therefore, the following fix should be needed (msgstr is shown for testing
purposes):
#: ada/gcc-interface/lang.opt:100
msgid "-gnat<options>   Specify options to GNAT"
msgstr "-gnat<something>        Any translation"

diff:
< msgid "Specify options to GNAT"
> msgid "-gnat<options>	Specify options to GNAT"


-- 
           Summary: Localization fails with -gnat<options> line in gcc --
                    help=Ada
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: translation
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: karvonen dot jorma at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug translation/42467] Localization fails with -gnat<options> line in gcc --help=Ada
  2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
@ 2009-12-22 19:31 ` pinskia at gcc dot gnu dot org
  2009-12-22 19:32 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-12-22 19:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-12-22 19:31 -------
All the *.opt are done that way.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug translation/42467] Localization fails with -gnat<options> line in gcc --help=Ada
  2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
  2009-12-22 19:31 ` [Bug translation/42467] " pinskia at gcc dot gnu dot org
@ 2009-12-22 19:32 ` pinskia at gcc dot gnu dot org
  2009-12-23 11:58 ` [Bug translation/42467] exgettext should not remove TABs from option help strings jsm28 at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-12-22 19:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-12-22 19:32 -------
Or wait most are done that way ...

Looks like the way .pot is generated is incorrect .


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug translation/42467] exgettext should not remove TABs from option help strings
  2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
  2009-12-22 19:31 ` [Bug translation/42467] " pinskia at gcc dot gnu dot org
  2009-12-22 19:32 ` pinskia at gcc dot gnu dot org
@ 2009-12-23 11:58 ` jsm28 at gcc dot gnu dot org
  2009-12-23 12:01 ` jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-12-23 11:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2009-12-23 11:58 -------
The option help string is passed for translation as a whole before
the special interpretation for TAB as described in options.texi:

  The help text is automatically line-wrapped before being displayed.
  Normally the name of the option is printed on the left-hand side of
  the output and the help text is printed on the right.  However, if the
  help text contains a tab character, the text to the left of the tab is
  used instead of the option's name and the text to the right of the
  tab forms the help text.  This allows you to elaborate on what type
  of argument the option takes.

Thus, exgettext is wrong to remove the text before the tab (which
generally does need translation of things such as <options>).


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |40883
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-23 11:58:25
               date|                            |
            Summary|Localization fails with -   |exgettext should not remove
                   |gnat<options> line in gcc --|TABs from option help
                   |help=Ada                    |strings


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug translation/42467] exgettext should not remove TABs from option help strings
  2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
                   ` (2 preceding siblings ...)
  2009-12-23 11:58 ` [Bug translation/42467] exgettext should not remove TABs from option help strings jsm28 at gcc dot gnu dot org
@ 2009-12-23 12:01 ` jsm28 at gcc dot gnu dot org
  2010-01-07  8:38 ` pzhao at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-12-23 12:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2009-12-23 12:00 -------
*** Bug 42468 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug translation/42467] exgettext should not remove TABs from option help strings
  2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
                   ` (3 preceding siblings ...)
  2009-12-23 12:01 ` jsm28 at gcc dot gnu dot org
@ 2010-01-07  8:38 ` pzhao at gcc dot gnu dot org
  2010-01-11  4:29 ` pzhao at gcc dot gnu dot org
  2010-01-11  9:33 ` pzhao at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pzhao at gcc dot gnu dot org @ 2010-01-07  8:38 UTC (permalink / raw)
  To: gcc-bugs



-- 

pzhao at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pzhao at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-12-23 11:58:25         |2010-01-07 08:38:27
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug translation/42467] exgettext should not remove TABs from option help strings
  2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
                   ` (4 preceding siblings ...)
  2010-01-07  8:38 ` pzhao at gcc dot gnu dot org
@ 2010-01-11  4:29 ` pzhao at gcc dot gnu dot org
  2010-01-11  9:33 ` pzhao at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pzhao at gcc dot gnu dot org @ 2010-01-11  4:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pzhao at gcc dot gnu dot org  2010-01-11 04:28 -------
Subject: Bug 42467

Author: pzhao
Date: Mon Jan 11 04:28:36 2010
New Revision: 155801

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155801
Log:
gcc/po/
2010-01-11  Joseph Myers  <joseph@codesourcery.com>
            Shujing Zhao  <pearly.zhao@oracle.com>

        PR translation/42467
        * exgettext: Keep the text before tab character in the option help
        string at *.opt file.

gcc/
2010-01-11  Joseph Myers  <joseph@codesourcery.com>
            Shujing Zhao  <pearly.zhao@oracle.com>

        PR translation/42469
        * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
        fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
        character between option name and help text.
        * c.opt (imultilib): Likewise.

gcc/fortran
2010-01-11  Joseph Myers  <joseph@codesourcery.com>
            Shujing Zhao  <pearly.zhao@oracle.com>

        PR translation/42469
        * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
        finit-logical=, finit-real=, fmax-array-constructor=): Use tab
        character between option name and help text.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c.opt
    trunk/gcc/common.opt
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/lang.opt
    trunk/gcc/po/ChangeLog
    trunk/gcc/po/exgettext


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug translation/42467] exgettext should not remove TABs from option help strings
  2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
                   ` (5 preceding siblings ...)
  2010-01-11  4:29 ` pzhao at gcc dot gnu dot org
@ 2010-01-11  9:33 ` pzhao at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pzhao at gcc dot gnu dot org @ 2010-01-11  9:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pzhao at gcc dot gnu dot org  2010-01-11 09:33 -------
Fixed for 4.5.0


-- 

pzhao at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42467


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-01-11  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-22 19:27 [Bug translation/42467] New: Localization fails with -gnat<options> line in gcc --help=Ada karvonen dot jorma at gmail dot com
2009-12-22 19:31 ` [Bug translation/42467] " pinskia at gcc dot gnu dot org
2009-12-22 19:32 ` pinskia at gcc dot gnu dot org
2009-12-23 11:58 ` [Bug translation/42467] exgettext should not remove TABs from option help strings jsm28 at gcc dot gnu dot org
2009-12-23 12:01 ` jsm28 at gcc dot gnu dot org
2010-01-07  8:38 ` pzhao at gcc dot gnu dot org
2010-01-11  4:29 ` pzhao at gcc dot gnu dot org
2010-01-11  9:33 ` pzhao at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).