From d854e5d94c8241c5139ce3e5ba4a4109dee227cb Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 20 Sep 2017 23:52:48 +0200 Subject: [PATCH] updating and removing some strings --- .../com/simplemobiletools/camera/PhotoProcessor.kt | 10 +++------- .../kotlin/com/simplemobiletools/camera/Preview.kt | 6 +++--- app/src/main/res/values-de/strings.xml | 5 +---- app/src/main/res/values-es/strings.xml | 5 +---- app/src/main/res/values-fr/strings.xml | 5 +---- app/src/main/res/values-it/strings.xml | 5 +---- app/src/main/res/values-ja/strings.xml | 3 --- app/src/main/res/values-lt/strings.xml | 5 +---- app/src/main/res/values-nl/strings.xml | 2 -- app/src/main/res/values-pl/strings.xml | 4 +--- app/src/main/res/values-pt-rBR/strings.xml | 5 +---- app/src/main/res/values-pt/strings.xml | 3 --- app/src/main/res/values-ru/strings.xml | 5 +---- app/src/main/res/values-sv/strings.xml | 4 +--- app/src/main/res/values/strings.xml | 4 +--- 15 files changed, 16 insertions(+), 55 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/PhotoProcessor.kt b/app/src/main/kotlin/com/simplemobiletools/camera/PhotoProcessor.kt index 94d4eaf0..ad3b6109 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/PhotoProcessor.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/PhotoProcessor.kt @@ -15,6 +15,7 @@ import com.simplemobiletools.camera.extensions.getOutputMediaFile import com.simplemobiletools.camera.extensions.getPreviewRotation import com.simplemobiletools.commons.extensions.getFileDocument import com.simplemobiletools.commons.extensions.needsStupidWritePermissions +import com.simplemobiletools.commons.extensions.showErrorToast import com.simplemobiletools.commons.extensions.toast import java.io.File import java.io.FileOutputStream @@ -50,9 +51,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId val photoFile = File(path) if (activity.needsStupidWritePermissions(path)) { if (activity.config.treeUri.isEmpty()) { - activity.runOnUiThread { - activity.toast(R.string.save_error_internal_storage) - } + activity.toast(R.string.save_error_internal_storage) activity.config.savePhotosFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString() return "" } @@ -104,10 +103,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId try { return Bitmap.createBitmap(bitmap, 0, 0, width, height, matrix, true) } catch (e: OutOfMemoryError) { - Log.e(TAG, "PhotoProcessor rotate OutOfMemoryError $e") - activity.runOnUiThread { - activity.toast(R.string.photo_not_saved) - } + activity.showErrorToast(e.toString()) } return null } diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt index a7aa7a2f..3261c867 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt @@ -633,7 +633,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan } private fun setupFailed(e: Exception) { - mActivity.toast(R.string.video_setup_error) + mActivity.showErrorToast(e) Log.e(TAG, "initRecorder " + e.message) releaseCamera() } @@ -669,7 +669,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan toggleShutterSound(false) mIsRecording = true } catch (e: Exception) { - mActivity.toast(R.string.video_setup_error) + mActivity.showErrorToast(e) Log.e(TAG, "toggleRecording " + e.message) releaseCamera() } @@ -684,7 +684,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan } catch (e: RuntimeException) { toggleShutterSound(false) File(mCurrVideoPath).delete() - mActivity.toast(R.string.video_saving_error) + mActivity.showErrorToast(e) Log.e(TAG, "stopRecording " + e.message) mRecorder = null mIsRecording = false diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index edfab615..a1f5946b 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -4,8 +4,6 @@ Kamera nicht verfügbar Beim Zugriff auf die Kamera ist ein Fehler aufgetreten Beim Erstellen der Videodatei ist ein Fehler aufgetreten - Beim Speichern des Videos ist ein Fehler aufgetreten - Beim Starten der Aufnahme ist ein Fehler aufgetreten Beim Umschalten zum Videomodus ist ein Fehler aufgetreten Ein Fehler ist aufgetreten. Speicherordner wurde auf den internen Speicher gesetzt Kamerawechsel fehlgeschlagen @@ -36,10 +34,9 @@ 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. - 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. - Contains no ads or unnecessary permissions. It is fully opensource, provides a Dark theme too. + Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors. This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 5c727066..6969aa3f 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -4,8 +4,6 @@ Cámara no disponible Ha ocurrido un error al acceder a la cámara Ha ocurrido un error creando el archivo de vídeo - Ha ocurrido un error guardando el archivo de vídeo - Ha ocurrido un error al configurar la grabación Ha fallado el cambio a modo de vídeo Ha ocurrido un error, se ha cambiado la carpeta de destino al almacenamiento interno Ha fallado el cambio de cámara @@ -36,10 +34,9 @@ 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… Mientras se graba un vídeo el flash puede ser usado como una linterna. - 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). - No contiene anuncios ni permisos innecesarios. Es completamente OpenSource y además provee un tema oscuro. + No contiene publicidad ni permisos innecesarios. Es totalmente libre, proporciona colores personalizables. Esta aplicación es tan solo una pequeña parte de una serie de aplicaciones. Puede encontrar el resto en http://www.simplemobiletools.com diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 369abd40..30068744 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -4,8 +4,6 @@ Caméra indisponible Une erreur est survenue lors de l\'accès à la caméra Une erreur est survenue lors de la création du fichier vidéo - Une erreur est survenue lors de la sauvegarde du fichier vidéo - Une erreur est survenue lors de la mise en place de l\'enregistreur Échec lors de la permutation vers le mode vidéo Une erreur est survenue, le dossier de sauvegarde a été changer vers la mémoire interne la permutation de caméra a échoué @@ -36,10 +34,9 @@ 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. - 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. - Ne contient ni publicité ni autorisation inutile. L\'application est intégralement OpenSource et est fournie aussi avec un thème sombre. + L\'application ne contient ni de publicité ni d\'autorisation inutile. Elle est totalement OpenSource et est aussi fournie avec un thème sombre. Cette application est juste une application d\'une grande série d\'applications. Vous pouvez trouvez les autres sur http://www.simplemobiletools.com diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 205293a1..0fb7c07b 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -4,8 +4,6 @@ Fotocamera non disponibile Errore nell\'accesso alla fotocamera Errore nella creazione del file video - Errore nel salvataggio del file video - Errore nella preparazione del registratore video Passaggio alla modalità video fallita An error occurred, save folder changed to internal storage Cambio fotocamera fallito @@ -36,10 +34,9 @@ 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. - 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. - Contains no ads or unnecessary permissions. It is fully opensource, provides a Dark theme too. + Non contiene pubblicità o autorizzazioni non necessarie. È completamente opensource, offre colori personalizzabili. This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 4d3ef82b..00508ce4 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -4,8 +4,6 @@ カメラは利用できません カメラへのアクセス時にエラーが発生しました ビデオファイルの作成時にエラーが発生しました - ビデオファイルの保存時にエラーが発生しました - レコーダーのセットアップ時にエラーが発生しました ビデオモードへの切り替えに失敗しました エラーが発生しました。保存フォルダーは内部ストレージに変更されました カメラの切り替えに失敗しました @@ -36,7 +34,6 @@ カメラは、写真撮影とビデオ撮影の両方に使用できます。 前面カメラと背面カメラを切り替えたり、保存パスを変更したり、解像度を制限することができます。 フラッシュをオン/オフしたり、ピンチでズームインしたりすることができます。 ビデオの撮影中は、フラッシュを懐中電灯として使用できます。 - ハードウェアのカメラボタンを押してこのアプリを起動したい場合は、設定 -> アプリ -> カメラ -> 無効、で付属のカメラアプリを無効にする必要があります。 広告や不要なアクセス許可は含まれていません。 完全にオープンソースで、ダークテーマも提供しています。 diff --git a/app/src/main/res/values-lt/strings.xml b/app/src/main/res/values-lt/strings.xml index 7274ded1..836d49b3 100644 --- a/app/src/main/res/values-lt/strings.xml +++ b/app/src/main/res/values-lt/strings.xml @@ -4,8 +4,6 @@ Kamera negalima Įvyko klaida bandant įjungti kamerą Įvyko klaida bandant sukurti vaizdo bylą - Įvyko klaida bandant išsaugoti vaizdo bylą - Įvyko klaida nustatant įrašymo priemonę Perjungimas į vaizdo rėžimą nepavyko Įvyko klaida, saugojimo aplankas pakeistas į vidinę atmintį Kameros perjungimas nepavyko @@ -36,10 +34,9 @@ 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. - 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. - Contains no ads or unnecessary permissions. It is fully opensource, provides a Dark theme too. + Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors. This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 63dfe7f2..4e27a5e2 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -5,8 +5,6 @@ Camera niet beschikbaar Een fout opgetreden met de camera Een fout opgetreden maken van het videobestand - Er is een fout opgetreden het opslaan van het videobestand - Er is een fout opgetreden het configureren van de videorecorder Schakelen naar de videomodus is mislukt Er is een fout opgetreden, de map opslaan is gewijzigd in interne opslag Schakelen camera is mislukt diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 76e6d17c..8ab5a2c0 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -4,8 +4,6 @@ Kamera niedostępna Wystąpił błąd podczas uzyskiwania dostępu do kamery Wystąpił błąd podczas tworzenia pliku filmowego - Wystąpił błąd podczas zapisywania pliku filmowego - Wystąpił błąd podczas konfiguracji nagrywania Przejście do trybu nagrywania filmów nie powidodło się Wystąpił błąd, zmieniłem folder roboczy na pamięć wewnętrzną Przełączenie kamery nie powiodło się @@ -38,7 +36,7 @@ Aby móc uruchamiać aplikację sprzętowym przyciskiem, wyłącz (lub usuń) domsyślną aplkację kamery (Ustawienia -> Aplikacje -> (aplikacja kamery) -> Wyłącz). - 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. + Aplikacja nie zawiera żadnych reklam ani niepotrzebnych uprawnień. Jest też w pełni otawrtoźrodłowa. 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 diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 967fc94a..7d5b2318 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -4,8 +4,6 @@ Câmera indisponível Ocorreu um erro ao acessar a câmera Ocorreu um erro ao criar o arquivo de vídeo - Ocorreu um erro ao salvar o arquivo de vídeo - Ocorreu um erro ao configurar a gravação Falha ao mudar para o modo de vídeo Erro, a pasta para guardar arquivos foi alterada para o armazenamento interno Falha ao mudar de câmera @@ -36,10 +34,9 @@ Pode-se utilizar este aplicativo para tirar fotos ou gravar vídeos, alternar entre a câmera frontal e a traseira, alterar o caminho para guardar os arquivos e ajustar a resolução. Pode-se ativar o flash e apertar na tela para dar zoom. Se estiver gravando vídeos, pode-se utilizar o flash como lanterna. - Se quiser iniciar este aplicativo ao tocar no botão de câmera do seu dispositivo, deve desativar o aplicativo padrão em Configurações -> Aplicativos -> Câmera -> Desativar. - Não contém anúncios, nem permissões desnecessárias. Disponibiliza um tema escuro e é totalmente \'open source\'. + Não contém anúncios, nem permissões desnecessárias. Disponibiliza um tema escuro, e é totalmente \'open source\'. Esta aplicação é apenas parte de um conjunto mais vasto de aplicações. Saiba mais em http://www.simplemobiletools.com diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 9d5819f0..cf1b0ece 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -4,8 +4,6 @@ Câmara indisponível Ocorreu um erro ao aceder à câmara Ocorreu um erro ao criar o ficheiro de vídeo - Ocorreu um erro ao guardar o ficheiro de vídeo - Ocorreu um erro ao configurar a gravação Falha ao mudar para o modo de vídeo Erro, a pasta para guardar ficheiros foi alterada para o armazenamento interno Falha ao mudar de câmara @@ -36,7 +34,6 @@ Pode utilizar esta aplicação para tirar fotografias ou gravar vídeos. Pode alternar entre a câmara frontal e a traseira, alterar o caminho para guardar os ficheiros e ajustar a resolução. Pode ativar o flash e apertar o ecrã para ampliar. Se estiver a gravar vídeos, pode utilizar o flash como lanterna. - Se quiser iniciar esta aplicação ao tocar no botão de câmara do seu dispositivo, deve desativar a aplicação nativa em Definições -> Aplicações -> Câmara -> Desativar. Não contém anúncios nem permissões desnecessárias. Disponibiliza um tema escuro e é totalmente \'open source\'. diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index c6e68078..18066afa 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -4,8 +4,6 @@ Камера недоступна Произошла ошибка доступа к камере Произошла ошибка при создании видео файла - Произошла ошибка записи видео файла - Произошла ошибка настройки рекордера Переключение в режим видео не удалось Произошла ошибка, место для сохранения изменено на внутренюю память Переключение камеры не удалось @@ -36,10 +34,9 @@ Камерой можно пользоваться для фото- и видеосъёмки. Можно переключаться между фронтальной и задней камерами, ограничивать разрешение съёмки и выбирать путь сохранения. Вспышка может быть включена или выключена как фонарик. С помощью жестов можно изменять масштаб. - Если вы хотите, чтобы это приложение запускалось при нажатии физической кнопки камеры, вам придётся отключить стандартное приложение камеры в настройках смартфона (Приложения -> Камера -> Отключить). - Это приложение не будет показывать рекламу или запрашивать ненужные разрешения. У него полностью открытый исходный код и есть тёмная тема оформления. + Это приложение не будет показывать рекламу или запрашивать ненужные разрешения. У него полностью открытый исходный код и настраиваемые цвета оформления. Simple Camera - это приложение из серии Simple Mobile Tools. Остальные приложения из этой серии можно найти здесь: http://www.simplemobiletools.com diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index aade4d02..50d81ba9 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -4,8 +4,6 @@ Kameran inte tillgänglig Ett fel uppstod vid åtkomst till kameran Ett fel uppstod när videofilen skulle skapas - Ett fel uppstod när videofilen skulle sparas - Ett fel uppstod när inspelningen skulle starta Byte till videoläge misslyckades Ett fel uppstod, sparmappen ändrades till det interna lagringsutrymmet Byte av kamera misslyckades @@ -38,7 +36,7 @@ Om du vill starta denna app genom att trycka på den fysiska kameraknappen måste du kanske inaktivera den inbyggda Kamera-appen i Inställningar -> Appar -> Kamera -> Inaktivera. - Innehåller ingen reklam eller onödiga behörigheter. Den har helt öppen källkod och har även ett Mörkt tema. + Innehåller ingen reklam eller onödiga behörigheter. Det är helt och hållet opensource, innehåller anpassningsbara färger. Denna app är bara en del av en större serie appar. Du hittar resten av dem på http://www.simplemobiletools.com diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 654b6d3b..b3c6a31d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -4,8 +4,6 @@ Camera unavailable An error occurred accessing the camera An error occurred creating the video file - An error occurred saving the video file - An error occurred setting up the recorder Switching to video mode failed An error occurred, save folder changed to internal storage Switching camera failed @@ -38,7 +36,7 @@ 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. - Contains no ads or unnecessary permissions. It is fully open source, providing a Dark theme too. + Contains no ads or unnecessary permissions. It is fully opensource, provides customizable colors. This app is just one piece of a bigger series of apps. You can find the rest of them at http://www.simplemobiletools.com