fix: polish form UX and step 9 summary translations

- Add spacing below Datenschutzerklaerung text
- Fix missing Umzugstermin on step 9 (wrong field names in JS)
- Remove number-to-checkmark animation flicker on progress dots
- Add cbm unit label to furniture item values and summary
- Translate all summary field labels via l10n (Name, Strasse, etc.)
- Fix room names showing lowercase keys instead of proper titles
- Auto-check checkbox when quantity is entered on step 8
- Remove redundant Sonstiges textarea placeholder

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 23:31:25 +09:00
parent f1f5c760c2
commit f6c7af7cbc
5 changed files with 63 additions and 30 deletions

View File

@@ -340,7 +340,7 @@ class Umzugsliste_Form_Renderer {
<div class="step-section">
<h3><?php echo esc_html__( 'Other', 'siegel-umzugsliste' ); ?></h3>
<label for="sonstiges"><?php echo esc_html__( 'Additional notes or requests:', 'siegel-umzugsliste' ); ?></label>
<textarea name="sonstiges" id="sonstiges" rows="5" class="sonstiges-textarea" placeholder="<?php echo esc_attr__( 'Additional notes or requests...', 'siegel-umzugsliste' ); ?>"></textarea>
<textarea name="sonstiges" id="sonstiges" rows="5" class="sonstiges-textarea"></textarea>
</div>
</div>
</div>
@@ -432,7 +432,7 @@ class Umzugsliste_Form_Renderer {
<button type="button" class="qty-btn qty-plus" aria-label="<?php echo esc_attr__( 'Increase', 'siegel-umzugsliste' ); ?>">+</button>
</div>
<span class="item-name"><?php echo esc_html( $item_name ); ?></span>
<span class="item-cbm"><?php echo esc_html( str_replace( '.', ',', (string) $cbm ) ); ?></span>
<span class="item-cbm"><?php echo esc_html( str_replace( '.', ',', (string) $cbm ) ); ?> <?php echo esc_html__( 'cbm', 'siegel-umzugsliste' ); ?></span>
<input type="hidden" name="<?php echo esc_attr( $cbm_name ); ?>" value="<?php echo esc_attr( $cbm ); ?>">
<?php if ( $has_montage ) : ?>
<div class="montage-toggle">

View File

@@ -124,6 +124,15 @@ class Umzugsliste_Shortcode {
'quantityLabel' => __( 'Qty', 'siegel-umzugsliste' ),
'cbmLabel' => __( 'cbm', 'siegel-umzugsliste' ),
'summaryEdit' => __( 'Edit', 'siegel-umzugsliste' ),
'summaryName' => __( 'Name', 'siegel-umzugsliste' ),
'summaryStreet' => __( 'Street', 'siegel-umzugsliste' ),
'summaryZipCity' => __( 'ZIP/City', 'siegel-umzugsliste' ),
'summaryFloor' => __( 'Floor', 'siegel-umzugsliste' ),
'summaryElevator' => __( 'Elevator', 'siegel-umzugsliste' ),
'summaryPhone' => __( 'Phone', 'siegel-umzugsliste' ),
'summaryFax' => __( 'Fax', 'siegel-umzugsliste' ),
'summaryMobile' => __( 'Mobile', 'siegel-umzugsliste' ),
'summaryEmail' => __( 'Email', 'siegel-umzugsliste' ),
'stepLabel' => __( 'Step', 'siegel-umzugsliste' ),
'stepOf' => __( 'of', 'siegel-umzugsliste' ),
) );