Geary only in English: Closes #5960
This problem is also related to the bug. The old code did not work with CMake. Will need to fix Geary in the future to use langpacks from the build directory (#5976).
This commit is contained in:
parent
d5203365e9
commit
f87a450431
1 changed files with 2 additions and 5 deletions
|
|
@ -18,12 +18,9 @@ void init(string package_name, string program_path, string locale = SYSTEM_LOCAL
|
|||
Intl.textdomain(package_name);
|
||||
}
|
||||
|
||||
// TODO: Geary should be able to use langpacks from the build directory
|
||||
private string get_langpack_dir_path(string program_path) {
|
||||
File local_langpack_dir =
|
||||
File.new_for_path(Environment.find_program_in_path(program_path)).get_parent().get_child("locale");
|
||||
|
||||
return (local_langpack_dir.query_exists(null)) ? local_langpack_dir.get_path() :
|
||||
LANGUAGE_SUPPORT_DIRECTORY;
|
||||
return LANGUAGE_SUPPORT_DIRECTORY;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue