#8050: Saved queries and query templates messed up when switching locale --------------------------------+------------------------------ Reporter: humdinger | Owner: anevilyak Type: bug | Status: new Priority: normal | Milestone: R1 Component: Kits/libtracker.so | Version: R1/Development Keywords: localization | Blocked By: Blocking: | Has a Patch: 0 Platform: All | --------------------------------+------------------------------ This is r42901. If you change your Locale prefs, saved queries and query templates may not work anymore. For example, create and save this query template: [[Image(querytemplate.png)]] Now change locale from English to German and restart Tracker.[[BR]] -> The "after" and "contains" disappeared. This is because the attribute _trk/qryinitattrs contains localized keywords. This is from another example, switching from German to English. {{{ ~/config/settings/Mail/Menu Links> catattr _trk/qryinitattrs /boot/home/config/settings/Mail/Menu\ Links/Same\ sender\ this\ week /boot/home/config/settings/Mail/Menu Links/Same sender this week : message : BMessage(0x0) { menuSelection[0] = string("When", 5 bytes) menuSelection[1] = string("From", 5 bytes) subMenuSelection[0] = string("nach", 5 bytes) subMenuSelection[1] = string("enthält", 9 bytes) attrViewText[0] = string("last 7 days", 12 bytes) attrViewText[1] = string("", 1 bytes) logicalRelation = int32(0x0 or 0) } }}} You see, "after" became "nach", and "contains" is now "enthält". Under an English locale, the find panel doesn't understand that anymore... -- Ticket URL: <http://dev.haiku-os.org/ticket/8050> Haiku <http://dev.haiku-os.org> Haiku - the operating system.