Fix missing quantity strings
This commit is contained in:
@@ -183,8 +183,8 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
|
||||
WifiApManager.channelWidthLookup(bandwidth, true))
|
||||
} else null,
|
||||
capability?.let { (maxSupportedClients, supportedFeatures) ->
|
||||
app.getString(R.string.tethering_manage_wifi_capabilities, numClients ?: "?",
|
||||
maxSupportedClients, sequence {
|
||||
app.resources.getQuantityString(R.plurals.tethering_manage_wifi_capabilities, maxSupportedClients,
|
||||
numClients ?: "?", maxSupportedClients, sequence {
|
||||
var features = supportedFeatures
|
||||
if (features == 0L) yield(parent.getString(R.string.tethering_manage_wifi_no_features))
|
||||
else while (features != 0L) {
|
||||
|
||||
@@ -58,7 +58,9 @@
|
||||
<string name="tethering_manage_ncm">USB 网络共享 (NCM)</string>
|
||||
<string name="tethering_manage_wigig">WiGig 热点</string>
|
||||
<string name="tethering_manage_wifi_info">%1$d MHz, 频道 %2$d, 频宽 %3$s</string>
|
||||
<string name="tethering_manage_wifi_capabilities">已连接 %1$s/%2$d 个设备\n支持功能:%3$s</string>
|
||||
<plurals name="tethering_manage_wifi_capabilities">
|
||||
<item quantity="other">已连接 %1$s/%2$d 个设备\n支持功能:%3$s</item>
|
||||
</plurals>
|
||||
<string name="tethering_manage_wifi_no_features">无</string>
|
||||
<string name="tethering_manage_wifi_client_blocked">已屏蔽 %1$s:%2$s</string>
|
||||
<string name="tethering_manage_wifi_copy_mac">复制 MAC</string>
|
||||
|
||||
@@ -68,7 +68,10 @@
|
||||
<string name="tethering_manage_ncm">USB tethering (NCM)</string>
|
||||
<string name="tethering_manage_wigig">WiGig hotspot</string>
|
||||
<string name="tethering_manage_wifi_info">%1$d MHz, channel %2$d, width %3$s</string>
|
||||
<string name="tethering_manage_wifi_capabilities">%1$s/%2$d clients connected\nSupported features: %3$s</string>
|
||||
<plurals name="tethering_manage_wifi_capabilities">
|
||||
<item quantity="one">%1$s/%2$d client connected\nSupported features: %3$s</item>
|
||||
<item quantity="other">%1$s/%2$d clients connected\nSupported features: %3$s</item>
|
||||
</plurals>
|
||||
<string name="tethering_manage_wifi_no_features">None</string>
|
||||
<string name="tethering_manage_wifi_client_blocked">Blocked %1$s: %2$s</string>
|
||||
<string name="tethering_manage_wifi_copy_mac">Copy MAC</string>
|
||||
|
||||
Reference in New Issue
Block a user