Jump to content

Category talk:CS1 errors: script parameters

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 22:08, 8 May 2020 (Known language codes). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Known language codes

Do we know why common languages like Portuguese and Greek are not “known” by the system. I can understand why less commonly cited languages code like “od” are missing. —¿philoserf? (talk) 21:00, 8 May 2020 (UTC)[reply]

Do you mean Od language? It has a language code odk which code is not known to MediaWiki:
{{#language:odk|en}} → odk
also there is Waddar language, apparently sometimes called Od. It has a language code wbq, also not known to MediaWiki
{{#language:wbq|en}} → wbq
If you mean od as a language code for something, that combination of letters is not an ISO 639-1 code:
{{#invoke:lang|name_from_tag|od}}Error: unrecognized language code: od
In this citation, Google translate thinks that the value in |script-title=ଚିକିଟୀର ସାହିତ୍ୟ ଓ ସାହିତ୍ୟିକ is Odia language; I do not know if Google translate is correct. The language code for Odia is or which code MediaWiki understands:
{{#language:or|en}} → Odia
cs1|2 does not understand or for |script-title= because until now, there has been no call for it. I have added it to the module suite sandbox so it will be supported after the next module suite update.
MediaWiki does understand the codes for Portuguese (pt) and Greek (el):
{{#language:pt|en}} → Portuguese
{{#language:el|en}} → Greek
In this citation, |script-title= uses gr which is not a valid ISO 639-1 language code.
In this citation, |script-title= is used where it should not be used. |script-title= is to be used for titles that are written using scripts that are not Latin based. Portuguese is written using the Latin script so cs1|2 rejects that use of |script-title=.
Trappist the monk (talk) 22:08, 8 May 2020 (UTC)[reply]