#5743: Texts in resource file is not localized in Printers preflet ---------------------------------+------------------------------------------ Reporter: Karvjorm | Owner: laplace Type: bug | Status: new Priority: normal | Milestone: R1 Component: Preferences/Print | Version: R1/alpha2 Keywords: Preview Save as PDF | Platform: All Blockedby: | Patch: 0 Blocking: | ---------------------------------+------------------------------------------ Comment(by Karvjorm): Another stupid question: property_info is used in many places. Only part of struct is used. Could we use an unused part of struct to save a localized name. Field extra_data is used in scripting purposes, but if this is not always necessary, we could create a struct like this (without endianness changes): {{{ struct replace_property_info { const char* name; uint32 commands[10]; uint32 specifiers[10]; const char* usage; union { struct { uint32 extra_data; uint32 types[10]; }; const char localized_name[44]; }; compound_type ctypes[3]; uint32 _reserved[10]; }; }}} or if extra_data cannot be used, then something like that: {{{ struct replace_property_info { const char* name; uint32 commands[10]; uint32 specifiers[10]; const char* usage; uint32 extra_data; union { uint32 types[10]; const char localized_name[40]; }; compound_type ctypes[3]; uint32 _reserved[10]; }; }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/5743#comment:11> Haiku <http://dev.haiku-os.org> Haiku - the operating system.