Making "Available Options" Translatable

Created on 14 November 2011, over 13 years ago
Updated 24 April 2025, 2 days ago

I can't seem to get the choices under "Available Options" to be translated.

I've hacked around a bit and I think that what's needed is an implementation of "hook_locale" and "hook__locale_refresh" to get i18n to see the strings as being translatable and a change to "select_or_other_content_allowed_values_alter" to load those translated values in the options with "i18nstrings" (or an equivalent local utility function to avoid the added dependency).

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇨🇦Canada samalander

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • 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