misc
This commit is contained in:
@@ -330,7 +330,7 @@ public class GuiCommand
|
||||
|
||||
if (path.ToLower().Contains(Folder.Startup.TrimEnd(Path.DirectorySeparatorChar).ToLower()))
|
||||
{
|
||||
Msg.ShowWarning("mpv.net is already in Path.");
|
||||
Msg.ShowWarning(_("mpv.net is already in Path."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,7 @@ public class GuiCommand
|
||||
Folder.Startup.TrimEnd(Path.DirectorySeparatorChar) + ";" + path,
|
||||
EnvironmentVariableTarget.User);
|
||||
|
||||
Msg.ShowInfo("mpv.net successfully was added to Path.");
|
||||
Msg.ShowInfo(_("mpv.net was successfully added to Path."));
|
||||
}
|
||||
|
||||
public void ShowPlaylist()
|
||||
@@ -397,4 +397,4 @@ public class GuiCommand
|
||||
// MainForm.Instance.ShowCommandPalette();
|
||||
// CommandPalette.Instance.SelectFirst();
|
||||
// });
|
||||
//}
|
||||
//}
|
||||
|
||||
@@ -41,7 +41,7 @@ static class Program
|
||||
Theme.Init();
|
||||
Mutex mutex = new Mutex(true, StringHelp.GetMD5Hash(App.ConfPath), out bool isFirst);
|
||||
|
||||
if (Control.ModifierKeys.HasFlag(Keys.Shift) ||
|
||||
if (Control.ModifierKeys == Keys.Shift ||
|
||||
App.CommandLine.Contains("--process-instance=multi") ||
|
||||
App.CommandLine.Contains("--o="))
|
||||
{
|
||||
|
||||
@@ -824,8 +824,9 @@ name = audio-device
|
||||
file = mpv
|
||||
directory = Audio
|
||||
type = string
|
||||
width = 400
|
||||
url = https://mpv.io/manual/master/#options-audio-device
|
||||
help = <name> Use the given audio device. This consists of the audio output name, e.g. alsa, followed by /, followed by the audio output specific device name. The default value for this option is auto, which tries every audio output in preference order with the default device.
|
||||
help = <name> Use the given audio device. This consists of the audio output name, e.g. alsa, followed by /, followed by the audio output specific device name. The default value for this option is auto, which tries every audio output in preference order with the default device. To list audio devices in mpv.net use the context menu:\nView > More > Show Audio Devices.
|
||||
|
||||
name = slang
|
||||
file = mpv
|
||||
|
||||
@@ -7,6 +7,8 @@ namespace MpvNet.Windows.WPF;
|
||||
|
||||
public class WpfTranslator : ITranslator
|
||||
{
|
||||
string _localizerLangauge = "";
|
||||
|
||||
static Language[] Languages { get; } = new Language[] {
|
||||
new("english", "en", "en"),
|
||||
new("chinese-china", "zh-CN", "zh"), // Chinese (Simplified)
|
||||
@@ -21,8 +23,11 @@ public class WpfTranslator : ITranslator
|
||||
|
||||
void InitNGettextWpf()
|
||||
{
|
||||
if (Translation.Localizer == null)
|
||||
if (Translation.Localizer == null || _localizerLangauge != App.Language)
|
||||
{
|
||||
CompositionRoot.Compose("mpvnet", GetCulture(App.Language), Folder.Startup + "Locale");
|
||||
_localizerLangauge = App.Language;
|
||||
}
|
||||
}
|
||||
|
||||
string GetSystemLanguage()
|
||||
|
||||
@@ -17,7 +17,7 @@ public static class InputHelp
|
||||
new (_("File"), _("Add external subtitle files..."), "script-message-to mpvnet load-sub", "Alt+s"),
|
||||
new (_("File"), "-"),
|
||||
new (_("File"), _("Add files to playlist..."), "script-message-to mpvnet open-files append"),
|
||||
new (_("File"), _("Add files to playlist from clipboard"), "script-message-to mpvnet open-clipboard append", "Ctrl+Shift+v"),
|
||||
new (_("File"), _("Add files/URLs to playlist from clipboard"), "script-message-to mpvnet open-clipboard append", "Ctrl+Shift+v"),
|
||||
new (_("File"), "-"),
|
||||
new (_("File"), _("Recent Files")),
|
||||
new (_("File"), _("Exit"), "quit", "Esc"),
|
||||
|
||||
Reference in New Issue
Block a user