update locales

This commit is contained in:
GenevensiS
2025-06-09 17:04:18 +02:00
parent 87fbc0e80e
commit a401d68c9b
15 changed files with 347 additions and 29 deletions
+2
View File
@@ -124,6 +124,7 @@ void AddCSVWindow::onOk(wxCommandEvent&) {
auto in = std::ifstream(file_path->GetValue().ToStdString());
if (in.fail()) {
queue_message(MESSAGE_ERROR, _ERROR_("add card csv file not found"));
EndModal(wxID_ABORT);
return;
}
std::vector<std::vector<std::string>> table;
@@ -141,6 +142,7 @@ void AddCSVWindow::onOk(wxCommandEvent&) {
for (int y = 1; y < table.size(); ++y) {
if (table[y].size() != count) {
queue_message(MESSAGE_ERROR, _ERROR_1_("add card csv file malformed", wxString::Format(wxT("%i"), y+1)));
EndModal(wxID_ABORT);
return;
}
}
+1 -1
View File
@@ -64,7 +64,7 @@ static void set_container(Value* container, ScriptValueP& value, String key_name
static bool set_builtin_container(GameP& game, CardP& card, ScriptValueP& value, String key_name) {
// check if the given value is for a built-in field, if found set it and return true
key_name = unified_form(key_name);
if (key_name == _("notes")) {
if (key_name == _("notes") || key_name == _("note")) {
card->notes = value->toString();
return true;
} else if (key_name == _("style") || key_name == _("stylesheet") || key_name == _("template")) {