Problem/Motivation
The label of the "Abbreviation" button is not translated anymore.
Steps to reproduce
1. Configure the button to show in a text format for CKEditor 5
2. Switch to a different language, e.g. German.
3. Open a form showing the CKEditor with that text format
4. Hover over the "Abbreviation" button. The tooltip only says "Abbrevation", with no way to translate it.
Proposed resolution
The CKEditor 4 plugin hat a file "de.js" which translated this button. The new ckeditor5 plugin should use Drupal.t() in `abbreviationui.js` (line 26).
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|
Issue fork ckeditor_abbreviation-3439422
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3439422-ckeditor-5-toolbar
changes, plain diff MR !8
Comments
Comment #2
ammaletu commentedOnce this is fixed, it would be nice to tag a new release. We just migrated from CKEditor 4 to version 5, and this makes this button harder to use for German users.
Comment #5
aaron.ferris commentedIve had a go at this, the diff for the build is a bit odd though, am I doing something wrong?
1. npm install
2. npm run build
?
Comment #6
aaron.ferris commentedComment #7
aaron.ferris commentedComment #8
mparker17I think @boromino is more knowledgeable than myself about whether this is the correct solution (and whether the JS got built correctly).
The code looks like Drupal Core's MissingAlternativeTextView custom CKEditor plugin, and I know from experience that
Drupal.t()is the correct way to use Drupal's translation system in Drupal-JavaScript, so it seems good to me.Comment #10
boromino commentedThanks for the patch. Fixed and created new release.
Comment #11
aaron.ferris commentedThanks! Out of interest, is there something I was doing wrong for the build?
Secondly, sorry to be a pain, would appreciate a contrib credit if you get chance please. Thanks!
Comment #12
mparker17You were credited in the commit message; but I've credited you in the issue node as well! Thanks very much!
Comment #13
aaron.ferris commentedThanks @mparker17 :)