public Retriever()
 {
     localization =
         GetText.Parse(Path.Combine(".", "gettext", "es_ES.po"), Encoding.GetEncoding("iso8859-1"));
     localizationIndex = localization.GetIndex("es_ES");
     Catalog.Init("catalog", "./gettext");
 }
Example #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;
        }
Example #3
0
 public Core.Localization ParseGetText() =>
 GetText.Parse(Path.Combine(".", "gettext", "es_ES.po"), Encoding.GetEncoding("iso8859-1"));
Example #4
0
 public Index()
 {
     localization = GetText.Parse(Path.Combine(".", "gettext", "es_ES.po"), Encoding.GetEncoding("iso8859-1"));
 }