mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Actually use the ?dictionary token. Closes #1761.
This commit is contained in:
parent
47303007eb
commit
f7532ff1ef
@ -155,7 +155,7 @@ std::vector<std::string> HunspellSpellChecker::GetSuggestions(std::string const&
|
|||||||
|
|
||||||
static std::vector<std::string> langs(const char *filter) {
|
static std::vector<std::string> langs(const char *filter) {
|
||||||
std::vector<std::string> paths;
|
std::vector<std::string> paths;
|
||||||
auto data_path = config::path->Decode("?data/dictionaries/");
|
auto data_path = config::path->Decode("?dictionary/");
|
||||||
auto user_path = config::path->Decode(OPT_GET("Path/Dictionary")->GetString());
|
auto user_path = config::path->Decode(OPT_GET("Path/Dictionary")->GetString());
|
||||||
|
|
||||||
agi::fs::DirectoryIterator(data_path, filter).GetAll(paths);
|
agi::fs::DirectoryIterator(data_path, filter).GetAll(paths);
|
||||||
@ -191,7 +191,7 @@ void HunspellSpellChecker::OnLanguageChanged() {
|
|||||||
agi::fs::path aff, dic;
|
agi::fs::path aff, dic;
|
||||||
auto path = config::path->Decode(OPT_GET("Path/Dictionary")->GetString() + "/");
|
auto path = config::path->Decode(OPT_GET("Path/Dictionary")->GetString() + "/");
|
||||||
if (!check_path(path, language, aff, dic)) {
|
if (!check_path(path, language, aff, dic)) {
|
||||||
path = config::path->Decode("?data/dictionaries/");
|
path = config::path->Decode("?dictionary/");
|
||||||
if (!check_path(path, language, aff, dic))
|
if (!check_path(path, language, aff, dic))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user