kopia lustrzana https://github.com/ge0rg/aprsdroid
				
				
				
			bluetooth: i18n prefs
							rodzic
							
								
									72441be560
								
							
						
					
					
						commit
						2690051531
					
				|  | @ -239,4 +239,17 @@ | |||
| 
 | ||||
| <string name="translator_credits">translator-credits</string> | ||||
| 
 | ||||
| <!-- Bluetooth TNC settings --> | ||||
| <string name="p_bt_client">Client Mode</string> | ||||
| <string name="p_bt_client_summary">APRSdroid establishes the connection (Keep this on!)</string> | ||||
| <string name="p_bt_tnc_device">TNC Bluetooth Device</string> | ||||
| <string name="p_bt_tnc_device_summary">Choose your TNC from paired devices</string> | ||||
| <string name="p_bt_tnc_device_entry">Choose device</string> | ||||
| <string name="p_bt_channel">Channel</string> | ||||
| <string name="p_bt_channel_summary">Bluetooth channel on the TNC</string> | ||||
| <string name="p_bt_channel_entry">Enter channel (most often: "1"; empty for SPP)</string> | ||||
| 
 | ||||
| <string name="p_bt_prefs">Bluetooth settings</string> | ||||
| <string name="p_bt_prefs_summary">Enable Bluetooth, pair devices...</string> | ||||
| 
 | ||||
| </resources> | ||||
|  |  | |||
|  | @ -3,27 +3,35 @@ | |||
|         xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
| 
 | ||||
|     <PreferenceCategory | ||||
| 	    android:title="Bluetooth"> | ||||
| 	    android:title="@string/p_conn_bt"> | ||||
| 
 | ||||
|         <CheckBoxPreference | ||||
|                 android:key="bt.client" | ||||
| 		android:title="Client Mode" | ||||
| 		android:title="@string/p_bt_client" | ||||
| 		android:defaultValue="true" | ||||
| 		android:summary="Keep this on!" /> | ||||
| 		android:summary="@string/p_bt_client_summary" /> | ||||
| 
 | ||||
| 	<de.duenndns.BluetoothDevicePreference | ||||
| 		android:key="bt.mac" | ||||
| 		android:dependency="bt.client" | ||||
| 		android:title="TNC Bluetooth Device" | ||||
| 		android:summary="You need to pair it from the system preferences" | ||||
| 		android:dialogTitle="choose device" /> | ||||
| 		android:title="@string/p_bt_tnc_device" | ||||
| 		android:summary="@string/p_bt_tnc_device_summary" | ||||
| 		android:dialogTitle="@string/p_bt_tnc_device_entry" /> | ||||
|         <EditTextPreference | ||||
|                 android:key="bt.channel" | ||||
| 		android:dependency="bt.client" | ||||
| 		android:inputType="number" | ||||
| 		android:title="Channel" | ||||
| 		android:summary="Usually this is '1'" | ||||
| 		android:dialogTitle="enter your channel" /> | ||||
| 		android:title="@string/p_bt_channel" | ||||
| 		android:summary="@string/p_bt_channel_summary" | ||||
| 		android:dialogTitle="@string/p_bt_channel_entry" /> | ||||
| 
 | ||||
| 	<Preference | ||||
| 		android:title="@string/p_bt_prefs" | ||||
| 		android:summary="@string/p_bt_prefs_summary" > | ||||
| 		<intent android:action="android.intent.action.MAIN" | ||||
| 			android:targetPackage="com.android.settings" | ||||
| 			android:targetClass="com.android.settings.bluetooth.BluetoothSettings" /> | ||||
| 	</Preference> | ||||
| 
 | ||||
|         <EditTextPreference | ||||
|                 android:key="digi_path" | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Georg Lukas
						Georg Lukas