Make a few strings into format strings for translations. Closes #1093.

Originally committed to SVN as r5908.
This commit is contained in:
Thomas Goyne 2011-11-25 19:26:48 +00:00
parent 7b46ce6380
commit 6152716003
3 changed files with 10 additions and 18 deletions

View file

@ -88,7 +88,7 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con
if (copy_style) {
is_new = true;
style = this->style = new AssStyle(*style);
style->name += _(" - Copy");
style->name = wxString::Format(_("%s - Copy"), style->name);
}
else if (!style) {
is_new = true;

View file

@ -740,19 +740,14 @@ void DialogStyleManager::OnStorageDelete (wxCommandEvent &) {
wxArrayInt selections;
int n = StorageList->GetSelections(selections);
wxString message;
if (n!=1) {
message = _("Are you sure you want to delete these ");
message += wxString::Format("%i",n);
message += _(" styles?");
}
else message = _("Are you sure you want to delete this style?");
wxString message = n == 1 ?
_("Are you sure you want to delete this style?") :
wxString::Format(_("Are you sure you want to delete these %d styles?"), n);
int option = wxMessageBox(message, _("Confirm delete from storage"), wxYES_NO | wxICON_EXCLAMATION , this);
if (option == wxYES) {
AssStyle *temp;
for (int i=0;i<n;i++) {
temp = styleStorageMap.at(selections[i]);
AssStyle *temp = styleStorageMap.at(selections[i]);
Store.style.remove(temp);
delete temp;
}
@ -773,17 +768,14 @@ void DialogStyleManager::OnCurrentDelete (wxCommandEvent &) {
wxArrayInt selections;
int n = CurrentList->GetSelections(selections);
wxString message;
if (n != 1)
message = wxString::Format(_("Are you sure you want to delete these %d styles?"), n);
else
message = _("Are you sure you want to delete this style?");
wxString message = n == 1 ?
_("Are you sure you want to delete this style?") :
wxString::Format(_("Are you sure you want to delete these %d styles?"), n);
int option = wxMessageBox(message, _("Confirm delete from current"), wxYES_NO | wxICON_EXCLAMATION , this);
if (option == wxYES) {
AssStyle *temp;
for (int i=0;i<n;i++) {
temp = styleMap.at(selections[i]);
AssStyle *temp = styleMap.at(selections[i]);
c->ass->Line.remove(temp);
delete temp;
}

View file

@ -86,7 +86,7 @@ DialogVideoDetails::DialogVideoDetails(agi::Context *c)
make_field(this, fg, _("File name:"), c->videoController->videoName);
make_field(this, fg, _("FPS:"), wxString::Format("%.3f", fps));
make_field(this, fg, _("Resolution:"), wxString::Format("%dx%d (%s)", width, height, pretty_ar(width, height)));
make_field(this, fg, _("Length:"), wxString::Format("%d frames (%s)", framecount, pretty_time_stamp(framecount, fps)));
make_field(this, fg, _("Length:"), wxString::Format(_("%d frames (%s)"), framecount, pretty_time_stamp(framecount, fps)));
make_field(this, fg, _("Decoder:"), c->videoController->GetProvider()->GetDecoderName());
wxStaticBoxSizer *video_sizer = new wxStaticBoxSizer(wxVERTICAL,this,_("Video"));