Skip to content

Method fields_view_get_address returns untranslated XML #4060

@yajo

Description

@yajo

In an empty database, with Spanish language, install module contacts, and then go to the screen of creating a new contact. It appears like this:

captura de pantalla de 2014-12-05 10 40 14

The <div class="addres_format"> fields (highlighted in green) appear with Spanish placeholders (good!).

Now, edit your user's company's details and set country: Spain. Then again create a new partner. See the results:

captura de pantalla de 2014-12-05 10 42 53

This time those placeholders appear in English. (Also, badly styled, but merge #4059 and that gets fixed).

I imagine the function fields_view_get_address gets processed after the translation instead of before, and so the XML it injects is always in English.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions