Browse Source

further translation work, especially in settings and profile manager

Daniel Lazar 10 years ago
parent
commit
43ae701267

+ 2 - 2
res/layout/actionbar_donebar.xml

@@ -17,7 +17,7 @@
 				android:src="@drawable/ic_action_cancel"
 				style="@style/DoneBarActionButtonImage"/>
 		<TextView
-				android:text="Discard"
+				android:text="@string/discard"
 				style="@style/DoneBarActionButtonText"/>
 
 	</LinearLayout>
@@ -31,7 +31,7 @@
 				android:src="@drawable/ic_action_done"
 				style="@style/DoneBarActionButtonImage"/>
 		<TextView
-				android:text="Save"
+				android:text="@string/save"
 				style="@style/DoneBarActionButtonText"/>
 
 	</LinearLayout>

+ 2 - 2
res/layout/fragment_about.xml

@@ -40,7 +40,7 @@
 				android:layout_marginLeft="10dp">
 			<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
 					  android:textAppearance="?android:attr/textAppearanceMedium"
-					  android:text="UI developed by"
+					  android:text="@string/ui_dev_by"
 					  android:id="@+id/textView4" android:layout_gravity="center_horizontal|left"
 					  android:singleLine="false" android:autoText="false"
 					  android:layout_marginTop="8dp" android:textStyle="bold"
@@ -82,7 +82,7 @@
 				android:layout_alignParentEnd="true" android:layout_marginRight="10dp">
 			<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
 			          android:textAppearance="?android:attr/textAppearanceMedium"
-			          android:text="Core developed by" android:id="@+id/textView8"
+			          android:text="@string/core_dev_by" android:id="@+id/textView8"
 			          android:singleLine="false"
 			          android:autoText="false" android:layout_marginTop="8dp"
 			          android:textStyle="bold" android:textColor="@android:color/holo_blue_dark"

+ 4 - 4
res/layout/fragment_settings.xml

@@ -12,13 +12,13 @@
 				android:layout_width="wrap_content"
 				android:layout_height="wrap_content"
 				android:textAppearance="?android:attr/textAppearanceMedium"
-				android:text="Device rooted"
+				android:text="@string/device_rooted"
 				android:id="@+id/textView" android:textStyle="bold"/>
 		<TextView
 				android:layout_width="wrap_content"
 				android:layout_height="wrap_content"
 				android:textAppearance="?android:attr/textAppearanceMedium"
-				android:text="Porthack installed"
+				android:text="@string/porthack_installed"
 				android:id="@+id/textView2"
 				android:layout_below="@+id/textView" android:layout_alignParentLeft="true"
 				android:layout_alignParentStart="true" android:textStyle="bold"/>
@@ -26,14 +26,14 @@
 				android:layout_width="wrap_content"
 				android:layout_height="wrap_content"
 				android:textAppearance="?android:attr/textAppearanceMedium"
-				android:text="Yes"
+				android:text="@string/yes"
 				android:id="@+id/settings_device_rooted" android:layout_above="@+id/textView2"
 				android:layout_alignParentRight="true" android:layout_alignParentEnd="true"/>
 		<TextView
 				android:layout_width="wrap_content"
 				android:layout_height="wrap_content"
 				android:textAppearance="?android:attr/textAppearanceMedium"
-				android:text="Yes"
+				android:text="@string/yes"
 				android:id="@+id/settings_porthack_installed" android:layout_below="@+id/settings_device_rooted"
 				android:layout_alignParentRight="true" android:layout_alignParentEnd="true"/>
 	</RelativeLayout>

+ 2 - 1
res/layout/services_list_item.xml

@@ -43,13 +43,14 @@
                 android:textSize="12dp"/>
         <TextView
                 android:id="@+id/services_item_rec_attacks"
+                android:layout_toRightOf="@id/services_item_text"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_alignParentEnd="true"
                 android:layout_alignParentLeft="true"
                 android:layout_alignParentRight="false"
-                android:layout_marginLeft="150dp"
                 android:layout_marginTop="25dp"
+                android:layout_marginLeft="150dp"
                 android:layout_weight="1"
                 android:text="20"
                 android:textStyle="bold"

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

@@ -78,4 +78,23 @@
     <string name="recorded_attacks">Angriffe: </string>
     <string name="current_connection">aktuelle Verbindung</string>
     <string name="monitor_services">Überwache Dienste</string>
+
+    <string name="device_rooted">Gerät gerooted</string>
+    <string name="porthack_installed">Porthack installiert</string>
+    <string name="yes">Ja</string>
+    <string name="no">Nein</string>
+
+    <string name="ui_dev_by">UI Entwicklung</string>
+    <string name="core_dev_by">Core Entwicklung</string>
+    <string name="advanced_settings">Erweiterte Einstellungen</string>
+    <string name="change_name_of_profile">Ändere den Namen des Profils</string>
+    <string name="change_desc_of_profile">Ändere die Beschreibung des Profils</string>
+    <string name="change_icon_of_profile">Wähle ein Icon für das Profil</string>
+    <string name="profile_description">Beschreibung</string>
+    <string name="general">Allgemein</string>
+    <string name="select_icon">Wähle Icon</string>
+    <string name="delete_profile">Profil löschen</string>
+    <string name="really_want_delete_profiel">Willst du dieses Profil wirklich löschen?</string>
+    <string name="discard">Verwerfen</string>
+    <string name="save">Speichern</string>
 </resources>

+ 34 - 0
res/values-de/strings_preferences.xml

@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <string name="settings">Einstellungen</string>
+    <string name="export_to_location">Exportiere auf externen Speicher</string>
+    <string name="pref_alarm">Tonauswahl</string>
+    <string name="pref_alarm_default">VIBRATION</string>
+    <string name="pref_alarm_summ">Wähle einen Benachrichtigunston</string>
+    <string name="pref_storage">Externes Sichern</string>
+    <string name="pref_external_storage_title">Externes Sichern</string>
+    <string name="pref_external_storage_summ">Exportiere Log File auf SD-Karte</string>
+    <string name="pref_external_location_title">Anderer Ort</string>
+    <string name="pref_notification">Benachrichtigung</string>
+    <string name="pref_vibration">Vibration</string>
+    <string name="pref_vibration_summ">Aktiviere Vibration</string>
+    <string name="pref_upload">Upload von Aufzeichnungen</string>
+    <string name="pref_upload_server">Server</string>
+    <string name="pref_connection_settings">Verbindungs Einstellungen</string>
+    <string name="pref_max_connections">Max Verbindungen</string>
+    <string name="pref_max_connections_default">5</string>
+    <string name="pref_timeout">Socket Timeout</string>
+    <string name="pref_timeout_summary">Socket timeout in Sekunden</string>
+    <string name="pref_timeout_default">30</string>
+    <string name="pref_sleeptime">Stream sleep time</string>
+    <string name="pref_sleeptime_summary">Zeit in ms für stream sleep time</string>
+    <string name="pref_sleeptime_default">500</string>
+    <string name="pref_location_settings">Location Einstellungen</string>
+    <string name="pref_location_time">Location Data Timeout</string>
+    <string name="pref_location_time_summary">Timeout nach location data Anfrage in ms</string>
+    <string name="pref_location_time_default">60000</string>
+    <string name="pref_location_retries">Retries</string>
+    <string name="pref_location_retries_default">3</string>
+
+</resources>

+ 18 - 0
res/values/strings.xml

@@ -78,4 +78,22 @@
     <string name="recorded_attacks">recorded attacks: </string>
     <string name="current_connection">Current connection</string>
     <string name="monitor_services">Monitor services</string>
+
+    <string name="device_rooted">Device rooted</string>
+    <string name="porthack_installed">Porthack installed</string>
+    <string name="yes">Yes</string>
+    <string name="no">No</string>
+
+    <string name="ui_dev_by">UI developed by</string>
+    <string name="core_dev_by">Core developed by</string>
+    <string name="advanced_settings">Advanced Settings</string>
+    <string name="change_name_of_profile">Change the name of this profile</string>
+    <string name="change_desc_of_profile">Change the description of this profile here</string>
+    <string name="change_icon_of_profile">Choose an icon for this profile</string>
+    <string name="general">General</string>
+    <string name="profile_description">Description</string>
+    <string name="select_icon">Select Icon</string>
+    <string name="delete_profile">Delete profile</string>
+    <string name="discard">Discard</string>
+    <string name="save">Save</string>
 </resources>

+ 1 - 0
res/values/strings_preferences.xml

@@ -2,6 +2,7 @@
 <resources>
 
 	<string name="settings">Settings</string>
+    <string name="export_to_location">Export to external location</string>
 	<string name="pref_alarm">Set Sound</string>
 	<string name="pref_alarm_default">VIBRATION</string>
 	<string name="pref_alarm_summ">Select Notification Sound</string>

+ 5 - 5
res/xml/profile_preferences.xml

@@ -1,20 +1,20 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
-	<PreferenceCategory android:title="General"
+	<PreferenceCategory android:title="@string/general"
 	                    android:key="pref_profile_general_settings">
 		<EditTextPreference android:key="pref_profile_general_name"
 		                    android:title="Name"
-		                    android:summary="Change the name of this profile"
+		                    android:summary="@string/change_name_of_profile"
 		                    android:defaultValue=""/>
 
 		<EditTextPreference android:key="pref_profile_general_description"
-		                    android:title="Description"
-		                    android:summary="Change the description of this profile here"
+		                    android:title="@string/profile_description"
+		                    android:summary="@string/change_desc_of_profile"
 		                    android:defaultValue="" />
 
 		<Preference android:key="pref_profile_general_image"
 		            android:title="Icon"
-		            android:summary="Choose an icon for this profile" />
+		            android:summary="@string/change_icon_of_profile" />
 	</PreferenceCategory>
 </PreferenceScreen>

+ 3 - 3
res/xml/settings_preferences.xml

@@ -17,10 +17,10 @@
 				android:title="@string/pref_alarm" />
 	</PreferenceCategory>
 
-	<PreferenceCategory android:title="Advanced Settings">
+	<PreferenceCategory android:title="@string/advanced_settings">
 		<PreferenceScreen
 				android:key="pref_advanced settings"
-				android:title="Advanced Settings"
+				android:title="@string/advanced_settings"
 				android:persistent="false">
 			<PreferenceCategory android:title="@string/pref_storage" >
 				<CheckBoxPreference
@@ -39,7 +39,7 @@
 				<Preference
 						android:key="pref_external_export"
 						android:dependency="pref_external_storage"
-				        android:title="Export to external location"
+				        android:title="@string/export_to_location"
 				        />
 
 			</PreferenceCategory>

+ 4 - 4
src/de/tudarmstadt/informatik/hostage/ui2/adapter/ProfileManagerListAdapter.java

@@ -101,15 +101,15 @@ public class ProfileManagerListAdapter extends ArrayAdapter<Profile> {
 			@Override
 			public void onClick(View v) {
 				new AlertDialog.Builder(context)
-						.setTitle("Delete profile")
-						.setMessage("Do you really want to delete this profile?")
-						.setNegativeButton("No", new DialogInterface.OnClickListener() {
+						.setTitle(R.string.delete_profile)
+						.setMessage(R.string.really_want_delete_profiel)
+						.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
 							@Override
 							public void onClick(DialogInterface dialog, int which) {
 
 							}
 						})
-						.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
+						.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
 							public void onClick(DialogInterface dialog, int which) {
 								ProfileManager profileManager = ProfileManager.getInstance();
 

+ 1 - 1
src/de/tudarmstadt/informatik/hostage/ui2/fragment/ProfileEditFragment.java

@@ -129,7 +129,7 @@ public class ProfileEditFragment extends PreferenceFragment implements
 						intent.setType("image/*");
 						intent.setAction(Intent.ACTION_GET_CONTENT);
 						int PICK_IMAGE = 1;
-						startActivityForResult(Intent.createChooser(intent, "Select Icon"), PICK_IMAGE);
+						startActivityForResult(Intent.createChooser(intent, getString(R.string.select_icon)), PICK_IMAGE);
 						return true;
 					}
 				}

+ 4 - 4
src/de/tudarmstadt/informatik/hostage/ui2/fragment/SettingsFragment.java

@@ -25,18 +25,18 @@ public class SettingsFragment extends Fragment {
 		TextView porthackText = (TextView) v.findViewById(R.id.settings_porthack_installed);
 
 		if(MainActivity.isRooted){
-			rootedText.setText("Yes");
+			rootedText.setText(R.string.yes);
 			rootedText.setTextColor(getResources().getColor(R.color.holo_dark_green));
 		} else {
-			rootedText.setText("No");
+			rootedText.setText(R.string.no);
 			rootedText.setTextColor(getResources().getColor(R.color.holo_red));
 		}
 
 		if(MainActivity.porthackInstalled){
-			porthackText.setText("Yes");
+			porthackText.setText(R.string.yes);
 			porthackText.setTextColor(getResources().getColor(R.color.holo_dark_green));
 		} else {
-			porthackText.setText("No");
+			porthackText.setText(R.string.no);
 			porthackText.setTextColor(getResources().getColor(R.color.holo_red));
 		}