3 ms·
Using a surrogate key for labels would help a lot. That still leads to complications when user defined labels match localized names of built-in labels, but you
by CodesInChaos 6y ago
Using a surrogate key for labels would help a lot. That still leads to complications when user defined labels match localized names of built-in labels, but you could skip localization in those cases, use disambiguation (e.g. show it as "bin (built in)", reserve those names, etc.
- londons_explore 6y agoDisambiguation strategies are hard... Imagine you call it "Bin", unless that name is ambiguous, in which case you call it "Bin (built in)". Now, when the user does a search, they need to search for "In:'Bin (built in)'". Except when they delete the label called Bin, now the search terms they must use changes... All their saved searches and bookmarks with search terms in the URL would break too. Reserving the names in all locales might work, although I could imagine quite a few users being frustrated they can't name something without realising that the word they are trying to use means something in some language they don't even speak.
- mikelward 6y agoThen what happens when you add a new locale? I think to solve this 100% you need namespaces.