Skip to content

Custom profile fields are not very good with localization #3112

Description

@emanuele45

Custom profile fields are "strict" on the language: for example the gender icon depends on the value of the field (i.e. the text displayed).
There are two main problems here:

  1. it's not possible to have localized fields,
  2. when the text is changed, it requires to add also the corresponding CSS in order to fix the CSS classes that in the meantime have changed.

Point 1 could be lower priority since one language may be enough "for the time being".
Point 2, though, is a bit more pressing, because it adds a burden to the user using the custom fields.

For point 2, what I would like to do is add a "key" associated to the value, this key will replace the "value" for all the technical uses (i.e. anything except the display of the actual text to the users in the template).
Problems may be:

  1. how to define the key in the admin panel,
  2. regressions.

On top of that solution (at some point) we may be able to build a localization feature for the custom profile fields, but this may be for 2.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions