Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

launcher: lunar_date strings in their own lunar.xml, English fallback in other locales

VGSf9f10cb68fa7
diff --git a/launcher/app/src/main/res/values-vi/lunar.xml b/launcher/app/src/main/res/values-vi/lunar.xml
new file mode 100644
index 000000000..98827fea5
--- /dev/null
+++ b/launcher/app/src/main/res/values-vi/lunar.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="lunar_date_format">%1$d/%2$s âm lịch · %3$s</string>
+ <string name="lunar_month_leap">%1$d nhuận</string>
+ <string name="lunar_year">%1$s %2$s</string>
+ <string-array name="lunar_stems">
+ <item>Giáp</item><item>Ất</item><item>Bính</item><item>Đinh</item><item>Mậu</item>
+ <item>Kỷ</item><item>Canh</item><item>Tân</item><item>Nhâm</item><item>Quý</item>
+ </string-array>
+ <string-array name="lunar_branches">
+ <item>Tý</item><item>Sửu</item><item>Dần</item><item>Mão</item><item>Thìn</item><item>Tỵ</item>
+ <item>Ngọ</item><item>Mùi</item><item>Thân</item><item>Dậu</item><item>Tuất</item><item>Hợi</item>
+ </string-array>
+</resources>
diff --git a/launcher/app/src/main/res/values-vi/strings.xml b/launcher/app/src/main/res/values-vi/strings.xml
index de371a107..03277318a 100644
--- a/launcher/app/src/main/res/values-vi/strings.xml
+++ b/launcher/app/src/main/res/values-vi/strings.xml
@@ -112,15 +112,4 @@
<string name="race_countdown_hours">%1$d giờ %2$d phút</string>
<string name="race_countdown_days">%1$d ngày %2$d giờ</string>
<string name="last_opened">Mở lần cuối %1$s</string>
- <string name="lunar_date_format">%1$d/%2$s âm lịch · %3$s</string>
- <string name="lunar_month_leap">%1$d nhuận</string>
- <string name="lunar_year">%1$s %2$s</string>
- <string-array name="lunar_stems">
- <item>Giáp</item><item>Ất</item><item>Bính</item><item>Đinh</item><item>Mậu</item>
- <item>Kỷ</item><item>Canh</item><item>Tân</item><item>Nhâm</item><item>Quý</item>
- </string-array>
- <string-array name="lunar_branches">
- <item>Tý</item><item>Sửu</item><item>Dần</item><item>Mão</item><item>Thìn</item><item>Tỵ</item>
- <item>Ngọ</item><item>Mùi</item><item>Thân</item><item>Dậu</item><item>Tuất</item><item>Hợi</item>
- </string-array>
</resources>
diff --git a/launcher/app/src/main/res/values-zh-rCN/lunar.xml b/launcher/app/src/main/res/values-zh-rCN/lunar.xml
new file mode 100644
index 000000000..1d2d9caa4
--- /dev/null
+++ b/launcher/app/src/main/res/values-zh-rCN/lunar.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="lunar_date_format">农历%2$s月%1$d日 · %3$s</string>
+ <string name="lunar_month_leap">闰%1$d</string>
+ <string name="lunar_year">%1$s%2$s年</string>
+ <string-array name="lunar_stems">
+ <item>甲</item><item>乙</item><item>丙</item><item>丁</item><item>戊</item><item>己</item><item>庚</item><item>辛</item><item>壬</item><item>癸</item>
+ </string-array>
+ <string-array name="lunar_branches">
+ <item>子</item><item>丑</item><item>寅</item><item>卯</item><item>辰</item><item>巳</item><item>午</item><item>未</item><item>申</item><item>酉</item><item>戌</item><item>亥</item>
+ </string-array>
+</resources>
diff --git a/launcher/app/src/main/res/values-zh-rCN/strings.xml b/launcher/app/src/main/res/values-zh-rCN/strings.xml
index ca191c611..87ecf8a7e 100644
--- a/launcher/app/src/main/res/values-zh-rCN/strings.xml
+++ b/launcher/app/src/main/res/values-zh-rCN/strings.xml
@@ -59,13 +59,4 @@
<item quantity="other">%1$d 个应用</item>
</plurals>
<string name="greeting_with_name">%1$s,%2$s</string>
- <string name="lunar_date_format">农历%2$s月%1$d日 · %3$s</string>
- <string name="lunar_month_leap">闰%1$d</string>
- <string name="lunar_year">%1$s%2$s年</string>
- <string-array name="lunar_stems">
- <item>甲</item><item>乙</item><item>丙</item><item>丁</item><item>戊</item><item>己</item><item>庚</item><item>辛</item><item>壬</item><item>癸</item>
- </string-array>
- <string-array name="lunar_branches">
- <item>子</item><item>丑</item><item>寅</item><item>卯</item><item>辰</item><item>巳</item><item>午</item><item>未</item><item>申</item><item>酉</item><item>戌</item><item>亥</item>
- </string-array>
</resources>
diff --git a/launcher/app/src/main/res/values-zh-rTW/lunar.xml b/launcher/app/src/main/res/values-zh-rTW/lunar.xml
new file mode 100644
index 000000000..c3cf9a70a
--- /dev/null
+++ b/launcher/app/src/main/res/values-zh-rTW/lunar.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="lunar_date_format">農曆%2$s月%1$d日 · %3$s</string>
+ <string name="lunar_month_leap">閏%1$d</string>
+ <string name="lunar_year">%1$s%2$s年</string>
+ <string-array name="lunar_stems">
+ <item>甲</item><item>乙</item><item>丙</item><item>丁</item><item>戊</item><item>己</item><item>庚</item><item>辛</item><item>壬</item><item>癸</item>
+ </string-array>
+ <string-array name="lunar_branches">
+ <item>子</item><item>丑</item><item>寅</item><item>卯</item><item>辰</item><item>巳</item><item>午</item><item>未</item><item>申</item><item>酉</item><item>戌</item><item>亥</item>
+ </string-array>
+</resources>
diff --git a/launcher/app/src/main/res/values-zh-rTW/strings.xml b/launcher/app/src/main/res/values-zh-rTW/strings.xml
index 14bcdc921..11bf40aaf 100644
--- a/launcher/app/src/main/res/values-zh-rTW/strings.xml
+++ b/launcher/app/src/main/res/values-zh-rTW/strings.xml
@@ -83,13 +83,4 @@
<item quantity="other">%1$d 個應用程式</item>
</plurals>
<string name="greeting_with_name">%1$s,%2$s</string>
- <string name="lunar_date_format">農曆%2$s月%1$d日 · %3$s</string>
- <string name="lunar_month_leap">閏%1$d</string>
- <string name="lunar_year">%1$s%2$s年</string>
- <string-array name="lunar_stems">
- <item>甲</item><item>乙</item><item>丙</item><item>丁</item><item>戊</item><item>己</item><item>庚</item><item>辛</item><item>壬</item><item>癸</item>
- </string-array>
- <string-array name="lunar_branches">
- <item>子</item><item>丑</item><item>寅</item><item>卯</item><item>辰</item><item>巳</item><item>午</item><item>未</item><item>申</item><item>酉</item><item>戌</item><item>亥</item>
- </string-array>
</resources>
diff --git a/launcher/app/src/main/res/values/lunar.xml b/launcher/app/src/main/res/values/lunar.xml
new file mode 100644
index 000000000..f3570c7d5
--- /dev/null
+++ b/launcher/app/src/main/res/values/lunar.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- lunar_date (config.json, off by default): the lunisolar date under the date. Translated where the
+ calendar is used (vi, zh-rCN, zh-rTW); other locales show the English names on purpose. -->
+<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
+ <string name="lunar_date_format">Lunar %1$d/%2$s · %3$s</string>
+ <string name="lunar_month_leap">%1$d (leap)</string>
+ <string name="lunar_year">Year of the %2$s</string>
+ <string-array name="lunar_stems">
+ <item>Jia</item><item>Yi</item><item>Bing</item><item>Ding</item><item>Wu</item>
+ <item>Ji</item><item>Geng</item><item>Xin</item><item>Ren</item><item>Gui</item>
+ </string-array>
+ <string-array name="lunar_branches">
+ <item>Rat</item><item>Ox</item><item>Tiger</item><item>Rabbit</item><item>Dragon</item><item>Snake</item>
+ <item>Horse</item><item>Goat</item><item>Monkey</item><item>Rooster</item><item>Dog</item><item>Pig</item>
+ </string-array>
+</resources>
diff --git a/launcher/app/src/main/res/values/strings.xml b/launcher/app/src/main/res/values/strings.xml
index e3eaea861..1a385d403 100644
--- a/launcher/app/src/main/res/values/strings.xml
+++ b/launcher/app/src/main/res/values/strings.xml
@@ -23,18 +23,6 @@
<string name="date_format">EEEE d MMMM</string>
<!-- Date next to the clock on Home; a locale can split it over two lines with \n. -->
<string name="date_format_home" translatable="false">@string/date_format</string>
- <!-- Lunar date under the date: day, month, year name. -->
- <string name="lunar_date_format">Lunar %1$d/%2$s · %3$s</string>
- <string name="lunar_month_leap">%1$d (leap)</string>
- <string name="lunar_year">Year of the %2$s</string>
- <string-array name="lunar_stems">
- <item>Jia</item><item>Yi</item><item>Bing</item><item>Ding</item><item>Wu</item>
- <item>Ji</item><item>Geng</item><item>Xin</item><item>Ren</item><item>Gui</item>
- </string-array>
- <string-array name="lunar_branches">
- <item>Rat</item><item>Ox</item><item>Tiger</item><item>Rabbit</item><item>Dragon</item><item>Snake</item>
- <item>Horse</item><item>Goat</item><item>Monkey</item><item>Rooster</item><item>Dog</item><item>Pig</item>
- </string-array>
<string name="shamsi_month_farvardin">Farvardin</string>
<string name="shamsi_month_ordibehesht">Ordibehesht</string>
<string name="shamsi_month_khordad">Khordad</string>