From 291c68a876e9496c44fff7adc598245c5ae264c6 Mon Sep 17 00:00:00 2001 From: Amanpal Singh <87360222+aman-alfresco@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:29:27 +0530 Subject: [PATCH] update localisation same as adf (#54) --- .../content/search/components/CreateComponentsSheet.kt | 7 +------ search/src/main/res/values-de/strings.xml | 10 ++-------- search/src/main/res/values-es/strings.xml | 10 ++-------- search/src/main/res/values-fr/strings.xml | 10 ++-------- search/src/main/res/values-it/strings.xml | 10 ++-------- search/src/main/res/values-nl/strings.xml | 10 ++-------- search/src/main/res/values/strings.xml | 6 ------ 7 files changed, 11 insertions(+), 52 deletions(-) diff --git a/search/src/main/kotlin/com/alfresco/content/search/components/CreateComponentsSheet.kt b/search/src/main/kotlin/com/alfresco/content/search/components/CreateComponentsSheet.kt index 816fc5a65..6e9501593 100644 --- a/search/src/main/kotlin/com/alfresco/content/search/components/CreateComponentsSheet.kt +++ b/search/src/main/kotlin/com/alfresco/content/search/components/CreateComponentsSheet.kt @@ -52,6 +52,7 @@ class CreateComponentsSheet : BottomSheetDialogFragment(), MavericksView { private fun setupComponents() { withState(viewModel) { state -> + binding.title.text = state.parent.category.name when (state.parent.category.component?.selector) { ChipComponentType.TEXT.component -> { binding.textComponent.componentParent.visibility = View.VISIBLE @@ -60,20 +61,17 @@ class CreateComponentsSheet : BottomSheetDialogFragment(), MavericksView { binding.textComponent.nameInputLayout.hint = state.parent.category.component?.settings?.placeholder binding.textComponent.nameInput.setText(state.parent.selectedName) binding.textComponent.nameInput.setSelection(state.parent.selectedName.length) - binding.title.text = getString(R.string.title_text_filter) } ChipComponentType.CHECK_LIST.component -> { viewModel.buildCheckListModel() binding.checkListComponent.componentParent.visibility = View.VISIBLE - binding.title.text = getString(R.string.title_file_type) } ChipComponentType.RADIO.component -> { viewModel.buildSingleDataModel() if (state.parent.selectedName.isEmpty()) viewModel.copyDefaultComponentData() binding.radioListComponent.radioParent.visibility = View.VISIBLE - binding.title.text = getString(R.string.title_file_type) } ChipComponentType.NUMBER_RANGE.component -> { viewModel.buildSingleDataModel() @@ -86,7 +84,6 @@ class CreateComponentsSheet : BottomSheetDialogFragment(), MavericksView { binding.numberRangeComponent.toInput.setText(fromToArray[1].trim()) binding.numberRangeComponent.fromInput.setSelection(fromToArray[0].trim().length) } - binding.title.text = getString(R.string.title_number_range) } ChipComponentType.SLIDER.component -> { viewModel.fromValue = "0" @@ -107,11 +104,9 @@ class CreateComponentsSheet : BottomSheetDialogFragment(), MavericksView { if (state.parent.selectedName.isNotEmpty()) { binding.sliderComponent.slider.value = state.parent.selectedName.toFloat() } - binding.title.text = getString(R.string.title_slider) } ChipComponentType.DATE_RANGE.component -> { binding.dateRangeComponent.componentParent.visibility = View.VISIBLE - binding.title.text = getString(R.string.title_created_date_range) binding.dateRangeComponent.fromInput.inputType = 0 binding.dateRangeComponent.fromInput.isCursorVisible = false diff --git a/search/src/main/res/values-de/strings.xml b/search/src/main/res/values-de/strings.xml index 7649ced5e..d4544327f 100755 --- a/search/src/main/res/values-de/strings.xml +++ b/search/src/main/res/values-de/strings.xml @@ -17,12 +17,6 @@ Erweiterte Suche Standard - Ordner - Textfilter - Dateityp - Zahlenbereich - Größe (MB) - Daten auswählen Zurücksetzen Anwenden Abbrechen @@ -32,6 +26,6 @@ Dokument Erforderlicher Wert Der „Von“ Wert muss kleiner als der „Bis“ Wert sein - Von - Bis + Von + Bis diff --git a/search/src/main/res/values-es/strings.xml b/search/src/main/res/values-es/strings.xml index 8d90562a5..258f2b43d 100755 --- a/search/src/main/res/values-es/strings.xml +++ b/search/src/main/res/values-es/strings.xml @@ -17,12 +17,6 @@ Búsqueda avanzada Predeterminado - Carpeta - Filtro de texto - Tipo de fichero - Rango de tamaño - Tamaño (MB) - Elegir fechas Re&stablecer Aplicar Cancelar @@ -32,6 +26,6 @@ Documento Valor requerido El valor De debe ser menor que el valor A - De - A + De + A diff --git a/search/src/main/res/values-fr/strings.xml b/search/src/main/res/values-fr/strings.xml index c75f102b9..d0b5c2f2b 100755 --- a/search/src/main/res/values-fr/strings.xml +++ b/search/src/main/res/values-fr/strings.xml @@ -17,12 +17,6 @@ Recherche avancée Par défaut - Dossier - Filtre texte - Type de fichier - Gamme de taille - Taille (MB) - Choisir les dates Réinitialiser Appliquer Annuler @@ -32,6 +26,6 @@ Document Valeur requise La valeur De doit être inférieure à la valeur A - De - A + De + A diff --git a/search/src/main/res/values-it/strings.xml b/search/src/main/res/values-it/strings.xml index 4b072898d..a005980e4 100755 --- a/search/src/main/res/values-it/strings.xml +++ b/search/src/main/res/values-it/strings.xml @@ -17,12 +17,6 @@ Ricerca avanzata Predefinito - Cartella - Filtro testo - Tipo di file - Intervallo dimensioni - Dimensioni (MB) - Scegli date Reimposta Applica Annulla @@ -32,6 +26,6 @@ Documento Valore obbligatorio Il valore Da deve essere inferiore al valore A - Da - A + Da + A diff --git a/search/src/main/res/values-nl/strings.xml b/search/src/main/res/values-nl/strings.xml index a44cbfde5..d8e7f0c98 100755 --- a/search/src/main/res/values-nl/strings.xml +++ b/search/src/main/res/values-nl/strings.xml @@ -17,12 +17,6 @@ Geavanceerd zoeken Standaard - Map - Tekstfilter - Bestandstype - Getallenbereik - Grootte (MB) - Datums kiezen Opnieuw instellen Toepassen Annuleren @@ -32,6 +26,6 @@ Document Vereiste waarde Van-waarde moet kleiner zijn dan Tot-waarde - Van - Tot + Van + Tot diff --git a/search/src/main/res/values/strings.xml b/search/src/main/res/values/strings.xml index a82f8e25f..56bed9cec 100644 --- a/search/src/main/res/values/strings.xml +++ b/search/src/main/res/values/strings.xml @@ -17,12 +17,6 @@ Advance search Default - Folder - Text filter - File type - Number range - Size (MB) - Created Date (range) Reset Apply Cancel