Module talk:Wikt-lang
This is the talk page for discussing improvements to the Wikt-lang module. |
|
Archives: 1Auto-archiving period: 12 months ![]() |
![]() | Languages Template‑class | ||||||
|
![]() | To help centralize discussions and keep related topics together, Template talk:wikt-lang and Template talk:wt redirect here. |
Italicisation of Halkomelem
- This discussion moved to Template talk:Lang#Italicisation of Halkomelem, as it pertains to
{{lang}}
.
Errors on Early Germanic calendar
@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)
- @Rua: The Gothic thing was a flaw in the module, which I fixed. As for
osx
, apparentlymw.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)- I was puzzled why it understood
goh
but notosx
, despite neither of them being defined in that module. Is it becausefetchLanguageName
knows about one but not the other? Rua (mew) 21:33, 26 December 2019 (UTC)- Exactly. It's puzzling because
osx
is a regular ISO 639-3 code and I'd've thoughtmw.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)
- Exactly. It's puzzling because
- I was puzzled why it understood
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)
- @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 caseTo 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["rkt"] = { ["name"] = "Kamta", },
Module:languages/data
(in this case, wikt:Module:languages/data3/r), and got its field1
, 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)
- @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)
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)
- 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)
WP's wikt-lang should support Wiktionary's language codes
See wikt:Wiktionary:List of languages/special.
Example: Old Irish is designated sga.
- WP template IPA-* accepts it: Template:IPA-sga
- WP template wikt-lang does not: ollam Sai ¿?✍ 11:02, 15 March 2021 (UTC)
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)
lang for Proto-Slavic
*bogatьstvo ({{wikt-lang|sla-pro|*bogatьstvo}}) should emit HTML similar to *bogatьstvo ({{lang|sla-x-proto|bogatьstvo}}) but in the first case the lang attribute has the illegal sla-pro
and the second has sla
.
--Error (talk) 12:50, 25 June 2021 (UTC)
- ^ "sla | ISO 639-3". iso639-3.sil.org. Retrieved 2020-11-09.