Skip to content

Commit

Permalink
Improve resize dialog title & hide min/max size text if the filesyste…
Browse files Browse the repository at this point in the history
…m does not support resize
  • Loading branch information
Kagamma committed Jan 2, 2025
1 parent 66e933c commit 42ace6f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion po/en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ msgid "Create new partition"
msgstr ""

#: locale:s_resizedialogtitle
msgid "Resize %s"
msgid "Move/Resize %s"
msgstr ""

#: locale:s_minpossiblespace
Expand Down
4 changes: 2 additions & 2 deletions po/ja_JP.po
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ msgid "Create new partition"
msgstr "新しいパーティションの作成"

#: locale:s_resizedialogtitle
msgid "Resize %s"
msgstr "%s のサイズ変更"
msgid "Move/Resize %s"
msgstr "%s 移動/サイズ変更"

#: locale:s_minpossiblespace
msgid "Min.Possible (MB)\015%d"
Expand Down
2 changes: 1 addition & 1 deletion src/locale.pas
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ interface
S_FormatsDialogTitle = 'Format %s';
S_FlagsDialogTitle = 'Edit %s flags';
S_CreateDialogTitle = 'Create new partition';
S_ResizeDialogTitle = 'Resize %s';
S_ResizeDialogTitle = 'Move/Resize %s';
S_MinPossibleSpace = 'Min.Possible (MB)'#13'%d';
S_MaxPossibleSpace = 'Max.Possible (MB)'#13'%d';
S_CreatingGPT = 'Creating GUID Partition Table...';
Expand Down
14 changes: 7 additions & 7 deletions src/ui.partitions.resize.pas
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ function ShowResizeDialog(const PPart: PPartedPartition; const AData: PPartedOpD
D^.Insert(Size);
R.Assign(5, 4, 30, 5);
D^.Insert(New(PLabel, Init(R, S_NewSize.ToUnicode, Size)));
end;

// Total size
R.Assign(6, 6, 30, 8);
D^.Insert(New(PStaticText, Init(R, Format(S_MaxPossibleSpace, [BToMBFloor(PPart^.GetPossibleExpandSize)]).ToUnicode)));
// Total size
R.Assign(6, 6, 30, 8);
D^.Insert(New(PStaticText, Init(R, Format(S_MaxPossibleSpace, [BToMBFloor(PPart^.GetPossibleExpandSize)]).ToUnicode)));

// Min possible size
R.Assign(6, 8, 30, 10);
D^.Insert(New(PStaticText, Init(R, Format(S_MinPossibleSpace, [BToMBFloor(PPart^.PartUsed)]).ToUnicode)));
// Min possible size
R.Assign(6, 8, 30, 10);
D^.Insert(New(PStaticText, Init(R, Format(S_MinPossibleSpace, [BToMBFloor(PPart^.PartUsed)]).ToUnicode)));
end;

// Ok-Button
R.Assign(11, 12, 23, 14);
Expand Down

0 comments on commit 42ace6f

Please sign in to comment.