Page MenuHomePhabricator

Wikisource Export: UX changes for language dropdown
Closed, ResolvedPublic2 Estimated Story PointsFeature

Description

As a WS Export user who speaks any language, I want a convenient interface for finding the Wikisource language I want to export from.

Background: While testing T269344, I found that it could be hard to find Wikisources using the keyboard when my interface language was in French.

Acceptance Criteria:
  • Change option names to just the name of the language ("English", "French", etc.)[1]
    • Have these translated into the user's uselang setting.
    • Have the language code in parentheses next to the language (e.g. "English (en)").
  • The first option should be the Wikisource corresponding to the user's uselang setting. The rest should be in alphabetical order[2].
    • A Wikisource may not exist corresponding to the uselang setting (e.g. there is no Kurdish Wikisource, but we have Kurdish translations in WS Export). In this case, just use alphabetical order.
Notes
  1. Bear in mind that we now have two "language" related options: the language the user is viewing the interface in (uselang) and the language of the Wikisource they are exporting from (lang). We want to make sure those two options are clearly distinguished in the language we use in the interface, documentation, etc.
  2. Currently, if only some of the Wikisource languages are translated, those with translations appear at the bottom (or top in some languages) and the non-translated ones appear at the top (or bottom). See, for example, Arabic, Hebrew, Italian. I am assuming that there is a well-defined alphabetical order that covers the entire Unicode range, although I don't know this for sure.

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptMar 9 2021, 9:06 AM
This comment was removed by ifried.
ifried set the point value for this task to 2.Mar 18 2021, 11:57 PM
ifried moved this task from Needs Discussion to Up Next (May 20-June 3) on the Community-Tech board.

Have the language code in parentheses next to the language (e.g. "English (en)").

The language code part of this has been done.

Currently, if only some of the Wikisource languages are translated, those with translations appear at the bottom (or top in some languages) and the non-translated ones appear at the top (or bottom).

Ideally we'd have translations (on Wikidata) for all Wikisource names at least in all Wikisource lanaguages, because those are more likely to be used. There's about 71 I think, so it shouldn't be such a huge task โ€” we could set up a thing that shows which ones are missing, and ask those communities to add the translations to Wikidata.

If we did have them all translated, would it be better to have the whole Wikisource name ("English Wikisource", "Wikisource en vietnamien", "Wikisource bahasa Basque", etc.)? Or would it still be better to just show the language name? Also, Multilingual Wikisource needs to be in that list (although we could add some sort of special handling for that, given that it is an odd one out).

Perhaps the simplest thing to do here to help the translation effort is to add a note next to the language list (underneath "The Wikisource from which to export the book.") when there are missing translations, saying something like

Not all Wikisources have had their names translated to [interface language] yet. Please help by adding labels to the following items on Wikidata: [foo], [bar].

With a list of links to the relevant items.

@NRodriguez what do you think? (See also my other questions above.)

We discussed this in the CommTech eng/design meeting the other day, and decided to list the Wikisource languages in their own languages (i.e. not translated to the uselang interface language). This matches what's done for the language-selection list in MediaWiki preferences (although the WS Export list is of projects, not languages, which is slightly different).

The exception is Multilingual Wikisource, which should be displayed in the interface language.

We list the Wikisource languages in their own language, or in the user's interface language if the language cannot be found on Wikidata.

For example, "English Wikisource (en)" appears the same with interface language set to English (https://ws-export-test.wmcloud.org/?uselang=en) and to French (https://ws-export-test.wmcloud.org/?uselang=fr).

But, "Modern Greek Wikisource (el)" displays as "Modern Greek Wikisource (el)" in English and "Wikisource en grec moderne (el)" in French.

languages.png (1ร—2 px, 213 KB)

In case of regression, I checked that the language dropdown contains all the languages it should

Test Environment: https://ws-export-test.wmcloud.org version version 2.7.6-1-g2fa850c.

unfamiliar with this project, but tested according to Dom's QA and it worked! thanks for documenting ticket well