chart translation

This commit is contained in:
smayzy 2025-05-25 17:07:53 +02:00
parent 60831c9fa0
commit 5a8279c683
7 changed files with 14 additions and 2 deletions

View File

@ -220,7 +220,7 @@ class MainActivity : AppCompatActivity() {
humEntries.add(Entry(reading.secSinceStart.toFloat(), reading.humidity))
}
val tempSet = LineDataSet(tempEntries, "Temperature (°C)").apply {
val tempSet = LineDataSet(tempEntries, getString(R.string.temp_tx)).apply {
color = Color.RED
lineWidth = 2f
setDrawCircles(false)
@ -229,7 +229,7 @@ class MainActivity : AppCompatActivity() {
fillDrawable = ContextCompat.getDrawable(this@MainActivity, R.drawable.gradiant_temp)
}
val humSet = LineDataSet(humEntries, "Humidity (%)").apply {
val humSet = LineDataSet(humEntries, getString(R.string.hum_tx)).apply {
color = Color.BLUE
lineWidth = 2f
setDrawCircles(false)

View File

@ -7,4 +7,6 @@
<string name="is_testing_mode">Die Anwendung läuft im Testmodus, die Werte sind zufällig</string>
<string name="hc05_not_found">HC-05 nicht gefunden, versuchen Sie, es über Bluetooth mit Ihrem Telefon zu koppeln</string>
<string name="connection_failed">Verbindung fehlgeschlagen</string>
<string name="temp_tx">Temperatur (°C)</string>
<string name="hum_tx">Luftfeuchtigkeit (%)</string>
</resources>

View File

@ -7,4 +7,6 @@
<string name="is_testing_mode">La aplicación se está ejecutando en modo de prueba los valores son aleatorios</string>
<string name="hc05_not_found">HC-05 no encontrado, intente emparejarlo a su teléfono a través de bluetooth</string>
<string name="connection_failed">Error de conexión</string>
<string name="temp_tx">Temperatura (°C)</string>
<string name="hum_tx">Humedad (%)</string>
</resources>

View File

@ -7,4 +7,6 @@
<string name="is_testing_mode">L\'application est en mode de test les valeurs sont aléatoires</string>
<string name="hc05_not_found">HC-05 introuvable, essayez de l\'apparailler a votre téléphone en bluetooth</string>
<string name="connection_failed">Connexion impossible</string>
<string name="temp_tx">Température (°C)</string>
<string name="hum_tx">Humidité (%)</string>
</resources>

View File

@ -7,4 +7,6 @@
<string name="is_testing_mode">アプリはテストモードで動作しており、値はランダムです。</string>
<string name="hc05_not_found">HC-05が見つかりません。ブルートゥースで携帯電話とペアリングしてみてください。</string>
<string name="connection_failed">接続に失敗</string>
<string name="temp_tx">温度 (°C)</string>
<string name="hum_tx">湿度(%)</string>
</resources>

View File

@ -7,4 +7,6 @@
<string name="is_testing_mode">应用程序在测试模式下运行,数值是随机的</string>
<string name="hc05_not_found">HC-05 未找到,请尝试通过蓝牙将其与手机配对</string>
<string name="connection_failed">连接失败</string>
<string name="temp_tx">温度°C</string>
<string name="hum_tx">湿度 (%)</string>
</resources>

View File

@ -8,6 +8,8 @@
<string name="is_testing_mode">The app is running in testing mode the values are random</string>
<string name="hc05_not_found">HC-05 not found, try pairing it to your phone via bluetooth</string>
<string name="connection_failed">Connection failed</string>
<string name="temp_tx">Temperature (°C)</string>
<string name="hum_tx">Humidity (%)</string>
<string name="temp_format" translatable="false">%.1f°C</string>