示例#1
0
 public Retriever()
 {
     localization =
         GetText.Parse(Path.Combine(".", "gettext", "es_ES.po"), Encoding.GetEncoding("iso8859-1"));
     localizationIndex = localization.GetIndex("es_ES");
     Catalog.Init("catalog", "./gettext");
 }
示例#2
0
        public void Parse()
        {
            string testPath = Path.Combine(".", "gettext", "es_ES.po");

            Core.Localization localization = GetText.Parse(testPath, Encoding.GetEncoding("iso8859-1"));

            DateTime start = DateTime.UtcNow;
            Dictionary <string, string> indexed = localization.GetIndex("es_ES");
            DateTime end     = DateTime.UtcNow;
            TimeSpan elapsed = end - start;
        }
示例#3
0
 public Core.Localization ParseGetText() =>
 GetText.Parse(Path.Combine(".", "gettext", "es_ES.po"), Encoding.GetEncoding("iso8859-1"));
示例#4
0
 public Index()
 {
     localization = GetText.Parse(Path.Combine(".", "gettext", "es_ES.po"), Encoding.GetEncoding("iso8859-1"));
 }