Difference between revisions of "Translations:Develop an simple input method/81/zh-cn"

From Fcitx
Jump to navigation Jump to search
(Created page with "= 配置 = 虽然区位码并不真正需要这个功能,因为它是一个非常常见的用例,所以它会在本节中介绍。该插件有几个与配置相关的不...")
 
(No difference)

Latest revision as of 03:45, 19 April 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Develop an simple input method)
= Configuration =
While Quwei does not really need this feature, since it is a really common use case so it will be covered in this section. The addon has a few different interface relevant to configuration, such as getConfig, setConfig, getConfigForInputMethod, setConfigForInputMethod, reloadConfig. The getter function would need to return a [https://codedocs.xyz/fcitx/fcitx5/classfcitx_1_1Configuration.html Configuration] object, while setConfig accepts a [https://codedocs.xyz/fcitx/fcitx5/classfcitx_1_1RawConfig.html RawConfig] object. reloadConfig will be called to reload the configuration from disk, you may want to call reloadConfig() in the constructor of the addon too.
Translation= 配置 =
虽然区位码并不真正需要这个功能,因为它是一个非常常见的用例,所以它会在本节中介绍。该插件有几个与配置相关的不同接口,例如 getConfig、setConfig、getConfigForInputMethod、setConfigForInputMethod、reloadConfig。getter 函数需要返回一个 [https://codedocs.xyz/fcitx/fcitx5/classfcitx_1_1Configuration.html Configuration] 对象,而 setConfig 接受一个 [https://codedocs.xyz/fcitx/fcitx5/classfcitx_1_1RawConfig.html RawConfig]目的。reloadConfig 将被调用以从磁盘重新加载配置,您可能也想在插件的构造函数中调用 reloadConfig()。

配置

虽然区位码并不真正需要这个功能,因为它是一个非常常见的用例,所以它会在本节中介绍。该插件有几个与配置相关的不同接口,例如 getConfig、setConfig、getConfigForInputMethod、setConfigForInputMethod、reloadConfig。getter 函数需要返回一个 Configuration 对象,而 setConfig 接受一个 RawConfig目的。reloadConfig 将被调用以从磁盘重新加载配置,您可能也想在插件的构造函数中调用 reloadConfig()。