From 2dcd4ff2a6c06e494e8766c2467c1b8b5da1d2c8 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 1 Feb 2012 18:47:18 +0000 Subject: [PATCH] Mark the style name collision messages as translatable Originally committed to SVN as r6422. --- aegisub/src/dialog_style_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/dialog_style_manager.cpp b/aegisub/src/dialog_style_manager.cpp index 581f310d4..ab44847ea 100644 --- a/aegisub/src/dialog_style_manager.cpp +++ b/aegisub/src/dialog_style_manager.cpp @@ -403,7 +403,7 @@ void DialogStyleManager::OnCopyToStorage() { if (AssStyle *style = Store.GetStyle(styleName)) { addStyle = false; - if (wxYES == wxMessageBox(wxString::Format("There is already a style with the name \"%s\" on the current storage. Proceed and overwrite anyway?",styleName), "Style name collision.", wxYES_NO)) { + if (wxYES == wxMessageBox(wxString::Format(_("There is already a style with the name \"%s\" in the current storage. Proceed and overwrite anyway?"),styleName), _("Style name collision."), wxYES_NO)) { *style = *styleMap.at(selections[i]); copied.push_back(styleName); } @@ -432,7 +432,7 @@ void DialogStyleManager::OnCopyToCurrent() { for (std::vector::iterator style = styleMap.begin(); style != styleMap.end(); ++style) { if ((*style)->name.CmpNoCase(styleName) == 0) { addStyle = false; - if (wxYES == wxMessageBox(wxString::Format("There is already a style with the name \"%s\" on the current script. Proceed and overwrite anyway?",styleName), "Style name collision.", wxYES_NO)) { + if (wxYES == wxMessageBox(wxString::Format(_("There is already a style with the name \"%s\" in the current script. Proceed and overwrite anyway?"), styleName), _("Style name collision"), wxYES_NO)) { **style = *styleStorageMap.at(selections[i]); copied.push_back(styleName); }