Skip to content

fix(i18n): keep the German card label capitalised in the empty-column hint - #173

Open
grafst wants to merge 1 commit into
relaticle:4.xfrom
blemli:fix/german-empty-column-label-case
Open

fix(i18n): keep the German card label capitalised in the empty-column hint#173
grafst wants to merge 1 commit into
relaticle:4.xfrom
blemli:fix/german-empty-column-label-case

Conversation

@grafst

@grafst grafst commented Aug 27, 2026

Copy link
Copy Markdown

Problem

empty-column.blade.php lowercases the plural card label before interpolating it:

{{ __('flowforge::flowforge.no_cards_in_column', ['cardLabel' => strtolower($pluralCardLabel)]) }}

That reads naturally in English ("No records in this column"), but German capitalises every noun, so a German board shows:

Keine datensätze in dieser Spalte

Fix

Use Laravel's capitalising placeholder (:CardLabel) in the German line, so the label is restored to Datensätze after the view lowercased it:

'no_cards_in_column' => 'Keine :CardLabel in dieser Spalte',

One line, German only — en, es and nl are untouched, and the view needs no change.

Test

tests/Unit/TranslationTest.php renders the component in German and asserts the capitalised hint. It fails on 4.x without the lang change and passes with it; vendor/bin/pest tests/Unit stays green (43 passed).

… hint

The empty-column view lowercases the plural card label before it is
interpolated, which reads naturally in English but breaks German, where
nouns are always capitalised: the board showed "Keine datensätze in
dieser Spalte".

Use Laravel's capitalising placeholder in the German line so the label
comes back capitalised. No other locale is affected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant