Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

  • Fix English placeholders: Replace {type} with [Type] and {{type}} with [[Type]] (capitalized first letter)
  • Add German translation placeholders for edit/new patterns
  • Add German translation placeholders for tree navigation labels
  • Add German translation placeholders for statistics patterns
  • Fix awkward placeholder concatenation in German translation
  • Use capitalized placeholders in German (nouns are always capitalized in German)
  • Capitalize placeholders at the beginning of sentences/titles in English

Placeholder Syntax (corrected)

  • [Type] → Singular capitalized (e.g., "Category")
  • [[Type]] → Plural capitalized (e.g., "Categories")
  • [type] → Singular lowercase (e.g., "category")
  • [[type]] → Plural lowercase (e.g., "categories")

Words at the beginning of sentences use capitalized placeholders (e.g., [[Part]] with [category]).

Original prompt

Replace the mentions of footprint, category, parts, etc. in english translations through their synonym placeholder version.

So if you have defined a translation like "Create new [category]" it will become "Create new category" if you have no synonym defined, and "Create new my synonym" if there is a custom type synonym defined.

The type values can be found inside the ElementTypes enum. For every type there are 4 placeholders/versions defined:

{category}: Singular with capital letter (e.g. "Category")
{{category}}: Plural with capital letter (e.g. "Categories")
[category]: Singular lowercase (e.g. "category")
[[category]]: Plural lowercase (e.g. "categories")


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update translations to use synonym placeholders Replace hardcoded entity type names with synonym placeholders in English translations Dec 4, 2025
Copilot AI requested a review from jbtronics December 4, 2025 23:47
Copilot finished work on behalf of jbtronics December 4, 2025 23:47
Copilot AI and others added 6 commits December 6, 2025 23:31
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
…ations

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
… patterns

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
@jbtronics jbtronics force-pushed the copilot/replace-translation-placeholders branch from bffb629 to 04dec06 Compare December 6, 2025 22:31
@jbtronics
Copy link
Member

@copilot

We now have placeholders where
[Type] → Singular capitalized (e.g., "Category")
[[Type]] → Plural capitalized (e.g., "Categories")
[type] → Singular lowercase (e.g., "category")
[[type]] → Plural lowercase (e.g., "categories")

So the bracket type is not the difference but the capitalliztion of the first letter.

Also do that for german translatation too.

@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.33%. Comparing base (a356eec) to head (d894e16).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1128      +/-   ##
============================================
- Coverage     58.34%   58.33%   -0.02%     
  Complexity     7286     7286              
============================================
  Files           580      580              
  Lines         23193    23193              
============================================
- Hits          13533    13530       -3     
- Misses         9660     9663       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…} and add German translations

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 6, 2025

@copilot

We now have placeholders where
...

Fixed the placeholder syntax to use [Type]/[[Type]] (with capitalized first letter inside brackets) instead of {type}/{{type}}. Also applied the same changes to the German translations (messages.de.xlf). Changes committed in df8df14.

…holder

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Copilot finished work on behalf of jbtronics December 6, 2025 22:49
@jbtronics
Copy link
Member

@copilot in German, nouns are written capitalized

… capitalized in German)

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 6, 2025

@copilot in German, nouns are written capitalized

Updated all German translations to use capitalized placeholders ([Category], [[Part]], etc.) since nouns are always capitalized in German. Fixed in f4b4ed1.

Copilot AI changed the title Replace hardcoded entity type names with synonym placeholders in English translations Replace hardcoded entity type names with synonym placeholders in English and German translations Dec 6, 2025
Copilot finished work on behalf of jbtronics December 6, 2025 23:16
@jbtronics
Copy link
Member

@copilot Words at the beginning of get written capitalized

…sh translations

Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 6, 2025

@copilot Words at the beginning of get written capitalized

Updated English translations to use capitalized placeholders at the beginning of sentences/titles (e.g., [[Part]] with [category] instead of [[part]] with [category]). Fixed in e60033a.

Copilot finished work on behalf of jbtronics December 6, 2025 23:45
@jbtronics jbtronics marked this pull request as ready for review December 7, 2025 13:09
@jbtronics jbtronics merged commit 60ff727 into master Dec 7, 2025
21 checks passed
@jbtronics jbtronics deleted the copilot/replace-translation-placeholders branch December 7, 2025 13:09
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.

2 participants