Skip to content

Commit d854e5d

Browse files
committed
updating and removing some strings
1 parent 612a691 commit d854e5d

15 files changed

Lines changed: 16 additions & 55 deletions

File tree

app/src/main/kotlin/com/simplemobiletools/camera/PhotoProcessor.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import com.simplemobiletools.camera.extensions.getOutputMediaFile
1515
import com.simplemobiletools.camera.extensions.getPreviewRotation
1616
import com.simplemobiletools.commons.extensions.getFileDocument
1717
import com.simplemobiletools.commons.extensions.needsStupidWritePermissions
18+
import com.simplemobiletools.commons.extensions.showErrorToast
1819
import com.simplemobiletools.commons.extensions.toast
1920
import java.io.File
2021
import java.io.FileOutputStream
@@ -50,9 +51,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
5051
val photoFile = File(path)
5152
if (activity.needsStupidWritePermissions(path)) {
5253
if (activity.config.treeUri.isEmpty()) {
53-
activity.runOnUiThread {
54-
activity.toast(R.string.save_error_internal_storage)
55-
}
54+
activity.toast(R.string.save_error_internal_storage)
5655
activity.config.savePhotosFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString()
5756
return ""
5857
}
@@ -104,10 +103,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
104103
try {
105104
return Bitmap.createBitmap(bitmap, 0, 0, width, height, matrix, true)
106105
} catch (e: OutOfMemoryError) {
107-
Log.e(TAG, "PhotoProcessor rotate OutOfMemoryError $e")
108-
activity.runOnUiThread {
109-
activity.toast(R.string.photo_not_saved)
110-
}
106+
activity.showErrorToast(e.toString())
111107
}
112108
return null
113109
}

app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
633633
}
634634

635635
private fun setupFailed(e: Exception) {
636-
mActivity.toast(R.string.video_setup_error)
636+
mActivity.showErrorToast(e)
637637
Log.e(TAG, "initRecorder " + e.message)
638638
releaseCamera()
639639
}
@@ -669,7 +669,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
669669
toggleShutterSound(false)
670670
mIsRecording = true
671671
} catch (e: Exception) {
672-
mActivity.toast(R.string.video_setup_error)
672+
mActivity.showErrorToast(e)
673673
Log.e(TAG, "toggleRecording " + e.message)
674674
releaseCamera()
675675
}
@@ -684,7 +684,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
684684
} catch (e: RuntimeException) {
685685
toggleShutterSound(false)
686686
File(mCurrVideoPath).delete()
687-
mActivity.toast(R.string.video_saving_error)
687+
mActivity.showErrorToast(e)
688688
Log.e(TAG, "stopRecording " + e.message)
689689
mRecorder = null
690690
mIsRecording = false

app/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<string name="camera_unavailable">Kamera nicht verfügbar</string>
55
<string name="camera_open_error">Beim Zugriff auf die Kamera ist ein Fehler aufgetreten</string>
66
<string name="video_creating_error">Beim Erstellen der Videodatei ist ein Fehler aufgetreten</string>
7-
<string name="video_saving_error">Beim Speichern des Videos ist ein Fehler aufgetreten</string>
8-
<string name="video_setup_error">Beim Starten der Aufnahme ist ein Fehler aufgetreten</string>
97
<string name="video_mode_error">Beim Umschalten zum Videomodus ist ein Fehler aufgetreten</string>
108
<string name="save_error_internal_storage">Ein Fehler ist aufgetreten. Speicherordner wurde auf den internen Speicher gesetzt</string>
119
<string name="camera_switch_error">Kamerawechsel fehlgeschlagen</string>
@@ -36,10 +34,9 @@
3634
<string name="app_long_description">
3735
The camera is usable for both photo taking and video recording. You can switch between front and rear camera, modify the save path, limit the resolution. The flash can be turned on and off, used as a flashlight. You can pinch to zoom in.
3836

39-
4037
If you want to launch this app at pressing the hardware camera button, you might have to disable the built in Camera app in Settings -> Apps -> Camera -> Disable.
4138

42-
Contains no ads or unnecessary permissions. It is fully opensource, provides a Dark theme too.
39+
Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
4340

4441
This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com
4542
</string>

app/src/main/res/values-es/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<string name="camera_unavailable">Cámara no disponible</string>
55
<string name="camera_open_error">Ha ocurrido un error al acceder a la cámara</string>
66
<string name="video_creating_error">Ha ocurrido un error creando el archivo de vídeo</string>
7-
<string name="video_saving_error">Ha ocurrido un error guardando el archivo de vídeo</string>
8-
<string name="video_setup_error">Ha ocurrido un error al configurar la grabación</string>
97
<string name="video_mode_error">Ha fallado el cambio a modo de vídeo</string>
108
<string name="save_error_internal_storage">Ha ocurrido un error, se ha cambiado la carpeta de destino al almacenamiento interno</string>
119
<string name="camera_switch_error">Ha fallado el cambio de cámara</string>
@@ -36,10 +34,9 @@
3634
<string name="app_long_description">
3735
La cámara se puede usar para realizar tanto fotografías como para grabar vídeos. Usted puede conmutar entre la cámara delantera y trasera, modificar la ruta de guardado y establecer el límite de resolución. Se puede activar y desactivar el flash, hacer zoom&#8230; Mientras se graba un vídeo el flash puede ser usado como una linterna.
3836

39-
4037
Si usted quiere lanzar esta aplicación presionando el botón físico de cámara, puede que tenga que deshabilitar la aplicación nativa de cámara (Ajustes -> Aplicaciones -> Cámara -> Deshabilitar).
4138

42-
No contiene anuncios ni permisos innecesarios. Es completamente OpenSource y además provee un tema oscuro.
39+
No contiene publicidad ni permisos innecesarios. Es totalmente libre, proporciona colores personalizables.
4340

4441
Esta aplicación es tan solo una pequeña parte de una serie de aplicaciones. Puede encontrar el resto en http://www.simplemobiletools.com
4542
</string>

app/src/main/res/values-fr/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<string name="camera_unavailable">Caméra indisponible</string>
55
<string name="camera_open_error">Une erreur est survenue lors de l\'accès à la caméra</string>
66
<string name="video_creating_error">Une erreur est survenue lors de la création du fichier vidéo</string>
7-
<string name="video_saving_error">Une erreur est survenue lors de la sauvegarde du fichier vidéo</string>
8-
<string name="video_setup_error">Une erreur est survenue lors de la mise en place de l\'enregistreur</string>
97
<string name="video_mode_error">Échec lors de la permutation vers le mode vidéo</string>
108
<string name="save_error_internal_storage">Une erreur est survenue, le dossier de sauvegarde a été changer vers la mémoire interne</string>
119
<string name="camera_switch_error">la permutation de caméra a échoué</string>
@@ -36,10 +34,9 @@
3634
<string name="app_long_description">
3735
La caméra est utilisable pour prendre des photos et aussi aussi des vidéos. Vous pouvez choisir entre la caméra avant et la caméra arrière, modifier le dossier d\'enregistrement et limiter la résolution. Le flash peut être allumé et éteint ainsi qu\'utilisé comme lampe de poche. Vous pouvez pincer pour zoomer.
3836

39-
4037
Si vous souhaitez démarrer cette application au lieu de l\'application d\'origine, vous devriez désactivez l\'application d\'origine dans : Paramètres -> Applications -> appareil photo -> désactiver.
4138

42-
Ne contient ni publicité ni autorisation inutile. L\'application est intégralement OpenSource et est fournie aussi avec un thème sombre.
39+
L\'application ne contient ni de publicité ni d\'autorisation inutile. Elle est totalement OpenSource et est aussi fournie avec un thème sombre.
4340

4441
Cette application est juste une application d\'une grande série d\'applications. Vous pouvez trouvez les autres sur http://www.simplemobiletools.com
4542
</string>

app/src/main/res/values-it/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<string name="camera_unavailable">Fotocamera non disponibile</string>
55
<string name="camera_open_error">Errore nell\'accesso alla fotocamera</string>
66
<string name="video_creating_error">Errore nella creazione del file video</string>
7-
<string name="video_saving_error">Errore nel salvataggio del file video</string>
8-
<string name="video_setup_error">Errore nella preparazione del registratore video</string>
97
<string name="video_mode_error">Passaggio alla modalità video fallita</string>
108
<string name="save_error_internal_storage">An error occurred, save folder changed to internal storage</string>
119
<string name="camera_switch_error">Cambio fotocamera fallito</string>
@@ -36,10 +34,9 @@
3634
<string name="app_long_description">
3735
The camera is usable for both photo taking and video recording. You can switch between front and rear camera, modify the save path, limit the resolution. The flash can be turned on and off, used as a flashlight. You can pinch to zoom in.
3836

39-
4037
If you want to launch this app at pressing the hardware camera button, you might have to disable the built in Camera app in Settings -> Apps -> Camera -> Disable.
4138

42-
Contains no ads or unnecessary permissions. It is fully opensource, provides a Dark theme too.
39+
Non contiene pubblicità o autorizzazioni non necessarie. È completamente opensource, offre colori personalizzabili.
4340

4441
This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com
4542
</string>

app/src/main/res/values-ja/strings.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<string name="camera_unavailable">カメラは利用できません</string>
55
<string name="camera_open_error">カメラへのアクセス時にエラーが発生しました</string>
66
<string name="video_creating_error">ビデオファイルの作成時にエラーが発生しました</string>
7-
<string name="video_saving_error">ビデオファイルの保存時にエラーが発生しました</string>
8-
<string name="video_setup_error">レコーダーのセットアップ時にエラーが発生しました</string>
97
<string name="video_mode_error">ビデオモードへの切り替えに失敗しました</string>
108
<string name="save_error_internal_storage">エラーが発生しました。保存フォルダーは内部ストレージに変更されました</string>
119
<string name="camera_switch_error">カメラの切り替えに失敗しました</string>
@@ -36,7 +34,6 @@
3634
<string name="app_long_description">
3735
カメラは、写真撮影とビデオ撮影の両方に使用できます。 前面カメラと背面カメラを切り替えたり、保存パスを変更したり、解像度を制限することができます。 フラッシュをオン/オフしたり、ピンチでズームインしたりすることができます。 ビデオの撮影中は、フラッシュを懐中電灯として使用できます。
3836

39-
4037
ハードウェアのカメラボタンを押してこのアプリを起動したい場合は、設定 -> アプリ -> カメラ -> 無効、で付属のカメラアプリを無効にする必要があります。
4138

4239
広告や不要なアクセス許可は含まれていません。 完全にオープンソースで、ダークテーマも提供しています。

app/src/main/res/values-lt/strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<string name="camera_unavailable">Kamera negalima</string>
55
<string name="camera_open_error">Įvyko klaida bandant įjungti kamerą</string>
66
<string name="video_creating_error">Įvyko klaida bandant sukurti vaizdo bylą</string>
7-
<string name="video_saving_error">Įvyko klaida bandant išsaugoti vaizdo bylą</string>
8-
<string name="video_setup_error">Įvyko klaida nustatant įrašymo priemonę</string>
97
<string name="video_mode_error">Perjungimas į vaizdo rėžimą nepavyko</string>
108
<string name="save_error_internal_storage">Įvyko klaida, saugojimo aplankas pakeistas į vidinę atmintį</string>
119
<string name="camera_switch_error">Kameros perjungimas nepavyko</string>
@@ -36,10 +34,9 @@
3634
<string name="app_long_description">
3735
The camera is usable for both photo taking and video recording. You can switch between front and rear camera, modify the save path, limit the resolution. The flash can be turned on and off, used as a flashlight. You can pinch to zoom in.
3836

39-
4037
If you want to launch this app at pressing the hardware camera button, you might have to disable the built in Camera app in Settings -> Apps -> Camera -> Disable.
4138

42-
Contains no ads or unnecessary permissions. It is fully opensource, provides a Dark theme too.
39+
Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors.
4340

4441
This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com
4542
</string>

app/src/main/res/values-nl/strings.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<string name="camera_unavailable">Camera niet beschikbaar</string>
66
<string name="camera_open_error">Een fout opgetreden met de camera</string>
77
<string name="video_creating_error">Een fout opgetreden maken van het videobestand</string>
8-
<string name="video_saving_error">Er is een fout opgetreden het opslaan van het videobestand</string>
9-
<string name="video_setup_error">Er is een fout opgetreden het configureren van de videorecorder</string>
108
<string name="video_mode_error">Schakelen naar de videomodus is mislukt</string>
119
<string name="save_error_internal_storage">Er is een fout opgetreden, de map opslaan is gewijzigd in interne opslag</string>
1210
<string name="camera_switch_error">Schakelen camera is mislukt</string>

app/src/main/res/values-pl/strings.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<string name="camera_unavailable">Kamera niedostępna</string>
55
<string name="camera_open_error">Wystąpił błąd podczas uzyskiwania dostępu do kamery</string>
66
<string name="video_creating_error">Wystąpił błąd podczas tworzenia pliku filmowego</string>
7-
<string name="video_saving_error">Wystąpił błąd podczas zapisywania pliku filmowego</string>
8-
<string name="video_setup_error">Wystąpił błąd podczas konfiguracji nagrywania</string>
97
<string name="video_mode_error">Przejście do trybu nagrywania filmów nie powidodło się</string>
108
<string name="save_error_internal_storage">Wystąpił błąd, zmieniłem folder roboczy na pamięć wewnętrzną</string>
119
<string name="camera_switch_error">Przełączenie kamery nie powiodło się</string>
@@ -38,7 +36,7 @@
3836

3937
Aby móc uruchamiać aplikację sprzętowym przyciskiem, wyłącz (lub usuń) domsyślną aplkację kamery (Ustawienia -> Aplikacje -> (aplikacja kamery) -> Wyłącz).
4038

41-
Aplikacja nie zawiera żadnych żadnych reklam i nie potrzebuje masy uprawnień. Jest w pełni otwartoźródłowa. Posiada ciemny motyw dla osób z wrażliwymi oczami.
39+
Aplikacja nie zawiera żadnych reklam ani niepotrzebnych uprawnień. Jest też w pełni otawrtoźrodłowa.
4240

4341
Niniejsza aplikacja jest tylko częścią naszej kolekcji prostych narzędzi. Ta, jak i pozostałe, dostępne są na stronie http://www.simplemobiletools.com
4442
</string>

0 commit comments

Comments
 (0)