Page MenuHomePhabricator

TemplateData: HTML rendering of control keywords (empty, optional, ...) isn't translatable
Closed, ResolvedPublic

Description

Elements like "empty", "optional", "required" should be translatable. Ideally, parameter types should also be translatable, if only for display if it isn't possible to localize them in the JSON itself.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=50436

Details

Reference
bz50370

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:46 AM
bzimport added projects: TemplateData, I18n.
bzimport set Reference to bz50370.

Mixing עברית + English or English + العربية is nightmare.

{

"description": "תבנית כלשהי",
"params": {
        "שם": {
                "label": "שם",
                "type": "string/wiki-user-name",
                "required": true,
                "description": "שם של משתמש",
                "aliases": ["1"]
        }
},
"sets": [
        {
                "label": "Date",
                "params": ["שנה", "חודש", "יום"]
        }
]

}

Making this translatable is a new feature to develop, hence resetting severity to "enhancement".

I think comment #1 is about a different, and possibly more serious issue.

What I asked initially was the ability to translate interface items that are currently hardcoded in English.

What Eran Roz is reporting is the difficulty of writing TemplateData code on RTL wikis, which sounds like a bigger problem, and not just an 'enhancement'.

Eran, you should probably create a separate bug about this issues.

(In reply to comment #1)

Mixing עברית + English or English + العربية is nightmare.

Maybe bug 50169 helps with that?

Guillaume Paumier, Thanks for explanation. I created a different bug for it: bug 50436.
Helder, bug 50169 may help with it, and I mentioned it in the bug description.

  • Bug 50875 has been marked as a duplicate of this bug. ***
  • Bug 51781 has been marked as a duplicate of this bug. ***
  • Bug 52923 has been marked as a duplicate of this bug. ***

Change 87725 had a related patch set uploaded by Jforrester:
Localize default "empty" value and status (deprecated, optional, required)

https://gerrit.wikimedia.org/r/87725

Change 87725 merged by jenkins-bot:
Localize default "empty" value and status (deprecated, optional, required)

https://gerrit.wikimedia.org/r/87725

What about parameters type ? "string", ...

(In reply to comment #11)

What about parameters type ? "string", ...

Filed as bug 59745.