mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Fix "NoTranslation" bug for plugins
1. fix #475 2. remove GetLanguagesFolder, part of #468 3. bug introduced since 1f939ff3
This commit is contained in:
@@ -15,10 +15,10 @@ namespace Wox.Core.Resource
|
||||
public Internationalization()
|
||||
{
|
||||
DirectoryName = "Languages";
|
||||
MakesureThemeDirectoriesExist();
|
||||
MakesureDirectoriesExist();
|
||||
}
|
||||
|
||||
private void MakesureThemeDirectoriesExist()
|
||||
private void MakesureDirectoriesExist()
|
||||
{
|
||||
if (!Directory.Exists(DirectoryPath))
|
||||
{
|
||||
@@ -73,10 +73,11 @@ namespace Wox.Core.Resource
|
||||
|
||||
public override ResourceDictionary GetResourceDictionary()
|
||||
{
|
||||
return new ResourceDictionary
|
||||
var dictionary = new ResourceDictionary
|
||||
{
|
||||
Source = new Uri(GetLanguageFile(DirectoryPath), UriKind.Absolute)
|
||||
};
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
public List<Language> LoadAvailableLanguages()
|
||||
|
||||
Reference in New Issue
Block a user