Skip to content

Commit

Permalink
i18n: Update translate
Browse files Browse the repository at this point in the history
Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
  • Loading branch information
kuoruan committed Apr 11, 2019
1 parent de1a042 commit 9ed5cf5
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 135 deletions.
32 changes: 16 additions & 16 deletions luasrc/model/cbi/frpc/rule-detail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,42 +47,42 @@ o:value("socks5")
o:value("static_file")
o:value("https2http")

o = s:option(Value, "plugin_unix_path", "% - %" % { translate("Plugin"), translate("Unix path") })
o = s:option(Value, "plugin_unix_path", "%s - %s" % { translate("Plugin"), translate("Unix path") })
o.datatype = "file"
o:depends("plugin", "unix_domain_socket")

o = s:option(Value, "plugin_user", "% - %" % { translate("Plugin"), translate("User") })
o = s:option(Value, "plugin_user", "%s - %s" % { translate("Plugin"), translate("User") })
o:depends("plugin", "socks5")

o = s:option(Value, "plugin_passwd", "% - %" % { translate("Plugin"), translate("Password") })
o = s:option(Value, "plugin_passwd", "%s - %s" % { translate("Plugin"), translate("Password") })
o:depends("plugin", "socks5")

o = s:option(Value, "plugin_local_path", "% - %" % { translate("Plugin"), translate("Local path") })
o = s:option(Value, "plugin_local_path", "%s - %s" % { translate("Plugin"), translate("Local path") })
o:depends("plugin", "static_file")

o = s:option(Value, "plugin_strip_prefix", "% - %" % { translate("Plugin"), translate("Strip prefix") })
o = s:option(Value, "plugin_strip_prefix", "%s - %s" % { translate("Plugin"), translate("Strip prefix") })
o:depends("plugin", "static_file")

o = s:option(Value, "plugin_http_user", "% - %" % { translate("Plugin"), translate("HTTP user") })
o = s:option(Value, "plugin_http_user", "%s - %s" % { translate("Plugin"), translate("HTTP user") })
o:depends("plugin", "http_proxy")
o:depends("plugin", "static_file")

o = s:option(Value, "plugin_http_passwd", "% - %" % { translate("Plugin"), translate("HTTP password") })
o = s:option(Value, "plugin_http_passwd", "%s - %s" % { translate("Plugin"), translate("HTTP password") })
o:depends("plugin", "http_proxy")
o:depends("plugin", "static_file")

o = s:option(Value, "plugin_local_addr", "% - %" % { translate("Plugin"), translate("Local addr") })
o = s:option(Value, "plugin_local_addr", "%s - %s" % { translate("Plugin"), translate("Local addr") })
o:depends("plugin", "https2http")

o = s:option(Value, "plugin_crt_path", "% - %" % { translate("Plugin"), translate("Certificate path") })
o = s:option(Value, "plugin_crt_path", "%s - %s" % { translate("Plugin"), translate("Certificate path") })
o.datatype = "file"
o:depends("plugin", "https2http")

o = s:option(Value, "plugin_key_path", "% - %" % { translate("Plugin"), translate("Key path") })
o = s:option(Value, "plugin_key_path", "%s - %s" % { translate("Plugin"), translate("Key path") })
o.datatype = "file"
o:depends("plugin", "https2http")

o = s:option(Value, "plugin_host_header_rewrite", "% - %" % { translate("Plugin"), translate("Host header rewrite") })
o = s:option(Value, "plugin_host_header_rewrite", "%s - %s" % { translate("Plugin"), translate("Host header rewrite") })
o:depends("plugin", "https2http")

o = s:option(Value, "local_ip", translate("Local IP"))
Expand Down Expand Up @@ -166,29 +166,29 @@ o = s:option(Value, "group", translate("Group"))

o = s:option(Value, "group_key", translate("Group key"))

o = s:option(ListValue, "health_check_type", translate("Health check type"))
o = s:option(ListValue, "health_check_type", "%s - %s" % { translate("Health check"), translate("Type") })
o:value("", translate("Disabled"))
o:value("tcp", "TCP")
o:value("http", "HTTP")
o:depends("type", "tcp")
o:depends("type", "http")

o = s:option(ListValue, "health_check_url", translate("Health check url"))
o = s:option(ListValue, "health_check_url", "%s - %s" % { translate("Health check"), translate("URL") })
o:depends("health_check_type", "http")

o = s:option(Value, "health_check_timeout_s", translate("Health check connection timeout"))
o = s:option(Value, "health_check_timeout_s", "%s - %s" % { translate("Health check"), translate("Connection timeout") })
o.datatype = "uinteger"
o.placeholder = "3"
o:depends("health_check_type", "tcp")
o:depends("health_check_type", "http")

o = s:option(Value, "health_check_max_failed", translate("Health check max failed"))
o = s:option(Value, "health_check_max_failed", "%s - %s" % { translate("Health check"), translate("Max failed") })
o.datatype = "uinteger"
o.placeholder = "3"
o:depends("health_check_type", "tcp")
o:depends("health_check_type", "http")

o = s:option(Value, "health_check_interval_s", translate("Health check interval"))
o = s:option(Value, "health_check_interval_s", "%s - %s" % { translate("Health check"), translate("Interval") })
o.datatype = "uinteger"
o.placeholder = "10"
o:depends("health_check_type", "tcp")
Expand Down
123 changes: 64 additions & 59 deletions po/templates/frpc.pot
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ msgstr ""
msgid "Alias"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:121
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:124
msgid "Bind addr"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:126
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:129
msgid "Bind port"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/common.lua:37
msgid "Can't get client version"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:76
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:77
msgid "Certificate path"
msgstr ""

Expand All @@ -68,11 +68,15 @@ msgid ""
"[passwd]@[ip]:[port]"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:179
msgid "Connection timeout"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/common.lua:98
msgid "Connections will be established in advance, default value is zero"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:141
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:144
msgid "Custom domains"
msgstr ""

Expand All @@ -85,7 +89,7 @@ msgid "Debug"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:22
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:167
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:170
#: luci-app-frpc/luasrc/model/cbi/frpc/rules.lua:25
msgid "Disabled"
msgstr ""
Expand All @@ -110,7 +114,7 @@ msgstr ""
msgid "Error"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:194
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:197
msgid "Extra options"
msgstr ""

Expand Down Expand Up @@ -145,46 +149,34 @@ msgstr ""
msgid "General Options"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:162
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:165
msgid "Group"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:164
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:167
msgid "Group key"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:69
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:134
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:70
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:137
msgid "HTTP password"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/common.lua:119
msgid "HTTP proxy"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:65
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:131
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:66
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:134
msgid "HTTP user"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:169
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:176
msgid "Health check connection timeout"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:188
msgid "Health check interval"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:182
msgid "Health check max failed"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:166
msgid "Health check type"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:173
msgid "Health check url"
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:179
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:185
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:191
msgid "Health check"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/common.lua:130
Expand All @@ -195,8 +187,8 @@ msgstr ""
msgid "Heartbeat timeout"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:82
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:148
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:85
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:151
msgid "Host header rewrite"
msgstr ""

Expand All @@ -208,19 +200,23 @@ msgstr ""
msgid "Info"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:191
msgid "Interval"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/common.lua:28
msgid "Invalid client file"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:79
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:81
msgid "Key path"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:195
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:198
msgid "List of extra options"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:85
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:88
#: luci-app-frpc/luasrc/model/cbi/frpc/rules.lua:38
msgid "Local IP"
msgstr ""
Expand All @@ -229,19 +225,19 @@ msgstr ""
msgid "Local Port"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:73
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:74
msgid "Local addr"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:59
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:60
msgid "Local path"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:89
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:92
msgid "Local port"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:145
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:148
msgid "Locations"
msgstr ""

Expand All @@ -265,6 +261,10 @@ msgstr ""
msgid "Manage Options"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:185
msgid "Max failed"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rules.lua:27
msgid "Name"
msgstr ""
Expand All @@ -283,22 +283,22 @@ msgstr ""
msgid "Not set"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:56
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:57
msgid "Password"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:42
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:50
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:53
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:56
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:59
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:62
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:65
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:69
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:73
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:76
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:79
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:82
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:54
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:57
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:60
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:63
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:66
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:70
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:74
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:77
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:81
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:85
msgid "Plugin"
msgstr ""

Expand All @@ -318,7 +318,7 @@ msgstr ""
msgid "Proxy Rules"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:152
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:155
msgid "Proxy protocol version"
msgstr ""

Expand All @@ -330,11 +330,11 @@ msgstr ""
msgid "Remote Port"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:93
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:96
msgid "Remote port"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:108
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:111
msgid "Role"
msgstr ""

Expand All @@ -350,7 +350,7 @@ msgstr ""
msgid "Running"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:116
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:119
msgid "SK"
msgstr ""

Expand All @@ -370,7 +370,7 @@ msgstr ""
msgid "Server addr"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:112
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:115
msgid "Server name"
msgstr ""

Expand All @@ -386,11 +386,11 @@ msgstr ""
msgid "Settings"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:62
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:63
msgid "Strip prefix"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:137
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:140
msgid "Subdomain"
msgstr ""

Expand Down Expand Up @@ -419,23 +419,28 @@ msgid "True"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:34
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:169
#: luci-app-frpc/luasrc/model/cbi/frpc/rules.lua:32
msgid "Type"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:176
msgid "URL"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:50
msgid "Unix path"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:103
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:106
msgid "Use compression"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:98
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:101
msgid "Use encryption"
msgstr ""

#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:53
#: luci-app-frpc/luasrc/model/cbi/frpc/rule-detail.lua:54
msgid "User"
msgstr ""

Expand Down
Loading

0 comments on commit 9ed5cf5

Please sign in to comment.