Use more plural forms for translatable strings

This commit is contained in:
Thomas Goyne 2014-05-23 07:18:23 -07:00
parent 60fd44163e
commit 384f87f399
2 changed files with 3 additions and 2 deletions

View File

@ -64,7 +64,8 @@ DialogVideoDetails::DialogVideoDetails(agi::Context *c)
make_field(_("File name:"), c->project->VideoName().wstring());
make_field(_("FPS:"), wxString::Format("%.3f", fps.FPS()));
make_field(_("Resolution:"), wxString::Format("%dx%d (%d:%d)", width, height, ar.numerator(), ar.denominator()));
make_field(_("Length:"), wxString::Format(_("%d frames (%s)"), framecount, to_wx(AssTime(fps.TimeAtFrame(framecount - 1)).GetAssFormated(true))));
make_field(_("Length:"), wxString::Format(wxPLURAL("1 frame", "%d frames (%s)", framecount),
framecount, to_wx(AssTime(fps.TimeAtFrame(framecount - 1)).GetAssFormated(true))));
make_field(_("Decoder:"), to_wx(provider->GetDecoderName()));
wxStaticBoxSizer *video_sizer = new wxStaticBoxSizer(wxVERTICAL, this, _("Video"));

View File

@ -328,7 +328,7 @@ bool SearchReplaceEngine::ReplaceAll() {
if (count > 0) {
context->ass->Commit(_("replace"), AssFile::COMMIT_DIAG_TEXT);
wxMessageBox(wxString::Format(_("%i matches were replaced."), (int)count));
wxMessageBox(wxString::Format(wxPLURAL("One match was replaced.", "%d matches were replaced.", count), (int)count));
}
else {
wxMessageBox(_("No matches found."));