Opened 13 years ago
Closed 13 years ago
#1767 closed task (fixed)
Translations of the omc kernel
| Reported by: | Martin Sjölund | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.9.0 |
| Component: | Frontend | Version: | trunk |
| Keywords: | Cc: | Adeel Asghar, Per Östlund |
Description
We need to mark translation strings using System.gettext("mystring") so we can proceed with translations in the omc kernel.
The biggest chunk of strings that the user can see are the ones in Error.mo. Sadly, they are constant strings, which means they are hard to mark. Also, multi-line strings seem to not be supported by xgettext.
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
| Milestone: | → 1.9.0 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Swedish translations are now up. Instructions in Compiler/Translation for other languages
Note:
See TracTickets
for help on using tickets.

Ok, I think I figured out a solution to mark the string in Error.mo:
public GetTextMark record gettext "Used to mark messages as targets for translation" String msgid; end gettext; end GetTextMark public constant Message SYNTAX_ERROR = MESSAGE(1, SYNTAX(), ERROR(), gettext("Syntax error near: %s")); ... And then later call System.gettext(msgid), which will translate the string.