terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Terminal might use i18n strings from multiple languages, if the preferred lang is not one WT is fully localized into

Open mataha opened this issue 2 years ago • 6 comments


[!IMPORTANT]
📌 Plan of record: https://github.com/microsoft/terminal/issues/15596#issuecomment-1612163250 We should try to avoid using resources from languages we're only partially localized into (if that's even possible)


Windows Terminal version

1.17.11461.0

Windows build number

10.0.19045.3086

Other Software

N/A

Steps to reproduce

Open Windows Terminal. That's it.

System languages installed (in order of preference):

  • Polish (display)
  • Japanese
  • Korean
  • Russian

Expected Behavior

Windows Terminal opens in my preferred system language (Polish), falling back to English (as it is the de facto lingua franca) if that's not possible.

Actual Behavior

I'd like to provide more details, but I can't stop laughing.

image

mataha avatar Jun 23 '23 22:06 mataha

I honestly don't even know how to begin working on this. 😄 We don't really control this - we just tell WinUI our set of localized strings and it picks the right one based on language preference. It seems to usually work, given that this is (unless I'm mistaken) the first time we've seen such a bug report. I also can't find anything like that over at https://github.com/microsoft/microsoft-ui-xaml.

lhecker avatar Jun 26 '23 11:06 lhecker

LOL. Thanks for filing! I think I know how to approach this one.

If your list of preferred languages is:

  • Polish (display)
  • Japanese
  • Korean
  • Russian

We are not going to choose English under those circumstances. English is not one of your preferred languages!

For a quick fix, you can override the display language of Windows Terminal's UI with a setting on the Appearance page. :smile:

The main issue is that Terminal isn't localized in Polish... but some of its components are, Ugh.

The secondary issue is that MRT (the modern resource "thing" (not its official name)) doesn't do whole-application language selection; it actually does per-resource language selection.

The tertiary issue is that we do mark our package as supporting Polish, for this darn thing:

image

(That menu item gets localized into 88 languages, where the rest of Terminal only gets 13. Yeah. Not great.)

I'd like to provide more details, but I can't stop laughing.

(Do you mind if I share this with the i18n team? They'll get a kick out of it :D)

DHowett avatar Jun 26 '23 15:06 DHowett

This is a good sign that partial localizations work though, for #10667

zadjii avatar Jun 26 '23 17:06 zadjii

We should see if we can configure language fallback with MRT

carlos-zamora avatar Jun 28 '23 22:06 carlos-zamora

I honestly don't even know how to begin working on this. 😄 We don't really control this - we just tell WinUI our set of localized strings and it picks the right one based on language preference. It seems to usually work, given that this is (unless I'm mistaken) the first time we've seen such a bug report. I also can't find anything like that over at https://github.com/microsoft/microsoft-ui-xaml.

I don't think there are many users with three - or even two - preferred system languages. Even less that would file a bug report here.

The secondary issue is that MRT (the modern resource "thing" (not its official name)) doesn't do whole-application language selection; it actually does per-resource language selection.

That's what I thought - buttons are in Polish, most of the translated resources are in Japanese (with leftovers in Korean) and the rest is in English...

(Do you mind if I share this with the i18n team? They'll get a kick out of it :D)

Feel free to do so, by all means!

mataha avatar Jul 01 '23 16:07 mataha

i have a similar issue when terminal chose russian for some reason https://github.com/microsoft/terminal/issues/16395

VectorBCO avatar Nov 29 '23 23:11 VectorBCO