Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop language policy #29

Open
hugolpz opened this issue Aug 8, 2022 · 1 comment
Open

Develop language policy #29

hugolpz opened this issue Aug 8, 2022 · 1 comment
Assignees

Comments

@hugolpz
Copy link
Member

hugolpz commented Aug 8, 2022

Add-on handles several languages parameters :

  • signLanguage
  • relevantWiktionary, source for the definitions, to be readable by the user.
  • relevantWiktinarySection = source for the definitions, the language of the written words clicked, written in uiLanguage (complexity therefore exploding).
  • uiLanguage

Question

Is the relevant Wiktionary relevant to that sign language or to the add-on's user's language ?

signLanguage

As for uiLanguage, we currently store the following info :

{ wdQid: "Q99628", nativeName: "langue des signes française"}

We could store parentLanguage: [ 'ru', 'kh' ] so to support languages such as Russian-Kazakh Sign Language.

uiLanguage

As for uiLanguage, we currently store the following info :

{ wdQid: "Q1860", nativeName: "English", associatedWikt: "en", associatedAnchorId: "#English" },

See also this WDQS query.

Complexity arise

Spanish user studying American Sign Language, may want:

{ uiLanguage:"es", signLanguage:"ASL",relevantWiktionary:"es", relevantWiktinarySection:"#Inglès" }

Hindi user studying American Sign Language, will want:

{ uiLanguage:"hi", signLanguage:"ASL",relevantWiktionary:"hi", relevantWiktinarySection:"#अंग्रेज़ी" }

Policy needed

Must think about a better balance between hard coded data and ../i18n/

Seems logical to assume the learner of American Sign Language knows to read in ENGLISH, and entry to ASL must go via this parent language.

See also

About "Add language UI in settings": Consider https://github.com/wikimedia/jquery.uls .

@hugolpz
Copy link
Member Author

hugolpz commented Aug 9, 2022

For a Swedish speaking user, if you want to get the definitions from https://sv.wiktionary.org/wiki/lapin#Franska and similar page, then :

"si-overlay-coreContent-right-wikt-iso": "sv"
"si-overlay-coreContent-right-wikt-section-id": "#Franska"

If you prefer your community to use https://en.wiktionary.org/wiki/lapin#French :

"si-overlay-coreContent-right-wikt-iso": "en"
"si-overlay-coreContent-right-wikt-section-id": "#French"

But this system is still under construction so I may have to think to something more intuitive.

See also :

@hugolpz hugolpz mentioned this issue Aug 30, 2022
9 tasks
@hugolpz hugolpz self-assigned this May 23, 2024
@hugolpz hugolpz added this to the 2024 documentation milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant