Skip to content

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

Launcher: Catalan translation

Quico Domingocb585bb864bf
diff --git a/README.md b/README.md
index cdc0a01e4..a7f3b7ada 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,10 @@ TV_HOST=192.168.1.50 launcher/build-and-install.sh
Needs JDK 17 and the Android SDK (platform 34, build-tools 34.0.0). On macOS:
`brew install openjdk@17 android-commandlinetools && sdkmanager "platforms;android-34" "build-tools;34.0.0"`.
+The launcher follows the TV's language (English, German, Catalan). If your TV doesn't offer yours
+system-wide, Android 13 and later can set it for the launcher alone, e.g. Catalan:
+`adb shell cmd locale set-app-locales com.gathin.tvhome --locales ca`.
+
### Windows
PowerShell versions of the scripts sit next to the bash ones. With Android Studio installed, nothing
diff --git a/launcher/app/src/main/AndroidManifest.xml b/launcher/app/src/main/AndroidManifest.xml
index 3bff8f106..d418c5f55 100644
--- a/launcher/app/src/main/AndroidManifest.xml
+++ b/launcher/app/src/main/AndroidManifest.xml
@@ -14,7 +14,8 @@
android:icon="@mipmap/ic_launcher"
android:banner="@drawable/banner"
android:theme="@style/Theme.TvHome"
- android:allowBackup="false">
+ android:allowBackup="false"
+ android:localeConfig="@xml/locales_config">
<activity
android:name=".MainActivity"
diff --git a/launcher/app/src/main/res/values-ca/strings.xml b/launcher/app/src/main/res/values-ca/strings.xml
new file mode 100644
index 000000000..6a43f8b93
--- /dev/null
+++ b/launcher/app/src/main/res/values-ca/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Inici</string>
+ <string name="inputs">Entrades</string>
+ <string name="wifi">Wi-Fi</string>
+ <string name="settings">Configuració</string>
+ <string name="choose_input">Entrades</string>
+ <string name="connected">Connectat</string>
+ <string name="standby">En espera</string>
+ <string name="not_connected">Cap dispositiu</string>
+ <string name="live_tv">TV en directe</string>
+ <string name="no_inputs">No s\'ha trobat cap entrada</string>
+ <string name="good_morning">Bon dia</string>
+ <string name="good_afternoon">Bona tarda</string>
+ <string name="good_evening">Bon vespre</string>
+ <string name="good_night">Bona nit</string>
+ <string name="ethernet">Ethernet</string>
+ <string name="offline">Sense connexió</string>
+ <string name="not_available">No disponible en aquest televisor</string>
+ <string name="cant_open">No s\'ha pogut obrir %1$s</string>
+</resources>
diff --git a/launcher/app/src/main/res/xml/locales_config.xml b/launcher/app/src/main/res/xml/locales_config.xml
new file mode 100644
index 000000000..51e3afe5e
--- /dev/null
+++ b/launcher/app/src/main/res/xml/locales_config.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Languages the launcher is translated into. Lets Android 13+ give the launcher its own language
+ (set it with "cmd locale set-app-locales", see the README), since TVs rarely offer
+ every language system-wide. -->
+<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
+ <locale android:name="en" />
+ <locale android:name="de" />
+ <locale android:name="ca" />
+</locale-config>