Task: Make "Add to Calendar" translatable.

We're using the "modal dialog" configuration. Seems like the Button text and modal title both come from this line:

https://git.drupalcode.org/project/addtocal_augment/-/blob/1.0.x/js/moda...

If it were PHP, I'd say "not a t-string" but in Javascript, no idea :-/

Comments

hexabinaer created an issue. See original summary.

tobiasb’s picture

Version: 1.0.0 » 1.1.x-dev
Status: Active » Needs review
StatusFileSize
new351 bytes

Just a missing Drupal.t.

hexabinaer’s picture

Reviewing ...

Modal title now translatable, yay!

Button label: needs work.

tobiasb’s picture

Status: Needs review » Needs work

todo:

Remove t in https://git.drupalcode.org/project/addtocal_augment/-/blob/1.1.x/src/Plu... and make it translatable via config schema.

tobiasb’s picture

Title: Button/modal title not translatable » [PP -1] Button/modal title not translatable
Status: Needs work » Postponed
StatusFileSize
new1.7 KB
tobiasb’s picture

Title: [PP -1] Button/modal title not translatable » Button/modal title not translatable
Status: Postponed » Needs review

Patch was commited and part of a release.

  • tobiasb authored 80f4a64c on 1.1.x
    Issue #3314754 by tobiasb, hexabinaer: Button/modal title not...
mark_fullmer’s picture

Status: Needs review » Fixed

Patch was commited and part of a release.

Thanks for the heads up. Committing to the 1.1.x branch, which already has a Composer dependency on the 1.1.x branch of date_augmenter.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mrshowerman’s picture

I see that now both the terms "Add to Calendar" and "Add to calendar" are used. I guess only the latter is correct and should be the base for translations. Do we need a follow-up for this?

tobiasb’s picture

I would say yes.

mrshowerman’s picture