Make a few translation errors translateable - thx hugok79 :)

Work on #6492
This commit is contained in:
niksedk 2022-12-07 19:58:25 +01:00
parent f14d3e2980
commit 2c48916f67
5 changed files with 37 additions and 6 deletions

View File

@ -1781,6 +1781,11 @@ Download and continue?</VideoFromUrlRequirements>
<UsingOnlyFrontCenterChannel>Using only front center audio channel</UsingOnlyFrontCenterChannel>
<BeforeConvertingColorsToDialog>Before converting colors to dialog</BeforeConvertingColorsToDialog>
<ConvertedColorsToDialog>Converted colors to dialog</ConvertedColorsToDialog>
<PleaseInstallVideoPlayer>Please install video player</PleaseInstallVideoPlayer>
<UnableToPlayMediaFile>SE was unable to play the video/audio file (or file is not a valid video/audio file).</UnableToPlayMediaFile>
<SubtitleEditNeedsVideoPlayer>Subtitle Edit needs a video player.</SubtitleEditNeedsVideoPlayer>
<UseRecommendMpv>To use the recommended video player "mpv" click on the button below.</UseRecommendMpv>
<DownloadAndUseMpv>Download and use "mpv" as video player</DownloadAndUseMpv>
</Main>
<MatroskaSubtitleChooser>
<Title>Choose subtitle from Matroska file</Title>

View File

@ -18,20 +18,22 @@ namespace Nikse.SubtitleEdit.Forms
InitializeComponent();
UiUtil.FixFonts(this);
UiUtil.FixLargeFonts(this, buttonCancel);
buttonMpvSettings.Text = LanguageSettings.Current.Main.DownloadAndUseMpv;
}
public void Initialize(string fileName)
{
Text += fileName;
var sb = new StringBuilder();
sb.Append("SE was unable to play the video/audio file (or file is not a valid video/audio file).");
sb.Append(LanguageSettings.Current.Main.UnableToPlayMediaFile);
var currentVideoPlayer = Configuration.Settings.General.VideoPlayer;
if (string.IsNullOrEmpty(currentVideoPlayer))
{
Text = "Please install video player";
Text = LanguageSettings.Current.Main.PleaseInstallVideoPlayer;
sb.Clear();
sb.Append("Subtitle Edit needs a video player.");
sb.Append(LanguageSettings.Current.Main.SubtitleEditNeedsVideoPlayer);
currentVideoPlayer = "DirectShow";
}
@ -49,7 +51,7 @@ namespace Nikse.SubtitleEdit.Forms
if (Configuration.IsRunningOnLinux)
{
sb.AppendLine();
sb.AppendLine("Try installing latest version of libmpv and libvlc!");
sb.AppendLine("Try installing latest version of libmpv or libvlc!");
sb.Append("Read more about Subtitle Edit on Linux here: https://nikse.dk/SubtitleEdit/Help#linux");
}
else if (currentVideoPlayer == "MPV" && Configuration.IsRunningOnWindows)
@ -69,7 +71,7 @@ namespace Nikse.SubtitleEdit.Forms
}
else if (currentVideoPlayer != "MPV")
{
labelMpvInfo.Text = "To use the recommended video player \"mpv\" click on the button below.";
labelMpvInfo.Text = LanguageSettings.Current.Main.UseRecommendMpv;
if (isLibMpvInstalled)
{
buttonMpvSettings.Text = "Use \"mpv\" as video player";

View File

@ -1681,7 +1681,11 @@ namespace Nikse.SubtitleEdit.Logic
UsingOnlyFrontCenterChannel = "Using only front center audio channel",
BeforeConvertingColorsToDialog = "Before converting colors to dialog",
ConvertedColorsToDialog = "Converted colors to dialog",
PleaseInstallVideoPlayer = "Please install video player",
UnableToPlayMediaFile = "SE was unable to play the video/audio file (or file is not a valid video/audio file).",
SubtitleEditNeedsVideoPlayer = "Subtitle Edit needs a video player.",
UseRecommendMpv = "To use the recommended video player \"mpv\" click on the button below.",
DownloadAndUseMpv = "Download and use \"mpv\" as video player",
Menu = new LanguageStructure.Main.MainMenu
{

View File

@ -3880,6 +3880,21 @@ namespace Nikse.SubtitleEdit.Logic
case "Main/ConvertedColorsToDialog":
language.Main.ConvertedColorsToDialog = reader.Value;
break;
case "Main/PleaseInstallVideoPlayer":
language.Main.PleaseInstallVideoPlayer = reader.Value;
break;
case "Main/UnableToPlayMediaFile":
language.Main.UnableToPlayMediaFile = reader.Value;
break;
case "Main/SubtitleEditNeedsVideoPlayer":
language.Main.SubtitleEditNeedsVideoPlayer = reader.Value;
break;
case "Main/UseRecommendMpv":
language.Main.UseRecommendMpv = reader.Value;
break;
case "Main/DownloadAndUseMpv":
language.Main.DownloadAndUseMpv = reader.Value;
break;
case "Main/Menu/File/Title":
language.Main.Menu.File.Title = reader.Value;
break;

View File

@ -1533,6 +1533,11 @@ namespace Nikse.SubtitleEdit.Logic
public string UsingOnlyFrontCenterChannel { get; set; }
public string BeforeConvertingColorsToDialog { get; set; }
public string ConvertedColorsToDialog { get; set; }
public string PleaseInstallVideoPlayer { get; set; }
public string UnableToPlayMediaFile { get; set; }
public string SubtitleEditNeedsVideoPlayer { get; set; }
public string UseRecommendMpv { get; set; }
public string DownloadAndUseMpv { get; set; }
public class MainMenu
{