Example #1
0
 private static string MakeDefaultPath(string sourceName)
 {
     if (!g_dirsRes.ContainsKey(sourceName))
     {
         g_dirsRes.Add(sourceName, TranslationToolHelper.GetFullPathToResX(sourceName, null));
     }
     return(string.IsNullOrEmpty(g_dirsRes[sourceName]) ? null : g_dirsRes[sourceName]);
     //string root = Utils.GetExecutingPath();
     //string dir = g_dirsRes[sourceName];
     //return string.Format("{0}{1}{2}.resx", root, dir, sourceName);
 }
Example #2
0
        //{
        //    {"BvMessages", @"App_Data\Translations\Resources\EIDSSTrunk\EIDSS\bv.common\Resources\"},
        //    {"XtraStrings", @"App_Data\Translations\Resources\EIDSSTrunk\EIDSS\bv.common\Resources\"},
        //    {"EidssFields", @"App_Data\Translations\Resources\EIDSSTrunk\EIDSS\eidss.core\Resources\"},
        //    {"EidssMenu", @"App_Data\Translations\Resources\EIDSSTrunk\EIDSS\eidss.core\Resources\"},
        //    {"EidssMessages", @"App_Data\Translations\Resources\EIDSSTrunk\EIDSS\eidss.core\Resources\"}
        //};
        private static string MakePath(string sourceName, CultureInfo ci)
        {
            var key = string.Join(".", sourceName, ci.Name);

            if (!g_dirsRes.ContainsKey(key))
            {
                g_dirsRes.Add(key, TranslationToolHelper.GetFullPathToResX(sourceName, ci.Name));
            }
            return(string.IsNullOrEmpty(g_dirsRes[key]) ? null : g_dirsRes[key]);

            //string root = Utils.GetExecutingPath();
            //string dir = g_dirsRes[sourceName];
            //return string.Format("{0}{1}{2}.{3}.resx", root, dir, sourceName, ci.Name);
        }