Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
merge 6031cm & fix & update
Browse files Browse the repository at this point in the history
  • Loading branch information
hooke007 committed Jan 27, 2023
1 parent 16d6e4d commit 070fda3
Show file tree
Hide file tree
Showing 18 changed files with 1,402 additions and 874 deletions.
16 changes: 8 additions & 8 deletions src/Misc/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public static void ShowHistory()
ProcessHelp.ShellExecute(Core.ConfigFolder + "history.txt");
else
{
if (Msg.ShowQuestion("Create a 'history.txt' file in the config folder?" + BR2 +
"mpv.net will write the date, time, play length and path of watched files to it.") == MessageBoxResult.OK)
if (Msg.ShowQuestion("是否在设置文件夹中创建history.txt" + BR2 +
"mpv.net将写入当前文件的日期、时间、播放时间和路径") == MessageBoxResult.OK)

File.WriteAllText(Core.ConfigFolder + "history.txt", "");
}
Expand Down Expand Up @@ -248,7 +248,7 @@ public static void OpenFromClipboard() => App.InvokeOnMainThread(() =>

if (files.Count == 0)
{
App.ShowError("The clipboard does not contain a valid URL or file.");
App.ShowError("剪贴板中不包含有效的链接或文件!");
return;
}

Expand Down Expand Up @@ -441,7 +441,7 @@ public static void ShowMediaInfo(string[] args) => App.InvokeOnMainThread(() =>
{
MsgBoxEx.MessageBoxEx.MsgFontFamily = new FontFamily("Consolas");
Msg.ShowInfo(text);
MsgBoxEx.MessageBoxEx.MsgFontFamily = new FontFamily("Segoe UI");
MsgBoxEx.MessageBoxEx.MsgFontFamily = new FontFamily("微软雅黑");
}
});

Expand Down Expand Up @@ -653,11 +653,11 @@ public static void RegisterFileAssociations(string perceivedType)
proc.WaitForExit();

if (proc.ExitCode == 0)
Msg.ShowInfo("File associations were successfully " +
(perceivedType == "unreg" ? "removed" : "created") +
".\n\nFile Explorer icons will refresh after process restart.");
Msg.ShowInfo("文件关联已成功" +
(perceivedType == "注销" ? "移除" : "创建") +
"\n\n资源管理器的相关图标将在进程重启后刷新");
else
Msg.ShowError("Error creating file associations.");
Msg.ShowError("关联出错!");
}
} catch { }
}
Expand Down
2 changes: 1 addition & 1 deletion src/Misc/Conf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static List<SettingBase> LoadConf(string content)
opt.Name = i.Value;

if (opt.Name == optionSetting.Default)
opt.Text = opt.Name + " (Default)";
opt.Text = opt.Name + "(默认)";

opt.OptionSetting = optionSetting;
optionSetting.Options.Add(opt);
Expand Down
3 changes: 2 additions & 1 deletion src/Misc/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,14 @@ public void Init(IntPtr handle)
SetPropertyBool("input-default-bindings", true);
SetPropertyBool("input-builtin-bindings", false);

SetPropertyString("watch-later-options", "mute");
SetPropertyString("watch-later-options", "start,vid,aid,sid");
SetPropertyString("screenshot-directory", "~~desktop/");
SetPropertyString("osd-playing-msg", "${media-title}");
SetPropertyString("osc", "yes");
SetPropertyString("force-window", "yes");
SetPropertyString("config-dir", ConfigFolder);
SetPropertyString("config", "yes");
SetPropertyString("include", "~~/profiles.conf");

ProcessCommandLine(true);

Expand Down
2 changes: 1 addition & 1 deletion src/Misc/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class AppSettings
public Point WindowLocation;
public Point WindowPosition;
public Size WindowSize;
public string ConfigEditorSearch = "Video:";
public string ConfigEditorSearch = "基础:";
public string Mute = "no";
}

Expand Down
4 changes: 2 additions & 2 deletions src/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="editor_conf" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\editor_conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
<value>..\Resources\editor_conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="input_conf" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\input.conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
<value>..\Resources\input.conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="mpvnet" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mpvnet.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
Expand Down
Loading

0 comments on commit 070fda3

Please sign in to comment.