#3304 closed defect (fixed)
[PATCH] 'The Developer Overlay was opened.' is translated in the wrong place
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 20 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description
If you open the developers overlay with Alt+D, then your computer translates this message and sends it via the ingame chat.
However it should be translated after it was received, so that everyone can read this message in the language that is currently set.
On unix you can open two instances of 0ad, change the language setting in one and host a multiplayer game to reproduce the issue.
Attachments (2)
Change History (8)
by , 8 years ago
Attachment: | fixes_for_issue_3304.patch added |
---|
comment:1 by , 8 years ago
Keywords: | review patch added |
---|---|
Milestone: | Backlog → Alpha 20 |
Summary: | 'The Developer Overlay was opened.' is translated in the wrong place → [PATCH] 'The Developer Overlay was opened.' is translated in the wrong place |
by , 8 years ago
Attachment: | fixes_for_issue_3304_v2.patch added |
---|
comment:2 by , 8 years ago
Keywords: | review removed |
---|
comment:4 by , 8 years ago
Keywords: | simple removed |
---|
comment:5 by , 7 years ago
r17789 doesn't work with observers opening the developer overlay, as they can't send simulation commands. This issue becomes more prevalent if we want to add more GUI messages, for example when changing the perspective to another player.
So we have to use the regular chat network message instead of a simulation command, hence /translate
in conjunction with markForTranslation
if we want to translate clientside in all cases, not too far from your approach.
translate
,markForTranslation
and related calls. It can only work in case the argument of these calls is a string, not an expression like "x" + "y".submitChatDirectly
)aichat