Skip to content

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

Sources, Weather and Headphones add-ons in French; Sources card renamed Devices so French TVs keep it

ScaryFr92cd0285be77ed
diff --git a/addons/headphones/README.md b/addons/headphones/README.md
index 69edabfea..6d8556730 100644
--- a/addons/headphones/README.md
+++ b/addons/headphones/README.md
@@ -5,7 +5,7 @@ paired headphones with their battery, a shortcut to pairing, and a **quiet guard
speakers when headphones drop, so a flat battery doesn't send a film's sound into a room where someone is
asleep. For the [Clean Your TV](../../README.md) launcher it declares a [module card](../../docs/modules.md):
once you answer **Show card** its tile reads "Headphones" with a blue glow. On any other Android TV home it is an
-ordinary app.
+ordinary app. The screen is in English and French.
![Headphones on a TV with none paired yet](screenshot.jpg)
diff --git a/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/MainActivity.java b/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/MainActivity.java
index cb8d9f577..cb5b30cea 100644
--- a/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/MainActivity.java
+++ b/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/MainActivity.java
@@ -133,60 +133,61 @@ public class MainActivity extends Activity {
private void build() {
int focused = rows.indexOfChild(rows.getFocusedChild());
rows.removeAllViews();
- status.setText("Sound now plays through: " + output());
+ status.setText(getString(R.string.plays_through, output()));
Row first;
if (!allowed()) {
- first = add(new Row(this, "Allow Bluetooth access",
- "To list your headphones and to notice when they drop. OK asks.", this::askBluetooth));
- first.setValue("Not allowed");
+ first = add(new Row(this, getString(R.string.allow_title),
+ getString(R.string.allow_detail), this::askBluetooth));
+ first.setValue(getString(R.string.not_allowed));
} else {
first = null;
}
- Row pair = add(new Row(this, "Pair or connect headphones",
- "Opens the TV's Bluetooth settings. Put the headphones in pairing mode first.", this::openBluetooth));
+ Row pair = add(new Row(this, getString(R.string.pair_title),
+ getString(R.string.pair_detail), this::openBluetooth));
if (first == null) first = pair;
boolean fixed = audio.isVolumeFixed();
- Row guard = add(new Row(this, "Quiet when they drop", fixed
- ? "Pauses what plays when headphones disconnect. This TV's volume is fixed (ARC or an amplifier), so it can't also mute the speakers."
- : "Pauses what plays and mutes the TV speakers when headphones disconnect, so the sound doesn't jump to the room. Unmutes when they're back.",
+ Row guard = add(new Row(this, getString(R.string.guard_title),
+ getString(fixed ? R.string.guard_detail_fixed : R.string.guard_detail),
() -> {
prefs.edit().putBoolean(QuietReceiver.GUARD, !prefs.getBoolean(QuietReceiver.GUARD, true)).apply();
build();
}));
- guard.setValue(prefs.getBoolean(QuietReceiver.GUARD, true) ? "On" : "Off");
+ guard.setValue(getString(prefs.getBoolean(QuietReceiver.GUARD, true) ? R.string.on : R.string.off));
if (prefs.getBoolean(QuietReceiver.MUTED_BY_US, false)) {
- Row unmute = add(new Row(this, "Unmute the speakers", "Muted when headphones dropped.", () -> {
+ Row unmute = add(new Row(this, getString(R.string.unmute_title), getString(R.string.unmute_detail), () -> {
audio.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_UNMUTE, AudioManager.FLAG_SHOW_UI);
prefs.edit().putBoolean(QuietReceiver.MUTED_BY_US, false).apply();
build();
}));
- unmute.setValue("Muted");
+ unmute.setValue(getString(R.string.muted));
}
- heading("Paired headphones and speakers");
+ heading(getString(R.string.heading_paired));
if (adapter == null) {
- add(new Row(this, "No Bluetooth on this TV", null, null));
+ add(new Row(this, getString(R.string.no_bluetooth), null, null));
} else if (!adapter.isEnabled()) {
- add(new Row(this, "Bluetooth is off", "Switch it on in the TV's settings.", this::openBluetooth));
+ add(new Row(this, getString(R.string.bluetooth_off), getString(R.string.bluetooth_off_detail), this::openBluetooth));
} else if (allowed()) {
List<BluetoothDevice> paired = pairedAudio();
- if (paired.isEmpty()) add(new Row(this, "None yet", "Use the row above to pair some.", null));
+ if (paired.isEmpty()) add(new Row(this, getString(R.string.none_yet), getString(R.string.none_yet_detail), null));
Set<String> connected = connected();
for (BluetoothDevice d : paired) {
boolean on = connected.contains(d.getAddress());
String battery = on ? Quiet.battery(batteryLevel(d)) : "";
Row r = add(new Row(this, name(d),
- on ? (battery.isEmpty() ? "Connected" : "Connected, battery " + battery) : "Not connected. OK opens Bluetooth settings to connect.",
+ on ? (battery.isEmpty() ? getString(R.string.connected) : getString(R.string.connected_battery, battery))
+ : getString(R.string.not_connected_detail),
this::openBluetooth));
- r.setValue(on ? "Connected" : "");
+ r.setValue(on ? getString(R.string.connected) : "");
}
}
- heading("Several headphones at once");
- add(new Row(this, Quiet.sharing(Build.VERSION.SDK_INT, broadcastSupport()), null, null));
+ heading(getString(R.string.heading_several));
+ int[] sharing = {R.string.sharing_one_pair, R.string.sharing_auracast, R.string.sharing_no_broadcast};
+ add(new Row(this, getString(sharing[Quiet.sharingCase(Build.VERSION.SDK_INT, broadcastSupport())]), null, null));
View keep = focused >= 0 && focused < rows.getChildCount() ? rows.getChildAt(focused) : null;
(keep != null && keep.isFocusable() ? keep : first).requestFocus();
@@ -232,9 +233,9 @@ public class MainActivity extends Activity {
int t = d.getType();
boolean bt = t == AudioDeviceInfo.TYPE_BLUETOOTH_A2DP
|| (Build.VERSION.SDK_INT >= 31 && (t == AudioDeviceInfo.TYPE_BLE_HEADSET || t == AudioDeviceInfo.TYPE_BLE_SPEAKER));
- if (bt) return Quiet.clean(String.valueOf(d.getProductName()));
+ if (bt) return Quiet.clean(String.valueOf(d.getProductName()), getString(R.string.unnamed));
}
- return audio.isVolumeFixed() ? "the TV's audio output (HDMI ARC or optical)" : "the TV speakers";
+ return getString(audio.isVolumeFixed() ? R.string.output_fixed : R.string.output_speakers);
}
private List<BluetoothDevice> pairedAudio() {
@@ -262,11 +263,11 @@ public class MainActivity extends Activity {
return out;
}
- private static String name(BluetoothDevice d) {
+ private String name(BluetoothDevice d) {
try {
- return Quiet.clean(d.getName());
+ return Quiet.clean(d.getName(), getString(R.string.unnamed));
} catch (SecurityException e) {
- return Quiet.clean(null);
+ return getString(R.string.unnamed);
}
}
diff --git a/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/Quiet.java b/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/Quiet.java
index 034c5138b..55f36990e 100644
--- a/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/Quiet.java
+++ b/addons/headphones/app/src/main/java/io/github/maxhayim/headphones/Quiet.java
@@ -41,11 +41,12 @@ final class Quiet {
/** What the TV can do for several listeners, from its LE Audio broadcast check (Android 13+). */
static String sharing(int sdk, int broadcastSource) {
- if (sdk < 33) {
+ int which = sharingCase(sdk, broadcastSource);
+ if (which == SHARING_ONE_PAIR) {
return "This TV sends sound to one pair of Bluetooth headphones at a time. For two pairs, use a"
+ " dual-link Bluetooth transmitter on the TV's headphone or optical output.";
}
- if (broadcastSource == FEATURE_SUPPORTED) {
+ if (which == SHARING_AURACAST) {
return "This TV can broadcast to many LE Audio (Auracast) headphones at once: start sharing from the"
+ " TV's Bluetooth settings.";
}
@@ -53,10 +54,23 @@ final class Quiet {
+ " For two pairs, use a dual-link Bluetooth transmitter on the TV's headphone or optical output.";
}
+ static final int SHARING_ONE_PAIR = 0, SHARING_AURACAST = 1, SHARING_NO_BROADCAST = 2;
+
+ /** Which of the three sharing texts applies, so the screen can say it in the TV's language. */
+ static int sharingCase(int sdk, int broadcastSource) {
+ if (sdk < 33) return SHARING_ONE_PAIR;
+ return broadcastSource == FEATURE_SUPPORTED ? SHARING_AURACAST : SHARING_NO_BROADCAST;
+ }
+
static String clean(String name) {
- if (name == null) return "Unnamed device";
+ return clean(name, "Unnamed device");
+ }
+
+ /** As above, with the words for a device without a name in the TV's language. */
+ static String clean(String name, String unnamed) {
+ if (name == null) return unnamed;
String n = name.replaceAll("\\p{C}", "").trim();
- if (n.isEmpty()) return "Unnamed device";
+ if (n.isEmpty()) return unnamed;
return n.length() > 40 ? n.substring(0, 40).trim() + "…" : n;
}
}
diff --git a/addons/headphones/app/src/main/res/values-fr/strings.xml b/addons/headphones/app/src/main/res/values-fr/strings.xml
new file mode 100644
index 000000000..bc4ef3a10
--- /dev/null
+++ b/addons/headphones/app/src/main/res/values-fr/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Casques</string>
+ <string name="plays_through">Le son sort actuellement par : %1$s</string>
+ <string name="output_speakers">les haut-parleurs de la TV</string>
+ <string name="output_fixed">la sortie audio de la TV (HDMI ARC ou optique)</string>
+ <string name="allow_title">Autoriser l\'accès Bluetooth</string>
+ <string name="allow_detail">Pour lister vos casques et savoir quand ils se déconnectent. OK pour autoriser.</string>
+ <string name="not_allowed">Non autorisé</string>
+ <string name="pair_title">Appairer ou connecter un casque</string>
+ <string name="pair_detail">Ouvre les réglages Bluetooth de la TV. Mettez d\'abord le casque en mode appairage.</string>
+ <string name="guard_title">Silence quand il se déconnecte</string>
+ <string name="guard_detail">Met en pause et coupe les haut-parleurs de la TV quand le casque se déconnecte, pour que le son ne parte pas dans la pièce. Rétablit le son à son retour.</string>
+ <string name="guard_detail_fixed">Met en pause quand le casque se déconnecte. Le volume de cette TV est fixe (ARC ou amplificateur), elle ne peut donc pas aussi couper les haut-parleurs.</string>
+ <string name="on">Activé</string>
+ <string name="off">Désactivé</string>
+ <string name="unmute_title">Rétablir le son des haut-parleurs</string>
+ <string name="unmute_detail">Coupé quand le casque s\'est déconnecté.</string>
+ <string name="muted">Coupé</string>
+ <string name="heading_paired">Casques et enceintes appairés</string>
+ <string name="no_bluetooth">Pas de Bluetooth sur cette TV</string>
+ <string name="bluetooth_off">Le Bluetooth est désactivé</string>
+ <string name="bluetooth_off_detail">Activez-le dans les réglages de la TV.</string>
+ <string name="none_yet">Aucun pour l\'instant</string>
+ <string name="none_yet_detail">Utilisez la ligne du dessus pour en appairer un.</string>
+ <string name="connected">Connecté</string>
+ <string name="connected_battery">Connecté, batterie %1$s</string>
+ <string name="not_connected_detail">Non connecté. OK ouvre les réglages Bluetooth pour le connecter.</string>
+ <string name="unnamed">Appareil sans nom</string>
+ <string name="heading_several">Plusieurs casques à la fois</string>
+ <string name="sharing_one_pair">Cette TV envoie le son vers un seul casque Bluetooth à la fois. Pour deux casques, utilisez un émetteur Bluetooth double liaison sur la sortie casque ou optique de la TV.</string>
+ <string name="sharing_auracast">Cette TV peut diffuser vers plusieurs casques LE Audio (Auracast) à la fois : lancez le partage depuis les réglages Bluetooth de la TV.</string>
+ <string name="sharing_no_broadcast">Cette TV envoie le son vers un seul casque Bluetooth à la fois ; elle ne gère pas la diffusion LE Audio. Pour deux casques, utilisez un émetteur Bluetooth double liaison sur la sortie casque ou optique de la TV.</string>
+</resources>
diff --git a/addons/headphones/app/src/main/res/values/strings.xml b/addons/headphones/app/src/main/res/values/strings.xml
index 827ee06f2..c7dda2517 100644
--- a/addons/headphones/app/src/main/res/values/strings.xml
+++ b/addons/headphones/app/src/main/res/values/strings.xml
@@ -1,4 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Headphones</string>
+ <string name="plays_through">Sound now plays through: %1$s</string>
+ <string name="output_speakers">the TV speakers</string>
+ <string name="output_fixed">the TV\'s audio output (HDMI ARC or optical)</string>
+ <string name="allow_title">Allow Bluetooth access</string>
+ <string name="allow_detail">To list your headphones and to notice when they drop. OK asks.</string>
+ <string name="not_allowed">Not allowed</string>
+ <string name="pair_title">Pair or connect headphones</string>
+ <string name="pair_detail">Opens the TV\'s Bluetooth settings. Put the headphones in pairing mode first.</string>
+ <string name="guard_title">Quiet when they drop</string>
+ <string name="guard_detail">Pauses what plays and mutes the TV speakers when headphones disconnect, so the sound doesn\'t jump to the room. Unmutes when they\'re back.</string>
+ <string name="guard_detail_fixed">Pauses what plays when headphones disconnect. This TV\'s volume is fixed (ARC or an amplifier), so it can\'t also mute the speakers.</string>
+ <string name="on">On</string>
+ <string name="off">Off</string>
+ <string name="unmute_title">Unmute the speakers</string>
+ <string name="unmute_detail">Muted when headphones dropped.</string>
+ <string name="muted">Muted</string>
+ <string name="heading_paired">Paired headphones and speakers</string>
+ <string name="no_bluetooth">No Bluetooth on this TV</string>
+ <string name="bluetooth_off">Bluetooth is off</string>
+ <string name="bluetooth_off_detail">Switch it on in the TV\'s settings.</string>
+ <string name="none_yet">None yet</string>
+ <string name="none_yet_detail">Use the row above to pair some.</string>
+ <string name="connected">Connected</string>
+ <string name="connected_battery">Connected, battery %1$s</string>
+ <string name="not_connected_detail">Not connected. OK opens Bluetooth settings to connect.</string>
+ <string name="unnamed">Unnamed device</string>
+ <string name="heading_several">Several headphones at once</string>
+ <string name="sharing_one_pair">This TV sends sound to one pair of Bluetooth headphones at a time. For two pairs, use a dual-link Bluetooth transmitter on the TV\'s headphone or optical output.</string>
+ <string name="sharing_auracast">This TV can broadcast to many LE Audio (Auracast) headphones at once: start sharing from the TV\'s Bluetooth settings.</string>
+ <string name="sharing_no_broadcast">This TV sends sound to one pair of Bluetooth headphones at a time; it has no LE Audio broadcast. For two pairs, use a dual-link Bluetooth transmitter on the TV\'s headphone or optical output.</string>
</resources>
diff --git a/addons/sources/README.md b/addons/sources/README.md
index 7fd72d00c..4fc6050cf 100644
--- a/addons/sources/README.md
+++ b/addons/sources/README.md
@@ -4,9 +4,10 @@ The TV's sources by the names the devices give themselves: "PlayStation 5" and "
"HDMI 3". HDMI-CEC devices report their names to the TV, which lists each one as an input under its port; this
screen shows those names (or the name you gave a port in the TV's settings), connected ones first in full
brightness, and OK switches to one. Live TV comes last. For the [Clean Your TV](../../README.md) launcher it
-declares a [module card](../../docs/modules.md): once you answer **Show card** its tile reads "Sources" with a
-green glow. On any other Android TV home it is an ordinary app. ("Inputs" is a name the launcher keeps for its own
-menu, hence Sources.)
+declares a [module card](../../docs/modules.md): once you answer **Show card** its tile reads "Devices" with a
+green glow. On any other Android TV home it is an ordinary app. (The launcher keeps the name of its own Inputs
+menu for itself, in English and in the TV's language. That is "Sources" in French, so the card is called Devices.)
+The screen is in English and French.
![Sources on a TV](screenshot.jpg)
diff --git a/addons/sources/app/src/main/java/io/github/maxhayim/sources/MainActivity.java b/addons/sources/app/src/main/java/io/github/maxhayim/sources/MainActivity.java
index df9fe0427..779c1afd9 100644
--- a/addons/sources/app/src/main/java/io/github/maxhayim/sources/MainActivity.java
+++ b/addons/sources/app/src/main/java/io/github/maxhayim/sources/MainActivity.java
@@ -74,7 +74,8 @@ public class MainActivity extends Activity {
}
}
}
- List<Sources.Row> list = Sources.rows(inputs);
+ List<Sources.Row> list = Sources.rows(inputs, new String[] {getString(R.string.state_nothing),
+ getString(R.string.state_standby), getString(R.string.state_connected)});
Row first = null;
int connected = 0;
for (Sources.Row r : list) {
@@ -86,15 +87,15 @@ public class MainActivity extends Activity {
}
if (tuner != null) {
final TvInputInfo live = tuner;
- Row row = add(new Row(this, "Live TV", "The TV's antenna or cable tuner.", () -> open(
+ Row row = add(new Row(this, getString(R.string.live_tv), getString(R.string.live_tv_detail), () -> open(
new Intent(Intent.ACTION_VIEW, TvContract.buildChannelsUriForInput(live.getId())))));
if (first == null) first = row;
}
if (first == null) {
- add(new Row(this, "No sources", "This TV reports no HDMI or tuner inputs.", null));
+ add(new Row(this, getString(R.string.no_sources), getString(R.string.no_sources_detail), null));
status.setText("");
} else {
- status.setText(connected == 1 ? "1 device connected." : connected + " devices connected.");
+ status.setText(getResources().getQuantityString(R.plurals.devices_connected, connected, connected));
first.requestFocus();
}
}
@@ -108,7 +109,7 @@ public class MainActivity extends Activity {
try {
startActivity(i);
} catch (ActivityNotFoundException | SecurityException e) {
- status.setText("This TV has no app that opens that source.");
+ status.setText(R.string.cant_open);
}
}
diff --git a/addons/sources/app/src/main/java/io/github/maxhayim/sources/Sources.java b/addons/sources/app/src/main/java/io/github/maxhayim/sources/Sources.java
index 507c2a428..af9d44c05 100644
--- a/addons/sources/app/src/main/java/io/github/maxhayim/sources/Sources.java
+++ b/addons/sources/app/src/main/java/io/github/maxhayim/sources/Sources.java
@@ -61,7 +61,15 @@ final class Sources {
private Sources() {
}
+ /** The connection states in English: nothing connected, connected in standby, connected. */
+ static final String[] STATES = {"nothing connected", "connected, in standby", "connected"};
+
static List<Row> rows(Collection<Input> inputs) {
+ return rows(inputs, STATES);
+ }
+
+ /** As above, with the three connection states in the TV's language, in the order of {@link #STATES}. */
+ static List<Row> rows(Collection<Input> inputs, String[] states) {
List<Input> ports = new ArrayList<>();
for (Input i : inputs) if (i.parentId == null) ports.add(i);
// HDMI first, by port number, then the rest by name
@@ -76,20 +84,20 @@ final class Sources {
List<Input> devices = new ArrayList<>();
for (Input i : inputs) if (port.id.equals(i.parentId)) devices.add(i);
if (devices.isEmpty()) {
- out.add(new Row(port.id, port.name(), detail(port.label, port.name(), port.connected, port.standby),
+ out.add(new Row(port.id, port.name(), detail(port.label, port.name(), port.connected, port.standby, states),
port.connected));
continue;
}
for (Input d : devices) {
- out.add(new Row(d.id, d.name(), detail(port.label, d.name(), true, d.standby), true));
+ out.add(new Row(d.id, d.name(), detail(port.label, d.name(), true, d.standby, states), true));
}
}
return out;
}
/** "HDMI 2" under a device's own name; the connection state where the port is the name. */
- static String detail(String portLabel, String name, boolean connected, boolean standby) {
- String state = !connected ? "nothing connected" : standby ? "connected, in standby" : "connected";
+ static String detail(String portLabel, String name, boolean connected, boolean standby, String[] states) {
+ String state = !connected ? states[0] : standby ? states[1] : states[2];
if (portLabel.isEmpty() || portLabel.equalsIgnoreCase(name)) return state;
return portLabel + " · " + state;
}
diff --git a/addons/sources/app/src/main/res/values-fr/strings.xml b/addons/sources/app/src/main/res/values-fr/strings.xml
new file mode 100644
index 000000000..27fd2beb8
--- /dev/null
+++ b/addons/sources/app/src/main/res/values-fr/strings.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Sources</string>
+ <string name="state_nothing">rien de branché</string>
+ <string name="state_standby">branché, en veille</string>
+ <string name="state_connected">branché</string>
+ <string name="live_tv">TV en direct</string>
+ <string name="live_tv_detail">Le tuner antenne ou câble de la TV.</string>
+ <string name="no_sources">Aucune source</string>
+ <string name="no_sources_detail">Cette TV ne signale aucune entrée HDMI ni aucun tuner.</string>
+ <string name="cant_open">Aucune appli de cette TV n\'ouvre cette source.</string>
+ <plurals name="devices_connected">
+ <item quantity="one">%1$d appareil branché.</item>
+ <item quantity="many">%1$d d\'appareils branchés.</item>
+ <item quantity="other">%1$d appareils branchés.</item>
+ </plurals>
+</resources>
diff --git a/addons/sources/app/src/main/res/values/strings.xml b/addons/sources/app/src/main/res/values/strings.xml
index 4302e8c45..884517d6c 100644
--- a/addons/sources/app/src/main/res/values/strings.xml
+++ b/addons/sources/app/src/main/res/values/strings.xml
@@ -1,4 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Sources</string>
+ <string name="state_nothing">nothing connected</string>
+ <string name="state_standby">connected, in standby</string>
+ <string name="state_connected">connected</string>
+ <string name="live_tv">Live TV</string>
+ <string name="live_tv_detail">The TV\'s antenna or cable tuner.</string>
+ <string name="no_sources">No sources</string>
+ <string name="no_sources_detail">This TV reports no HDMI or tuner inputs.</string>
+ <string name="cant_open">This TV has no app that opens that source.</string>
+ <plurals name="devices_connected">
+ <item quantity="one">%1$d device connected.</item>
+ <item quantity="other">%1$d devices connected.</item>
+ </plurals>
</resources>
diff --git a/addons/sources/app/src/main/res/xml/module_card.xml b/addons/sources/app/src/main/res/xml/module_card.xml
index 6fe529715..9cb6e76c0 100644
--- a/addons/sources/app/src/main/res/xml/module_card.xml
+++ b/addons/sources/app/src/main/res/xml/module_card.xml
@@ -1,2 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
-<card spec="1" label="Sources" caption="Devices by name" accent="#3DDC84" />
+<!-- Not "Sources": on a TV in French that is what the launcher's own Inputs pill says, so the
+ launcher reserves it and drops the card. A card label is not localisable in spec 1. -->
+<card spec="1" label="Devices" caption="Sources by name" accent="#3DDC84" />
diff --git a/addons/weather/README.md b/addons/weather/README.md
index fdf89b4db..853fda99b 100644
--- a/addons/weather/README.md
+++ b/addons/weather/README.md
@@ -16,7 +16,7 @@ sky-blue glow; on any other Android TV home it is an ordinary app.
"light rain" at 1 °C (ICON and GFS did, in a Ulaanbaatar blizzard). The app decides by the wet-bulb
temperature instead, which counts how dry the air is: at 1 °C or below, rain and drizzle are shown as snow.
- It reads Open-Meteo only while the page is on screen, every 30 minutes, or 5 minutes after a failure.
-- Degrees Celsius, English words; day names follow the TV's language.
+- Degrees Celsius; English or French words, with the TV's language; day names follow the TV's language.
## Options
diff --git a/addons/weather/app/src/main/res/values-fr/strings.xml b/addons/weather/app/src/main/res/values-fr/strings.xml
new file mode 100644
index 000000000..6461f6716
--- /dev/null
+++ b/addons/weather/app/src/main/res/values-fr/strings.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Météo</string>
+
+ <string name="feels_like">Ressenti %1$d°</string>
+ <string name="humidity">Humidité %1$d %%</string>
+ <string name="wind">Vent %1$d km/h</string>
+ <string name="high_low">%1$d° / %2$d°</string>
+ <string name="aqi_line">Qualité de l\'air %1$d · %2$s</string>
+ <string name="updated">Mis à jour à %1$s · Open-Meteo</string>
+ <string name="change_city">Changer de ville</string>
+ <string name="loading">Chargement de la météo…</string>
+ <string name="offline">Open-Meteo est injoignable. Vérifiez la connexion Internet de la TV ; nouvel essai dans 5 minutes.</string>
+
+ <string name="pick_title">Quelle ville ?</string>
+ <string name="pick_hint">Nom de la ville, par ex. Lyon</string>
+ <string name="pick_search">Rechercher</string>
+ <string name="pick_none">Aucun lieu nommé « %1$s »</string>
+ <string name="pick_first">Choisissez une ville pour voir sa météo.</string>
+
+ <string name="aqi_good">Bonne</string>
+ <string name="aqi_moderate">Moyenne</string>
+ <string name="aqi_sensitive">Mauvaise pour les personnes sensibles</string>
+ <string name="aqi_unhealthy">Mauvaise</string>
+ <string name="aqi_very_unhealthy">Très mauvaise</string>
+ <string name="aqi_hazardous">Dangereuse</string>
+
+ <string name="sky_clear">Dégagé</string>
+ <string name="sky_sunny">Ensoleillé</string>
+ <string name="sky_mostly_clear">Plutôt dégagé</string>
+ <string name="sky_mostly_sunny">Plutôt ensoleillé</string>
+ <string name="sky_partly_cloudy">Partiellement nuageux</string>
+ <string name="sky_cloudy">Nuageux</string>
+ <string name="sky_fog">Brouillard</string>
+ <string name="sky_drizzle">Bruine</string>
+ <string name="sky_freezing_drizzle">Bruine verglaçante</string>
+ <string name="sky_light_rain">Pluie faible</string>
+ <string name="sky_rain">Pluie</string>
+ <string name="sky_heavy_rain">Forte pluie</string>
+ <string name="sky_freezing_rain">Pluie verglaçante</string>
+ <string name="sky_light_snow">Neige faible</string>
+ <string name="sky_snow">Neige</string>
+ <string name="sky_heavy_snow">Forte neige</string>
+ <string name="sky_snow_grains">Neige en grains</string>
+ <string name="sky_showers">Averses</string>
+ <string name="sky_snow_showers">Averses de neige</string>
+ <string name="sky_thunderstorm">Orage</string>
+</resources>