News for hackers. Stuff that matters.
Re:Localisation is too hard for Gmail by reaperducer on Wednesday October 21, 2020 @11:34AM (#24848838)
If you called that the "bin" label in England, then functionality could break when the user switches languages

Not if you designed the system with localization in mind from the beginning.

I agree, localization is hard. I have to do it for the web sites I build. But I build them with this kind of abstraction in mind, and am able to convert the mechanics of a web site to another language in just a week or so working with a translator. Then they do the content, and I add that in, and it's done and good.

I've added up to five languages to some of the sites so far, and the language audits have turned up no problems, and no complaints from the users. (We do actual human testing with actual humans. No bogus "telemetry.")

Admittedly, my sites don't serve nearly as many people as GMail, but they have to be as close to perfect as possible because I'm in healthcare, and conveying important information.

At the same time I'm able to do it with just me, while Google has a trillion dollars to throw at the problem.

The professional translators I work with say that to them, it looks like Google translates its web sites with Google Translate, rather than with a native-speaking human being.

Re:Localisation is too hard for Gmail by luma on Wednesday October 21, 2020 @01:57PM (#24850357)
So how do you deal with IMAP? The protocol doesn't support i12n. There's more to GMail than the web front-end.
Re:Localisation is too hard for Gmail by qwertox on Wednesday October 21, 2020 @04:20PM (#24851685)
I have several bookmarked filters along the line of "label:inbox label:2-youtube".

Should they all break just because I change the language settings?

"inbox", "trash", "drafts" are labels and localization shouldn't pretend that they are something else.

It is nice if the UI presents us a named shortcut displayed in our chosen language setting, which applies a certain filter on labels when clicked.

Re:Localisation is too hard for Gmail by saurik on Wednesday October 21, 2020 @11:34PM (#24854638)
When you bookmark a filter, shouldn't it bookmark the parsed version of the filter, not your string? If you rename one of those folders manually, it would suck if the filter didn't update (and other mail systems like Zimbra do this correctly... are you sure Google doesn't?).
Re:Localisation is too hard for Gmail by akiselev on Wednesday October 21, 2020 @09:04PM (#24853962)
> The professional translators I work with say that to them, it looks like Google translates its web sites with Google Translate, rather than with a native-speaking human being.

Or worse yet, outsource to a low cost firm whose translators add their own semi-illiterate or colloquial flourishes to Google Translator output.

Re:Localisation is too hard for Gmail by londons_explore on Thursday October 22, 2020 @07:23AM (#24856860)
Google translators are outsourced to a company which doesn't have access to the product - they are literally given a spreadsheet of strings and told to "translate these". No wonder the translations are sub-par.
Re:Localisation is too hard for Gmail by wodenokoto on Wednesday October 21, 2020 @01:45PM (#24850230)
So what do you do when a en_GB user creates a folder named Trash and switches to en_US and her “bin” folder now needs to be displayed as Trash? How do you resolve her saved searches and labeled items in a way such that the user can also tell them apart?
Re:Localisation is too hard for Gmail by thesuitonym on Wednesday October 21, 2020 @02:34PM (#24850693)
Labels should reference GUIDs behind the scenes. If a user does this, they will just be unsure which one is the actual Trash label. When searching, Gmail should give results from both labels.
Re:Localisation is too hard for Gmail by PaulDavisThe1st on Wednesday October 21, 2020 @02:57PM (#24850887)
or more generally, user-provided names should never be the canonical identifier for any resource.

for example, don't (canonically) identify accounts with usernames. that way when "joesmith" becomes "josephbarnes", the user can just change their username and everything keeps working (because it's really all user ID 19829).

any "name" you get from a user should always be considered nothing more than a non-canonical label for a resource with some other persistent and canonical identifier.

Re:Localisation is too hard for Gmail by xyzzy_plugh on Wednesday October 21, 2020 @03:50PM (#24851356)
As another poster points out, this won't work for e.g. IMAP usage.
Re:Localisation is too hard for Gmail by earthboundkid on Thursday October 22, 2020 @01:03AM (#24855048)
Yes, although to be fair, JMAP is a thing and Google has had a decade and a half to improve IMAP if they cared.
Re:Localisation is too hard for Gmail by dash2 on Wednesday October 21, 2020 @02:26PM (#24850613)
Maybe use reserved words? This doesn't seem like an impossible obstacle to surmount.