Rename Storage Backend labels

This commit is contained in:
Philipp Holzer 2021-09-02 23:27:35 +02:00
parent 782a54cf8c
commit 687e6841bc
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
3 changed files with 6 additions and 6 deletions

View file

@ -133,8 +133,8 @@ class Storage extends BaseAdmin
'$label_config' => DI::l10n()->t('Storage Configuration'),
'$page' => DI::l10n()->t('Storage'),
'$save' => DI::l10n()->t('Save'),
'$save_activate' => DI::l10n()->t('Save & Activate'),
'$activate' => DI::l10n()->t('Activate'),
'$save_use' => DI::l10n()->t('Save & Use storage backend'),
'$use' => DI::l10n()->t('Use storage backend'),
'$save_reload' => DI::l10n()->t('Save & Reload'),
'$noconfig' => DI::l10n()->t('This backend doesn\'t have custom settings'),
'$baseurl' => DI::baseUrl()->get(true),

View file

@ -22,10 +22,10 @@
{{if $storage.active}}
<input type="submit" name="submit_save_set" value="{{$save_reload}}"/>
{{else}}
<input type="submit" name="submit_save_set" value="{{$save_activate}}"/>
<input type="submit" name="submit_save_set" value="{{$save_use}}"/>
{{/if}}
{{else}}
<br /><input type="submit" name="submit_save_set" {{if $storage.active}}disabled="disabled"{{/if}} value="{{$activate}}"/>
<br /><input type="submit" name="submit_save_set" {{if $storage.active}}disabled="disabled"{{/if}} value="{{$use}}"/>
{{/if}}
</form>
{{/foreach}}

View file

@ -36,10 +36,10 @@
{{if $storage.active}}
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_reload}}"/>
{{else}}
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_activate}}"/>
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_use}}"/>
{{/if}}
{{else}}
<input type="submit" name="submit_save_set" class="btn btn-primary" {{if $storage.active}}disabled="disabled"{{/if}} value="{{$activate}}"/>
<input type="submit" name="submit_save_set" class="btn btn-primary" {{if $storage.active}}disabled="disabled"{{/if}} value="{{$use}}"/>
{{/if}}
</div>
</div>