Opened 13 years ago
Last modified 4 years ago
#8050 assigned bug
Saved queries and query templates messed up when switching locale
Reported by: | humdinger | Owned by: | aldeck |
---|---|---|---|
Priority: | normal | Milestone: | R1.1 |
Component: | Applications/Tracker | Version: | R1/Development |
Keywords: | localization | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
This is hrev42901.
If you change your Locale prefs, saved queries and query templates may not work anymore. For example, create and save this query template:
Now change locale from English to German and restart Tracker.
-> 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...
Attachments (1)
Change History (5)
by , 13 years ago
Attachment: | querytemplate.png added |
---|
comment:1 by , 13 years ago
Where I wrote
Now change locale from English to German and restart Tracker. -> The "after" and "contains" disappeared.
I meant that there is no "after" and "contains" when you open the saved query template again.
comment:2 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 13 years ago
Component: | Kits/libtracker.so → Applications/Tracker |
---|
comment:4 by , 4 years ago
Milestone: | R1 → R1.1 |
---|
screenshot of an example query