forked from mia/Aegisub
Mark the style name collision messages as translatable
Originally committed to SVN as r6422.
This commit is contained in:
parent
439b1272b0
commit
2dcd4ff2a6
1 changed files with 2 additions and 2 deletions
|
@ -403,7 +403,7 @@ void DialogStyleManager::OnCopyToStorage() {
|
||||||
|
|
||||||
if (AssStyle *style = Store.GetStyle(styleName)) {
|
if (AssStyle *style = Store.GetStyle(styleName)) {
|
||||||
addStyle = false;
|
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]);
|
*style = *styleMap.at(selections[i]);
|
||||||
copied.push_back(styleName);
|
copied.push_back(styleName);
|
||||||
}
|
}
|
||||||
|
@ -432,7 +432,7 @@ void DialogStyleManager::OnCopyToCurrent() {
|
||||||
for (std::vector<AssStyle *>::iterator style = styleMap.begin(); style != styleMap.end(); ++style) {
|
for (std::vector<AssStyle *>::iterator style = styleMap.begin(); style != styleMap.end(); ++style) {
|
||||||
if ((*style)->name.CmpNoCase(styleName) == 0) {
|
if ((*style)->name.CmpNoCase(styleName) == 0) {
|
||||||
addStyle = false;
|
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]);
|
**style = *styleStorageMap.at(selections[i]);
|
||||||
copied.push_back(styleName);
|
copied.push_back(styleName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue