Implement __toString() on Translation Annotation

Created on 23 October 2014, about 10 years ago
Updated 27 November 2023, about 1 year ago

Postponing for 8.1.x being open for development.

Problem/Motivation

Working through #2339151: Conditions / context system does not allow for multiple configurable contexts, eg. language types β†’
found that the Translation annotation class was kind of ill-equipped for non-Plugin-class subclasses.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->

So unless this reduces fragility...

not allowed in the beta.

but API additions are allowed in 8.1.x, so postponing till that is open for development.

Proposed resolution

The Translation annotation class would work better in this case if it has a __toString() implementation.

Remaining tasks

<!-- See https://drupal.org/core-mentoring/novice-tasks for tips on identifying novice tasks. Delete or add "Novice" from the Novice? column in the table below as appropriate. Uncomment tasks as the issue advances. Update the Complete? column to indicate when they are done, and maybe reference the comment number where they were done. -->

User interface changes

No.

API changes

API addition.

Original report by @EclipseGc β†’

πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
PluginΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States eclipsegc

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024