#7874: Localization of Decorators ----------------------------------+---------------------------- Reporter: humdinger | Owner: czeidler Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Add-Ons/Decorators | Version: R1/Development Resolution: | Keywords: localization Blocked By: | Blocking: Has a Patch: 1 | Platform: All ----------------------------------+---------------------------- Comment (by pulkomandy): The first patch looks fine. The second one is not :) When translating stuff that ends up built in libbe, you can't use the usual system to get your catalog. The current solution is to have a special catalog just for that purpose. This special catalog is reached by the special LocaleBackend() class and the instance pointer gLocaleBackend. Your B_TRANSLATE macro does that properly, but you need to call it when translating something. As this is not the normal B_TRANSLATE_MACRO, the collectcatkeys tool will not see it, and you also have to use B_TRANSLATE_MARK on the strings constants (which you did just fine). So, just add the missing B_TRANSLATE calls (likely when filling in the BMessage that is sent to the preflet ?) and it should be fine. As for add-ons, they can use the regular catalog system without any problem (get the english text from resources, then translate). As they are add-ons, they don't have to go through libbe and it _should_ work as usual. -- Ticket URL: <http://dev.haiku-os.org/ticket/7874#comment:2> Haiku <http://dev.haiku-os.org> Haiku - the operating system.