Fix localization issue

This commit is contained in:
Mygod
2018-01-21 23:18:28 -08:00
parent cccb9cf247
commit 1f697034a3
3 changed files with 3 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ object ServiceNotification {
val builder = NotificationCompat.Builder(context, CHANNEL)
.setWhen(0)
.setColor(ContextCompat.getColor(context, R.color.colorPrimary))
.setContentTitle("VPN tethering active")
.setContentTitle(context.getText(R.string.notification_tethering_title))
.setSmallIcon(R.drawable.ic_device_wifi_tethering)
.setContentIntent(PendingIntent.getActivity(context, 0,
Intent(context, MainActivity::class.java), PendingIntent.FLAG_UPDATE_CURRENT))

View File

@@ -52,6 +52,7 @@
<string name="settings_misc_donate">捐款</string>
<string name="settings_misc_donate_summary">请给我钱</string>
<string name="notification_tethering_title">VPN 共享已启用</string>
<string name="notification_channel_tethering">VPN 共享服务</string>
<plurals name="notification_connected_devices">
<item quantity="other">%d 个设备已连接到 %s</item>

View File

@@ -54,6 +54,7 @@
<string name="settings_misc_donate">Donate</string>
<string name="settings_misc_donate_summary">I love money</string>
<string name="notification_tethering_title">VPN tethering active</string>
<string name="notification_channel_tethering">VPN Tethering Service</string>
<plurals name="notification_connected_devices">
<item quantity="one">%d device connected to %s</item>