Vue component polish; locale string deduplication.
This commit is contained in:
parent
6973ae41a7
commit
57d3f4c04e
|
@ -85,8 +85,6 @@ return [
|
|||
'lang' => [
|
||||
'confirm' => __('Are you sure?'),
|
||||
'advanced' => __('Advanced'),
|
||||
'pw_blank' => __('Enter a password to continue.'),
|
||||
'pw_good' => __('No problems detected.'),
|
||||
],
|
||||
'locale' => $locale,
|
||||
'locale_short' => $localeShort,
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<section class="card mb-3" role="region">
|
||||
<b-card-header header-bg-variant="primary-dark">
|
||||
<h2 class="card-title">
|
||||
<translate key="lang_hdr_profile">My Profile</translate>
|
||||
<translate key="lang_hdr_profile">Profile</translate>
|
||||
</h2>
|
||||
</b-card-header>
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<translate key="lang_col_field>">Field</translate>
|
||||
<translate key="lang_col_field">Field Name</translate>
|
||||
</th>
|
||||
<th>
|
||||
<translate key="lang_col_previous">Previous</translate>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_exclude_media"
|
||||
:field="$v.form.backup_exclude_media">
|
||||
<template #label="{lang}">
|
||||
<translate :key="lang">Exclude Media from Backups</translate>
|
||||
<translate :key="lang">Exclude Media from Backup</translate>
|
||||
</template>
|
||||
<template #description="{lang}">
|
||||
<translate :key="lang">Excluding media from automated backups will save space, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.</translate>
|
||||
|
|
|
@ -13,7 +13,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
langTitle() {
|
||||
return this.$gettext('Log View');
|
||||
return this.$gettext('Log Viewer');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<b-wrapped-form-group class="col-md-12" id="edit_form_path"
|
||||
:field="$v.form.path">
|
||||
<template #label="{lang}">
|
||||
<translate :key="lang">Backup Filename</translate>
|
||||
<translate :key="lang">File Name</translate>
|
||||
</template>
|
||||
<template #description="{lang}">
|
||||
<translate :key="lang">This will be the file name for your backup, include the file type (.zip or .tar.gz) you wish to use.</translate>
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
<b-form-row>
|
||||
<b-form-markup class="col-md-6" id="form_release_channel">
|
||||
<template #label="{lang}">
|
||||
<translate :key="lang">Current Release Channel</translate>
|
||||
<translate :key="lang">Release Channel</translate>
|
||||
</template>
|
||||
<template #label="{lang}">
|
||||
<template #description="{lang}">
|
||||
<a href="https://docs.azuracast.com/en/getting-started/updates/release-channels"
|
||||
target="_blank">
|
||||
<translate :key="lang">Learn more about release channels in the AzuraCast docs.</translate>
|
||||
|
@ -109,7 +109,7 @@
|
|||
|
||||
<b-form-fieldset>
|
||||
<template #label>
|
||||
<translate key="lang_section_avatar_services">Avatar Services</translate>
|
||||
<translate key="lang_section_avatar_services">Avatar Service</translate>
|
||||
</template>
|
||||
|
||||
<b-form-row>
|
||||
|
@ -134,7 +134,7 @@
|
|||
|
||||
<b-form-fieldset>
|
||||
<template #label>
|
||||
<translate key="lang_section_album_art_services">Album Art Services</translate>
|
||||
<translate key="lang_section_album_art_services">Album Art</translate>
|
||||
</template>
|
||||
|
||||
<b-form-row>
|
||||
|
@ -156,7 +156,7 @@
|
|||
<template #label="{lang}">
|
||||
<translate :key="lang">Last.fm API Key</translate>
|
||||
</template>
|
||||
<template #label="{lang}">
|
||||
<template #description="{lang}">
|
||||
<translate :key="lang">This service can provide album art for tracks where none is available locally.</translate>
|
||||
<br>
|
||||
<a href="https://www.last.fm/api/account/create" target="_blank">
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
<b-form-fieldset>
|
||||
<template #label>
|
||||
<translate key="lang_hdr_streamers">Streamers / DJs</translate>
|
||||
<translate key="lang_hdr_streamers">Streamers/DJs</translate>
|
||||
</template>
|
||||
|
||||
<b-form-fieldset>
|
||||
|
|
|
@ -148,7 +148,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
langTabTitle() {
|
||||
return this.$gettext('Station Profile');
|
||||
return this.$gettext('Profile');
|
||||
},
|
||||
timezoneOptions() {
|
||||
return objectToFormOptions(this.timezones);
|
||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
langLogView() {
|
||||
return this.$gettext('Log View');
|
||||
return this.$gettext('Log Viewer');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<section class="card mb-3" role="region">
|
||||
<b-card-header header-bg-variant="primary-dark">
|
||||
<h2 class="card-title">
|
||||
<translate key="lang_hdr_automated_assignment">Automated Playlist Assignment</translate>
|
||||
<translate key="lang_hdr_automated_assignment">Automated Assignment</translate>
|
||||
</h2>
|
||||
</b-card-header>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_is_enabled" :field="form.is_enabled">
|
||||
<template #label="{lang}">
|
||||
<translate :key="lang">Is Enabled</translate>
|
||||
<translate :key="lang">Enable</translate>
|
||||
</template>
|
||||
<template #description="{lang}">
|
||||
<translate :key="lang">If disabled, the playlist will not be included in radio playback, but can still be managed.</translate>
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
<template #default="props">
|
||||
<b-form-radio-group stacked :id="props.id" v-model="props.field.$model">
|
||||
<b-form-radio value="songs">
|
||||
<translate key="lang_edit_form_source_songs">Song-Based Playlist</translate>
|
||||
<translate key="lang_edit_form_source_songs">Song-Based</translate>
|
||||
<translate class="form-text mt-0" key="lang_edit_form_source_songs_desc">A playlist containing media files hosted on this server.</translate>
|
||||
</b-form-radio>
|
||||
<b-form-radio value="remote_url">
|
||||
<translate key="lang_edit_form_source_remote_url">Remote URL Playlist</translate>
|
||||
<translate key="lang_edit_form_source_remote_url">Remote URL</translate>
|
||||
<translate class="form-text mt-0" key="lang_edit_form_source_remote_url_desc">A playlist that instructs the station to play from a remote URL.</translate>
|
||||
</b-form-radio>
|
||||
</b-form-radio-group>
|
||||
|
|
|
@ -93,11 +93,11 @@ export default {
|
|||
data () {
|
||||
return {
|
||||
fields: [
|
||||
{ key: 'art', label: this.$gettext('Art'), sortable: false, class: 'shrink pr-0' },
|
||||
{ key: 'title', label: this.$gettext('Episode'), sortable: false },
|
||||
{ key: 'podcast_media', label: this.$gettext('File'), sortable: false },
|
||||
{ key: 'explicit', label: this.$gettext('Explicit'), sortable: false },
|
||||
{ key: 'actions', label: this.$gettext('Actions'), sortable: false, class: 'shrink' }
|
||||
{key: 'art', label: this.$gettext('Art'), sortable: false, class: 'shrink pr-0'},
|
||||
{key: 'title', label: this.$gettext('Episode'), sortable: false},
|
||||
{key: 'podcast_media', label: this.$gettext('File Name'), sortable: false},
|
||||
{key: 'explicit', label: this.$gettext('Explicit'), sortable: false},
|
||||
{key: 'actions', label: this.$gettext('Actions'), sortable: false, class: 'shrink'}
|
||||
]
|
||||
};
|
||||
},
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td key="lang_frontend_admin_uri" v-translate>Administration URL</td>
|
||||
<td key="lang_frontend_admin_uri" v-translate>Administration</td>
|
||||
<td>
|
||||
<a :href="frontendAdminUri">{{ frontendAdminUri }}</a>
|
||||
</td>
|
||||
|
|
|
@ -25,7 +25,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
langLogView () {
|
||||
return this.$gettext('Log View');
|
||||
return this.$gettext('Log Viewer');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -53,7 +53,7 @@ export default {
|
|||
fields: [
|
||||
{key: 'title', label: this.$gettext('Title'), sortable: true},
|
||||
{key: 'artist', label: this.$gettext('Artist'), sortable: true},
|
||||
{key: 'path', label: this.$gettext('Filename'), sortable: false},
|
||||
{key: 'path', label: this.$gettext('File Name'), sortable: false},
|
||||
{key: 'length_raw', label: this.$gettext('Length'), selectable: true, sortable: false},
|
||||
{key: 'length', label: this.$gettext('Length Text'), visible: false, selectable: true, sortable: false},
|
||||
{key: 'playlists', label: this.$gettext('Playlist(s)'), selectable: true, sortable: false},
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
<b-wrapped-form-group class="col-md-6" id="form_config_author" :field="form.config.author">
|
||||
<template #label="{lang}">
|
||||
<translate :key="lang">Author Name</translate>
|
||||
<translate :key="lang">Author</translate>
|
||||
</template>
|
||||
</b-wrapped-form-group>
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -59,6 +59,8 @@ class GenerateCommand extends CommandAbstract
|
|||
}
|
||||
}
|
||||
|
||||
$translations->ksort();
|
||||
|
||||
$translations->toPoFile($dest_file);
|
||||
|
||||
$io->success('Locales generated.');
|
||||
|
|
|
@ -68,6 +68,8 @@ class ImportCommand extends CommandAbstract
|
|||
$jsTranslations[$localeJsKey][$translation->getOriginal()] = $string;
|
||||
}
|
||||
|
||||
ksort($jsTranslations[$localeJsKey]);
|
||||
|
||||
$io->writeln(__('Imported locale: %s', $locale_key . ' (' . $locale_name . ')'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ class ForgotPasswordAction
|
|||
$email = $mail->createMessage();
|
||||
$email->to($user->getEmail());
|
||||
|
||||
$email->subject(__('Account Recovery Link'));
|
||||
$email->subject(__('Account Recovery'));
|
||||
|
||||
$loginToken = $loginTokenRepo->createToken($user);
|
||||
$email->text(
|
||||
|
|
|
@ -20,7 +20,7 @@ class AutomationAction
|
|||
response: $response,
|
||||
component: 'Vue_StationsAutomation',
|
||||
id: 'station-automation',
|
||||
title: __('Automated Playlist Assignment'),
|
||||
title: __('Automated Assignment'),
|
||||
props: [
|
||||
'settingsUrl' => (string)$router->fromHere('api:stations:automation:settings'),
|
||||
'runUrl' => (string)$router->fromHere('api:stations:automation:run'),
|
||||
|
|
|
@ -32,9 +32,9 @@ class EnvFile extends AbstractEnvFile
|
|||
'required' => true,
|
||||
],
|
||||
'AZURACAST_VERSION' => [
|
||||
'name' => __('AzuraCast Release Channel'),
|
||||
'options' => ['latest', 'stable'],
|
||||
'default' => 'latest',
|
||||
'name' => __('Release Channel'),
|
||||
'options' => ['latest', 'stable'],
|
||||
'default' => 'latest',
|
||||
'required' => true,
|
||||
],
|
||||
'AZURACAST_HTTP_PORT' => [
|
||||
|
|
|
@ -9,7 +9,7 @@ $assets
|
|||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="modal-log-view-label"><?=__('Log View')?></h4>
|
||||
<h4 class="modal-title" id="modal-log-view-label"><?= __('Log Viewer') ?></h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
</div>
|
||||
|
@ -17,9 +17,9 @@ $assets
|
|||
<div class="custom-control custom-switch pb-3">
|
||||
<input class="custom-control-input" id="modal-log-autoscroll" type="checkbox" checked>
|
||||
<span class="custom-control-track"></span>
|
||||
<label class="custom-control-label" for="modal-log-autoscroll"><?=__(
|
||||
<label class="custom-control-label" for="modal-log-autoscroll"><?= __(
|
||||
'Automatically scroll to the bottom of the log'
|
||||
)?></label>
|
||||
) ?></label>
|
||||
</div>
|
||||
|
||||
<textarea class="form-control log-viewer" id="modal-log-view-contents" spellcheck="false" readonly>Loading...</textarea>
|
||||
|
|
Loading…
Reference in New Issue