Fixed a small bug that was causing the translations engine to look...

...at badly mixed up paths when trying to locate UMC translations.

(If you like short stories, this just fixes bug #12872.)

(I've got no idea why get_binary_paths() is not delivering paths
with trailing slashes, but since this was the only victim, I
just did a quick hack in the textdomain initializer.)
This commit is contained in:
Ignacio R. Morelle 2009-01-18 12:44:30 +00:00
parent 21c9073b14
commit e7787cb119
4 changed files with 14 additions and 4 deletions

View file

@ -20,6 +20,12 @@ Many improvements in the new dialog code:
***
For a few development versions, translations of User Made Content have not
worked due to a tiny mistake in the translation engine. That has been fixed
in this release.
***
Improvements of the multiplayer ui:
- Added a gui front-end to various commands, brought up by double clicking
a player name, replacing the old whisper dialog

View file

@ -23,6 +23,9 @@ Version 1.5.7+svn:
* Optimized animation and invalidation of idle/standing units.
* Removed the black background from most of the old portraits.
* Language and i18n:
* Fixed a small bug that was causing the translations engine to look
at badly mixed up paths when trying to locate UMC translations,
rendering them unusable (bug #12872).
* updated translations: Chinese (Simplified), Czech, Danish, German,
Hungarian, Italian, Japanese, Lithuanian, Russian, Slovak, Spanish
* updated DejaVuSans to 2.28

View file

@ -39,6 +39,7 @@ Version 1.5.7+svn:
* Added an option to save the password to the preferences
* Language and translations
* Translations of user-made content work again when available.
* updated translations: Chinese (Simplified), Czech, Danish, German,
Hungarian, Italian, Japanese, Lithuanian, Russian, Slovak, Spanish.

View file

@ -401,9 +401,10 @@ void init_textdomains(const config& cfg)
const std::vector<std::string>& paths = get_binary_paths(path);
for(std::vector<std::string>::const_iterator i = paths.begin(); i != paths.end(); ++i) {
DBG_FS << " Checking " << *i << "\n";
if(is_directory(*i + path)) {
location = *i + path;
const std::string loc = *i + "/" + path;
DBG_FS << " Checking " << loc << "\n";
if(is_directory(loc)) {
location = loc;
break;
}
}
@ -418,7 +419,6 @@ void init_textdomains(const config& cfg)
}
}
}
}
/* vim:set encoding=utf-8: */