replace empty spaces "<translate> </translate>" -> "<translate></translate>" (for comfort further translation) https://github.com/HarpyWar/pvpgn/issues/13

This commit is contained in:
HarpyWar 2014-06-29 12:50:29 +04:00
parent 502f45dc6e
commit dd157be15d
14 changed files with 4329 additions and 4324 deletions

View file

@ -86,6 +86,11 @@ namespace pvpgn_localize_generator
xsw.Serialize(fs, _data); 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("\n{0} items saved in {1}: ", _data.Items.Count, outfile);
//Console.WriteLine("\nPress any key to exit..."); //Console.WriteLine("\nPress any key to exit...");
//Console.ReadKey(); //Console.ReadKey();
@ -361,7 +366,7 @@ namespace pvpgn_localize_generator
[XmlAttribute("refid")] [XmlAttribute("refid")]
public string RefId; public string RefId;
[XmlText] [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
} }
} }

View file

@ -1,15 +1,15 @@
@echo off @echo off
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-deDE.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-deDE.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-csCZ.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-csCZ.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-esES.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-esES.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-frFR.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-frFR.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-itIT.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-itIT.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-jaJA.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-jaJA.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-koKR.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-koKR.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-plPL.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-plPL.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-ruRU.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-ruRU.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhCN.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhCN.xml.in
pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhTW.xml pvpgn_localize_generator.exe ..\..\ ..\..\conf\i18n\common-zhTW.xml.in
pause pause