Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web/package/agama-web-ui.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 13 13:20:17 UTC 2025 - Jan Papež <honyczek@centrum.cz>

- Fix messages about automatic storage sizes
(gh#agama-project/agama#2657).

-------------------------------------------------------------------
Tue Aug 12 09:45:01 UTC 2025 - David Diaz <dgonzalez@suse.com>

Expand Down
16 changes: 8 additions & 8 deletions web/src/components/storage/AutoSizeText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ function AutoSizeTextFallback({ size, deviceType }: AutoSizeTextFallbackProps):
if (size.max) {
if (size.max === size.min) {
return sprintf(
// TRANSLATORS: %1s$ is a size with units (eg. 3 GiB) and %1$s is a device type (eg. partition)
_("A generic size of %s will be used for the new %2$s"),
// TRANSLATORS: %1$s is a size with units (eg. 3 GiB) and %2$s is a device type (eg. partition)
_("A generic size of %1$s will be used for the new %2$s"),
deviceSize(size.min),
deviceTypeLabel(deviceType),
);
}

return sprintf(
// TRANSLATORS: %1s$ and %2s$ are sizes with units (eg. 3 GiB) and %3$s is a device type (eg. partition)
// TRANSLATORS: %1$s and %2$s are sizes with units (eg. 3 GiB) and %3$s is a device type (eg. partition)
_("A generic size range between %1$s and %2$s will be used for the new %3$s"),
deviceSize(size.min),
deviceSize(size.max),
Expand All @@ -60,7 +60,7 @@ function AutoSizeTextFallback({ size, deviceType }: AutoSizeTextFallbackProps):
}

return sprintf(
// TRANSLATORS: %1s$ is a size with units (eg. 3 GiB) and %1$s is a device type (eg. partition)
// TRANSLATORS: %1$s is a size with units (eg. 3 GiB) and %1$s is a device type (eg. partition)
_("A generic minimum size of %1$s will be used for the new %2$s"),
deviceSize(size.min),
deviceTypeLabel(deviceType),
Expand Down Expand Up @@ -115,7 +115,7 @@ function AutoSizeTextRam({ path, size, deviceType }: AutoSizeTextRamProps): Reac
if (size.max === size.min) {
return sprintf(
// TRANSLATORS: %1$s is a device type (eg. partition), %2$s is a size with units (10 GiB) and %3$s is a mount path (/home)
_("Based on the amount of RAM in the system, a %1s$ of %2$s will be planned for %3$s"),
_("Based on the amount of RAM in the system, a %1$s of %2$s will be planned for %3$s"),
deviceTypeLabel(deviceType),
deviceSize(size.min),
path,
Expand All @@ -125,7 +125,7 @@ function AutoSizeTextRam({ path, size, deviceType }: AutoSizeTextRamProps): Reac
return sprintf(
// TRANSLATORS: %1$s is a device type (eg. partition), %2$s and %3$s are sizes with units (10 GiB), and %4$s is a mount path (/home)
_(
"Based on the amount of RAM in the system, a %1s$ with a size between %2$s and %3$s will be planned for %4$s",
"Based on the amount of RAM in the system, a %1$s with a size between %2$s and %3$s will be planned for %4$s",
),
deviceTypeLabel(deviceType),
deviceSize(size.min),
Expand All @@ -136,7 +136,7 @@ function AutoSizeTextRam({ path, size, deviceType }: AutoSizeTextRamProps): Reac

return sprintf(
// TRANSLATORS: %1$s is a device type (eg. partition), %2$s is a size with units (10 GiB) and %3$s is a mount path (/home)
_("Based on the amount of RAM in the system, a %1s$ of at least %2$s will be planned for %3$s"),
_("Based on the amount of RAM in the system, a %1$s of at least %2$s will be planned for %3$s"),
deviceTypeLabel(deviceType),
deviceSize(size.min),
path,
Expand Down Expand Up @@ -269,7 +269,7 @@ function AutoSizeTextDynamic({
if (size.max) {
if (size.max === size.min) {
return sprintf(
// TRANSLATORS: %1$s is a device type (eg. partition) and %2s is a size with units (eg. 10 GiB)
// TRANSLATORS: %1$s is a device type (eg. partition) and %2$s is a size with units (eg. 10 GiB)
_("The current configuration will result in an attempt to create a %1$s of %2$s."),
deviceTypeLabel(deviceType),
deviceSize(size.min),
Expand Down