wxrc -g should output filenames in Unix format.
It is customary in C source code and xgettext has problems with backslahes in #line comments. Fixes #10727. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a216dfa2c1
commit
0d373eac1d
@ -844,9 +844,12 @@ void XmlResApp::OutputGettext()
|
||||
|
||||
for (ExtractedStrings::const_iterator i = str.begin(); i != str.end(); ++i)
|
||||
{
|
||||
wxString s;
|
||||
const wxFileName filename(i->filename);
|
||||
|
||||
wxString s;
|
||||
s.Printf("#line %d \"%s\"\n",
|
||||
i->lineNo, filename.GetFullPath(wxPATH_UNIX));
|
||||
|
||||
s.Printf("#line %d \"%s\"\n", i->lineNo, i->filename);
|
||||
fout.Write(s);
|
||||
fout.Write("_(\"" + i->str + "\");\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user