mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Translate builtin (#10693)
This PR is the second attempt to translate builtin. Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
This commit is contained in:
parent
ac8ac19169
commit
cafad6ac03
12 changed files with 623 additions and 334 deletions
|
@ -2496,7 +2496,9 @@ void Server::fillMediaCache()
|
|||
|
||||
// Collect all media file paths
|
||||
std::vector<std::string> paths;
|
||||
// The paths are ordered in descending priority
|
||||
|
||||
// ordered in descending priority
|
||||
paths.push_back(getBuiltinLuaPath() + DIR_DELIM + "locale");
|
||||
fs::GetRecursiveDirs(paths, porting::path_user + DIR_DELIM + "textures" + DIR_DELIM + "server");
|
||||
fs::GetRecursiveDirs(paths, m_gamespec.path + DIR_DELIM + "textures");
|
||||
m_modmgr->getModsMediaPaths(paths);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue