From 36455dd51a42ab745eef2927e05bb9412dad37d0 Mon Sep 17 00:00:00 2001 From: Daniel Hillenbrand Date: Thu, 9 Aug 2012 17:01:18 +0200 Subject: settings: sensor and translation cleanup --- DeviceSettings/res/values-de/strings.xml | 26 +++++++--- DeviceSettings/res/values-es/arrays.xml | 58 --------------------- DeviceSettings/res/values-es/strings.xml | 39 -------------- DeviceSettings/res/values-fi/arrays.xml | 60 ---------------------- DeviceSettings/res/values-fi/strings.xml | 40 --------------- DeviceSettings/res/values-fr/arrays.xml | 51 ------------------ DeviceSettings/res/values-fr/strings.xml | 34 ------------ DeviceSettings/res/values-hu/arrays.xml | 51 ------------------ DeviceSettings/res/values-hu/strings.xml | 40 --------------- DeviceSettings/res/values-nl/arrays.xml | 50 ------------------ DeviceSettings/res/values-nl/strings.xml | 40 --------------- DeviceSettings/res/values-pt-rBR/arrays.xml | 51 ------------------ DeviceSettings/res/values-pt-rBR/strings.xml | 36 ------------- DeviceSettings/res/values/strings.xml | 14 ++--- DeviceSettings/res/xml/sensors_preferences.xml | 16 +++--- .../settings/device/DeviceSettings.java | 4 +- .../settings/device/SensorsFragmentActivity.java | 22 ++++---- 17 files changed, 47 insertions(+), 585 deletions(-) delete mode 100644 DeviceSettings/res/values-es/arrays.xml delete mode 100644 DeviceSettings/res/values-es/strings.xml delete mode 100644 DeviceSettings/res/values-fi/arrays.xml delete mode 100644 DeviceSettings/res/values-fi/strings.xml delete mode 100644 DeviceSettings/res/values-fr/arrays.xml delete mode 100644 DeviceSettings/res/values-fr/strings.xml delete mode 100644 DeviceSettings/res/values-hu/arrays.xml delete mode 100644 DeviceSettings/res/values-hu/strings.xml delete mode 100644 DeviceSettings/res/values-nl/arrays.xml delete mode 100644 DeviceSettings/res/values-nl/strings.xml delete mode 100755 DeviceSettings/res/values-pt-rBR/arrays.xml delete mode 100755 DeviceSettings/res/values-pt-rBR/strings.xml diff --git a/DeviceSettings/res/values-de/strings.xml b/DeviceSettings/res/values-de/strings.xml index 38d0f9b..990227d 100644 --- a/DeviceSettings/res/values-de/strings.xml +++ b/DeviceSettings/res/values-de/strings.xml @@ -19,15 +19,20 @@ Sensitivität Setzt die Touchpanel Sensitivität - Sensoren - Gyroskop - Kalibierungsdaten - Benutze Kalibrierungswerte. Bitte nach Aktivierung eine Kalibrierung durchführen! - Kalibrieren - Lege dein Telefon auf einen geraden Untergrund und starte die Kalibrierung. - Touch-Tasten - Aktiviere Tastenbeleuchtung + Touchkeys + Aktiviere Beleuchtung Tasten leuchten auf während der Birdschirm aktiv ist + Zeitabschaltung der Beleuchtung + Setze Zeit für automatische Abschaltung + + Sensoren + Beschleunigungssensor + Kalibierungsdaten + Benutze Kalibrierungswerte. Bitte nach Aktivierung eine Kalibrierung durchführen! + Kalibrieren + Lege dein Telefon auf einen geraden Untergrund und starte die Kalibrierung. + Kalibrierung beendet + Der Sensor wurde erfolgreich kalibriert. Haptik Vibrator @@ -37,4 +42,9 @@ Mobilfunk HSPA Aktiviert HSDPA/HSUPA + + Dock + Audio + Use Dock USB Audio + Use the passive audio out on the dock diff --git a/DeviceSettings/res/values-es/arrays.xml b/DeviceSettings/res/values-es/arrays.xml deleted file mode 100644 index 8cf4fd9..0000000 --- a/DeviceSettings/res/values-es/arrays.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - Solo UMTS - Solo HSDPA - HSDPA + HSUPA - - - - Cámara (Predeterminado) - Video - Video Cálido - Video Frío - UI - Navegación - Galería - VT - - - - Estándar (Predeterminado) - Dinámico - Natural - Película - - - - Normal - Invertido - - - - Desactivado (Predeterminado) - Activado - - - - 2.2 (Predeterminado) - 1.9 - - - - 10 - 20 - 30 - 50 (Predeterminado) - 70 - 100 - - - - 0% - 25% - 50% (Predeterminado) - 75% - 100% - - diff --git a/DeviceSettings/res/values-es/strings.xml b/DeviceSettings/res/values-es/strings.xml deleted file mode 100644 index 9090838..0000000 --- a/DeviceSettings/res/values-es/strings.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - Ajustes de Galaxy S II - - Radio - HSPA - Activar HSDPA/HSUPA - - Pantalla - Colores - Escenario - Establecer el escenario mDNIe - Modo - Establecer el modo mDNIe - Modo Negativo - Activar/Desactivar los colores invertidos - Modo Exterior - Activar/Desactivar el modo exterior - Gamma - Establecer el valor gamma de la pantalla - Pantalla Táctil - Sensibilidad táctil - Establecer la sensibilidad táctil de la pantalla - - Sensores - Giroscopio - Usar datos de calibración - Usar los datos de calibración del giroscopio. ¡Calibrar despues de activar! - Calibrar - Colocar el dispositivo en una superficie plana y pulsar para calibrar - Botones Táctiles - Activar iluminación - Iluminar los botones táctiles al encender la pantalla - - Háptica - Vibración - Intensidad de vibración - Establecer la intensidad de la vibración - diff --git a/DeviceSettings/res/values-fi/arrays.xml b/DeviceSettings/res/values-fi/arrays.xml deleted file mode 100644 index aaa4d82..0000000 --- a/DeviceSettings/res/values-fi/arrays.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - Kamera (Oletus) - Video - Video(Lämmin) - Video(Kylmä) - Käyttöliittymä - Navigointi - Galleria - VT - - - - Standardi (Oletus) - Dynaaminen - Luonnollinen - Elokuva - - - - Normaali - Käänteinen - - - - Pois päältä (Oletus) - Päällä - - - - 2.2 (Oletus) - 1.9 - - - - 10 - 20 - 30 - 50 (Oletus) - 70 - 100 - - - - Vain UMTS - Vain HSDPA - HSDPA + HSUPA - - - - 0% - 25% - 50% (Oletus) - 75% - 100% - - - - diff --git a/DeviceSettings/res/values-fi/strings.xml b/DeviceSettings/res/values-fi/strings.xml deleted file mode 100644 index f09f214..0000000 --- a/DeviceSettings/res/values-fi/strings.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - Galaxy S II-asetukset - - Näyttö - Värit - Skenaario - Vaihda mDNIe-skenaario - Tila - Vaihda mDNIe-tila - Negatiivi-tila - Käytä käänteisiä värejä - Ulkoilma-tila - Ota ulkoilma-tila käyttöön - Näytön gamma - Säädä näytön gamma-arvo - - Kosketusnäyttö - Kosketuksen herkkyys - Säädä näytön herkkyyttä - - Sensorit - Gyroskooppi - Käytä kalibrointitietoja - Käytä gyroskoopin kalibrointiarvoja. Kalibroi merkattuasi tämän! - Kalibroi - Aseta puhelin tasaiselle alustalle ja paina tätä kalibroidaksesi - Kosketusnäppäin - Ota näppäinvalot käyttöön - Valot syttyvät kun näyttö on päällä - - Haptinen - Värinä - Värinän voimakkuus - Säädä värinän voimakkuutta - - Radio - HSPA - Ota HSDPA/HSUPA käyttöön - diff --git a/DeviceSettings/res/values-fr/arrays.xml b/DeviceSettings/res/values-fr/arrays.xml deleted file mode 100644 index d421873..0000000 --- a/DeviceSettings/res/values-fr/arrays.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - Caméra (Par défaut) - Vidéo - Vidéo (chaud) - Video (froid) - UI - Navigation - Gallerie - VT - - - - Standard (Par défaut) - Dynamique - Naturel - Vidéo - - - - Normal - Inversé - - - - Inactif (Par défaut) - Actif - - - - 2.2 (Par défaut) - 1.9 - - - - 10 - 20 - 30 - 50 (Par défaut) - 70 - 100 - - - - UMTS seulement - HSDPA seulement - HSDPA + HSUPA - - - diff --git a/DeviceSettings/res/values-fr/strings.xml b/DeviceSettings/res/values-fr/strings.xml deleted file mode 100644 index 6cb7695..0000000 --- a/DeviceSettings/res/values-fr/strings.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - Paramètres Galaxy S II - - Ecran - Couleurs - Scénario - Définit le scénario mDNIe - Mode - Définit le mode mDNIe - Mode négatif - Active/désactive les couleurs inversées - Mode extérieur - Active/désactive le mode extérieur - Gamma écran - Définit la valeur de gamma de l\'écran - Tactile - Sensibilité - Définit la sensibilité du toucher - - Capteurs - Gyroscope - Utiliser données de calibration - Utiliser les données de calibration du gyroscope. Faites une calibration après avoir coché! - Calibrer - Posez le téléphone à plat, puis appuyez sur ce bouton pour effecter la calibration. - Touches tactiles - Activer l\'éclairage - Illumine les touches tactiles quand l\'écran est activé. - - Radio - HSPA - Activer HSDPA/HSUPA - diff --git a/DeviceSettings/res/values-hu/arrays.xml b/DeviceSettings/res/values-hu/arrays.xml deleted file mode 100644 index ee1f831..0000000 --- a/DeviceSettings/res/values-hu/arrays.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - Kamera (Alapbeállítás) - Videó - Videó (Meleg árnyalat) - Videó (Hideg árnyalat) - Felhasználói felület - Navigáció - Galéria - VT - - - - Hagyományos (Alapbeállítás) - Dinamikus - Természetes - Film - - - - Hagyományos - Fordított - - - - Kikapcsolva (Alapbeállítás) - Bekapcsolva - - - - 2.2 (Alapbeállítás) - 1.9 - - - - 10 - 20 - 30 - 50 (Alapbeállítás) - 70 - 100 - - - - UMTS - HSDPA - HSDPA + HSUPA - - - diff --git a/DeviceSettings/res/values-hu/strings.xml b/DeviceSettings/res/values-hu/strings.xml deleted file mode 100644 index 4f34a25..0000000 --- a/DeviceSettings/res/values-hu/strings.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - Galaxy S II Beállítások - - Kijelző - Színek - Megjelenítés - mDNIe megjelenítési beállítások - Üzemmód - mDNIe üzemmódok - Negatív üzemmód - Fordított színek ki/be - Szabadtéri üzemmód - Szabadtéri üzemmód ki/be - Kijelző gamma-értéke - Kijelző gamma-érték beállítása - - Érintőképernyő - Érzékenység - Érintőképernyő érzékenységének beállítása - - Szenzorok - Giroszkóp - Kalibrálási érték használata - Kalibrálási érték használata. Érdemes újra kalibrálni, ha ez a funkció használatban van! - Kalibrálás - Kalibráláshoz a telefont vízszintes felületre kell helyezni, és megérinteni ezt a gombot - Érintőgombok - Érintőgombok háttérvilágítása - Bekapcsolja az érintőgombok háttérvilágítását bekapcsolt képernyőnél - - Érintési visszajelzés - Rezgés - Rezgés erőssége - Rezgés erősségének beállítása - - GSM rádió - HSPA - HSDPA/HSUPA engedélyezése - diff --git a/DeviceSettings/res/values-nl/arrays.xml b/DeviceSettings/res/values-nl/arrays.xml deleted file mode 100644 index ab28dc7..0000000 --- a/DeviceSettings/res/values-nl/arrays.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - Camera (standaard) - Video - Video (warm) - Video (koud) - Uiterlijk - Navigatie - Galerij - VT - - - Standaard - Dynamisch - Natuurlijk - Film - - - Normaal - Omgedraaid - - - Uit (standaard) - Aan - - - 2,2 (standaard) - 1,9 - - - 10 - 20 - 30 - 50 (standaard) - 70 - 100 - - - 0% - 25% - 50% (standaard) - 75% - 100% - - - Alleen UMTS - Alleen HSDPA - HSDPA & HSUPA - - diff --git a/DeviceSettings/res/values-nl/strings.xml b/DeviceSettings/res/values-nl/strings.xml deleted file mode 100644 index 86be405..0000000 --- a/DeviceSettings/res/values-nl/strings.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - Galaxy S II-instellingen - - Scherm - Kleuren - Scenario - mDNIe-scenario instellen - Modus - mDNIe-modus instellen - Negatieve modus - Negatieve kleuren in-/uitschakelen - Buitenmodus - Buitenmodus in-/uitschakelen - Schermgamma - Schermgammawaarden instellen - - Aanraakscherm - Aanraakgevoeligheid - Gevoeligheid aanraakscherm instellen - - Sensoren - Gyroscoop - Kalibratiegegevens gebruiken - Gebruik de kalibratiewaarden van de gyroscoop. Gelieve hierna een kalibratie te doen. - Kalibreren - Plaats de telefoon op een vlakke ondergrond en tik hier om te kalibreren - Aanraakknop - Achtergrondlicht bij knoppen inschakelen - Aanraakknoppen oplichten indien scherm aan is - - Haptisch - Trillen - Trilintensiteit - Trilintensiteit instellen - - Radio - HSPA - HSDPA/HSUPA inschakelen - diff --git a/DeviceSettings/res/values-pt-rBR/arrays.xml b/DeviceSettings/res/values-pt-rBR/arrays.xml deleted file mode 100755 index e98a6c6..0000000 --- a/DeviceSettings/res/values-pt-rBR/arrays.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - Câmera (Padrão) - Vídeo - Vídeo Quente - Vídeo Frio - IU - Navegação - Galeria - VT - - - - Padrão - Dinâmico - Natural - Filme - - - - Normal - Invertido - - - - Desligado (Padrão) - Ligado - - - - 2.2 (Padrão) - 1.9 - - - - 10 - 20 - 30 - 50 (Padrão) - 70 - 100 - - - - Somente UMTS - Somente HSDPA - HSDPA + HSUPA - - - diff --git a/DeviceSettings/res/values-pt-rBR/strings.xml b/DeviceSettings/res/values-pt-rBR/strings.xml deleted file mode 100755 index 0cff7e6..0000000 --- a/DeviceSettings/res/values-pt-rBR/strings.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - Config. Galaxy S II - - Tela - Cores - Cenário - Define o Cenário mDNIe - Modo - Define o Modo mDNIe - Modo Negativo - Ativar/Desativar cores invertidas - Modo Ao Ar Livre - Ativar/Desativar modo ao ar livre - Gama da Tela - Definir valor da gama da tela - Tela sensível ao toque - Sensitividade do toque - Define a sensitividade do toque na tela - Sensores - Giroscópio - Usar dados de calibração - Usar os valores de calibração do giroscópio. Fazer uma calibragem depois de selecionar isto! - Calibrar - Coloque seu telefone em uma superfície plana, e pressione isto para calibrar - Tecla sensível ao toque - Ativar luz de fundo das teclas - Acender as teclas sensíveis ao toque quando a tela estiver ligada - Rádio - HSPA - Ativar HSDPA/HSUPA - Resposta Tátil - Vibração - Intensidade da Vibração - Define a intensidade da vibração - diff --git a/DeviceSettings/res/values/strings.xml b/DeviceSettings/res/values/strings.xml index 91f1b53..3351cff 100644 --- a/DeviceSettings/res/values/strings.xml +++ b/DeviceSettings/res/values/strings.xml @@ -26,11 +26,13 @@ Delay after a keypress before backlight turns off Sensors - Gyroscope - Use calibration data - Use the gyroscope calibration values. Do a calibration after checking this! - Calibrate - Put your phone on a flat surface, and press this to calibrate + Accelerometer + Use calibration data + Use the accelerometer calibration values. Do a calibration after checking this! + Calibrate + Put your phone on a flat surface, and press this to calibrate + Calibration done + The sensor has been successfully calibrated. Haptic Vibrator @@ -42,7 +44,7 @@ Enable HSDPA/HSUPA Dock - DOCK AUDIO + Audio Use Dock USB Audio Use the passive audio out on the dock diff --git a/DeviceSettings/res/xml/sensors_preferences.xml b/DeviceSettings/res/xml/sensors_preferences.xml index bdce970..8c61e07 100644 --- a/DeviceSettings/res/xml/sensors_preferences.xml +++ b/DeviceSettings/res/xml/sensors_preferences.xml @@ -1,19 +1,19 @@ + android:title="@string/accelerometer_subcat_title"> - + diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java b/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java index c7da5f2..7f7970c 100644 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java +++ b/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java @@ -41,8 +41,8 @@ public class DeviceSettings extends FragmentActivity { public static final String KEY_MDNIE_OUTDOOR = "mdnie_outdoor"; public static final String KEY_PANEL_GAMMA = "panel_gamma"; public static final String KEY_HSPA = "hspa"; - public static final String KEY_USE_GYRO_CALIBRATION = "use_gyro_calibration"; - public static final String KEY_CALIBRATE_GYRO = "calibrate_gyro"; + public static final String KEY_USE_ACCELEROMETER_CALIBRATION = "use_accelerometer_calibration"; + public static final String KEY_CALIBRATE_ACCELEROMETER = "calibrate_accelerometer"; public static final String KEY_TOUCHSCREEN_SENSITIVITY = "touchscreen_sensitivity"; public static final String KEY_TOUCHKEY_LIGHT = "touchkey_light"; public static final String KEY_TOUCHKEY_TIMEOUT = "touchkey_timeout"; diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java index e9730b8..df9cce5 100644 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java +++ b/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java @@ -35,7 +35,7 @@ public class SensorsFragmentActivity extends PreferenceFragment { private static final String PREF_ENABLED = "1"; private static final String TAG = "GalaxyS2Settings_Sensors"; - private static final String FILE_USE_GYRO_CALIB = "/sys/class/sec/gsensorcal/calibration"; + private static final String FILE_USE_ACCELEROMETER_CALIB = "/sys/class/sec/gsensorcal/calibration"; @Override public void onCreate(Bundle savedInstanceState) { @@ -53,15 +53,15 @@ public class SensorsFragmentActivity extends PreferenceFragment { Log.w(TAG, "key: " + key); - if (key.compareTo(DeviceSettings.KEY_USE_GYRO_CALIBRATION) == 0) { + if (key.compareTo(DeviceSettings.KEY_USE_ACCELEROMETER_CALIBRATION) == 0) { boxValue = (((CheckBoxPreference)preference).isChecked() ? "1" : "0"); - Utils.writeValue(FILE_USE_GYRO_CALIB, boxValue); - } else if (key.compareTo(DeviceSettings.KEY_CALIBRATE_GYRO) == 0) { + Utils.writeValue(FILE_USE_ACCELEROMETER_CALIB, boxValue); + } else if (key.compareTo(DeviceSettings.KEY_CALIBRATE_ACCELEROMETER) == 0) { // when calibration data utilization is disablen and enabled back, // calibration is done at the same time by driver - Utils.writeValue(FILE_USE_GYRO_CALIB, "0"); - Utils.writeValue(FILE_USE_GYRO_CALIB, "1"); - Utils.showDialog((Context)getActivity(), "Calibration done", "The gyroscope has been successfully calibrated!"); + Utils.writeValue(FILE_USE_ACCELEROMETER_CALIB, "0"); + Utils.writeValue(FILE_USE_ACCELEROMETER_CALIB, "1"); + Utils.showDialog((Context)getActivity(), getString(R.string.accelerometer_dialog_head), getString(R.string.accelerometer_dialog_message)); } return true; @@ -73,12 +73,12 @@ public class SensorsFragmentActivity extends PreferenceFragment { public static void restore(Context context) { SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); - boolean gyroCalib = sharedPrefs.getBoolean(DeviceSettings.KEY_USE_GYRO_CALIBRATION, true); + boolean accelerometerCalib = sharedPrefs.getBoolean(DeviceSettings.KEY_USE_ACCELEROMETER_CALIBRATION, true); - // When use gyro calibration value is set to 1, calibration is done at the same time, which + // When use accelerometer calibration value is set to 1, calibration is done at the same time, which // means it is reset at each boot, providing wrong calibration most of the time at each reboot. // So we only set it to "0" if user wants it, as it defaults to 1 at boot - if (!gyroCalib) - Utils.writeValue(FILE_USE_GYRO_CALIB, "0"); + if (!accelerometerCalib) + Utils.writeValue(FILE_USE_ACCELEROMETER_CALIB, "0"); } } -- cgit v1.1