Browse Source

some more translation work

Fabio Arnold 9 years ago
parent
commit
ac96f93f5f

+ 9 - 0
res/values-de/strings.xml

@@ -262,4 +262,13 @@
     <string name="no_portbinder_msg">Ihr Smartphone hat keinen  \'Portbinder\' installiert. Aufgrund von Einschränkungen unter Android können sie nur Dienste mit Ports >1024 benutzten.\n\nUm die volle Funktionalität von  HosTaGe nutzen zu können, müssen sie sicherstellen, dass ihr Smartphone gerootet ist und  der \'Portbinder\' installiert ist.</string>
     <string name="no_portbinder_msg2">Ihr Smartphone unterstützt zur Zeit nicht alle Funktionen von HosTaGe. Klicken sie auf \'Hilfe\' um mehr zu erfahren.</string>
     <string name="confirm">Bestätigen</string>
+    <string name="hostage_live_threat">Netzwerk ist infiziert!</string>
+    <string name="hostage_no_threat">Netzwerk sieht sicher aus</string>
+    <string name="hostage_not_monitoring">HosTaGe ist inaktiv</string>
+    <string name="hostage_past_threat">Netzwerk wurde in der Vergangenheit angegriffen</string>
+    <string name="hostage_email">
+        <a href="mailto:hostage@tk.informatik.tu-darmstadt.de?Subject=Inquiry">Sag uns deine Meinung
+            zu HosTaGe
+        </a>
+    </string>
 </resources>

+ 6 - 0
res/values/strings.xml

@@ -38,11 +38,17 @@
     <string name="helpPortbinder">Please follow the instructions in our website to install \'Portbinder\'.\n\nAlternatively, you can use the automated installer by pressing the \'Just Help Me!\' button.</string>
     <string name="confirm_msg">This automated installer fetches the appropriate Portbinder binary and installs in a location within the device.\n\nThis automated process will CHANGE some folder permissions to work. Proceed on your own risk.\n\nConfirm to proceed with automated installation of Portbinder?</string>
     <string name="help_me">Just Help Me!</string>
+
 	<string name="honeypot_not_monitoring">Zzz...</string>
 	<string name="honeypot_no_threat">Looks safe!</string>
 	<string name="honeypot_past_threat">This doesn\'t look safe...</string>
 	<string name="honeypot_live_threat">Under attack!!!</string>
 
+    <string name="hostage_not_monitoring">HosTaGe is not active.</string>
+    <string name="hostage_no_threat">Everything looks fine!</string>
+    <string name="hostage_past_threat">Network has been infected in previous session!</string>
+    <string name="hostage_live_threat">Network is infected!</string>
+
 	<string name="profile_needs_name">An profile needs a name. Please type in a name and press save again.</string>
     <string name="monitor_current_connection">Monitor current connection</string>
     <string name="active_profile">Active profile: </string>

+ 4 - 4
src/de/tudarmstadt/informatik/hostage/Hostage.java

@@ -489,16 +489,16 @@ public class Hostage extends Service {
 		builder = new NotificationCompat.Builder(this).setContentTitle(getString(R.string.app_name)).setWhen(System.currentTimeMillis());
 		if (!listening) {
 			builder.setSmallIcon(R.drawable.ic_launcher);
-			builder.setContentText("HosTaGe is not active.");
+			builder.setContentText(getString(R.string.hostage_not_monitoring));
 		} else if (activeHandlers) {
 			builder.setSmallIcon(R.drawable.ic_service_red);
-			builder.setContentText("Network is infected!");
+			builder.setContentText(getString(R.string.hostage_live_threat));
 		} else if (bssidSeen) {
 			builder.setSmallIcon(R.drawable.ic_service_yellow);
-			builder.setContentText("Network has been infected in previous session!");
+			builder.setContentText(getString(R.string.hostage_past_threat));
 		} else {
 			builder.setSmallIcon(R.drawable.ic_service_green);
-			builder.setContentText("Everything looks fine!");
+			builder.setContentText(getString(R.string.hostage_no_threat));
 		}
 		Intent launchIntent = new Intent(getApplicationContext(), MainActivity.class);
 		TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);