Skip to content

Commit

Permalink
replace empty spaces "<translate> </translate>" -> "<translate></tran…
Browse files Browse the repository at this point in the history
…slate>" (for comfort further translation) #13
  • Loading branch information
HarpyWar committed Jun 29, 2014
1 parent 502f45d commit dd157be
Show file tree
Hide file tree
Showing 14 changed files with 4,329 additions and 4,324 deletions.
784 changes: 392 additions & 392 deletions conf/i18n/common-csCZ.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-deDE.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-esES.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-frFR.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-itIT.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-jaJA.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-koKR.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-plPL.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-ruRU.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-zhCN.xml.in

Large diffs are not rendered by default.

784 changes: 392 additions & 392 deletions conf/i18n/common-zhTW.xml.in

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion scripts/localize/pvpgn_localize_generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ static void Main(string[] args)
xsw.Serialize(fs, _data);
}

// replace empty "<translate />" strings (for comfort further translation)
var data = File.ReadAllText(outfile);
data = data.Replace("<translate />", "<translate></translate>");
File.WriteAllText(outfile, data);

Console.WriteLine("\n{0} items saved in {1}: ", _data.Items.Count, outfile);
//Console.WriteLine("\nPress any key to exit...");
//Console.ReadKey();
Expand Down Expand Up @@ -361,7 +366,7 @@ public class TranslateItem
[XmlAttribute("refid")]
public string RefId;
[XmlText]
public string InnerText = " "; // default value is " " to save empty values when updating xml file
public string InnerText; // default value is " " to save empty values when updating xml file
}
}

Expand Down
Binary file modified scripts/localize/pvpgn_localize_generator.exe
Binary file not shown.
22 changes: 11 additions & 11 deletions scripts/localize/update.bat
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@echo off

pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-deDE.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-csCZ.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-esES.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-frFR.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-itIT.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-jaJA.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-koKR.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-plPL.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-ruRU.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhCN.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhTW.xml
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-deDE.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-csCZ.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-esES.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-frFR.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-itIT.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-jaJA.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-koKR.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-plPL.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-ruRU.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhCN.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhTW.xml.in

pause

0 comments on commit dd157be

Please sign in to comment.