Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interface/src/app/main/Commands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Commands = () => {
return (
<ListPage list={list}>
<Section
desc={`${LL.COMMANDS_HELP_1()}.`}
desc={`${LL.COMMANDS_HELP_1()}`}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove the fullstop?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some languages have this in the HELP_1 text. I'll unify it.

title={LL.COMMANDS()}
icon="playlist_play"
actions={
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/main/Scheduler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const Scheduler = () => {
>
<td className="sch-act" onClick={(e) => e.stopPropagation()}>
<Switch
label={<span className="sr-only">{`${LL.ACTIVE()} ${si.name}`}</span>}
label={<span className="sr-only">{`${LL.ACTIVE(2)} ${si.name}`}</span>}
checked={si.active}
disabled={deleted}
onChange={(active) => list.update(key, { ...si, active })}
Expand Down Expand Up @@ -238,7 +238,7 @@ const Scheduler = () => {
<thead>
<tr>
<SortHeader className="sch-act" {...sort.header('active')}>
{LL.ACTIVE()}
{LL.ACTIVE(2)}
</SortHeader>
<SortHeader {...sort.header('name')}>{LL.NAME(0)}</SortHeader>
<SortHeader {...sort.header('schedule')}>
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/main/SchedulerDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const SchedulerDialog = ({
)}
{type === ScheduleFlag.SCHEDULE_CONDITION && (
<TextArea
label={LL.CONDITION()}
label={LL.CONDITION(1)}
rows={2}
placeholder="boiler/outdoortemp < 0"
{...f.text('time')}
Expand All @@ -203,7 +203,7 @@ const SchedulerDialog = ({
{...f.select('cmd_name')}
/>
<TextField label={LL.NAME(0)} mono {...f.text('name')} />
<Switch label={LL.ACTIVE()} {...f.check('active')} />
<Switch label={LL.ACTIVE(2)} {...f.check('active')} />
</>
);
}}
Expand Down
2 changes: 1 addition & 1 deletion interface/src/app/main/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const UserProfile = () => {
{me.admin && (
<p className="cap profile-note">
{LL.LANGUAGE_ENTITIES_HINT()}{' '}
<Link to="/settings/application">{LL.APPLICATION()}</Link>
<Link to="/settings/application">{LL.APPLICATION(1)}</Link>
</p>
)}
</Section>
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/main/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const SCHEDULE_TYPES: {
icon: 'calendar_month',
label: (LL) => LL.WEEKLY()
},
{ flag: ScheduleFlag.SCHEDULE_TIMER, icon: 'timer', label: (LL) => LL.TIMER(0) },
{ flag: ScheduleFlag.SCHEDULE_TIMER, icon: 'timer', label: (LL) => LL.TIMER(1) },
{
flag: ScheduleFlag.SCHEDULE_ONCHANGE,
icon: 'change_circle',
Expand All @@ -47,7 +47,7 @@ export const SCHEDULE_TYPES: {
{
flag: ScheduleFlag.SCHEDULE_CONDITION,
icon: 'rule',
label: (LL) => LL.CONDITION()
label: (LL) => LL.CONDITION(0)
}
];

Expand Down
10 changes: 5 additions & 5 deletions interface/src/app/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ export const routes: AppRoute[] = [
{ path: '/status', element: Status, title: (LL) => LL.STATUS(), icon: 'assessment', menu: 'system', wildcard: true },
{ path: '/status/hardwarestatus', element: HardwareStatus, title: (LL) => LL.HARDWARE(), icon: 'memory', parent: '/status', wildcard: true },
{ path: '/status/activity', element: Activity, title: (LL) => LL.DATA_TRAFFIC(), icon: 'swap_horiz', parent: '/status' },
{ path: '/status/network', element: NetworkStatus, title: (LL) => LL.NETWORK(1), icon: 'lan', parent: '/status' },
{ path: '/status/network', element: NetworkStatus, title: (LL) => LL.NETWORK(), icon: 'lan', parent: '/status' },
{ path: '/status/mqtt', element: MqttStatus, title: () => 'MQTT', icon: 'device_hub', parent: '/status' },
{ path: '/status/ntp', element: NTPStatus, title: () => 'NTP', icon: 'schedule', parent: '/status' },
{ path: '/status/ntp', element: NTPStatus, title: (LL) => LL.NTP(), icon: 'schedule', parent: '/status' },
{ path: '/status/ap', element: APStatus, title: (LL) => LL.ACCESS_POINT(0), icon: 'wifi_tethering', parent: '/status' },
{ path: '/status/log', element: SystemLog, title: (LL) => LL.SYSTEM_LOG(), icon: 'list_alt', parent: '/status' },
// old address of the firmware page, kept for bookmarks
{ path: '/status/version', element: () => <Navigate replace to="/settings/version" />, title: () => 'EMS-ESP Firmware', icon: 'new_releases', parent: '/settings' },

{ path: '/settings', element: Settings, title: (LL) => LL.SETTINGS(0), icon: 'settings', menu: 'system', badge: 'update' },
{ path: '/settings/application', element: ApplicationSettings, title: (LL) => LL.APPLICATION(), icon: 'settings_applications', parent: '/settings', admin: true },
{ path: '/settings/application', element: ApplicationSettings, title: (LL) => LL.APPLICATION(0), icon: 'settings_applications', parent: '/settings', admin: true },
{
path: '/settings/network',
element: Network,
title: (LL) => LL.NETWORK(0),
title: (LL) => LL.NETWORK(),
icon: 'settings_ethernet',
parent: '/settings',
admin: true,
Expand All @@ -98,7 +98,7 @@ export const routes: AppRoute[] = [
)
},
{ path: '/settings/ap', element: APSettings, title: (LL) => LL.ACCESS_POINT(0), icon: 'wifi_tethering', parent: '/settings', admin: true },
{ path: '/settings/ntp', element: NTPSettings, title: () => 'NTP', icon: 'schedule', parent: '/settings', admin: true },
{ path: '/settings/ntp', element: NTPSettings, title: (LL) => LL.NTP(), icon: 'schedule', parent: '/settings', admin: true },
{ path: '/settings/mqtt', element: MqttSettings, title: () => 'MQTT', icon: 'device_hub', parent: '/settings', admin: true },
{
path: '/settings/security',
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/settings/MqttSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const MqttSettings = () => {

<FormSection
icon="dns"
title={LL.BROKER()}
title={LL.BROKER(0)}
actions={
data.enabled && (
<Button color="secondary" icon="refresh" onClick={sendResetMQTT}>
Expand All @@ -141,7 +141,7 @@ const MqttSettings = () => {
{data.enabled && (
<>
<TextField
label={LL.ADDRESS_OF(LL.BROKER())}
label={LL.ADDRESS_OF(LL.BROKER(1))}
mono
{...form.text('host')}
/>
Expand Down
2 changes: 1 addition & 1 deletion interface/src/app/settings/NTPSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const NTPClock = ({ canSetTime }: { canSetTime: boolean }) => {
<div className="ntp-time">{time}</div>
<div className="cap">
{LL.NTP_TIME_ON_DEVICE()}
{status && ` · NTP ${ntpInfo(status.status, LL).text}`}
{status && ` · ${LL.NTP()} ${ntpInfo(status.status, LL).text}`}
</div>
</div>
{canSetTime && (
Expand Down
8 changes: 4 additions & 4 deletions interface/src/app/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Settings = () => {
to: 'network',
icon: 'settings_ethernet',
color: '#40828f',
title: LL.NETWORK(0),
title: LL.NETWORK(),
text: LL.NETWORK_DESC(),
value: networkValue,
state: network?.state
Expand All @@ -75,7 +75,7 @@ const Settings = () => {
color: '#5f9a5f',
title: LL.ACCESS_POINT(0),
text: LL.AP_DESC(),
value: data && (data.ap_status ? LL.ACTIVE() : LL.INACTIVE(0)),
value: data && (data.ap_status ? LL.ACTIVE(2) : LL.INACTIVE(0)),
state: data && (data.ap_status ? 'ok' : 'off')
},
{
Expand All @@ -96,15 +96,15 @@ const Settings = () => {
to: 'application',
icon: 'settings_applications',
color: '#134ba2',
title: LL.APPLICATION(),
title: LL.APPLICATION(0),
text: LL.APPLICATION_DESC(),
value: data && (data.model || data.board)
},
{
to: 'ntp',
icon: 'schedule',
color: '#c5572c',
title: 'NTP',
title: LL.NTP(),
text: LL.NTP_DESC(),
value: ntp?.text,
state: ntp?.state
Expand Down
2 changes: 1 addition & 1 deletion interface/src/app/settings/Version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ const Version = () => {
{
label: LL.PARTITION(),
value: info.partition,
extra: info.partition === data.partition && LL.ACTIVE()
extra: info.partition === data.partition && LL.ACTIVE(1)
},
info.partition === data.partition && {
label: LL.PLATFORM(),
Expand Down
2 changes: 1 addition & 1 deletion interface/src/app/settings/network/Network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Network = () => {
return (
<WiFiConnectionContext.Provider value={{ form, status, selectNetwork }}>
<TabNav
label={LL.NETWORK(0)}
label={LL.NETWORK()}
items={[
{
to: BASE + 'settings',
Expand Down
4 changes: 2 additions & 2 deletions interface/src/app/status/MqttStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ const MqttStatus = () => {
<Stat value={nf.format(data.mqtt_queued)} label={LL.MQTT_QUEUE()} />
<Stat
value={nf.format(data.mqtt_fails)}
label={LL.MQTT_ERRORS()}
label={LL.MQTT_ERRORS(data.mqtt_fails)}
warn={data.mqtt_fails > 0}
/>
<Stat value={nf.format(data.connect_count)} label={LL.CONNECTS()} />
<Stat value={nf.format(data.connect_count)} label={LL.CONNECTS(data.connect_count)} />
</StatRow>
)}
</StatusPage>
Expand Down
2 changes: 1 addition & 1 deletion interface/src/app/status/NTPStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const NTPStatus = () => {
<StatusPage
state={state}
icon="schedule"
title={`NTP ${text}`}
title={`${LL.NTP()} ${text}`}
text={enabled ? data.server : undefined}
settings={{ to: '/settings/ntp', label: LL.NTP_SETTINGS() }}
rows={[
Expand Down
6 changes: 3 additions & 3 deletions interface/src/app/status/SystemStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const SystemStatus = () => {
to="/status/network"
icon={networkIcon(data.network_status)}
color={STATE_COLORS[network.state]}
title={LL.NETWORK(1)}
title={LL.NETWORK()}
text={join(
network.text,
data.network_ip,
Expand All @@ -167,7 +167,7 @@ const SystemStatus = () => {
to="/status/ntp"
icon="schedule"
color={STATE_COLORS[ntp.state]}
title="NTP"
title={LL.NTP()}
text={join(
ntp.text,
data.ntp_status === NTPSyncStatus.NTP_ACTIVE &&
Expand All @@ -181,7 +181,7 @@ const SystemStatus = () => {
icon={data.ap_status ? 'wifi_tethering' : 'wifi_tethering_off'}
color={STATE_COLORS[data.ap_status ? 'ok' : 'off']}
title={LL.ACCESS_POINT(0)}
text={data.ap_status ? LL.ACTIVE() : LL.INACTIVE(0)}
text={data.ap_status ? LL.ACTIVE(2) : LL.INACTIVE(0)}
state={data.ap_status ? 'ok' : 'off'}
/>
<Tile
Expand Down
8 changes: 4 additions & 4 deletions interface/src/app/status/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ export const networkInfo = (status: NetworkConnectionStatus, LL: LL): StatusInfo
export const ntpInfo = (status: NTPSyncStatus, LL: LL): StatusInfo => {
switch (status) {
case NTPSyncStatus.NTP_DISABLED:
return { state: 'off', text: LL.NOT_ENABLED() };
return { state: 'off', text: LL.NOT_ENABLED(0) };
case NTPSyncStatus.NTP_INACTIVE:
return { state: 'err', text: LL.INACTIVE(0) };
case NTPSyncStatus.NTP_ACTIVE:
return { state: 'ok', text: LL.ACTIVE() };
return { state: 'ok', text: LL.ACTIVE(3) };
default:
return { state: 'warn', text: LL.UNKNOWN() };
}
Expand All @@ -126,7 +126,7 @@ export const mqttInfo = (
{ enabled, connected }: Pick<MqttStatusType, 'enabled' | 'connected'>,
LL: LL
): StatusInfo => {
if (!enabled) return { state: 'off', text: LL.NOT_ENABLED() };
if (!enabled) return { state: 'off', text: LL.NOT_ENABLED(2) };
return connected
? { state: 'ok', text: LL.CONNECTED(0) }
: { state: 'err', text: LL.DISCONNECTED() };
Expand All @@ -135,7 +135,7 @@ export const mqttInfo = (
export const apInfo = (status: APStatusType['status'], LL: LL): StatusInfo => {
switch (status) {
case APNetworkStatus.ACTIVE:
return { state: 'ok', text: LL.ACTIVE() };
return { state: 'ok', text: LL.ACTIVE(2) };
case APNetworkStatus.INACTIVE:
return { state: 'off', text: LL.INACTIVE(0) };
case APNetworkStatus.LINGERING:
Expand Down
2 changes: 1 addition & 1 deletion interface/src/components/ui/gallery/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ const Gallery = () => {
to: '/settings/ntp',
icon: 'schedule',
color: '#c5572c',
title: 'NTP',
title: LL.NTP(),
value: 'value at the right',
state: 'ok'
}
Expand Down
3 changes: 2 additions & 1 deletion interface/src/i18n/cs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const cs: Translation = {
DOWNLOAD_SUCCESSFUL: 'Stáhnout úspěšně', // DeepL
INVALID_LOGIN: 'Nesprávné uživatelské jméno nebo heslo', // DeepL
NETWORK: 'Síť',
NTP: 'Synchronizace času (NTP)', // DeepL
SECURITY: 'Zabezpečení',
ONOFF_CAP: 'ZAP/VYP',
ONOFF: 'zapnuto/vypnuto', // DeepL
Expand Down Expand Up @@ -385,7 +386,7 @@ const cs: Translation = {
TIME: 'Čas',
TIMER: 'Časovač',
ONCHANGE: 'Při změně',
CONDITION: 'Podmínka',
CONDITION: 'Podmín{{ka|ěný}}',
SCHEDULE_UPDATED: 'Aktualizovaný rozvrh', // DeepL
CUSTOM_ENTITIES: 'Vlastní entity',
ENTITIES_HELP_1: 'Definujte vlastní entity EMS nebo dynamické uživatelské proměnné', // DeepL
Expand Down
3 changes: 2 additions & 1 deletion interface/src/i18n/de/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const de: Translation = {
DOWNLOAD_SUCCESSFUL: 'Erfolgreicher Download', // DeepL
INVALID_LOGIN: 'Falscher Benutzername oder falsches Passwort', // DeepL
NETWORK: 'Netzwerk',
NTP: 'Zeitsynchronisation (NTP)',
SECURITY: 'Sicherheit',
ONOFF_CAP: 'EIN/AUS', // DeepL
ONOFF: 'Ein/Aus', // DeepL
Expand Down Expand Up @@ -385,7 +386,7 @@ const de: Translation = {
TIME: 'Zeit',
TIMER: 'Timer',
ONCHANGE: 'Bei Änderungen', // DeepL
CONDITION: 'Bedingung', // DeepL
CONDITION: 'Beding{{ung|ter}}', // DeepL
SCHEDULE_UPDATED: 'Zeitplan aktualisiert',
CUSTOM_ENTITIES: 'Benutzerdefinierte Entitäten', // DeepL
ENTITIES_HELP_1: 'Definieren Sie benutzerdefinierte EMS-Entitäten oder dynamische Benutzervariablen', // DeepL
Expand Down
5 changes: 3 additions & 2 deletions interface/src/i18n/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const en: Translation = {
DOWNLOAD_SUCCESSFUL: 'Download successful',
INVALID_LOGIN: 'Incorrect username or password',
NETWORK: 'Network',
NTP: 'Time synchronisation (NTP)',
SECURITY: 'Security',
ONOFF_CAP: 'ON/OFF',
ONOFF: 'on/off',
Expand Down Expand Up @@ -385,7 +386,7 @@ const en: Translation = {
TIME: 'Time',
TIMER: 'Timer',
ONCHANGE: 'On change',
CONDITION: 'Condition',
CONDITION: 'Condition{{|al}}',
SCHEDULE_UPDATED: 'Schedule updated',
CUSTOM_ENTITIES: 'Custom Entities',
ENTITIES_HELP_1: 'Define custom EMS entities or dynamic user variables',
Expand Down Expand Up @@ -453,7 +454,7 @@ const en: Translation = {
TEST_EMAIL_SUCCESSFUL: 'Test email sent',
SYSTEM_NAME: 'System name',
COMMANDS: 'Commands',
COMMANDS_HELP_1: 'Define reusable named commands below. These can be executed from the console, API/MQTT, or referenced by the Scheduler',
COMMANDS_HELP_1: 'Define reusable named commands below. These can be executed from the console, API/MQTT, or referenced by the Scheduler.',
COMMAND_EXECUTED: 'Command executed',
RUN: 'Run',
INTERNET_CONNECTION_CHECK: 'Checking online for available versions',
Expand Down
3 changes: 2 additions & 1 deletion interface/src/i18n/fr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const fr: Translation = {
DOWNLOAD_SUCCESSFUL: 'Téléchargement réussi', // DeepL
INVALID_LOGIN: 'Nom d\'utilisateur ou mot de passe incorrect', // DeepL
NETWORK: 'Réseau',
NTP: 'Synchronisation de l\'heure (NTP)', // DeepL
SECURITY: 'Sécurité',
ONOFF_CAP: 'MARCHE/ARRÊT', // DeepL
ONOFF: 'marche/arrêt', // DeepL
Expand Down Expand Up @@ -385,7 +386,7 @@ const fr: Translation = {
TIME: 'Heure', // DeepL
TIMER: 'Minuterie', // DeepL
ONCHANGE: 'En cas de modification', // DeepL
CONDITION: 'Condition',
CONDITION: 'Condition{{|nel}}',
SCHEDULE_UPDATED: 'Calendrier mis à jour', // DeepL
CUSTOM_ENTITIES: 'Entités personnalisées',
ENTITIES_HELP_1: 'Définissez des entités EMS personnalisées ou des variables utilisateur dynamiques', // DeepL
Expand Down
3 changes: 2 additions & 1 deletion interface/src/i18n/hu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const hu: Translation = {
DOWNLOAD_SUCCESSFUL: 'Sikeres letöltés',
INVALID_LOGIN: 'Helytelen felhasználónév vagy jelszó', // DeepL
NETWORK: 'Hálózat',
NTP: 'Időszinkronizálás (NTP)', // DeepL
SECURITY: 'Biztonság',
ONOFF_CAP: 'BE/KI',
ONOFF: 'be/ki',
Expand Down Expand Up @@ -385,7 +386,7 @@ const hu: Translation = {
TIME: 'Idő', // DeepL
TIMER: 'Időzítő',
ONCHANGE: 'Változás esetén', // DeepL
CONDITION: 'Feltétel',
CONDITION: 'Feltétel{{|es}}',
SCHEDULE_UPDATED: 'Ütemező frissült', // DeepL
CUSTOM_ENTITIES: 'Egyéni entitások', // DeepL
ENTITIES_HELP_1: 'Egyéni EMS-entitások vagy dinamikus felhasználói változók definiálása', // DeepL
Expand Down
5 changes: 3 additions & 2 deletions interface/src/i18n/it/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const it: Translation = {
DOWNLOAD_SUCCESSFUL: 'Scarica con successo', // DeepL
INVALID_LOGIN: 'Nome utente o password errati', // DeepL
NETWORK: 'Rete',
NTP: 'Sincronizzazione dell\'ora (NTP)', // DeepL
SECURITY: 'Sicurezza',
ONOFF_CAP: 'ON/OFF',
ONOFF: 'on/off',
Expand Down Expand Up @@ -385,7 +386,7 @@ const it: Translation = {
TIME: 'Ora',
TIMER: 'Timer', // DeepL
ONCHANGE: 'In caso di modifica', // DeepL
CONDITION: 'Condizione',
CONDITION: 'Condizion{{e|ale}}',
SCHEDULE_UPDATED: 'Programma eventi aggiornato', // DeepL
CUSTOM_ENTITIES: 'Entità personalizzate',
ENTITIES_HELP_1: 'Definisci entità EMS personalizzate o variabili utente dinamiche', // DeepL
Expand Down Expand Up @@ -453,7 +454,7 @@ const it: Translation = {
TEST_EMAIL_SUCCESSFUL: 'Email di prova inviata', // DeepL
SYSTEM_NAME: 'Nome del sistema',
COMMANDS: 'Comandi',
COMMANDS_HELP_1: 'Definisci qui sotto i comandi con nome riutilizzabili. Questi possono essere eseguiti dalla console, tramite API/MQTT o richiamati dal Programma eventi', // DeepL
COMMANDS_HELP_1: 'Definisci qui sotto i comandi con nome riutilizzabili. Questi possono essere eseguiti dalla console, tramite API/MQTT o richiamati dal Programma eventi.', // DeepL
COMMAND_EXECUTED: 'Comando eseguito', // DeepL
RUN: 'Esegui', // DeepL
INTERNET_CONNECTION_CHECK: 'Verifica online le versioni disponibili', // DeepL
Expand Down
Loading