Opened 5 years ago

Closed 4 years ago

#15520 closed bug (fixed)

Context menus are not translated in some applications

Reported by: bitigchi Owned by: nobody
Priority: normal Milestone: R1/beta3
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

For instance, in StyledEdit and WebPositive, right-click menus still contain untranslated strings. See screenshot

Attachments (1)

screenshot4.png (9.6 KB ) - added by bitigchi 5 years ago.
StyledEdit Context Menu

Download all attachments as: .zip

Change History (6)

by bitigchi, 5 years ago

Attachment: screenshot4.png added

StyledEdit Context Menu

comment:1 by pulkomandy, 5 years ago

For WebPositive, this (and a few other things) has to be translated directly in WebKit, for which I did not write the appropriate support code yet. The translations will then be at KapiX 3rd-party translation tool, not in Haiku.

comment:2 by humdinger, 5 years ago

That StyledEdit context menu being not translated is a bit odd...
Same goes for Backgrounds etc. where there's a ColorControl.

The strings from the above and more end up at Pootle in the src/kits/interface/xx.catkeys file (e.g. de.catkeys). That file gets correctly exported to trunk, so the bug has to be somewhere else...
Could it be the B_TRANSLATE_MARK thingie e.g. at https://git.haiku-os.org/haiku/tree/src/kits/interface/TextView.cpp#n70 ?

comment:3 by humdinger, 5 years ago

Component: - GeneralKits/Interface Kit

comment:4 by pulkomandy, 5 years ago

No, that is correct, it allows the string to be "collected" for the system catalog, but not translated using the normal B_TRANSLATE, as we need to use the gSystemCatalog here.

This used to work at least for BColorControl, so the gSystemCatalog initialization must be broken in some way.

comment:5 by humdinger, 4 years ago

Milestone: UnscheduledR1/beta3
Resolution: fixed
Status: newclosed

The translations in context menus in StyledEdit and colour controls seem to work fine now. Web+, as PulkoMandy said, has to be fixed in webkit with the translations being managed at Polyglot. Closing ticket.

Note: See TracTickets for help on using tickets.