Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Change track name to native language #54

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions src/FileTypes/MKV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ internal class MKV
{
public static readonly Dictionary<string, (string, string)> SubsLang = new()
{
{"CHS", ("chi", "Chinese (Simplified)")},
{"CHT", ("chi", "Chinese (Traditional)")},
{"DE", ("ger", "German")},
{"CHS", ("chi-CN", "简体中文")},
{"CHT", ("chi-TW", "繁體中文")},
{"DE", ("ger", "Deutsch")},
{"EN", ("eng", "English")},
{"ES", ("spa", "Spanish")},
{"FR", ("fre", "French")},
{"ID", ("ind", "Indonesian")},
{"JP", ("jpn", "Japanese")},
{"KR", ("kor", "Korean")},
{"PT", ("por", "Portuguese")},
{"RU", ("rus", "Russian")},
{"TH", ("tha", "Thai")},
{"VI", ("vie", "Vietnamese")}
{"ES", ("spa", "Español")},
{"FR", ("fre", "Français")},
{"ID", ("ind", "Bahasa Indonesia")},
{"JP", ("jpn", "日本語")},
{"KR", ("kor", "한국어")},
{"PT", ("por", "Português")},
{"RU", ("rus", "Русский")},
{"TH", ("tha", "ภาษาไทย")},
{"VI", ("vie", "Tiếng Việt")}
};

public static readonly (string, string)[] AudioLang =
{
("Chinese", "chi"), // zh
("汉语", "chi"), // zh
("English", "eng"), // en
("Japanese", "jpn"), // ja
("Korean", "kor") // ko
("日本語", "jpn"), // ja
("한국어", "kor") // ko
};
// Or Lang to IETF Lang
public static readonly Dictionary<string, string> IsoToBcp47 = new()
Expand All @@ -41,7 +41,9 @@ public static readonly (string, string)[] AudioLang =
{"rus", "ru"},
{"tha", "th"},
{"vie", "vi"},
{"und", "und"}
{"und", "und"},
{"chi-CN", "zh"},
{"chi-TW", "zh"}
};
}
}