mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Merge
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ import androidx.compose.ui.tooling.preview.PreviewParameterProvider
|
||||
import io.element.android.libraries.matrix.api.poll.PollKind
|
||||
import kotlinx.collections.immutable.toImmutableList
|
||||
|
||||
class CreatePollStateProvider : PreviewParameterProvider<CreatePollState> {
|
||||
class CreatePollStatePreviewParam : PreviewParameterProvider<CreatePollState> {
|
||||
override val values: Sequence<CreatePollState>
|
||||
get() = sequenceOf(
|
||||
aCreatePollState(
|
||||
+1
-1
@@ -294,7 +294,7 @@ private fun MaxSelectionsStepper(
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun CreatePollViewPreview(
|
||||
@PreviewParameter(CreatePollStateProvider::class) state: CreatePollState
|
||||
@PreviewParameter(CreatePollStatePreviewParam::class) state: CreatePollState
|
||||
) = ElementPreview {
|
||||
CreatePollView(
|
||||
state = state,
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import io.element.android.features.poll.impl.history.model.PollHistoryItem
|
||||
import io.element.android.features.poll.impl.history.model.PollHistoryItems
|
||||
import kotlinx.collections.immutable.toImmutableList
|
||||
|
||||
class PollHistoryStateProvider : PreviewParameterProvider<PollHistoryState> {
|
||||
class PollHistoryStatePreviewParam : PreviewParameterProvider<PollHistoryState> {
|
||||
override val values: Sequence<PollHistoryState>
|
||||
get() = sequenceOf(
|
||||
aPollHistoryState(),
|
||||
+1
-1
@@ -255,7 +255,7 @@ private fun PollHistoryItemRow(
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun PollHistoryViewPreview(
|
||||
@PreviewParameter(PollHistoryStateProvider::class) state: PollHistoryState
|
||||
@PreviewParameter(PollHistoryStatePreviewParam::class) state: PollHistoryState
|
||||
) = ElementPreview {
|
||||
PollHistoryView(
|
||||
state = state,
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<string name="screen_create_poll_add_option_btn">"إضافة خيار"</string>
|
||||
<string name="screen_create_poll_anonymous_desc">"أظهر النتائج فقط حين انتهاء الاستفتاء"</string>
|
||||
<string name="screen_create_poll_anonymous_headline">"إخفاء الأصوات"</string>
|
||||
<string name="screen_create_poll_answer_hint">"الخيار %1$d"</string>
|
||||
<string name="screen_create_poll_cancel_confirmation_content_android">"لم تُحفظ تغييراتك. هل أنت متأكد من أنك تريد الرجوع؟"</string>
|
||||
<string name="screen_create_poll_delete_option_a11y">"حذف الخيار %1$s"</string>
|
||||
<string name="screen_create_poll_question_desc">"السؤال أو الموضوع"</string>
|
||||
<string name="screen_create_poll_question_hint">"عن ماذا يدور هذا الاستفتاء؟"</string>
|
||||
<string name="screen_create_poll_title">"إنشاء استفتاء"</string>
|
||||
<string name="screen_edit_poll_delete_confirmation">"هل أنت متأكد من رغبتك في حذف هذا الاستطلاع؟"</string>
|
||||
<string name="screen_edit_poll_delete_confirmation_title">"حذف الاستطلاع"</string>
|
||||
<string name="screen_edit_poll_title">"تعديل الاستفتاء"</string>
|
||||
<string name="screen_polls_history_empty_ongoing">"تعذّر العثور على أي استطلاعات جارية."</string>
|
||||
<string name="screen_polls_history_empty_past">"تعذّر العثور على أي استطلاعات مغلقة."</string>
|
||||
<string name="screen_polls_history_filter_ongoing">"جارية"</string>
|
||||
<string name="screen_polls_history_filter_past">"مغلقة"</string>
|
||||
<string name="screen_polls_history_title">"الاستطلاعات"</string>
|
||||
</resources>
|
||||
@@ -5,6 +5,7 @@
|
||||
<string name="screen_create_poll_anonymous_headline">"نهفتن رأیها"</string>
|
||||
<string name="screen_create_poll_answer_hint">"گزینهٔ %1$d"</string>
|
||||
<string name="screen_create_poll_cancel_confirmation_content_android">"تغییراتتان ذخیره نشدهاند. مطمئنید که میخواهید برگردید؟"</string>
|
||||
<string name="screen_create_poll_delete_option_a11y">"حذف گزینه %1$s"</string>
|
||||
<string name="screen_create_poll_question_desc">"پرسش یا موضوع"</string>
|
||||
<string name="screen_create_poll_question_hint">"این نظرسنجی دربارهٔ چیست؟"</string>
|
||||
<string name="screen_create_poll_title">"ایجاد نظرسنجی"</string>
|
||||
|
||||
Reference in New Issue
Block a user