public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Lukas Wagner <l.wagner@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager] ui: autoinstaller: more title case fixups
Date: Wed, 20 May 2026 11:22:16 +0200	[thread overview]
Message-ID: <20260520092216.127626-1-l.wagner@proxmox.com> (raw)

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---

Notes:
    Overlooked a couple of these yesterday, since there is a bug where the
    'Advanced' section of the Prepared Answers dialog is only visible when
    editing an existing entity, not when adding a new one. Will report that
    in the original patch series.
    
    Used https://titlecaseconverter.com/ when in doubt, only exception was
    'udev', as well as 'root' and 'data' for LVM volume names, since these
    are the literal names used for the LVs.

 .../auto_installer/prepared_answer_form.rs    | 44 +++++++++----------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/ui/src/remotes/auto_installer/prepared_answer_form.rs b/ui/src/remotes/auto_installer/prepared_answer_form.rs
index 75f4613e..9772f615 100644
--- a/ui/src/remotes/auto_installer/prepared_answer_form.rs
+++ b/ui/src/remotes/auto_installer/prepared_answer_form.rs
@@ -347,8 +347,8 @@ pub fn render_network_options_form(
                         .map(|(k, v)| (k.clone(), Value::String(v.clone())))
                         .collect(),
                 )
-                .key_label(tr!("Property name"))
-                .value_label(tr!("Value to match"))
+                .key_label(tr!("Property Name"))
+                .value_label(tr!("Value To Match"))
                 .key_placeholder(tr!("udev property name, e.g. ID_NET_DRIVER"))
                 .value_renderer(render_udev_filter_value.into())
                 .submit_validate(kv_list_to_udev_filter_map_validate)
@@ -409,8 +409,8 @@ pub fn render_disk_setup_form(
                 .with_item("filter")
                 .default("fixed")
                 .render_value(|v: &AttrValue| match v.parse::<DiskSelectionMode>() {
-                    Ok(DiskSelectionMode::Fixed) => tr!("Fixed list of disk names").into(),
-                    Ok(DiskSelectionMode::Filter) => tr!("Dynamically by udev filter").into(),
+                    Ok(DiskSelectionMode::Fixed) => tr!("Fixed List of Disk Names").into(),
+                    Ok(DiskSelectionMode::Filter) => tr!("Dynamically by udev Filter").into(),
                     _ => v.into(),
                 })
                 .required(true)
@@ -438,8 +438,8 @@ pub fn render_disk_setup_form(
                         .collect(),
                 ))
                 .render_value(|v: &AttrValue| match v.parse::<FilterMatch>() {
-                    Ok(FilterMatch::Any) => tr!("Match any filter").into(),
-                    Ok(FilterMatch::All) => tr!("Match all filters").into(),
+                    Ok(FilterMatch::Any) => tr!("Match Any Filter").into(),
+                    Ok(FilterMatch::All) => tr!("Match All Filters").into(),
                     _ => v.into(),
                 })
                 .default(serde_variant_name(FilterMatch::default()))
@@ -456,9 +456,9 @@ pub fn render_disk_setup_form(
                         .map(|(k, v)| (k.clone(), Value::String(v.clone())))
                         .collect(),
                 )
-                .key_label(tr!("Property name"))
-                .value_label(tr!("Value to match"))
-                .key_placeholder(tr!("udev property name, e.g. ID_MODEL"))
+                .key_label(tr!("Property Name"))
+                .value_label(tr!("Value To Match"))
+                .key_placeholder(tr!("udev Property Name, e.g. ID_MODEL"))
                 .value_renderer(render_udev_filter_value.into())
                 .submit_validate(kv_list_to_udev_filter_map_validate)
                 .submit_empty(false)
@@ -508,7 +508,7 @@ fn add_lvm_advanced_form_fields(panel: &mut InputPanel, fs_opts: &LvmOptions) {
         FieldPosition::Left,
         true,
         false,
-        tr!("Harddisk size to use (GB)"),
+        tr!("Harddisk Size To Use (GB)"),
         Number::new()
             .name("hdsize")
             .min(4.)
@@ -521,7 +521,7 @@ fn add_lvm_advanced_form_fields(panel: &mut InputPanel, fs_opts: &LvmOptions) {
         FieldPosition::Left,
         true,
         false,
-        tr!("Swap size (GB)"),
+        tr!("Swap Size (GB)"),
         Number::new()
             .name("swapsize")
             .min(0.)
@@ -534,7 +534,7 @@ fn add_lvm_advanced_form_fields(panel: &mut InputPanel, fs_opts: &LvmOptions) {
         FieldPosition::Right,
         true,
         false,
-        tr!("Maximum root volume size (GB)"),
+        tr!("Maximum root Volume Size (GB)"),
         Number::new()
             .name("maxroot")
             .min(0.)
@@ -547,7 +547,7 @@ fn add_lvm_advanced_form_fields(panel: &mut InputPanel, fs_opts: &LvmOptions) {
         FieldPosition::Right,
         true,
         false,
-        tr!("Maximum data volume size (GB)"),
+        tr!("Maximum data Volume Size (GB)"),
         Number::new()
             .name("maxvz")
             .min(0.)
@@ -560,7 +560,7 @@ fn add_lvm_advanced_form_fields(panel: &mut InputPanel, fs_opts: &LvmOptions) {
         FieldPosition::Right,
         true,
         false,
-        tr!("Minimum free space in LVM volume group (GB)"),
+        tr!("Minimum Free Space in LVM Volume Group (GB)"),
         Number::new()
             .name("minfree")
             .min(0.)
@@ -589,7 +589,7 @@ fn add_zfs_advanced_form_fields(panel: &mut InputPanel, fs_opts: &ZfsOptions) {
         FieldPosition::Left,
         true,
         false,
-        tr!("ARC maximum size (MiB)"),
+        tr!("ARC Maximum Size (MiB)"),
         Number::new()
             .name("arc-max")
             .min(64.)
@@ -601,7 +601,7 @@ fn add_zfs_advanced_form_fields(panel: &mut InputPanel, fs_opts: &ZfsOptions) {
         FieldPosition::Right,
         true,
         false,
-        tr!("Checksumming algorithm"),
+        tr!("Checksumming Algorithm"),
         Combobox::new()
             .name("checksum")
             .items(Rc::new(
@@ -623,7 +623,7 @@ fn add_zfs_advanced_form_fields(panel: &mut InputPanel, fs_opts: &ZfsOptions) {
         FieldPosition::Right,
         true,
         false,
-        tr!("Compression algorithm"),
+        tr!("Compression Algorithm"),
         Combobox::new()
             .name("compress")
             .items(Rc::new(
@@ -661,7 +661,7 @@ fn add_btrfs_advanced_form_fields(panel: &mut InputPanel, fs_opts: &BtrfsOptions
         FieldPosition::Right,
         true,
         false,
-        tr!("Compression algorithm"),
+        tr!("Compression Algorithm"),
         Combobox::new()
             .name("compress")
             .items(Rc::new(
@@ -735,8 +735,8 @@ pub fn render_target_filter_form(
                         .map(|(k, v)| (k.clone(), Value::String(v.clone())))
                         .collect(),
                 )
-                .key_label(tr!("JSON pointer"))
-                .value_label(tr!("Value to match"))
+                .key_label(tr!("JSON Pointer"))
+                .value_label(tr!("Value To Match"))
                 .key_placeholder("/json/pointer")
                 .submit_validate(|v: &Vec<(String, Value)>| {
                     let map: BTreeMap<String, String> = v
@@ -795,7 +795,7 @@ pub fn render_templating_form(config: &PreparedInstallationConfig) -> yew::Html
                         .map(|(k, v)| (k.clone(), Value::Number((*v).into())))
                         .collect(),
                 )
-                .value_label(tr!("Current value"))
+                .value_label(tr!("Current Value"))
                 .value_renderer(render_template_counter_value.into())
                 .submit_validate(kv_list_to_template_counter_map_validate)
                 .submit_empty(false)
@@ -919,7 +919,7 @@ pub fn render_show_secret_dialog(
 
     let copy_commandline_view = Container::new()
         .class("pwt-form-grid-col4")
-        .with_child(FieldLabel::new(tr!("Command line")))
+        .with_child(FieldLabel::new(tr!("Command Line")))
         .with_child(
             Row::new()
                 .class("pwt-fill-grid-row")
-- 
2.47.3





             reply	other threads:[~2026-05-20  9:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-20  9:22 Lukas Wagner [this message]
2026-05-21 12:59 ` applied: [PATCH datacenter-manager] ui: autoinstaller: more title case fixups Wolfgang Bumiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260520092216.127626-1-l.wagner@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal