From 29227fc00fafdf8da31a3281810335d6df9e00c5 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 30 Aug 2023 10:54:23 +0200 Subject: [PATCH] fix 18n Signed-off-by: tobiasKaminsky --- app/src/main/java/com/nextcloud/ui/ImageDetailFragment.kt | 6 +++++- app/src/main/res/values/strings.xml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/ui/ImageDetailFragment.kt b/app/src/main/java/com/nextcloud/ui/ImageDetailFragment.kt index ecd2f74c64..4c8cc77d7b 100644 --- a/app/src/main/java/com/nextcloud/ui/ImageDetailFragment.kt +++ b/app/src/main/java/com/nextcloud/ui/ImageDetailFragment.kt @@ -182,7 +182,11 @@ class ImageDetailFragment : Fragment(), Injectable { if (metadata.make == null || metadata.model?.contains(metadata.make!!) == true) { binding.imgTCMakeModel.text = metadata.model } else { - binding.imgTCMakeModel.text = "${metadata.make} ${metadata.model}" + binding.imgTCMakeModel.text = String.format( + getString(R.string.make_model), + metadata.make, + metadata.model + ) } // image taking conditions diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 47beb69f3c..257e8f694c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1107,4 +1107,5 @@ %s MP File details Image taking conditions + %1$s %2$s