Anonymous | Login | Signup for a new account | 2024-10-31 08:18 CET |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001636 | aMule | Messages | public | 2010-11-01 18:25 | 2011-03-13 16:21 | ||||
Reporter | adaptee | ||||||||
Assigned To | GonoszTopi | ||||||||
Priority | normal | Severity | trivial | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | Linux | OS | OS Version | ||||||
Product Version | SVN | ||||||||
Target Version | 2.3.1 | Fixed in Version | 2.3.1 | ||||||
Summary | 0001636: one buggy message in the translation file of Chinese simplified | ||||||||
Description | The translator has mistakenly put extra(and invalid?) modifier when translating %s, as listed below: #: src/CorruptionBlackBox.cpp:227 #, c-format msgid "" "Banned client %s for sending %s corrupt data of %s total for the file '%s'" msgstr "" "????? %1$s?????? '%4$s' ????? %3$s ?? %2$s ?????? The corresponding line of code is : AddLogLineN(CFormat(_("Banned client %s for sending %s corrupt data of %s total for the file '%s'")) % clientName % CastItoXBytes(bad) % CastItoXBytes(good + bad) % m_fileName); That buggy '%1$s' fails to be interpreted as an valid formatter, So the log message will be like this : 2010-11-02 00:31:37: CorruptionBlackBox.cpp(228): ????? %1$s?????? '%4$s' ????? %3$s ?? %2$s ?????? The fix is really easy, just change those %1$s, %2$s, etc into plain %s | ||||||||
Tags | No tags attached. | ||||||||
Fixed in Revision | 10459 | ||||||||
Operating System | Any | ||||||||
Attached Files | |||||||||
Notes | |
(0003510) sturedman (developer) 2010-11-07 12:55 |
Hmm, it's not that easy. The translation changes the sentence so that the arguments have to be passed in a different order. That's what the modifiers are supposed to do. See http://docs.wxwidgets.org/stable/wx_wxstring.html#wxstringprintf [^] However CFormat does not allow this feature. We'll discuss what to do. |
Issue History | |||
Date Modified | Username | Field | Change |
2010-11-01 18:25 | adaptee | New Issue | |
2010-11-01 18:25 | adaptee | Operating System | => Any |
2010-11-07 12:55 | sturedman | Note Added: 0003510 | |
2010-11-07 12:55 | sturedman | Assigned To | => sturedman |
2010-11-07 12:55 | sturedman | Status | new => acknowledged |
2011-03-13 16:21 | sturedman | Fixed in Revision | => 10459 |
2011-03-13 16:21 | sturedman | Assigned To | sturedman => GonoszTopi |
2011-03-13 16:21 | sturedman | Status | acknowledged => resolved |
2011-03-13 16:21 | sturedman | Resolution | open => fixed |
2011-03-13 16:21 | sturedman | Fixed in Version | => 2.3.1 |
2011-03-13 16:21 | sturedman | Target Version | => 2.3.1 |
Copyright © 2000 - 2024 MantisBT Team |