Skip to content

Commit d4fb64b

Browse files
committed
feat: Update localization files and improve UI text handling
1 parent 8280e45 commit d4fb64b

File tree

10 files changed

+76
-20
lines changed

10 files changed

+76
-20
lines changed

client/assets/i18n/de.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-03-08 01:42+0800\n"
11+
"POT-Creation-Date: 2026-03-08 13:16+0800\n"
1212
"PO-Revision-Date: 2025-09-09 14:10+0800\n"
1313
"Last-Translator: Automatically generated\n"
1414
"Language-Team: none\n"
@@ -231,6 +231,12 @@ msgstr "Nicht festgelegt"
231231
msgid "Duration"
232232
msgstr "Dauer"
233233

234+
#: devices\borneo\lyfi\views\acclimation_screen.dart:120
235+
#: devices\borneo\lyfi\views\acclimation_screen.dart:132
236+
#, python-brace-format
237+
msgid "{d} days"
238+
msgstr "{d} Tage"
239+
234240
#: devices\borneo\lyfi\views\acclimation_screen.dart:127
235241
msgid "Select Duration"
236242
msgstr "Dauer auswählen"
@@ -434,6 +440,11 @@ msgstr "Abnehmende Sichel"
434440
msgid "Moonlight"
435441
msgstr "Mondlicht"
436442

443+
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:81
444+
#, python-brace-format
445+
msgid "Rises at {t}"
446+
msgstr "Geht um {t} auf"
447+
437448
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:82
438449
msgid "Daytime"
439450
msgstr "Tagsüber"

client/assets/i18n/en_US.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-03-08 01:42+0800\n"
11+
"POT-Creation-Date: 2026-03-08 13:16+0800\n"
1212
"PO-Revision-Date: 2025-06-01 20:57+0800\n"
1313
"Last-Translator: Automatically generated\n"
1414
"Language-Team: none\n"
@@ -231,6 +231,12 @@ msgstr ""
231231
msgid "Duration"
232232
msgstr ""
233233

234+
#: devices\borneo\lyfi\views\acclimation_screen.dart:120
235+
#: devices\borneo\lyfi\views\acclimation_screen.dart:132
236+
#, python-brace-format
237+
msgid "{d} days"
238+
msgstr ""
239+
234240
#: devices\borneo\lyfi\views\acclimation_screen.dart:127
235241
msgid "Select Duration"
236242
msgstr ""
@@ -430,6 +436,11 @@ msgstr ""
430436
msgid "Moonlight"
431437
msgstr ""
432438

439+
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:81
440+
#, python-brace-format
441+
msgid "Rises at {t}"
442+
msgstr ""
443+
433444
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:82
434445
msgid "Daytime"
435446
msgstr ""

client/assets/i18n/es.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-03-08 01:42+0800\n"
11+
"POT-Creation-Date: 2026-03-08 13:16+0800\n"
1212
"PO-Revision-Date: 2026-01-03 14:43+0800\n"
1313
"Last-Translator: Automatically generated\n"
1414
"Language-Team: none\n"
@@ -231,6 +231,12 @@ msgstr "No establecido"
231231
msgid "Duration"
232232
msgstr "Duración"
233233

234+
#: devices\borneo\lyfi\views\acclimation_screen.dart:120
235+
#: devices\borneo\lyfi\views\acclimation_screen.dart:132
236+
#, python-brace-format
237+
msgid "{d} days"
238+
msgstr "{d} días"
239+
234240
#: devices\borneo\lyfi\views\acclimation_screen.dart:127
235241
msgid "Select Duration"
236242
msgstr "Seleccionar Duración"
@@ -434,6 +440,11 @@ msgstr "Menguante"
434440
msgid "Moonlight"
435441
msgstr "Luz de la luna"
436442

443+
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:81
444+
#, python-brace-format
445+
msgid "Rises at {t}"
446+
msgstr "Sale a las {t}"
447+
437448
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:82
438449
msgid "Daytime"
439450
msgstr "Durante el día"

client/assets/i18n/messages.pot

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: PACKAGE VERSION\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2026-03-08 01:42+0800\n"
12+
"POT-Creation-Date: 2026-03-08 13:17+0800\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -231,6 +231,12 @@ msgstr ""
231231
msgid "Duration"
232232
msgstr ""
233233

234+
#: devices\borneo\lyfi\views\acclimation_screen.dart:120
235+
#: devices\borneo\lyfi\views\acclimation_screen.dart:132
236+
#, python-brace-format
237+
msgid "{d} days"
238+
msgstr ""
239+
234240
#: devices\borneo\lyfi\views\acclimation_screen.dart:127
235241
msgid "Select Duration"
236242
msgstr ""
@@ -430,6 +436,11 @@ msgstr ""
430436
msgid "Moonlight"
431437
msgstr ""
432438

439+
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:81
440+
#, python-brace-format
441+
msgid "Rises at {t}"
442+
msgstr ""
443+
433444
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:82
434445
msgid "Daytime"
435446
msgstr ""

client/assets/i18n/zh_CN.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-03-08 01:42+0800\n"
11+
"POT-Creation-Date: 2026-03-08 13:16+0800\n"
1212
"PO-Revision-Date: 2024-12-22 15:38+0800\n"
1313
"Last-Translator: Automatically generated\n"
1414
"Language-Team: none\n"
@@ -230,6 +230,12 @@ msgstr "未设置"
230230
msgid "Duration"
231231
msgstr "持续时间"
232232

233+
#: devices\borneo\lyfi\views\acclimation_screen.dart:120
234+
#: devices\borneo\lyfi\views\acclimation_screen.dart:132
235+
#, python-brace-format
236+
msgid "{d} days"
237+
msgstr "{d}天"
238+
233239
#: devices\borneo\lyfi\views\acclimation_screen.dart:127
234240
msgid "Select Duration"
235241
msgstr "选择时长"
@@ -431,6 +437,11 @@ msgstr "残月"
431437
msgid "Moonlight"
432438
msgstr "月光"
433439

440+
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:81
441+
#, python-brace-format
442+
msgid "Rises at {t}"
443+
msgstr "在 {t} 升起"
444+
434445
#: devices\borneo\lyfi\views\dashboard\dashboard_moon_tile.dart:82
435446
msgid "Daytime"
436447
msgstr "日间"

client/lib/devices/borneo/lyfi/views/acclimation_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class AcclimationScreen extends StatelessWidget {
117117
),
118118
SettingsTile.navigation(
119119
title: Text(context.translate('Duration')),
120-
value: Text('${vm.days.round().toString()} ${context.translate('days')}'),
120+
value: Text(context.translate('{d} days', nArgs: {'d': vm.days.round().toString()})),
121121
onPressed: !vm.isBusy && vm.isOnline
122122
? (bc) async {
123123
final options = [5, 7, 15, 30, 60, 100].map((e) => e.toDouble()).toList();
@@ -129,7 +129,7 @@ class AcclimationScreen extends StatelessWidget {
129129
.map(
130130
(d) => GenericBottomSheetPickerEntry(
131131
value: d,
132-
label: '${d.round()} ${context.translate('days')}',
132+
label: context.translate('{d} days', nArgs: {'d': d.round().toString()}),
133133
),
134134
)
135135
.toList(),

client/lib/devices/borneo/lyfi/views/dashboard/dashboard_moon_tile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class DashboardMoonTile extends StatelessWidget {
7878
final String subtitle = isMoonActive && moonStatus != null
7979
? '${moonStatus.illumination.toStringAsFixed(0)}%'
8080
: props.nextMoonTime != null
81-
? '${context.translate('Rises at')} ${props.nextMoonTime!}'
81+
? context.translate('Rises at {t}', nArgs: {'t': props.nextMoonTime!.toString()})
8282
: context.translate('Daytime');
8383

8484
return DashboardTile(

client/lib/devices/borneo/lyfi/views/editor/manual_editor_view.dart

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,17 @@ class ManualEditorView extends StatelessWidget {
124124
Widget build(BuildContext context) {
125125
return ChangeNotifierProvider.value(
126126
value: viewModel,
127-
builder: (context, child) => Column(
128-
spacing: 16,
129-
children: [
130-
Container(
131-
color: Theme.of(context).scaffoldBackgroundColor,
132-
padding: const EdgeInsets.fromLTRB(16, 16, 16, 8),
133-
child: AspectRatio(aspectRatio: 2.75, child: buildGraph(context)),
134-
),
135-
Expanded(child: buildSliders(context)),
136-
],
127+
builder: (context, child) => Expanded(
128+
child: Column(
129+
spacing: 24,
130+
children: [
131+
Padding(
132+
padding: const EdgeInsets.fromLTRB(16, 16, 16, 0),
133+
child: SizedBox(height: 150, child: buildGraph(context)),
134+
),
135+
Expanded(child: buildSliders(context)),
136+
],
137+
),
137138
),
138139
);
139140
}

client/lib/devices/borneo/lyfi/views/settings_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SettingsScreen extends StatelessWidget {
3636
viewModel: vm,
3737
child: Scaffold(
3838
appBar: AppBar(title: Text(context.translate('Settings')), elevation: 1),
39-
body: _buildSettingsList(context),
39+
body: SafeArea(child: _buildSettingsList(context)),
4040
),
4141
),
4242
);

client/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 0.5.9
19+
version: 0.5.10
2020

2121
workspace:
2222
- packages/lw_wot

0 commit comments

Comments
 (0)