/// ------------------------------------------------------------------------------------
 /// <summary>
 /// Adds the available languages from localizations of the biblical terms file.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 private void AddAvailableLangsFromKeyTermsLocalizations()
 {
     foreach (string file in DirectoryFinder.KeyTermsLocalizationFiles)
     {
         if (!String.IsNullOrEmpty(file))
         {
             AddLanguage(DirectoryFinder.GetLocaleFromKeyTermsLocFile(file));
         }
     }
 }
예제 #2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Gets the ws from loc file.
 /// </summary>
 /// <param name="wsf">The Writing System factory.</param>
 /// <param name="localizationFile">The localization file path.</param>
 /// <returns>The HVO of the writing system</returns>
 /// ------------------------------------------------------------------------------------
 public static int GetWsFromLocFile(ILgWritingSystemFactory wsf, string localizationFile)
 {
     return(wsf.GetWsFromStr(DirectoryFinder.GetLocaleFromKeyTermsLocFile(localizationFile)));
 }