Bug 29897 - %s substituted with parts of sentence can not be translated correctly
Summary: %s substituted with parts of sentence can not be translated correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: translation (show other bugs)
Version: 4.1.0
: P3 minor
Target Milestone: 4.7.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: trivial_translation_nits
  Show dependency treegraph
 
Reported: 2006-11-19 14:10 UTC by Göran Uddeborg
Modified: 2011-10-21 14:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-11-19 14:59:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Göran Uddeborg 2006-11-19 14:10:04 UTC
In gcc/config/sh/symbian.c there is this code:

      warning (0, "%s %q+D %s after being referenced with dllimport linkage",
	       TREE_CODE (decl) == VAR_DECL ? "variable" : "function",
	       decl, (DECL_INITIAL (decl) || !DECL_EXTERNAL (decl))
	       ? "defined locally" : "redeclared without dllimport attribute");

The strings substituted for the two %s:es are not available for translation, so this can not be properly translated.  And composed sentences like this is not in general possible to translate.  I realise it has to be split up in four different messages, but that seems to be the only way to get proper translations.
Comment 1 Richard Biener 2006-11-19 14:59:00 UTC
Confirmed.
Comment 2 Paolo Carlini 2011-10-21 14:49:45 UTC
Moot in mainline, file and message don't exist anymore.