mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
Merge pull request 'fix(assets): Fix broken string for bytes on disk size' (#139) from assets-fix into master
Reviewed-on: https://git.selfprivacy.org/kherel/selfprivacy.org.app/pulls/139 Reviewed-by: Inex Code <inex.code@selfprivacy.org>
This commit is contained in:
commit
d837989940
|
@ -172,6 +172,7 @@
|
|||
"gb": "{} GB",
|
||||
"mb": "{} MB",
|
||||
"kb": "{} KB",
|
||||
"bytes": "Bytes",
|
||||
"extend_volume_button": "Extend volume",
|
||||
"extending_volume_title": "Extending volume",
|
||||
"extending_volume_description": "Resizing volume will allow you to store more data on your server without extending the server itself. Volume can only be extended: shrinking is not possible.",
|
||||
|
|
|
@ -172,6 +172,7 @@
|
|||
"gb": "{} GB",
|
||||
"mb": "{} MB",
|
||||
"kb": "{} KB",
|
||||
"bytes": "Байт",
|
||||
"extend_volume_button": "Расширить хранилище",
|
||||
"extending_volume_title": "Расширение хранилища",
|
||||
"extending_volume_description": "Изменение размера хранилища позволит вам держать больше данных на вашем сервере без расширения самого сервера. Объем можно только увеличить: уменьшить нельзя.",
|
||||
|
|
|
@ -26,7 +26,7 @@ class DiskSize {
|
|||
@override
|
||||
String toString() {
|
||||
if (byte < 1024) {
|
||||
return '${byte.toStringAsFixed(0)} ${tr('bytes')}';
|
||||
return '${byte.toStringAsFixed(0)} ${tr('storage.bytes')}';
|
||||
} else if (byte < 1024 * 1024) {
|
||||
return 'storage.kb'.tr(args: [kibibyte.toStringAsFixed(1)]);
|
||||
} else if (byte < 1024 * 1024 * 1024) {
|
||||
|
|
Loading…
Reference in a new issue