-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SG : Translation(en , zh-CN , zh-TW)
- Loading branch information
1 parent
d5e9355
commit 65faec9
Showing
5 changed files
with
389 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.CompilerServices; | ||
using System.Text; | ||
|
||
namespace PCCSettingsGenerator | ||
{ | ||
public enum LanguageType | ||
{ | ||
en, | ||
zh_TW, | ||
zh_CN | ||
} | ||
|
||
public static class LanguageTypeUtils | ||
{ | ||
public static string ToString(LanguageType language) | ||
{ | ||
return language.ToString().Replace("_" , "-"); | ||
} | ||
|
||
public static bool TryPrase(string name , out LanguageType language) | ||
{ | ||
return Enum.TryParse<LanguageType>(name.Replace("-" , "_") , out language); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.