[tor-commits] [orbot/master] externalize more strings
n8fr8 at torproject.org
n8fr8 at torproject.org
Thu Jan 4 15:26:32 UTC 2018
commit 38cc29c51f6c66861352a0fd6fe59a7396dd4af5
Author: n8fr8 <nathan at freitas.net>
Date: Thu Jan 4 01:12:24 2018 -0500
externalize more strings
---
app/src/main/java/org/torproject/android/OrbotMainActivity.java | 4 ++--
app/src/main/res/values/strings.xml | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
index bc181df0..30ae4bf9 100644
--- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java
+++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
@@ -1338,7 +1338,7 @@ public class OrbotMainActivity extends AppCompatActivity
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
params.setMargins(12, 3, 3, 3);
tv.setLayoutParams(params);
- tv.setText("Full Device Mode");
+ tv.setText(R.string.full_device_vpn);
llBoxShortcuts.addView(tv);
} else {
StringTokenizer st = new StringTokenizer(tordAppString, "|");
@@ -1376,7 +1376,7 @@ public class OrbotMainActivity extends AppCompatActivity
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
params.setMargins(12, 3, 3, 3);
tv.setLayoutParams(params);
- tv.setText("VPN Disabled");
+ tv.setText(R.string.vpn_disabled);
llBoxShortcuts.addView(tv);
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index dded93bc..23fbc641 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -399,4 +399,6 @@
<string name="bridge_cloud">Connect through cloud servers</string>
<string name="bridges_get_new">Request New Bridges... (If all else fails)</string>
<string name="trouble_connecting">Trouble connecting?</string>
+ <string name="full_device_vpn">Full Device VPN</string>
+ <string name="vpn_disabled">VPN Disabled</string>
</resources>
More information about the tor-commits
mailing list