Skip to content

Commit

Permalink
storage: Fix the partition message
Browse files Browse the repository at this point in the history
Signed-off-by: Mark D Horn <[email protected]>
  • Loading branch information
mdhorn committed Sep 13, 2019
1 parent 69abb82 commit 2852751
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions locale/en_US/LC_MESSAGES/clr-installer.po
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ msgstr "Selected media will be partitioned."
msgid "Selected media will have partitions added."
msgstr "Selected media will have partitions added."

msgid "WARNING: Partition table will be erased."
msgstr "WARNING: Partition table will be erased."

msgid "WARNING: Selected media will be erased."
msgstr "WARNING: Selected media will be erased."

Expand Down
3 changes: 3 additions & 0 deletions locale/es_MX/LC_MESSAGES/clr-installer.po
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ msgstr "Los medios seleccionados se dividirán en particiones."
msgid "Selected media will have partitions added."
msgstr "Se añadirán particiones a los medios seleccionados."

msgid "WARNING: Partition table will be erased."
msgstr "MX: WARNING: Partition table will be erased."

msgid "WARNING: Selected media will be erased."
msgstr "ADVERTENCIA: los medios seleccionados se borrarán."

Expand Down
3 changes: 3 additions & 0 deletions locale/zh_CN/LC_MESSAGES/clr-installer.po
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ msgstr "将对选定的媒介进行分区。"
msgid "Selected media will have partitions added."
msgstr "选定的媒介将添加分区。"

msgid "WARNING: Partition table will be erased."
msgstr "ZH: WARNING: Partition table will be erased."

msgid "WARNING: Selected media will be erased."
msgstr "警告: 选定的媒介将被删除。"

Expand Down
2 changes: 1 addition & 1 deletion storage/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (bd *BlockDevice) WritePartitionTable(legacyBios bool, wholeDisk bool, dryR
return err
}
} else {
*dryRun = append(*dryRun, bd.Name+": "+utils.Locale.Get(DestructiveWarning))
*dryRun = append(*dryRun, bd.Name+": "+utils.Locale.Get(PartitioningWarning))
}
} else {
if dryRun == nil {
Expand Down
3 changes: 3 additions & 0 deletions storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ const (
// MediaToBeUsed identified a disk which will be used during the installation
MediaToBeUsed = "Selected media will be used for installation."

// PartitioningWarning specifies the warning message for writing partition table
PartitioningWarning = "WARNING: Partition table will be erased."

// DestructiveWarning specifies the warning message for destructive installation
DestructiveWarning = "WARNING: Selected media will be erased."

Expand Down

0 comments on commit 2852751

Please sign in to comment.