diff --git a/app/src/main/java/com/example/hpostesting/presentation/adapter/UserListAdapter.kt b/app/src/main/java/com/example/hpostesting/presentation/adapter/UserListAdapter.kt index af1dc97..e0034c0 100644 --- a/app/src/main/java/com/example/hpostesting/presentation/adapter/UserListAdapter.kt +++ b/app/src/main/java/com/example/hpostesting/presentation/adapter/UserListAdapter.kt @@ -94,13 +94,13 @@ class UserListAdapter( val builder = AlertDialog.Builder(context) .setView(dialogView) - .setTitle("Add Blood Group") + .setTitle(R.string.blood_group) val etBloodGroup = dialogView.findViewById(R.id.et_blood_group) - builder.setPositiveButton("OK") { dialog, which -> + builder.setPositiveButton(R.string.ok) { dialog, which -> val bloodGroup = etBloodGroup.text.toString() - if (bloodGroup.equals("Select Blood Group") || bloodGroup.isNullOrBlank()) { + if (bloodGroup.equals("Select Blood Group") ||bloodGroup.equals("ರಕ್ತ ಗುಂಪು ಆಯ್ಕೆಮಾಡಿ") || bloodGroup.isNullOrBlank()) { if (view != null) { etBloodGroup.error =view.context.getString(R.string.blood_group_error) } @@ -166,7 +166,7 @@ class UserListAdapter( // Handle the selected blood group here } - builder.setNegativeButton("Cancel") { dialog, which -> + builder.setNegativeButton(R.string.cancel) { dialog, which -> dialog.dismiss() } diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 2ef1c6f..6c5189e 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -258,5 +258,6 @@ भाषा सफलतापूर्वक अपडेट की गई है अपनी पसंदीदा भाषा का चयन करें ऐप भाषा - + रक्त समूह जोड़ें + ठीक है \ No newline at end of file diff --git a/app/src/main/res/values-kn/strings.xml b/app/src/main/res/values-kn/strings.xml index b653f26..001b10c 100644 --- a/app/src/main/res/values-kn/strings.xml +++ b/app/src/main/res/values-kn/strings.xml @@ -258,5 +258,8 @@ ಭಾಷೆ ಯಶಸ್ವಿಯಾಗಿ ನವೀಕರಿಸಲಾಗಿದೆ ನಿಮ್ಮ ಆದರಿತ ಭಾಷೆಯನ್ನು ಆಯ್ಕೆ ಮಾಡಿ ಅಪ್ಲಿಕೇಶನ್ ಭಾಷೆ + ರಕ್ತ ಗುಂಡನ್ನು ಸೇರಿಸಿ + ಸರಿ + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0720acd..47fd564 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -155,6 +155,7 @@ Is Patient Married? (Yes/No) Category Blood Group + Add Blood Group Digital Counselling Card Patient Medical Records Patient Address Details @@ -258,5 +259,5 @@ Language updated successfully Select your preferred language App Language - + OK \ No newline at end of file