Skip to content

[WIP] Add translation for mblock_clear_clipboard#213

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/add-mblock-clear-clipboard-translation
Closed

[WIP] Add translation for mblock_clear_clipboard#213
Copilot wants to merge 1 commit into
mainfrom
copilot/add-mblock-clear-clipboard-translation

Conversation

Copilot AI commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Fix missing translation for mblock_clear_clipboard

Issue: The translation key mblock_clear_clipboard is defined in all language files but not being replaced in the UI, showing as literal text {{mblock_clear_clipboard}} instead of the translated text.

Root Cause: The MBlockParser::replaceLanguagePlaceholders() method only handles translation placeholders with the pattern {{mblock::language_key}}, but the code uses the simpler pattern {{language_key}} (without the mblock:: prefix).

Solution: Update the replaceLanguagePlaceholders() method to also handle the simpler {{language_key}} pattern.

Progress Checklist:

  • Explore repository structure and understand the codebase
  • Identify the root cause of the missing translation
  • Update MBlockParser to handle both translation placeholder patterns
  • Test the fix to ensure translations work correctly
  • Verify no other translations are broken
Original prompt

This section details on the original issue you should resolve

<issue_title>Übersetzung fehlt: mblock_clear_clipboard</issue_title>
<issue_description>Image

MBlock: 4.3.5</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #212


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

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.

Übersetzung fehlt: mblock_clear_clipboard

2 participants