Module talk:Language/data/ISO 639 name to code

Latest comment: 4 months ago by Trappist the monk in topic "macedo romanian"

Table format

edit

@Trappist the monk: I was wondering if instead of having tables with mostly empty cells, having them as named parameters would work? As a mockup, here is a table with some parameters and then accessing it.

local function getLang()
	return {
		["'are'are"] = {[3] = "alu"},
		["zande languages"] = {[2] = "znd", [5] = "znd"},
	}
end

langs = getLang()
mw.log(langs["'are'are"][2])
mw.log(langs["zande languages"][2])
mw.log(langs["zande languages"][5])

Did I overlook something? --Gonnym (talk) 07:56, 1 September 2020 (UTC)Reply

Could certainly be done. I suspect that I didn't do it that way because explicit keys is not how any of the code-to-name tables are written and because it was easy to create sequence tables of empty-string values.
As I've been pondering how to add the override data to this table, I have thought that, because there are so few of them, before rendering, ~/make would remove empty strings from the right and replace the remaining empty strings with nil. Your solution could be an extension of that.
Trappist the monk (talk) 11:49, 1 September 2020 (UTC)Reply
done.
Trappist the monk (talk) 15:14, 1 September 2020 (UTC)Reply

Remove ajp

edit

It's deprecated. a455bcd9 (Antoine) (talk) 10:16, 3 October 2023 (UTC)Reply

ajp like 386 other tags (search the module for [14]) is marked as deprecated. Deprecated tags should only be removed when the ISO 639-3 custodian deletes the tag from their retirements list.
Trappist the monk (talk) 11:35, 3 October 2023 (UTC)Reply

"macedo romanian"

edit

Hi. As far as I know "Macedo-Romanian" is not in Wikipedia's code. This is a term mostly synonymous with Aromanian. Anytime "rup" is used in any Wikimedia place, "Aromanian" shows up. Is the list outdated? Super Ψ Dro 15:03, 20 February 2024 (UTC)Reply

This module has nothing to do with MediaWiki's list of supported languages. The ISO 639 source modules need to be updated (which I'll do) but they are not so far out of date to matter in this case. If you go to the ISO 639-3 custodian's website and look up language tag rup, you find a list of names under the 'Language Name(s)' header. Those names are: "Aromanian, Arumanian, Macedo-Romanian" which is the same list of names that you will find in Module:Language/data/ISO_639-3 from which Module:Language/data/ISO 639 name to code draws its names.
Trappist the monk (talk) 15:29, 20 February 2024 (UTC)Reply
Data set updated.
Trappist the monk (talk) 15:55, 20 February 2024 (UTC)Reply