public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/32249]  New: %s substituted with "interface"/"class" can't be properly translated
@ 2007-06-07 20:38 goeran at uddeborg dot se
  2007-06-08 18:36 ` [Bug java/32249] " tromey at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: goeran at uddeborg dot se @ 2007-06-07 20:38 UTC (permalink / raw)
  To: java-prs

In gcc/java/parse.y there is this code:

        parse_error_context
          (cl, "Public %s %qs must be defined in a file called %<%s.java%>",
                             (is_interface ? "interface" : "class"),
                             IDENTIFIER_POINTER (qualified_name),
                             IDENTIFIER_POINTER (raw_name));

The strings substituted for the first %s are not available for translation. 
But as it is written, they are the English words, not the syntactical tokens. 
So this can not be properly translated.  Even if the words were markes for
translation in isolation, composing a sentence like this is not in general
possible to do for an arbitrary language.  It needs to be split into two
separate messages


-- 
           Summary: %s substituted with "interface"/"class" can't be
                    properly translated
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: goeran at uddeborg dot se


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


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

* [Bug java/32249] %s substituted with "interface"/"class" can't be properly translated
  2007-06-07 20:38 [Bug java/32249] New: %s substituted with "interface"/"class" can't be properly translated goeran at uddeborg dot se
@ 2007-06-08 18:36 ` tromey at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-06-08 18:36 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from tromey at gcc dot gnu dot org  2007-06-08 18:36 -------
I'm closing this, because parse.y no longer exists on svn trunk.
If you find instances of this bug in the remaining parts of gcj,
please file a new PR.  Thanks.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-06-08 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 20:38 [Bug java/32249] New: %s substituted with "interface"/"class" can't be properly translated goeran at uddeborg dot se
2007-06-08 18:36 ` [Bug java/32249] " tromey 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).