Add Hawaiian as a choice in core language selectors

Created on 26 January 2023, over 1 year ago
Updated 3 March 2023, over 1 year ago

Problem/Motivation

Problem

I've started learning Hawaiian, and wanted to say so on my d.o profile, but there's no such option. Perhaps I'll start mentoring some folks here, and if I got anyone interested enough to try to contribute and create a d.o account, if that's not a choice for your language, it'd be very alienating.

I started digging, and it's not just d.o. Drupal itself doesn't provide this as a possible option in the core language selector (e.g. during site installation). I found LanguageManager::getStandardLanguageList() which I was planning to patch, then saw that it references needing to first create the language on l.d.o. 😅 I opened 📌 Add Hawaiian (ʻŌlelo Hawaiʻi) language to l.d.o Fixed about that, so once that's done, we can un-postpone this and proceed.

Motivation

Since the U.S. Marines overthrew the royal family and installed a government that would agree to join the US as the 50th state, many people in Hawai'i consider this an illegitimate, colonial occupation. After decades of repression, in the last ~30 years there's been a resurgence of traditional Hawaiian language and cultural practices. There are now Hawaiian language immersion schools, and a growing number of people, both Kānaka Maoli (so-called "Native Hawaiians") and haoles (outsiders) like me, are learning to read, write and speak ʻŌlelo Hawaiʻi.

Steps to reproduce

  1. Install a fresh Drupal site
  2. Try to pick "Hawaiian" (or "ʻŌlelo Hawaiʻi") for your language

Proposed resolution

Add 'Hawaiian' as a choice in core language selector ("ʻŌlelo Hawaiʻi" in the places where you can translate it). The official language code for this is haw.

Remaining tasks

  1. 📌 Add Hawaiian (ʻŌlelo Hawaiʻi) language to l.d.o Fixed .
  2. See MR !3301
  3. Do whatever else needs to happen to get this into the right version(s) of core. 😅

User interface changes

1 more choice in the core language selectors.

Before

After

API changes

N/A

Data model changes

N/A

📌 Task
Status

Fixed

Version

10.1

Component
Language system 

Last updated 2 days ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇺🇸United States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dww
  • 🇺🇸United States dww
  • @dww opened merge request.
  • 🇺🇸United States dww
  • Status changed to Needs review over 1 year ago
  • 🇺🇸United States dww

    I'm still a novice in the language, but I'm making some progress. Steps 1 and 2 are now done. I've started translating the installer, welcome page, and a very modest beginning on some of the sections of /admin. ;) There's a local tech meetup in a few weeks, and I'm going to be reaching out both to them and some of the wonderful folks at the University of Hawai'i in Hilo to see if I can find anyone else who wants to help with all this.

    I don't know what the criteria are for the core language picker, other than the existence of a translation at l.d.o. Since that now exists and is starting to provide real translations of core, figured it was time to un-postpone this and try to get it into core itself.

    Thanks!
    -Derek

    p.s. If you apply the changes from the MR, and use the installer, don't be confused with "hey, why isn't there a 'Hawaiian' choice?" The installer's language picker uses the translated name of the language, in the native alphabet, etc. Hawaiian is known as "ʻŌlelo Hawaiʻi", and since it starts with ʻ it gets sorted differently. 😅 See the after screenshots for details...

  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    Not sure what needs to be done to get translations up so they get pulled in automatically. But adding to the list seems like it should be perfectly fine.

  • 🇺🇸United States dww

    A few more notes:

    1. I wrote a handbook page about my experience trying to add Hawaiian to core: https://www.drupal.org/docs/multilingual-guide/adding-a-language-to-drup...
    2. I asked about this in Slack, and although Gabor didn't provide any additional criteria, he pointed me to #568986: Dynamically update standard language list from localization server . Marking that related.
    3. He did ask about the current diff between core's language selector and the teams on l.d.o. Attached here.
    • catch committed f8ac8262 on 10.1.x
      Issue #3336763 by dww: Add Hawaiian as a choice in core language...
  • Status changed to Fixed over 1 year ago
  • 🇬🇧United Kingdom catch

    Well done getting the translation started.

    Committed f8ac826 and pushed to 10.1.x. Thanks!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024