From 67d58da771ed543874154cdb9e049c0e05459a87 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 20 May 2023 13:49:35 +0200 Subject: localization setup --- app/java/src/DNSProxyService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/java/src/DNSProxyService.java') diff --git a/app/java/src/DNSProxyService.java b/app/java/src/DNSProxyService.java index 5a3d70f..10e127b 100644 --- a/app/java/src/DNSProxyService.java +++ b/app/java/src/DNSProxyService.java @@ -153,12 +153,12 @@ public class DNSProxyService extends VpnService { Notification notification = new Notification.Builder(this, DNSProxyService.NOTIFICATION_CHANNEL_ID) .setSmallIcon(R.drawable.logo) - .setContentTitle("Pihole DNS Proxy") - .setContentText("Running with " + DNSProxyService.PIHOLE_ADDRESS) + .setContentTitle(getString(R.string.app_label)) + .setContentText(String.format(getString(R.string.dns_proxy_service__notification__text), DNSProxyService.PIHOLE_ADDRESS)) .setContentIntent(PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), Intent.FLAG_ACTIVITY_NEW_TASK)) .addAction( R.drawable.logo, - "Stop", + getString(R.string.dns_proxy_service__notification__action__stop), PendingIntent.getService(this, 0, (new Intent(this, DNSProxyService.class)).setAction(DNSProxyService.ACTION_STOP), PendingIntent.FLAG_IMMUTABLE -- cgit v1.2.3