diff --git a/Configuration/Services.php b/Configuration/Services.php index 81fe737..c4a52d8 100644 --- a/Configuration/Services.php +++ b/Configuration/Services.php @@ -174,7 +174,7 @@ 'title' => 'LLL:EXT:wv_deepltranslate/Resources/Private/Language/locallang.xlf:widgets.deepltranslate.widget.useswidget.title', 'description' => 'LLL:EXT:wv_deepltranslate/Resources/Private/Language/locallang.xlf:widgets.deepltranslate.widget.useswidget.description', 'iconIdentifier' => 'content-widget-list', - 'height' => 'medium', + 'height' => 'small', 'width' => 'small', ]) ; diff --git a/Resources/Private/Backend/Templates/Widget/UsageWidget.html b/Resources/Private/Backend/Templates/Widget/UsageWidget.html index 8261de5..6377efe 100644 --- a/Resources/Private/Backend/Templates/Widget/UsageWidget.html +++ b/Resources/Private/Backend/Templates/Widget/UsageWidget.html @@ -8,14 +8,23 @@

{item.label}

+ + + {item.usage.count / item.usage.limit * 100} + + + + + +

- {f:translate(key: 'LLL:EXT:wv_deepltranslate/Resources/Private/Language/locallang.xlf:widgets.deepltranslate.widget.useswidget.count')}: {item.usage.count -> f:format.number(thousandsSeparator: '.', decimalSeparator: '', decimals: 0)} -
- {f:translate(key: 'LLL:EXT:wv_deepltranslate/Resources/Private/Language/locallang.xlf:widgets.deepltranslate.widget.useswidget.limit')}: {item.usage.limit -> f:format.number(thousandsSeparator: '.', decimalSeparator: '', decimals: 0)} +

- {item.usage.count / item.usage.limit * 100}
-
{item.usage.count -> f:format.number(thousandsSeparator: '.', decimalSeparator: '', decimals: 0)}
+
 
@@ -25,4 +34,4 @@

{item.label}

- \ No newline at end of file + diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf index 929e8db..cf820dc 100644 --- a/Resources/Private/Language/de.locallang.xlf +++ b/Resources/Private/Language/de.locallang.xlf @@ -225,20 +225,16 @@ DeepL Verwendung - - + Show a DeepL usage bar + Zeige einen Fortschrittsbalken für die DeepL Nutzung Character Zeichen - - Count - Zähler - - - Limit - Begrenzung + + DeepL translations for current billing period: %s of %s characters + DeepL Übersetzungen für aktuellen Abrechnungszeitraum: %s von %s Zeichen diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index a485b81..1b508cf 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -211,16 +211,13 @@ DeepL Usage - + Show a DeepL usage bar Character - - Count - - - Limit + + DeepL translations for current billing period: %s of %s characters