Skip to content

Commit

Permalink
Updatte RFC5646 codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr727 committed May 6, 2023
1 parent 0f80153 commit 31b3a71
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Data/language-subtag-registry
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
File-Date: 2023-03-22
File-Date: 2023-04-13
%%
Type: language
Subtag: aa
Expand Down Expand Up @@ -42986,7 +42986,7 @@ Subtag: ajp
Description: South Levantine Arabic
Added: 2009-07-29
Deprecated: 2023-03-17
Preferred-Value: apc
Preferred-Value: ajp
Prefix: ar
Macrolanguage: ar
%%
Expand Down
5 changes: 3 additions & 2 deletions Utilities/Iso6393.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ namespace InsaneGenius.Utilities;
// T4 template
// https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-and-t4-text-templates
// https://github.com/mono/t4
// wget -O iso-639-3.tab https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab
// wget -O ./Data/iso-639-3.tab https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab
// dotnet tool install -g dotnet-t4
// t4 -P="./bin/T4" --out=Iso6393Gen.cs .\Iso6393Gen.tt
// dotnet publish ./Utilities/Utilities.csproj --self-contained=false --output=./bin/T4
// t4 -P="./bin/T4" --out=./Utilities/Iso6393Gen.cs ./Utilities/Iso6393Gen.tt

// ISO 639-3 class
public partial class Iso6393
Expand Down
6 changes: 3 additions & 3 deletions Utilities/Rfc5646.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ namespace InsaneGenius.Utilities;
// T4 template
// https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-and-t4-text-templates
// https://github.com/mono/t4
// wget -O language-subtag-registry https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
// wget -O ./Data/language-subtag-registry https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
// dotnet tool install -g dotnet-t4
// dotnet publish Utilities.csproj --self-contained false --output ./bin/T4
// t4 -P="./bin/T4" --out=Rfc5646Gen.cs Rfc5646Gen.tt
// dotnet publish ./Utilities/Utilities.csproj --self-contained=false --output=./bin/T4
// t4 -P="./bin/T4" --out=./Utilities/Rfc5646Gen.cs ./Utilities/Rfc5646Gen.tt

// RFC 5646 class
public partial class Rfc5646
Expand Down
10 changes: 8 additions & 2 deletions Utilities/Rfc5646Gen.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@


using System;
using System.Text;
using System.Globalization;

namespace InsaneGenius.Utilities;

// Generated from Rfc5646Gen.tt
Expand All @@ -9,7 +15,7 @@ public bool Create()
RecordList.Clear();
Record record = null;

FileDate = DateFromString("2023-03-22");
FileDate = DateFromString("2023-04-13");

record = new()
{
Expand Down Expand Up @@ -166460,7 +166466,7 @@ public bool Create()
Scope = "",
MacroLanguage = "ar",
Deprecated = DateFromString("2023-03-17"),
PreferredValue = "apc",
PreferredValue = "ajp",
Tag = ""
};

Expand Down

0 comments on commit 31b3a71

Please sign in to comment.