Tweak a few strings to make them easier to translate

Originally committed to SVN as r6211.
This commit is contained in:
Thomas Goyne 2012-01-08 01:05:13 +00:00
parent eaa1001d7a
commit 3efdef2224
2 changed files with 8 additions and 11 deletions

View file

@ -93,10 +93,10 @@ struct grid_tag_cycle_hiding : public Command {
tagMode = (tagMode+1)%3;
// Show on status bar
wxString message = _("ASS Override Tag mode set to ");
if (tagMode == 0) message += _("show full tags.");
if (tagMode == 1) message += _("simplify tags.");
if (tagMode == 2) message += _("hide tags.");
wxString message;
if (tagMode == 0) message = _("ASS Override Tag mode set to show full tags.");
if (tagMode == 1) message = _("ASS Override Tag mode set to simplify tags.");
if (tagMode == 2) message = _("ASS Override Tag mode set to hide tags.");
wxGetApp().frame->StatusTimeout(message,10000);
// Set option

View file

@ -141,19 +141,16 @@ std::map<int,wxString> FFmpegSourceProvider::GetTracksOfType(FFMS_Indexer *Index
int FFmpegSourceProvider::AskForTrackSelection(const std::map<int,wxString> &TrackList, FFMS_TrackType Type) {
std::vector<int> TrackNumbers;
wxArrayString Choices;
wxString TypeName = "";
if (Type == FFMS_TYPE_VIDEO)
TypeName = _("video");
else if (Type == FFMS_TYPE_AUDIO)
TypeName = _("audio");
for (std::map<int,wxString>::const_iterator i = TrackList.begin(); i != TrackList.end(); i++) {
Choices.Add(wxString::Format(_("Track %02d: %s"), i->first, i->second));
TrackNumbers.push_back(i->first);
}
int Choice = wxGetSingleChoiceIndex(wxString::Format(_("Multiple %s tracks detected, please choose the one you wish to load:"), TypeName),
wxString::Format(_("Choose %s track"), TypeName), Choices);
int Choice = wxGetSingleChoiceIndex(
Type == FFMS_TYPE_VIDEO ? _("Multiple video tracks detected, please choose the one you wish to load:") : _("Multiple audio tracks detected, please choose the one you wish to load:"),
Type == FFMS_TYPE_VIDEO ? _("Choose video track") : _("Choose audio track"),
Choices);
if (Choice < 0)
return Choice;