Skip to content

Conversation

@StephenMcConnel
Copy link
Member

@StephenMcConnel StephenMcConnel commented Nov 3, 2025

This fixes a bug reported in Bloom (BL-15436)


This change is Reviewable

This fixes a bug reported in Bloom (BL-15436)
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Palaso Tests

     4 files  ±0       4 suites  ±0   10m 26s ⏱️ +19s
 5 059 tests ±0   4 825 ✅ ±0  234 💤 +1  0 ❌  - 1 
16 481 runs  ±0  15 760 ✅  - 1  721 💤 +2  0 ❌  - 1 

Results for commit 02628e5. ± Comparison against base commit dce7400.

This pull request skips 1 test.
SIL.Tests.IO.FileLocationUtilitiesTests ‑ LocateInProgramFiles_SendValidProgramDeepSearch_ReturnsProgramPath

Copy link
Contributor

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@imnasnainaec reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion


SIL.WritingSystems/IetfLanguageTag.cs line 1328 at r1 (raw file):

			{
				return kTraditionalChineseAutonym;
			}

What about the (generalCode == ChineseSimplifiedTag && uiLanguageTag == ChineseTraditionalTag) and (generalCode == ChineseTraditionalTag && uiLanguageTag == ChineseSimplifiedTag) cases?

Copy link
Member Author

@StephenMcConnel StephenMcConnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)


SIL.WritingSystems/IetfLanguageTag.cs line 1328 at r1 (raw file):

Previously, imnasnainaec (D. Ror.) wrote…

What about the (generalCode == ChineseSimplifiedTag && uiLanguageTag == ChineseTraditionalTag) and (generalCode == ChineseTraditionalTag && uiLanguageTag == ChineseSimplifiedTag) cases?

I have no idea what the logograms would be in the mixed code situations that you describe. That's why I stuck to the pure autonym assignments. If you know that the logograms would be the same regardless of the specific uiLanguageTag, I'd be happy to change the code.

Copy link
Contributor

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @StephenMcConnel)


SIL.WritingSystems/IetfLanguageTag.cs line 1328 at r1 (raw file):

Previously, StephenMcConnel (Steve McConnel) wrote…

I have no idea what the logograms would be in the mixed code situations that you describe. That's why I stuck to the pure autonym assignments. If you know that the logograms would be the same regardless of the specific uiLanguageTag, I'd be happy to change the code.

I just noticed that GetLanguagePart will return zh and neither ChineseSimplifiedTag nor ChineseTraditionalTag, so the two new cases are currently never met.

I think it would be safe to go with

			else if (generalCode == ChineseSimplifiedTag && uiLanguageTag == "zh")
			{
				// Chinese autonyms are also messed up in various ways, so we hard-code them here.
				return kSimplifiedChineseAutonym;
			}
			else if (generalCode == ChineseTraditionalTag && uiLanguageTag == "zh")
			{
				return kTraditionalChineseAutonym;
			}

@StephenMcConnel
Copy link
Member Author

I've decided to let Noel fix this problem since she has a better grasp on the issues.

@StephenMcConnel StephenMcConnel deleted the BL-15436-ChineseAutonymErrors branch November 4, 2025 20:00
@nabalone
Copy link
Contributor

nabalone commented Nov 4, 2025

Replaced with #1477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants