Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Changed StandardSubtags.AddLanguage to add the new entry to the Iso3Languages dictionary #1399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tombogle
Copy link
Contributor

@tombogle tombogle commented Feb 24, 2025

This replaces the former inefficient logic that rebuilt the whole dictionary on each add.

Fair bit of additional code cleanup/refactoring


This change is Reviewable

…Iso3Languages dictionary instead of rebuilding the whole dictionary

Fair bit of additional code cleanup/refactoring
@tombogle tombogle self-assigned this Feb 24, 2025
Copy link

Palaso Tests

     4 files  ±    0       4 suites  ±0   15m 14s ⏱️ + 1m 55s
 4 902 tests ±    0   4 674 ✅ ±    0  228 💤 ±  0  0 ❌ ±0 
15 957 runs  +4 074  15 273 ✅ +3 852  684 💤 +222  0 ❌ ±0 

Results for commit e58ec06. ± Comparison against base commit 3813e6c.

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.

Reviewed 4 of 5 files at r1, all commit messages.
Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @tombogle)


SIL.WritingSystems/Subtag.cs line 152 at r1 (raw file):

		public static implicit operator string(Subtag subtag)
		{
			return subtag == null ? null : subtag.Code;

How about return subtag?.Code?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants