Skip to content

Commit

Permalink
Updated langtags.json and ianaSubtagRegistry.txt files
Browse files Browse the repository at this point in the history
Updated langtags.json and ianaSubtagRegistry.txt files
  • Loading branch information
mark-sil authored Oct 25, 2023
2 parents e33fb9b + 3314ef4 commit 6945f25
Show file tree
Hide file tree
Showing 6 changed files with 14,013 additions and 6,370 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- [SIL.WritingSystems] Updated langtags.json and ianaSubtagRegistry.txt
- [SIL.Core] Enhanced ErrorReport.GetOperatingSystemLabel method to report Windows 11+ and list the version as well.
- [SIL.Core] Enhanced RetryUtility.Retry methods to optionally improve debugging messages, and fixed existing RobustFile and RobustIO methods to use the new optional debugging parameter
- [SIL.Media] Changed the FrameRate reported in VideoInfo from FrameRate to AvgFrameRate.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ building libpalaso won't succeed. Therefore it's recommended to install

Further instructions at https://github.com/sillsdev/libpalaso/wiki/Developing-with-locally-modified-nuget-packages

- Updating langtags.json and ianaSubtagRegistry.txt:
* Instructions for updating the langtags.json and ianaSubtagRegistry.txt files are in [SIL.WritingSystems/Readme.md](SIL.WritingSystems/Readme.md)


### Contribute

- Commit. Push:
Expand Down
7 changes: 4 additions & 3 deletions SIL.WritingSystems.Tests/LanguageLookupTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ public void SuggestLanguages_LanguageHasPejorativeAlternativeNames_FilteredOut()
Assert.True(languages.Any(l => l.Names.Contains("Deg Xinag")));
Assert.True(languages.Any(l => l.Names.Contains("Deg Xit’an")));
Assert.True(languages.Any(l => l.Names.Contains("Degexit'an")));
Assert.AreEqual(4, languages[0].Names.Count, "2 of the 6 names are pejorative and should not be listed");
Assert.True(languages.Any(l => l.Names.Contains("Deg Hit’an")));
Assert.AreEqual(5, languages[0].Names.Count, "2 of the 7 names are pejorative and should not be listed");
}

/// <summary>
Expand Down Expand Up @@ -351,8 +352,8 @@ public void SuggestLanguages_CanFilterMacroLanguages()
public void SuggestLanguages_DoesNotSuggestDeprecatedTags()
{
var lookup = new LanguageLookup();
var languages = lookup.SuggestLanguages("dzd").ToArray();
Assert.False(languages.Any(l => l.LanguageTag == "dzd"));
var languages = lookup.SuggestLanguages("ais").ToArray();
Assert.False(languages.Any(l => l.LanguageTag == "ais"));
languages = lookup.SuggestLanguages("yiy").ToArray();
Assert.False(languages.Any(l => l.LanguageTag == "yiy"));
languages = lookup.SuggestLanguages("jeg").ToArray();
Expand Down
7 changes: 6 additions & 1 deletion SIL.WritingSystems/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ To update langtags.json to the latest follow the following steps:
1. Run the unit test suite by hand and note (or fix) any failures to ByHand and SkipOnTeamCity category tests
1. Replace `Resources\langtags.json` with the content from https://ldml.api.sil.org/langtags.json
1. Run the unit test suite by hand and fix any tests that relied on old langtags data
1. Commit the changes
1. Commit the changes

### Updating ianaSubtagRegistry.txt
To update ianaSubtagRegistry.txt to the latest, replace `Resources\ianaSubtagRegistry.txt` with
the content from https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

Loading

0 comments on commit 6945f25

Please sign in to comment.