Jump to content

Module talk:Wikt-lang

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lowercase sigmabot III (talk | contribs) at 06:01, 15 April 2021 (Archiving 10 discussion(s) to Module talk:Language/Archive 1) (bot). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconLanguages Template‑class
WikiProject iconThis module is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of languages on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis module does not require a rating on Wikipedia's content assessment scale.

Italicisation of Halkomelem

This discussion moved to Template talk:Lang#Italicisation of Halkomelem, as it pertains to {{lang}}.

@Erutuon: There's a few problems here:

  • There's a big red error where Old Saxon text should be.
  • The macron isn't stripped from Old High German.
  • The Gothic term isn't italic.

Rua (mew) 13:02, 26 December 2019 (UTC)[reply]

@Rua: The Gothic thing was a flaw in the module, which I fixed. As for osx, apparently mw.language.fetchLanguageName doesn't know about it, so it has to be added in Module:Language/data. And Module:Language/data doesn't have a full complement of entry name replacements for all languages; at the moment they have to be added as needed. — Eru·tuon 20:32, 26 December 2019 (UTC)[reply]
I was puzzled why it understood goh but not osx, despite neither of them being defined in that module. Is it because fetchLanguageName knows about one but not the other? Rua (mew) 21:33, 26 December 2019 (UTC)[reply]
Exactly. It's puzzling because osx is a regular ISO 639-3 code and I'd've thought mw.language.fetchLanguageName would have the English names for it since it's available online. (The function is defined here and apparently involves code here and here.) It might be worth filing a bug report for. — Eru·tuon 21:53, 26 December 2019 (UTC)[reply]

Language rkt

A recent edit at T–V distinction added entries for Kamtapuri language which display an error discussed at User talk:Msasag#Language rkt. The issue is that previewing the following wikitext in a sandbox gives the error message shown.

{{wikt-lang|rkt|তুই}}
Lua error in Module:Language at line 197: Name for the language code "rkt" could not be retrieved with mw.language.fetchLanguageName, so it should be added to Module:Language/data.

I'm hoping someone understands how to fix this. If it helps, the discussion points out that Module:Language/data/ISO 639-3 contains:

["rkt"] = {"Kamta", "Rangpuri"},

Johnuniq (talk) 02:47, 2 May 2020 (UTC)[reply]

@Johnuniq: At the moment the way to get a new language code working is to add Wiktionary's language name in data["languages"] in Module:Language/data; in this case
["rkt"] = {
	["name"] = "Kamta",
},
To find the language name, I looked for the language code or language name in the search box in wikt:Module:languages, and found the most appropriate entry in one of the modules that start with Module:languages/data (in this case, wikt:Module:languages/data3/r), and got its field 1, which is the "canonical name" used in language headers. Here the Wiktionary and ISO codes agree and Wiktionary has one of the ISO 639-3 names, but that's not always the case.
This process is not especially obvious to people who aren't familiar with Wiktionary's language data. I think it could be simplified by maintaining a local copy of the necessary data (language name and entry name replacements) here and creating a mapping from ISO code (or maybe multi-part IETF language tag) to Wiktionary language, though I'm not sure of all the details. — Eru·tuon 21:08, 9 November 2020 (UTC)[reply]
@Eruton: Thanks, I'll bear this in mind and your post is a record of what to do in the future. However the fix is not currently needed and it's above my language understanding so I'll leave it. Johnuniq (talk) 23:27, 9 November 2020 (UTC)[reply]

Slavic languages ISO 639-2 / 5 code absent

sla the ISO 639-2 / 5 code for the Slavic languages[1] isn't entered here and I get an error when trying to format things as that in {{Wikt-lang}}. I have no idea how to enter it otherwise I would've tried. —I'llbeyourbeach (talk) 13:43, 9 November 2020 (UTC)[reply]

This template is for linking to language headers in Wiktionary entries, and "Slavic languages" is not a valid language header (nor would "Germanic languages", gem, be). Are you trying to link to the Wiktionary entry for a word in a particular Slavic language or something else? — Eru·tuon 19:49, 9 November 2020 (UTC)[reply]

WP's wikt-lang should support Wiktionary's language codes

See wikt:Wiktionary:List of languages/special.

Example: Old Irish is designated sga.

Hm. It seems to have worked here. But it didn't when I was editing (in draft) Ollam just now; gave an error about unsupported language code. Unable to replicate. Sai ¿? 11:05, 15 March 2021 (UTC)[reply]

  1. ^ "sla | ISO 639-3". iso639-3.sil.org. Retrieved 2020-11-09.