Skip to content

Commit

Permalink
Removed unnecessary string resources
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyPouya committed Jul 28, 2024
1 parent 4f6306d commit ad9123e
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 126 deletions.
38 changes: 0 additions & 38 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,43 +1,5 @@
<resources>
<string name="app_name">تقویم پارسی</string>
<string name="saturday">شنبه</string>
<string name="sunday">یکشنبه</string>
<string name="monday">دوشنبه</string>
<string name="tuesday">سه شنبه</string>
<string name="wednesdays">چهارشنبه</string>
<string name="thursday">پنجشنبه</string>
<string name="friday">جمعه</string>
<string name="events_of_this_day">مناسبت های این روز :</string>
<string name="set_a_work_to_do">کاری برای انجام در این روز تنظیم کنید</string>
<string name="google_calendar_events">رویدادهای تقویم گوگل :</string>
<string name="last_month">ماه قبل</string>
<string name="next_month">ماه بعد</string>
<string name="farvardin">فروردین</string>
<string name="ordibehesht">اردیبهشت</string>
<string name="khordad">خرداد</string>
<string name="tir">تیر</string>
<string name="mordad">مرداد</string>
<string name="shahrivar">شهریور</string>
<string name="mehr">مهر</string>
<string name="aban">آبان</string>
<string name="azar">آذر</string>
<string name="dey">دی</string>
<string name="bahman">بهمن</string>
<string name="esfand">اسفند</string>
<string name="january">ژانویه</string>
<string name="february">فوریه</string>
<string name="march">مارس</string>
<string name="april">آوریل</string>
<string name="may">مه</string>
<string name="jun">ژوئن</string>
<string name="july">ژوئیه</string>
<string name="august">اوت</string>
<string name="september">سپتامبر</string>
<string name="october">اکتبر</string>
<string name="november">نوامبر</string>
<string name="december">دسامبر</string>
<string name="no_events">مناسبتی برای این روز وجود ندارد</string>
<string name="google_calendar_is_not_installed">برای استفاده از این ویژگی نیاز است که برنامه تقویم گوگل را نصب نمایید</string>
<string name="persian_full_date">%1s %2s %3s %4s</string>
<string name="gregorian_full_date">%1s %2s %3s</string>
</resources>
5 changes: 3 additions & 2 deletions core/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
<string name="persian_full_date">%1s %2s %3s %4s</string>
<string name="gregorian_full_date">%1s %2s %3s</string>
<string name="events_of_this_day">مناسبت های این روز :</string>
<string name="set_a_work_to_do">کاری برای انجام در این روز تنظیم کنید</string>
<string name="google_calendar_events">رویدادهای تقویم گوگل :</string>
<string name="set_a_work_to_do">کاری برای انجام در تقویم تنظیم کنید</string>
<string name="no_events">مناسبتی برای این روز وجود ندارد</string>
<string name="google_calendar_is_not_installed">برای استفاده از این ویژگی نیاز است که برنامه تقویم گوگل را نصب نمایید</string>

</resources>
Original file line number Diff line number Diff line change
@@ -1,96 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/txtPersianDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
android:gravity="center"
android:padding="8dp"
android:textColor="@android:color/primary_text_dark"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/txtGregorianDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/colorPrimary"
android:gravity="center"
android:padding="8dp"
android:textColor="@android:color/primary_text_dark"
android:textSize="18sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txtPersianDate" />
<Button
android:id="@+id/btnAddEvent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="@string/set_a_work_to_do"
android:textColor="@android:color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

<ScrollView
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@id/btnAddEvent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txtGregorianDate">
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@id/btnAddEvent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txtGregorianDate">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:text="@string/events_of_this_day"
android:textColor="@color/colorAccent"
android:textSize="14sp" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:id="@+id/txtDayEvents"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:textSize="12sp" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:text="@string/events_of_this_day"
android:textColor="@color/colorAccent"
android:textSize="14sp" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:text="@string/google_calendar_events"
android:textColor="@color/colorAccent"
android:textSize="14sp" />
android:id="@+id/txtDayEvents"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:textSize="12sp" />

<TextView
android:id="@+id/txtCalendarEvents"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:textSize="12sp" />
</LinearLayout>
</ScrollView>

<Button
android:id="@+id/btnAddEvent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="@string/set_a_work_to_do"
android:textColor="@android:color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/txtPersianDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
android:gravity="center"
android:padding="8dp"
android:textColor="@android:color/primary_text_dark"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/txtGregorianDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/colorPrimary"
android:gravity="center"
android:padding="8dp"
android:textColor="@android:color/primary_text_dark"
android:textSize="18sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txtPersianDate" />

</androidx.constraintlayout.widget.ConstraintLayout>
7 changes: 0 additions & 7 deletions features/calendar-details/src/main/res/values/strings.xml

This file was deleted.

0 comments on commit ad9123e

Please sign in to comment.