Merge branch 'master' of https://github.com/wesnoth/wesnoth
This commit is contained in:
commit
afaca721a3
2 changed files with 3 additions and 3 deletions
|
@ -870,7 +870,7 @@ void context_manager::load_map(const std::string& filename, bool new_context)
|
|||
replace_map_context(mc.release());
|
||||
}
|
||||
if (get_map_context().is_embedded()) {
|
||||
std::string msg = _("Loaded embedded map data");
|
||||
const std::string& msg = _("Loaded embedded map data");
|
||||
gui2::show_transient_message(gui_.video(), _("Map loaded from scenario"), msg);
|
||||
} else {
|
||||
if (get_map_context().get_filename() != filename) {
|
||||
|
@ -881,7 +881,7 @@ void context_manager::load_map(const std::string& filename, bool new_context)
|
|||
} else {
|
||||
utils::string_map symbols;
|
||||
symbols["old"] = filename;
|
||||
std::string msg = _("Loaded referenced map file:\n"
|
||||
const std::string& msg = _("Loaded referenced map file:\n"
|
||||
"$new");
|
||||
symbols["new"] = get_map_context().get_filename();
|
||||
symbols["map_data"] = get_map_context().get_map_data_key();
|
||||
|
|
|
@ -265,7 +265,7 @@ std::string save_info::format_time_local() const
|
|||
char time_buf[256] = {0};
|
||||
tm* tm_l = localtime(&modified());
|
||||
if (tm_l) {
|
||||
std::string format = preferences::use_twelve_hour_clock_format() ? _("%a %b %d %I:%M %p %Y") : _("%a %b %d %H:%M %Y");
|
||||
const std::string format = preferences::use_twelve_hour_clock_format() ? _("%a %b %d %I:%M %p %Y") : _("%a %b %d %H:%M %Y");
|
||||
const size_t res = strftime(time_buf,sizeof(time_buf),
|
||||
format.c_str(), tm_l);
|
||||
if(res == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue