public static string KNLocalizedStringWithDefaultValue(string key, string tableName, KNBundle bundle, string value, string comment) { return bundle.LocalizedStringForKeyValueTable(key, value, tableName); }
public static KNBundle BundleWithDirectoryPath(string path) { KNBundle bundle; if (bundleCache.ContainsKey(path)) { if (bundleCache.TryGetValue(path, out bundle)) { return bundle; } } bundle = new KNBundle(path); return bundle; }
public static string KNLocalizedStringFromTableInBundle(string key, string tableName, KNBundle bundle, string comment) { return bundle.LocalizedStringForKeyValueTable(key, null, tableName); }
public static KNBundle BundleWithAssembly(Assembly assembly) { if (assembly != null) { string path = assembly.Location; string parentPath = Path.GetDirectoryName(path); KNBundle bundle; if (bundleCache.ContainsKey(path)) { if (bundleCache.TryGetValue(path, out bundle)) { return bundle; } } bundle = new KNBundle(parentPath, path, assembly); return bundle; } else { return null; } }