diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-19 08:48:05 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-20 14:41:44 (GMT) |
commit | f769a6b029779ba3f1308fd4c66a799a7390cb77 (patch) | |
tree | 3754e692ca5760eac6e10cfdb8ac0aae2cdf18ee /SwifTools | |
parent | b1836ffb49bd7740dbd7c32bfad04d077e81ecb5 (diff) | |
download | swift-f769a6b029779ba3f1308fd4c66a799a7390cb77.zip swift-f769a6b029779ba3f1308fd4c66a799a7390cb77.tar.bz2 |
Make Swift translatable.
Diffstat (limited to 'SwifTools')
-rw-r--r-- | SwifTools/Application/UnixApplicationPathProvider.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/SwifTools/Application/UnixApplicationPathProvider.cpp b/SwifTools/Application/UnixApplicationPathProvider.cpp index c0d24ab..a68f249 100644 --- a/SwifTools/Application/UnixApplicationPathProvider.cpp +++ b/SwifTools/Application/UnixApplicationPathProvider.cpp @@ -14,6 +14,7 @@ namespace Swift { UnixApplicationPathProvider::UnixApplicationPathProvider(const std::string& name) : ApplicationPathProvider(name) { resourceDirs.push_back(getExecutableDir() / "../resources"); // Development + resourceDirs.push_back(getExecutableDir() / ".." / "share" / boost::to_lower_copy(getApplicationName())); // Local install char* xdgDataDirs = getenv("XDG_DATA_DIRS"); if (xdgDataDirs) { std::vector<std::string> dataDirs = String::split(xdgDataDirs, ':'); @@ -24,8 +25,8 @@ UnixApplicationPathProvider::UnixApplicationPathProvider(const std::string& name return; } } - resourceDirs.push_back("/usr/local/share/swift"); - resourceDirs.push_back("/usr/share/swift"); + resourceDirs.push_back("/usr/local/share/" + boost::to_lower_copy(getApplicationName())); + resourceDirs.push_back("/usr/share/" + boost::to_lower_copy(getApplicationName())); } boost::filesystem::path UnixApplicationPathProvider::getHomeDir() const { |