提交 fb8b2762 编写于 作者: 之一Yo's avatar 之一Yo

更新文档

上级 63a42fa9
......@@ -32,5 +32,5 @@ msgstr "欢迎来到 PyQt-Fluent-Widgets 帮助文档!"
msgid ""
"This document will show you all the features of PyQt-Fluent-Widgets and "
"the best practice of it."
msgstr "这份文档将向你展示 PyQt-Fluent-Widgets 的全部特性和最佳实践。"
msgstr "这份文档将展示 PyQt-Fluent-Widgets 的全部特性和正确使用姿势 🚀"
......@@ -33,7 +33,7 @@ msgid ""
"PyQt Fluent Widgets provides a side navigation class NavigationInterface."
" You can use it with QStackWidget and put them in QHBoxLayout. Examples "
"are available at navigation2."
msgstr "PyQt-Fluent-Widgets 提供侧边导航类 `NavigationInterface`,可以将它和 `QStackWidget` 放在 `QHBoxLayout` 中。示例程序参见 [navigation2](https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/master/examples/navigation2)"
msgstr "PyQt-Fluent-Widgets 提供侧边导航类 `NavigationInterface`,可以将它和 `QStackWidget` 放在 `QHBoxLayout` 中。示例程序参见 [navigation2](https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/master/examples/navigation2)"
#: ../../source/navigation.md:8 5c57ef2be90248b9a3f1e009604a4186
msgid ""
......@@ -51,7 +51,7 @@ msgid ""
"NavigationWidget and rewrite its paintEvent() and "
"setCompacted()(optional). Here an example shows how to create an avatar "
"item."
msgstr "如果你想自定义一个导航项,可以定义一个 `NavigationWidget` 的子类并实现它的 `paintEvent()` 和 `setCompacted()`(可选) 方法。下面是一个简单例子,展示了如何定义一个头像导航项:"
msgstr "如果希望自定义一个导航项,可以创建 `NavigationWidget` 的子类并实现它的 `paintEvent()` 和 `setCompacted()`(可选) 方法。下面是一个简单例子,展示了如何定义头像导航项:"
#: ../../source/navigation.md:53 806c4ccf0eee4d70b04adb32285a0112
msgid ""
......@@ -138,7 +138,7 @@ msgstr "`NavigationDisplayMode.MENU`:展开的导航菜单(当窗口窗口
msgid ""
"NavigationDisplayMode.MINIMAL: Only a menu button on small window widths "
"(you should add and manage the menu button to main window by yourself)."
msgstr "`NavigationDisplayMode.MINIMAL`:只显示一个菜单按钮。应该自己创建并管理菜单按钮和 `NavigationPanel`,然后将菜单按钮的点击信号连接到 `NavigationPanel.toggle()` 函数上。"
msgstr "`NavigationDisplayMode.MINIMAL`:只显示一个菜单按钮。在这种显示模式下,应该自己创建并管理菜单按钮和 `NavigationPanel`,然后将菜单按钮的点击信号连接到 `NavigationPanel.toggle()` 函数上。"
#: ../../source/navigation.md:84 d43aacaf91354d439d3ff15b48fb1313
msgid ""
......
......@@ -44,5 +44,5 @@ msgstr "运行示例"
msgid ""
"After installing PyQt-Fluent-Widgets package using pip, you can run any "
"demo in the examples directory, for example:"
msgstr "使用 pip 安装好 PyQt-Fluent-Widgets 包之后,你可以运行 examples 目录下的任意示例,比如:"
msgstr "使用 pip 安装好 PyQt-Fluent-Widgets 包之后,就可以运行 [examples](https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/master/examples) 目录下的任意示例,比如:"
......@@ -66,9 +66,9 @@ msgid ""
"item from config file. For example, you can use ColorSerializer to "
"serialize config items with QColor value type."
msgstr ""
"PyQt-Fluent-Widgets 使用 json 文件来保存配置,由于 json 文件只支持字符串、布尔值、列表和字典,对于枚举类或者 "
"PyQt-Fluent-Widgets 使用 json 文件来保存配置, json 文件只支持字符串、布尔值、列表和字典,对于枚举类或者 "
"`QColor`,无法直接将它们的值写入 json 文件中。为了解决这个问题,PyQt-Fluent-Widgets 提供了 "
"`ConfigSerializer` 类及其子类来序列化和反序列化配置项。举个栗子,可以使用 `ColorSerializer` "
"`ConfigSerializer` 类及其子类来序列化和反序列化配置项。举个栗子,可以使用 `ColorSerializer` "
"来序列化值类型为 `QColor` 的配置项。"
#: ../../source/settings.md:11 7aff5d8231034bb0ad894d6108f4c807
......@@ -80,7 +80,7 @@ msgid ""
"You should add config items to the class attribute of QConfig subclasss,"
" then use qconfig.load() to load config file, for example:"
msgstr ""
"应该将 `ConfigItem` 的实例添加到 `QConfig` 子类的类属性中,然后使用 `qconfig.load()` "
"为了正确读写配置项的值,应该将 `ConfigItem` 的实例添加到 `QConfig` 子类的类属性中,然后使用 `qconfig.load()` "
"来加载配置文件。下面是一个简单的例子:"
#: ../../source/settings.md:89 e72ec71f16bb480585ed8e14e99d5015
......@@ -96,7 +96,7 @@ msgid ""
"You can use SettingCardGroup.addSettingCard() to add a setting card to "
"the same group, and SettingCardGroup will adjust its layout automatically"
" based on the height of setting cards."
msgstr "你可以使用 `SettingCardGroup.addSettingCard()` 将多个设置卡添加到同一个组中,`SettingCardGroup` 会根据设置卡的高度自动调整自己的布局。"
msgstr "可以通过 `SettingCardGroup.addSettingCard()` 将多个设置卡添加到同一个组中,`SettingCardGroup` 会根据设置卡的高度自动调整自己的布局。"
#: ../../source/settings.md:146 793ebd8ec76445bfb7ecf053abc47866
msgid ""
......
......@@ -33,7 +33,7 @@ msgid ""
"You can use the setTheme() method to switch the light/dark theme of PyQt-"
"Fluent-Widgets. The parameter of setTheme() accepts the following three "
"values:"
msgstr "你可以使用 `setTheme()` 函数来切换 PyQt-Fluent-Widgets 全部组件的亮暗主题。该函数接受下述值:"
msgstr "`setTheme()` 函数用于切换 PyQt-Fluent-Widgets 全部组件的亮暗主题。该函数接受下述值:"
#: ../../source/theme.md:5 22d2a026a46540ab8f9e563ccc105b8d
msgid "Theme.LIGHT: Light theme"
......@@ -67,7 +67,7 @@ msgid ""
"You can use setThemeColor() method to change the theme color of PyQt-"
"Fluent-Widgets. This method accepts the following three types of "
"parameters:"
msgstr "你可以使用 `setThemeColor()` 函数来修改全部组件的主题色。该函数接受三种类型的值:"
msgstr "`setThemeColor()` 函数用于修改全部组件的主题色。该函数接受三种类型的值:"
#: ../../source/theme.md:13 7d2529df9e784db9bcfe546662332984
msgid "QColor"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册