mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 00:21:13 +00:00
addon/client: Prettify add-on ids for status display...
...when .title is missing in the .pbl
This commit is contained in:
parent
86eb697cd9
commit
21f5c99e55
@ -109,8 +109,7 @@ bool addons_client::upload_addon(const std::string& id, std::string& response_me
|
||||
utils::string_map i18n_symbols;
|
||||
i18n_symbols["addon_title"] = cfg["title"];
|
||||
if(i18n_symbols["addon_title"].empty()) {
|
||||
// TODO: prettify if .title is missing in the .pbl!
|
||||
i18n_symbols["addon_title"] = id;
|
||||
i18n_symbols["addon_title"] = make_addon_title(id);
|
||||
}
|
||||
|
||||
std::string passphrase = cfg["passphrase"];
|
||||
@ -161,8 +160,7 @@ bool addons_client::delete_remote_addon(const std::string& id, std::string& resp
|
||||
utils::string_map i18n_symbols;
|
||||
i18n_symbols["addon_title"] = cfg["title"];
|
||||
if(i18n_symbols["addon_title"].empty()) {
|
||||
// TODO: prettify if .title is missing in the .pbl!
|
||||
i18n_symbols["addon_title"] = id;
|
||||
i18n_symbols["addon_title"] = make_addon_title(id);
|
||||
}
|
||||
|
||||
config request_buf, response_buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user