#5573: [Patch] Deskbar localization -----------------------------+---------------------------------------------- Reporter: mt | Owner: pulkomandy Type: enhancement | Status: in-progress Priority: normal | Milestone: R1 Component: Kits/Locale Kit | Version: R1/Development Keywords: Deskbar | Blockedby: Platform: All | Blocking: -----------------------------+---------------------------------------------- Changes (by pulkomandy): * status: new => in-progress Comment: You are doing this (also with some other #ifdef blocks, this one is an example) : {{{ 235 242 #ifdef HAIKU_DISTRO_COMPATIBILITY_OFFICIAL 236 "About Haiku" 243 TR("About Haiku" B_UTF8_ELLIPSIS) 237 244 #else 238 "About this system" 245 TR("About this system" B_UTF8_ELLIPSIS) 239 246 #endif }}} Basically this will not work as expected : one of the strings will not be in the .catkeys file. I see two solutions : * Have both strings in the catkey file and let one never be used on a given Haiku install. This can be done by TR_MARKing the strings outside of the #if block * Have only one string translated, and swap the catalogs at runtime. This is cleaner in terms of distribution, but complexifies the handling of catkeys files (not en.catkeys, but all the others) I'll ask the other devs what they think about it and look at the TODOs. Not applying the patch until a proper solution is found for this problem. -- Ticket URL: <http://dev.haiku-os.org/ticket/5573#comment:1> Haiku <http://dev.haiku-os.org> Haiku - the operating system.