diff --git a/Locales/zh.qm b/Locales/zh.qm new file mode 100644 index 0000000..a572830 Binary files /dev/null and b/Locales/zh.qm differ diff --git a/Locales/zh.ts b/Locales/zh.ts new file mode 100644 index 0000000..6b26b3c --- /dev/null +++ b/Locales/zh.ts @@ -0,0 +1,306 @@ + + + + + BottomUI + + + Ordinal Scale Bottom UI widget + 序列之争底部UI挂件 + + + + + Settings + 设置 + + + + UI Settings + UI设置 + + + + Configuration + 配置项 + + + + Line Color + 线条颜色 + + + + Line Width + 线宽 + + + + Shadow Color + 阴影颜色 + + + + Shadow Size + 阴影大小 + + + + TopUI + + + Ordinal Scale Top UI widget + 序列之争顶部UI挂件 + + + + Light + 细体 + + + + Normal + 常规 + + + + Bold + 粗体 + + + + + Settings + 设置 + + + + UI Settings + UI设置 + + + + Configuration + 设置项 + + + + Circle Color + 中心圆颜色 + + + + Line Color + 线条颜色 + + + + Line Width + 线宽 + + + + Shadow Color + 阴影颜色 + + + + Shadow Size + 阴影大小 + + + + Battle UI + 战斗UI + + + + Clock Visible + 显示时间 + + + + 24 Hour Clock + 24小时制 + + + + Font Color + 字体颜色 + + + + Font Size + 字体大小 + + + + Font Style + 字体样式 + + + + Font Weight + 字体粗细 + + + + Text Vertical Offset + 文字垂直偏移 + + + + WeatherWidget + + + Ordinal Scale Weather Widget + Weather Widget + 序列之争天气挂件 + + + + Light + 细体 + + + + Normal + 常规 + + + + Bold + 粗体 + + + + + + Settings + 设置 + + + + Refresh + 刷新 + + + + Configuration + 配置项 + + + + Location + 位置 + + + + Search address by location, latitude and longitude. + 按地址、经纬度搜索地址。 + + + + Display Location + 显示地址 + + + + The location to display in widget. + 在挂件中显示的位置。 + + + + Update Interval + 更新间隔 + + + + + Minutes + 分钟 + + + + + Hours + 小时 + + + + Unit + 单位 + + + + Background Color + 背景颜色 + + + + Background Opacity + 背景不透明度 + + + + Area Opacity Difference + 区域不透明度差异 + + + + Icon Color + 图标颜色 + + + + Temperature Text Settings + 温度文字设置 + + + + + Font Color + 字体颜色 + + + + + Font Size + 字体大小 + + + + + Font Style + 字体样式 + + + + + Font Weight + 字体粗细 + + + + + X Offset + X偏移量 + + + + + Y Offset + Y偏移量 + + + + Area Text Settings + 地区文字设置 + + + + Border Margin + 边距 + + + diff --git a/qml/TopUI.qml b/qml/TopUI.qml index 4a6632f..83d3a32 100644 --- a/qml/TopUI.qml +++ b/qml/TopUI.qml @@ -18,7 +18,11 @@ T.Widget { property real tmin: 0 editing: styleDialog.active - readonly property var configs: widget.settings.styles ? widget.settings.styles : {"Circle Color":"#fffcf9","Line Color":"#fffcf9","Line Width":38,"Shadow Color":"#e0e0e0","Shadow Size":0.5,"Battle UI":false,"Clock Visible":true,"Full Clock":true,"Font Color":"#f5f5f5","Font Size":44,"Font Name":0,"Font Weight":0,"Text Vertical Offset":16} + readonly property var fonts: Qt.fontFamilies() + readonly property var fontweight: [Font.Light, Font.Normal, Font.Bold] + readonly property var sfontweight: [qsTr("Light"), qsTr("Normal"), qsTr("Bold")] + + readonly property var configs: widget.settings.styles ? widget.settings.styles : {"Circle Color":"#fffcf9","Line Color":"#fffcf9","Line Width":38,"Shadow Color":"#e0e0e0","Shadow Size":0.5,"Battle UI":false,"Clock Visible":true,"Full Clock":true,"Font Color":"#f5f5f5","Font Size":44,"Font Name":fonts.length-1,"Font Weight":0,"Text Vertical Offset":16} property string circle_color: configs["Circle Color"] property string line_color: configs["Line Color"] @@ -30,10 +34,6 @@ T.Widget { readonly property real w: widget.width readonly property real r: (w**2+h**2)/4/h - readonly property var fonts: Qt.fontFamilies() - readonly property var fontweight: [Font.Light, Font.Normal, Font.Bold] - readonly property var sfontweight: [qsTr("Light"), qsTr("Normal"), qsTr("Bold")] - Timer { interval: 250 running: text_clock.visible @@ -464,7 +464,7 @@ T.Widget { visible: !_cfg_battle_ui.value enabled: visible && _cfg_clock_visible.value icon.name: "solid:\uf1fc" - defaultValue: 0 + defaultValue: fonts.length-1 model: fonts } diff --git a/qml/WeatherWidget.qml b/qml/WeatherWidget.qml index 34c522d..c1b8a2e 100644 --- a/qml/WeatherWidget.qml +++ b/qml/WeatherWidget.qml @@ -16,7 +16,7 @@ import "utils.js" as Utils T.Widget { id: widget - title: qsTr("Weather Widget") + title: qsTr("Ordinal Scale Weather Widget") solid: true readonly property var fonts: Qt.fontFamilies() @@ -303,7 +303,7 @@ T.Widget { P.TextFieldPreference { name: "Display Location" label: qsTr("Display Location") - message: "The location to display in widget." + message: qsTr("The location to display in widget.") } P.DialogPreference { @@ -362,6 +362,8 @@ T.Widget { defaultValue: "#fefefe" } + P.Separator {} + P.DialogPreference { name: "Temperature Text Settings" label: qsTr("Temperature Text Settings")