some i18n clean ups

This commit is contained in:
seriousm4x
2023-10-01 21:02:17 +02:00
parent d544899bde
commit 8e86f3cf3a
7 changed files with 23 additions and 23 deletions

View File

@@ -118,7 +118,7 @@
href="/settings/"
class="px-4 py-2"
class:active={$page.url.pathname.startsWith('/settings')}
><Fa icon={faCog} />{$LL.settings.settings_title()}</a
><Fa icon={faCog} />{$LL.settings.page_title()}</a
>
</li>
{/if}
@@ -153,7 +153,7 @@
</li>
<li>
<a href="/settings/" class="p-2" class:active={$page.url.pathname.startsWith('/settings')}
><Fa icon={faCog} />{$LL.settings.settings_title()}</a
><Fa icon={faCog} />{$LL.settings.page_title()}</a
>
</li>
{/if}

View File

@@ -9,9 +9,9 @@ const de = {
order_name: 'Name',
order_ip: 'IP',
order_tooltip: 'Sortieren',
message_no_devices: 'Keine Geräte.',
message_add_first_device: 'Füge dein erstes Gerät hinzu',
message_grant_permissions:
no_devices: 'Keine Geräte.',
add_first_device: 'Füge dein erstes Gerät hinzu',
grant_permissions:
'Bitte frag den Administrator, dir Berechtigungen für bestehende Geräte zu erteilen oder neue Geräte zu erstellen.'
},
account: {
@@ -120,7 +120,7 @@ const de = {
btn_login: 'Login'
},
settings: {
settings_title: 'Einstellungen',
page_title: 'Einstellungen',
ping_interval_title: 'Ping Intervall',
ping_interval_desc1:
'Legt den Intervall fest, in dem Geräte gepingt werden. Leer lassen um den Standardwert von <span class="badge">@every 3s</span> zu verwenden.',

View File

@@ -7,9 +7,9 @@ const en_US = {
order_name: 'Name',
order_ip: 'IP',
order_tooltip: 'Order',
message_no_devices: 'No devices here.',
message_add_first_device: 'Add your first device',
message_grant_permissions:
no_devices: 'No devices here.',
add_first_device: 'Add your first device',
grant_permissions:
'Please ask the admin to grant you permissions to existing devices or to create new ones.'
},
account: {
@@ -117,7 +117,7 @@ const en_US = {
btn_login: 'Login'
},
settings: {
settings_title: 'Settings',
page_title: 'Settings',
ping_interval_title: 'Ping interval',
ping_interval_desc1:
'Sets the interval in which the devices are pinged. Leave blank to use default value of <span class="badge">@every 3s</span>.',

View File

@@ -38,15 +38,15 @@ type RootTranslation = {
/**
* No devices here.
*/
message_no_devices: string
no_devices: string
/**
* Add your first device
*/
message_add_first_device: string
add_first_device: string
/**
* Please ask the admin to grant you permissions to existing devices or to create new ones.
*/
message_grant_permissions: string
grant_permissions: string
}
account: {
/**
@@ -424,7 +424,7 @@ type RootTranslation = {
/**
* Settings
*/
settings_title: string
page_title: string
/**
* Ping interval
*/
@@ -769,15 +769,15 @@ export type TranslationFunctions = {
/**
* No devices here.
*/
message_no_devices: () => LocalizedString
no_devices: () => LocalizedString
/**
* Add your first device
*/
message_add_first_device: () => LocalizedString
add_first_device: () => LocalizedString
/**
* Please ask the admin to grant you permissions to existing devices or to create new ones.
*/
message_grant_permissions: () => LocalizedString
grant_permissions: () => LocalizedString
}
account: {
/**
@@ -1155,7 +1155,7 @@ export type TranslationFunctions = {
/**
* Settings
*/
settings_title: () => LocalizedString
page_title: () => LocalizedString
/**
* Ping interval
*/

View File

@@ -176,16 +176,16 @@
{/if}
{:else}
<div class="container text-center">
<p>{$LL.home.message_no_devices()}</p>
<p>{$LL.home.no_devices()}</p>
{#if $pocketbase.authStore.isAdmin || $permission.create}
<p>
<a href="/device/new" class="btn btn-ghost"
><Fa icon={faPlus} class="ms-2" />{$LL.home.message_add_first_device()}
><Fa icon={faPlus} class="ms-2" />{$LL.home.add_first_device()}
</a>
</p>
{:else}
<p>
{$LL.home.message_grant_permissions()}
{$LL.home.grant_permissions()}
</p>
{/if}
</div>

View File

@@ -90,7 +90,7 @@
{#if settingsPubClone === undefined || settingsPrivClone === undefined}
<PageLoading />
{:else}
<h1 class="text-3xl font-bold mb-8">{$LL.settings.settings_title()}</h1>
<h1 class="text-3xl font-bold mb-8">{$LL.settings.page_title()}</h1>
<form on:submit|preventDefault={save}>
<div class="card w-full bg-base-300 shadow-xl mt-6">
<div class="card-body">

View File

@@ -214,7 +214,7 @@
<div class="collapse-content">
{#if devices.length === 0}
<p>
{$LL.home.message_no_devices()}
{$LL.home.no_devices()}
<a href="/device/new" class="link">{$LL.users.create_new_device()}</a>
</p>
{:else}