Skip to content

Select an Option string in dropdown is not translatable #1704

Open
@pschiffe

Description

@pschiffe

Module version(s) affected

2.1.17

Description

The $has_one relation of DataObject renders in the admin as a dropdown. And if this relation doesn't have some default configured, it shows text Select an Option, for example, when creating a new instance of the DataObject class.

The text probably comes from some 3rd party, it doesn't seem to react to the browser language settings. The classes around the dropdown are: chosen-container chosen-container-single chosen-container-single-nosearch and chosen-single chosen-default.

Could you help me to identify the said 3rd party library and maybe find a way how to translate it? In the Silverstripe v3 there was no text visible.

307545016-159c6126-ff19-42bb-90df-f37cb1acae9c

How to reproduce

class A extends DataObject {

    private static $has_one = array(
        'B'    => 'B',
    );
...

Possible Solution

No response

Additional Context

No response

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions