Page MenuHomePhabricator

Make ZMonolingualString's hard-coded English placeholder label for "Enter text" proper i18n
Open, MediumPublicBUG REPORT

Description

Open Z102 in English. In the "Try this function" panel, look at labels -> text -> Item 1. The "Enter text" placeholder there is untranslatable.

If I look at the same page in Hebrew, I still see "Enter text".

I might be wrong, but I suspect that this is hard-coded in resources/ext.wikilambda.edit/components/default-view-types/ZMonolingualString.vue:

<cdx-info-chip
        ref="chipComponent"
        class="ext-wikilambda-lang-chip"
        :class="{ 'ext-wikilambda-lang-chip__empty': hasEmptyLang }"
>
        {{ langIso.toUpperCase() }}
</cdx-info-chip>
<cdx-text-input
        v-model="text"
        placeholder="Enter text"
>
</cdx-text-input>

Event Timeline

Jdforrester-WMF renamed this task from In Wikifunctions, the "Enter text" placeholder in the "Try this function" function is untranslatable to Make ZMonolingualString's hard-coded English placeholder label for "Enter text" proper i18n.Mar 12 2024, 8:52 PM
Mcastro triaged this task as Medium priority.Mar 14 2024, 4:47 PM
Mcastro moved this task from To triage to Backlog on the Abstract Wikipedia team board.

To clarify, the acceptance criteria is to see "Enter Text" in the respective user language and not in English for every language?

  • Do we expect to have translation for every language or can we have a fallback language with a chip?