-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a language selector when you export txt to po
- Loading branch information
Showing
3 changed files
with
21 additions
and
12 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
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ class TXT | |
private static List<string> Pointers = new List<string>(); | ||
private static List<string> Text = new List<string>(); | ||
|
||
public static void Export(string file) | ||
public static void Export(string file, string language) | ||
{ | ||
Console.WriteLine("Exporting " + file + "..."); | ||
string[] textfile = System.IO.File.ReadAllLines(file); | ||
|
@@ -72,16 +72,16 @@ public static void Export(string file) | |
} | ||
} | ||
} | ||
ToPo(file); | ||
ToPo(file, language); | ||
|
||
|
||
} | ||
|
||
private static void ToPo (string file) | ||
private static void ToPo (string file, string language) | ||
{ | ||
Po po = new Po | ||
{ | ||
Header = new PoHeader(Gamename, "[email protected]", "es") | ||
Header = new PoHeader(Gamename, "[email protected]", language) | ||
{ | ||
LanguageTeam = "Fiction", | ||
} | ||
|
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