public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug translation/29917]  New: %s substituted with actual words can not be translated correctly
@ 2006-11-20 19:15 goeran at uddeborg dot se
  2006-12-02 20:22 ` [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error) pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: goeran at uddeborg dot se @ 2006-11-20 19:15 UTC (permalink / raw)
  To: gcc-bugs

In the function op_error in gcc/cp/call.c there are several messages like

"%s for ternary %<operator?:%> in %<%E ? %E : %E%>"

and

"%s for %<operator%s%> in %<%E%s%>"

among others.  The first %s here is substituted fromthe variable "problem"
which can contain strings "no match" or "ambigious overload".  These latter
words are not available for translation, so the composed sentence will be only
partially translated.  And composed sentences like this is not in general
possible to translate, even if it would work for Swedish.  Each message needs
to be split up in two separate messages if proper translation is to be possible
for all languages.


-- 
           Summary: %s substituted with actual words can not be translated
                    correctly
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: translation
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: goeran at uddeborg dot se


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


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

* [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error)
  2006-11-20 19:15 [Bug translation/29917] New: %s substituted with actual words can not be translated correctly goeran at uddeborg dot se
@ 2006-12-02 20:22 ` pinskia at gcc dot gnu dot org
  2009-12-02 15:50 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-02 20:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-02 20:22 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|translation                 |c++
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-02 20:22:33
               date|                            |
            Summary|%s substituted with actual  |%s substituted with actual
                   |words can not be translated |words can not be translated
                   |correctly                   |correctly (op_error)


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


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

* [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error)
  2006-11-20 19:15 [Bug translation/29917] New: %s substituted with actual words can not be translated correctly goeran at uddeborg dot se
  2006-12-02 20:22 ` [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error) pinskia at gcc dot gnu dot org
@ 2009-12-02 15:50 ` paolo at gcc dot gnu dot org
  2009-12-02 15:55 ` paolo dot carlini at oracle dot com
  2009-12-06 12:45 ` goeran at uddeborg dot se
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-12-02 15:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo at gcc dot gnu dot org  2009-12-02 15:49 -------
Subject: Bug 29917

Author: paolo
Date: Wed Dec  2 15:49:20 2009
New Revision: 154915

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154915
Log:
2009-12-02  Paolo Bonzini  <bonzini@gnu.org>
            Shujing Zhao  <pearly.zhao@oracle.com>

        PR c++/29917
        * call.c (op_error): Accept a boolean to indicate no match/ambiguous
        match, instead of a string. Callers adjusted.

        PR c++/34836
        * cp-tree.h (readonly_error_kind): New type.
        (readonly_error): Adjust prototype with new argument.
        * typeck2.c (readonly_error): Accept readonly_error_kind as argument
        and add macro ERROR_FOR_ASSIGNMENT to emit diagnostics.
        * semantics.c (finish_asm_stmt): Adjust readonly_error call.
        * typeck.c (cp_build_unary_op, cp_build_modify_expr): Likewise.

        * decl.c (grokparms, grok_op_properties): Put the diagnostics in full
        sentences for easy translation and wrap the diagnostics into G_() when
        needed.
        (create_array_type_for_decl): Likewise.
        * pt.c (tsubst): Likewise.
        * typeck2.c (cp_build_unary_op): Wrap diagnostic into _().
        * rtti.c (build_dynamic_cast_1): Likewise.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/Make-lang.in
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/rtti.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/cp/typeck2.c


-- 


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


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

* [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error)
  2006-11-20 19:15 [Bug translation/29917] New: %s substituted with actual words can not be translated correctly goeran at uddeborg dot se
  2006-12-02 20:22 ` [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error) pinskia at gcc dot gnu dot org
  2009-12-02 15:50 ` paolo at gcc dot gnu dot org
@ 2009-12-02 15:55 ` paolo dot carlini at oracle dot com
  2009-12-06 12:45 ` goeran at uddeborg dot se
  3 siblings, 0 replies; 5+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-02 15:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo dot carlini at oracle dot com  2009-12-02 15:55 -------
Fixed for 4.5.0.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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


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

* [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error)
  2006-11-20 19:15 [Bug translation/29917] New: %s substituted with actual words can not be translated correctly goeran at uddeborg dot se
                   ` (2 preceding siblings ...)
  2009-12-02 15:55 ` paolo dot carlini at oracle dot com
@ 2009-12-06 12:45 ` goeran at uddeborg dot se
  3 siblings, 0 replies; 5+ messages in thread
From: goeran at uddeborg dot se @ 2009-12-06 12:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from goeran at uddeborg dot se  2009-12-06 12:44 -------
Looks good in po file for 4.5-b20091203


-- 

goeran at uddeborg dot se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED


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


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

end of thread, other threads:[~2009-12-06 12:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-20 19:15 [Bug translation/29917] New: %s substituted with actual words can not be translated correctly goeran at uddeborg dot se
2006-12-02 20:22 ` [Bug c++/29917] %s substituted with actual words can not be translated correctly (op_error) pinskia at gcc dot gnu dot org
2009-12-02 15:50 ` paolo at gcc dot gnu dot org
2009-12-02 15:55 ` paolo dot carlini at oracle dot com
2009-12-06 12:45 ` goeran at uddeborg dot se

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).