MediaWiki talk:Gadget-LanguageSelect.js/Archive 1
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 |
Updated
I updated the script, it should work for all browsers, More details here Esby (talk) 14:47, 14 May 2010 (UTC)
Todo
Just a few small notes for when I get back to this later, or if someone else feels like doing it.
- Not loading only on wgAction = view, but also on 'purge', 'historysubmit' and 'submit' (=preview).
- When detecting from browser and converting into the 3-priority thing, the '-' get's cut, but the '_' doesn't. Insert another round for that.
- Something got screwed up about that 'only one form per page' thing. See for example Category:Places. -- Safari 5, Mac.
–Krinkletalk 13:41, 26 June 2010 (UTC)
- The wgActions is not that easy to fix, there is a check on special page, to avoid the gaget to display on them; but the preview of a page affects this value. So I am wondering on how to fix properly this. Esby (talk) 15:52, 26 June 2010 (UTC)
- Got no opinion for the '_' vs '-'. I guess this should be fixed Esby (talk) 15:52, 26 June 2010 (UTC)
- The third point is because the old version of the script was being used. Esby (talk) 15:52, 26 June 2010 (UTC)
There's another bug within the line ...$(this).attr('id') != 'bodyContent' && $(this).attr('id') != 'LangTableLangs'...
, I propose. This makes it behave different in view and preview, where the outer div has another id. For example, compare view and edit. As a workaround I have enclosed the text with a <div class="multilingual">, but actually the id="wikiPreview" should be added to the list. I hope I guessed the right reason.
thinks -- ✓ Bergi 17:41, 14 November 2010 (UTC)
- Indeed. Fixed & thanks for reporting--DieBuche (talk) 18:04, 14 November 2010 (UTC)
- Thanks for fixing. Would it make sense to generate the surrounding div automatically, meaning for the HTML-syntax (even tough there is a template, but not used everywhere) beeing needless? -- ✓ Bergi 19:07, 14 November 2010 (UTC)
Merging the double
See here. –Krinkletalk 14:10, 26 June 2010 (UTC)
Alilingva teksto ene de sekcio de mld
http://commons.wikimedia.org/wiki/Category:Mozilla_Firefox_logos?uselang=eo
--AVRS (talk) 17:07, 3 September 2010 (UTC)
http://commons.wikimedia.org/wiki/Category:Mozilla_Firefox_logos?uselang=eo
--AVRS (talk) 17:07, 3 September 2010 (UTC)
- I think that one way to fix that is to add a new parameter to all language template, (I know this is silly, but I don't see any other way) which would translate to a new class attribute, eg: always-shown, so the javascript can know it should not be hidden. There would be another purpose to this parameter, but with a different usage: implementing the script at the local wikis, to allow the local wiki users to hide /show the associated descriptions. In this case, the local wiki lang template would need to use this parameter, since their usage there is not corresponding to the commons usage. (the lang template are locally used there for indicating another language, but there is no sense in hiding/showing such language there. Now, the description coming from commons could be hidden/shown. Esby (talk) 19:07, 14 November 2010 (UTC)
- I thought about it again, the special new parameter is only needed for the few Commons cases that need it. Externals wikis can use a version of the script that will only activate on the file namespace and only when the file is not a local one. Esby (talk) 10:02, 15 November 2010 (UTC)
Russian text strings
{{editprotected}} Please add russian translations for variable text messages:
- for ls_string_help
'ru': 'Выбор языка:'
- for ls_string_select
'ru': 'Выбрать'
- for ls_string_showall
'ru': 'Показать все'
Thanks! --Kaganer (talk) 16:14, 14 September 2010 (UTC)
- Done --Mormegil (talk) 18:45, 19 September 2010 (UTC)
recent refactoring - bugs
Some recent refactoring was done. I am quite neutral on it (no real opinion). Now there are news bugs and known solved bugs that are coming back:
- Default language is english?
- the image annotation and mld template are still causing issues. Wrongly displayed such as File:Berliner_kongress.jpg. It's an old bug, but it surfaces again under a new form: only the english version is displayed what ever is the choice.
I also hope the new script works on all browsers. (untested here) Esby (talk) 06:39, 13 October 2010 (UTC)
- The languageselector is basically unchanged, there's no default on english. Regarding {{Mld}} tags on IA: I got a fix just need to test it before--DieBuche (talk) 06:48, 13 October 2010 (UTC)
- It's disabled again for IA, but I'll talk to Lupo, maybe we can find the cause of the issue--DieBuche (talk) 15:37, 13 October 2010 (UTC)
Malayalam strings
{{editprotected}} Pls add these Malayalam translations for message strings
- ls_string_help :
- 'ml': 'ഭാഷ തിരഞ്ഞെടുക്കുക:',
- ls_string_select :
- 'ml': 'തിരഞ്ഞെടുക്കുക',
- ls_string_showall :
- 'ml': 'എല്ലാം',
Thankyou--Praveen:talk 01:50, 5 November 2010 (UTC)
- Done --Mormegil (talk) 20:59, 8 November 2010 (UTC)
Changes needed to implement the script on local wiki sides
There might be a need to implement this script on the local wiki side, in order to offuscate the non wanted languages, since the local wikis are only using one language.
Here's the changes that are in my opinion needed to make it work by copying the script on a local wiki: I tested on fr wiki.
The idea would be to keep the script source here, and just to deploy it within a local wiki by copying the content to the corresponding page.
The summary of changes can be seen here
Take care in reading the diff, as it shows changes that are not existing or necessary, the only changes, in my opinion that should be performed are:
- $ alias to $j needs to be defined as it is not necessarily defined in all local wikis
if (typeof $ == 'undefined') $=jQuery;
- On my test on fr , there was an issue with $.cookies 'not a function', I ended disabling cookie handling, as the user will most likely wants to see its user language on a local wiki.
The other idea behind that is there should be no other commons script to deploy to use this script on a local wiki.
if (wgNoticeProject != 'commons') return "";
repeated three times where it is needed. and
if (wgNoticeProject == 'commons') language = $.cookie(this.cookie);
replacing language = $.cookie(this.cookie); where it is needed.
- there were two conditions to add:
- Disable on non filespace on non-commons wikis.
- Disable on non local file on non-commons wikis.
// disabling on non files for non commons wikis
if ((wgNoticeProject != 'commons') && (wgNamespaceNumber !=6)) return;
// disabling on local files for non commons wikis
if ((wgNoticeProject != 'commons') && (wgArticleId!=0)) return;
Any opinion? Esby (talk) 03:22, 16 November 2010 (UTC)
Language select options
Can we add language names to language <select> tag? That would improve usability, here's what is to be done towards that:
Suggested changes:
1. Change:
multilingual.$select.append('<option>' + lang + '</option>');
to:
multilingual.$select.append('<option>' + (typeof(wgLanguageNames[lang]) == "string" ? wgLanguageNames[lang] : lang) + '</option>');
2. Add this object to multilingual object:
// shamelessly copied from MediaWiki's Names.php:
// http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Names.php?revision=74771
wgLanguageNames: {
'aa': 'Qafár af', // Afar
'ab': 'Аҧсуа', // Abkhaz, should possibly add ' бысжѡа'
'ace': 'Acèh', // Aceh
'af': 'Afrikaans', // Afrikaans
'ak': 'Akan', // Akan
'aln': 'Gegë', // Gheg Albanian
'als': 'Alemannisch', // Alemannic -- not a valid code, for compatibility. See gsw.
'am': 'አማርኛ', // Amharic
'an': 'Aragonés', // Aragonese
'ang': 'Ænglisc', // Old English (Bug 23283)
'ar': 'العربية', // Arabic
'arc': 'ܐܪܡܝܐ', // Aramaic
'arn': 'Mapudungun', // Mapuche, Mapudungu, Araucanian (Araucano)
'ary': 'Maġribi', // Moroccan Spoken Arabic
'arz': 'مصرى', // Egyptian Spoken Arabic
'as': 'অসমীয়া', // Assamese
'ast': 'Asturianu', // Asturian
'av': 'Авар', // Avar
'avk': 'Kotava', // Kotava
'ay': 'Aymar aru', // Aymara
'az': 'Azərbaycanca', // Azerbaijani
'ba': 'Башҡорт', // Bashkir
'bar': 'Boarisch', // Bavarian (Austro-Bavarian and South Tyrolean)
'bat-smg': 'Žemaitėška', // Samogitian (deprecated code, 'sgs' in ISO 693-3 since 2010-06-30 )
'bcc': 'بلوچی مکرانی', // Southern Balochi
'bcl': 'Bikol Central', // Bikol: Central Bicolano language
'be': 'Беларуская', // Belarusian normative
'be-tarask': 'Беларуская (тарашкевіца)', // Belarusian in Taraskievica orthography
'be-x-old': 'Беларуская (тарашкевіца)', // Belarusian in Taraskievica orthography; compat link
'bg': 'Български', // Bulgarian
'bh': 'भोजपुरी', // Bhojpuri
'bi': 'Bislama', // Bislama
'bjn': 'Bahasa Banjar', // Banjarese
'bm': 'Bamanankan', // Bambara
'bn': 'বাংলা', // Bengali
'bo': 'བོད་ཡིག', // Tibetan
'bpy': 'ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী', // Bishnupriya Manipuri
'bqi': 'بختياري', // Bakthiari
'br': 'Brezhoneg', // Breton
'bs': 'Bosanski', // Bosnian
'bug': 'ᨅᨔ ᨕᨘᨁᨗ', // Bugis
'bxr': 'Буряад', // Buryat (Russia)
'ca': 'Català', // Catalan
'cbk-zam': 'Chavacano de Zamboanga', // Zamboanga Chavacano
'cdo': 'Mìng-dĕ̤ng-ngṳ̄', // Min Dong
'ce': 'Нохчийн', // Chechen
'ceb': 'Cebuano', // Cebuano
'ch': 'Chamoru', // Chamorro
'cho': 'Choctaw', // Choctaw
'chr': 'ᏣᎳᎩ', // Cherokee
'chy': 'Tsetsêhestâhese', // Cheyenne
'ckb': 'کوردی', // Sorani
'co': 'Corsu', // Corsican
'cps': 'Capiceño', // Capiznon
'cr': 'Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ', // Cree
'crh': 'Qırımtatarca', // Crimean Tatar (multiple scripts - defaults to Latin)
'crh-latn': "Qırımtatarca (Latin)", // Crimean Tatar (Latin)
'crh-cyrl': "Къырымтатарджа (Кирилл)", // Crimean Tatar (Cyrillic)
'cs': 'Česky', // Czech
'csb': 'Kaszëbsczi', // Cassubian
'cu': 'Словѣ́ньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ', // Old Church Slavonic (ancient language)
'cv': 'Чӑвашла', // Chuvash
'cy': 'Cymraeg', // Welsh
'da': 'Dansk', // Danish
'de': 'Deutsch', // German ("Du")
'de-at': 'Österreichisches Deutsch', // Austrian German
'de-ch': 'Schweizer Hochdeutsch', // Swiss Standard German
'de-formal': 'Deutsch (Sie-Form)', // German - formal address ("Sie")
'diq': 'Zazaki', // Zazaki
'dsb': 'Dolnoserbski', // Lower Sorbian
'dv': 'ދިވެހިބަސް', // Dhivehi
'dz': 'ཇོང་ཁ', // Bhutani
'ee': 'Eʋegbe', // Éwé
'el': 'Ελληνικά', // Greek
'eml': 'Emiliàn e rumagnòl', // Emiliano-Romagnolo / Sammarinese
'en': 'English', // English
'en-gb': 'British English', // British English
'eo': 'Esperanto', // Esperanto
'es': 'Español', // Spanish
'et': 'Eesti', // Estonian
'eu': 'Euskara', // Basque
'ext': 'Estremeñu', // Extremaduran
'fa': 'فارسی', // Persian
'ff': 'Fulfulde', // Fulfulde, Maasina
'fi': 'Suomi', // Finnish
'fiu-vro': 'Võro', // Võro (deprecated code, 'vro' in ISO 639-3 since 2009-01-16)
'fj': 'Na Vosa Vakaviti', // Fijian
'fo': 'Føroyskt', // Faroese
'fr': 'Français', // French
'frc': 'Français cadien', // Cajun French
'frp': 'Arpetan', // Franco-Provençal/Arpitan
'frr': 'Nordfriisk', // North Frisian
'fur': 'Furlan', // Friulian
'fy': 'Frysk', // Frisian
'ga': 'Gaeilge', // Irish
'gag': 'Gagauz', // Gagauz
'gan': '贛語', // Gan (multiple scripts - defaults to Traditional)
'gan-hans': '赣语(简体)', // Gan (Simplified Han)
'gan-hant': '贛語(繁體)', // Gan (Traditional Han)
'gd': 'Gàidhlig', // Scots Gaelic
'gl': 'Galego', // Galician
'glk': 'گیلکی', // Gilaki
'gn': 'Avañe\'ẽ', // Guaraní, Paraguayan
'got': '𐌲𐌿𐍄𐌹𐍃𐌺', // Gothic
'grc': 'Ἀρχαία ἑλληνικὴ', // Ancient Greek
'gsw': 'Alemannisch', // Alemannic
'gu': 'ગુજરાતી', // Gujarati
'gv': 'Gaelg', // Manx
'ha': 'هَوُسَ', // Hausa
'hak': 'Hak-kâ-fa', // Hakka
'haw': 'Hawai`i', // Hawaiian
'he': 'עברית', // Hebrew
'hi': 'हिन्दी', // Hindi
'hif': 'Fiji Hindi', // Fijian Hindi (multiple scripts - defaults to Latin)
'hif-latn': 'Fiji Hindi', // Fiji Hindi (latin)
'hil': 'Ilonggo', // Hiligaynon
'ho': 'Hiri Motu', // Hiri Motu
'hr': 'Hrvatski', // Croatian
'hsb': 'Hornjoserbsce', // Upper Sorbian
'ht' : 'Kreyòl ayisyen', // Haitian Creole French
'hu': 'Magyar', // Hungarian
'hy': 'Հայերեն', // Armenian
'hz': 'Otsiherero', // Herero
'ia': 'Interlingua', // Interlingua (IALA)
'id': 'Bahasa Indonesia', // Indonesian
'ie': 'Interlingue', // Interlingue (Occidental)
'ig': 'Igbo', // Igbo
'ii': 'ꆇꉙ', // Sichuan Yi
'ik': 'Iñupiak', // Inupiak (Inupiatun, Northwest Alaska / Inupiatun, North Alaskan)
'ike-cans': 'ᐃᓄᒃᑎᑐᑦ', // Inuktitut, Eastern Canadian/Eastern Canadian "Eskimo"/"Eastern Arctic Eskimo"/Inuit (Unified Canadian Aboriginal Syllabics)
'ike-latn': 'inuktitut', // Inuktitut, Eastern Canadian (Latin script)
'ilo': 'Ilokano', // Ilokano
'inh': 'ГІалгІай Ğalğaj', // Ingush
'io': 'Ido', // Ido
'is': 'Íslenska', // Icelandic
'it': 'Italiano', // Italian
'iu': 'ᐃᓄᒃᑎᑐᑦ/inuktitut', // Inuktitut (macro language - do no localise, see ike/ikt - falls back to ike-cans)
'ja': '日本語', // Japanese
'jbo': 'Lojban', // Lojban
'jut': 'Jysk', // Jutish / Jutlandic
'jv': 'Basa Jawa', // Javanese
'ka': 'ქართული', // Georgian
'kaa': 'Qaraqalpaqsha', // Karakalpak
'kab': 'Taqbaylit', // Kabyle
'kbd': 'къэбэрдеибзэ/qabardjajəbza', // Kabardian (multiple scripts - defaults to Cyrillic)
'kbd-cyrl': 'къэбэрдеибзэ', // Kabardian (Cyrillic)
'kg': 'Kongo', // Kongo, (FIXME!) should probaly be KiKongo or KiKoongo
'ki': 'Gĩkũyũ', // Gikuyu
'kiu': 'Kırmancki', // Kirmanjki
'kj': 'Kwanyama', // Kwanyama
'kk': 'Қазақша', // Kazakh (multiple scripts - defaults to Cyrillic)
'kk-arab': "قازاقشا (تٴوتە)", // Kazakh Arabic
'kk-cyrl': "Қазақша (кирил)", // Kazakh Cyrillic
'kk-latn': "Qazaqşa (latın)", // Kazakh Latin
'kk-cn': "قازاقشا (جۇنگو)", // Kazakh (China)
'kk-kz': "Қазақша (Қазақстан)", // Kazakh (Kazakhstan)
'kk-tr': "Qazaqşa (Türkïya)", // Kazakh (Turkey)
'kl': 'Kalaallisut', // Inuktitut, Greenlandic/Greenlandic/Kalaallisut (kal)
'km': 'ភាសាខ្មែរ', // Khmer, Central
'kn': 'ಕನ್ನಡ', // Kannada
'ko': '한국어', // Korean
'ko-kp': '한국어 (조선)', // Korean (DPRK)
'koi': 'Перем Коми', // Komi-Permyak
'kr': 'Kanuri', // Kanuri, Central
'krc': 'Къарачай-Малкъар', // Karachay-Balkar
'kri': 'Krio', // Krio
'krj': 'Kinaray-a', // Kinaray-a
'ks': 'कश्मीरी - (كشميري)', // Kashmiri
'ksh': 'Ripoarisch', // Ripuarian
'ku' : 'Kurdî', // Kurdish (multiple scripts - defaults to Latin)
'ku-latn': "Kurdî (latînî)", // Northern Kurdish (Latin script)
'ku-arab': "كوردي (عەرەبی)", // Northern Kurdish (Arabic script) (falls back to ckb)
'kv': 'Коми', // Komi-Zyrian (Cyrillic is common script but also written in Latin script)
'kw': 'Kernewek', // Cornish
'ky': 'Кыргызча', // Kirghiz
'la': 'Latina', // Latin
'lad': 'Ladino', // Ladino
'lb': 'Lëtzebuergesch', // Luxemburguish
'lbe': 'Лакку', // Lak
'lez': 'Лезги', // Lezgi
'lfn': 'Lingua Franca Nova', // Lingua Franca Nova
'lg': 'Luganda', // Ganda
'li': 'Limburgs', // Limburgian
'lij': 'Líguru', // Ligurian
'lmo': 'Lumbaart', // Lombard
'ln': 'Lingála', // Lingala
'lo': 'ລາວ',// Laotian
'loz': 'Silozi', // Lozi
'lt': 'Lietuvių', // Lithuanian
'ltg': 'Latgaļu', // Latgalian
'lv': 'Latviešu', // Latvian
'lzh': '文言', // Literary Chinese -- (bug 8217) lzh instead of zh-classical, http://www.sil.org/iso639-3/codes.asp?order=639_3&letter=l
'lzz': 'Lazuri', // Laz
'mai': 'मैथिली', // Maithili
'map-bms': 'Basa Banyumasan', // Banyumasan
'mdf': 'Мокшень', // Moksha
'mg': 'Malagasy', // Malagasy
'mh': 'Ebon', // Marshallese
'mhr': 'Олык Марий', // Eastern Mari
'mi': 'Māori', // Maori
'min': 'Baso Minangkabau', // Minangkabau
'mk': 'Македонски', // Macedonian
'ml': 'മലയാളം', // Malayalam
'mn': 'Монгол', // Halh Mongolian (Cyrillic) (ISO 639-3: khk)
'mo': 'Молдовеняскэ', // Moldovan
'mr': 'मराठी', // Marathi
'mrj': 'Кырык мары', // Hill Mari
'ms': 'Bahasa Melayu', // Malay
'mt': 'Malti', // Maltese
'mus': 'Mvskoke', // Muskogee/Creek
'mwl': 'Mirandés', // Mirandese
'my': 'မြန်မာဘာသာ', // Burmese
'myv': 'Эрзянь', // Erzya
'mzn': 'مازِرونی', // Mazanderani
'na': 'Dorerin Naoero', // Nauruan
'nah': 'Nāhuatl', // Nahuatl, en:Wikipedia writes Nahuatlahtolli, while another form is Náhuatl
'nan': 'Bân-lâm-gú', // Min-nan -- (bug 8217) nan instead of zh-min-nan, http://www.sil.org/iso639-3/codes.asp?order=639_3&letter=n
'nap': 'Nnapulitano', // Neapolitan
'nb': "Norsk (bokmål)", // Norwegian (Bokmal)
'nds': 'Plattdüütsch', // Low German ''or'' Low Saxon
'nds-nl': 'Nedersaksisch', // Dutch Low Saxon
'ne': 'नेपाली', // Nepali
'new': 'नेपाल भाषा', // Newar / Nepal Bhasa
'ng': 'Oshiwambo', // Ndonga
'niu': 'Niuē', // Niuean
'nl': 'Nederlands', // Dutch
'nl-informal': 'Nederlands (informeel)', // Dutch (informal address ("je"))
'nn': "Norsk (nynorsk)", // Norwegian (Nynorsk)
'no': "Norsk (bokmål)", // Norwegian
'nov': 'Novial', // Novial
'nrm': 'Nouormand', // Norman
'nso': 'Sesotho sa Leboa', // Northern Sotho
'nv': 'Diné bizaad', // Navajo
'ny': 'Chi-Chewa', // Chichewa
'oc': 'Occitan', // Occitan
'om': 'Oromoo', // Oromo
'or': 'ଓଡ଼ିଆ', // Oriya
'os': 'Иронау', // Ossetic
'pa': 'ਪੰਜਾਬੀ', // Eastern Punjabi (Gurmukhi script) (pan)
'pag': 'Pangasinan', // Pangasinan
'pam': 'Kapampangan', // Pampanga
'pap': 'Papiamentu', // Papiamentu
'pcd': 'Picard', // Picard
'pdc': 'Deitsch', // Pennsylvania German
'pdt': 'Plautdietsch', // Plautdietsch/Mennonite Low German
'pfl': 'Pfälzisch', // Palatinate German
'pi': 'पािऴ', // Pali
'pih': 'Norfuk / Pitkern', // Norfuk/Pitcairn/Norfolk
'pl': 'Polski', // Polish
'pms': 'Piemontèis', // Piedmontese
'pnb': 'پنجابی', // Western Punjabi
'pnt': 'Ποντιακά', // Pontic/Pontic Greek
'prg': 'Prūsiskan', // Prussian
'ps': 'پښتو', // Pashto, Northern/Paktu/Pakhtu/Pakhtoo/Afghan/Pakhto/Pashtu/Pushto/Yusufzai Pashto
'pt': 'Português', // Portuguese
'pt-br': 'Português do Brasil', // Brazilian Portuguese
'qu': 'Runa Simi', // Quechua
'rgn': 'Rumagnôl', // Romagnol
'rif': 'Tarifit', // Tarifit
'rm': 'Rumantsch', // Raeto-Romance
'rmy': 'Romani', // Vlax Romany
'rn': 'Kirundi', // Rundi/Kirundi/Urundi
'ro': 'Română', // Romanian
'roa-rup': 'Armãneashce', // Aromanian
'roa-tara': 'Tarandíne', // Tarantino
'ru': 'Русский', // Russian
'rue': 'Русиньскый', // Rusyn
'ruq': 'Vlăheşte', // Megleno-Romanian (multiple scripts - defaults to Latin)
'ruq-cyrl': 'Влахесте', // Megleno-Romanian (Cyrillic script)
// 'ruq-grek': 'Βλαεστε', // Megleno-Romanian (Greek script)
'ruq-latn': 'Vlăheşte', // Megleno-Romanian (Latin script)
'rw': 'Kinyarwanda', // Kinyarwanda, should possibly be Kinyarwandi
'sa': 'संस्कृत', // Sanskrit
'sah': 'Саха тыла', // Sakha
'sc': 'Sardu', // Sardinian
'scn': 'Sicilianu', // Sicilian
'sco': 'Scots', // Scots
'sd': 'سنڌي', // Sindhi
'sdc': 'Sassaresu', // Sassarese
'se': 'Sámegiella', // Northern Sami
'sei': 'Cmique Itom', // Seri
'sg': 'Sängö', // Sango/Sangho
'sgs': 'Žemaitėška', // Samogitian
'sh': 'Srpskohrvatski / Српскохрватски', // Serbocroatian
'shi': 'Tašlḥiyt', // Tachelhit
'si': 'සිංහල', // Sinhalese
'simple': 'Simple English', // Simple English
'sk': 'Slovenčina', // Slovak
'sl': 'Slovenščina', // Slovenian
'sli': 'Schläsch', // Lower Selisian
'sm': 'Gagana Samoa', // Samoan
'sma': 'Åarjelsaemien', // Southern Sami
'sn': 'chiShona', // Shona
'so': 'Soomaaliga', // Somali
'sq': 'Shqip', // Albanian
'sr': 'Српски / Srpski', // Serbian (multiple scripts - defaults to Cyrillic)
'sr-ec': 'Српски (ћирилица)', // Serbian Cyrillic ekavian
'sr-el': 'Srpski (latinica)', // Serbian Latin ekavian
'srn': 'Sranantongo', // Sranan Tongo
'ss': 'SiSwati', // Swati
'st': 'Sesotho', // Southern Sotho
'stq': 'Seeltersk', // Saterland Frisian
'su': 'Basa Sunda', // Sundanese
'sv': 'Svenska', // Swedish
'sw': 'Kiswahili', // Swahili
'szl': 'Ślůnski', // Silesian
'ta': 'தமிழ்', // Tamil
'tcy': 'ತುಳು', // Tulu
'te': 'తెలుగు', // Telugu
'tet': 'Tetun', // Tetun
'tg': 'Тоҷикӣ', // Tajiki (falls back to tg-cyrl)
'tg-cyrl': 'Тоҷикӣ', // Tajiki (Cyrllic script) (default)
'tg-latn': 'tojikī', // Tajiki (Latin script)
'th': 'ไทย', // Thai
'ti': 'ትግርኛ', // Tigrinya
'tk': 'Türkmençe', // Turkmen
'tl': 'Tagalog', // Tagalog
'tn': 'Setswana', // Setswana
'to': 'lea faka-Tonga', // Tonga (Tonga Islands)
'tokipona': 'Toki Pona', // Toki Pona
'tpi': 'Tok Pisin', // Tok Pisin
'tr': 'Türkçe', // Turkish
'ts': 'Xitsonga', // Tsonga
'tt': 'Татарча/Tatarça', // Tatar (multiple scripts - defaults to Cyrillic)
'tt-cyrl': 'Татарча', // Tatar (Cyrillic script) (default)
'tt-latn': 'Tatarça', // Tatar (Latin script)
'tum': 'chiTumbuka', // Tumbuka
'tw': 'Twi', // Twi, (FIXME!)
'ty': 'Reo Mā`ohi', // Tahitian
'tyv': 'Тыва дыл', // Tyvan
'udm': 'Удмурт', // Udmurt
'ug': 'ئۇيغۇرچە / Uyghurche', // Uyghur (multiple scripts - defaults to Arabic)
'ug-arab': 'ئۇيغۇرچە', // Uyghur (Arabic script) (default)
'ug-latn': 'Uyghurche', // Uyghur (Latin script)
'uk': 'Українська', // Ukrainian
'ur': 'اردو', // Urdu
'uz': 'O\'zbek', // Uzbek
've': 'Tshivenda', // Venda
'vec': 'Vèneto', // Venetian
'vep': 'Vepsan kel\'', // Veps
'vi': 'Tiếng Việt', // Vietnamese
'vls': 'West-Vlams', // West Flemish
'vmf': 'Mainfränkisch', // Upper Franconian, Main-Franconian
'vo': 'Volapük', // Volapük
'vot': 'Vaďďa', // Vod/Votian
'vro': 'Võro', // Võro
'wa': 'Walon', // Walloon
'war': 'Winaray', // Waray-Waray
'wo': 'Wolof', // Wolof
'wuu': '吴语', // Wu Chinese
'xal': 'Хальмг', // Kalmyk-Oirat (Kalmuk, Kalmuck, Kalmack, Qalmaq, Kalmytskii Jazyk, Khal:mag, Oirat, Volga Oirat, European Oirat, Western Mongolian)
'xh': 'isiXhosa', // Xhosan
'xmf': 'მარგალური', // Mingrelian
'yi': 'ייִדיש', // Yiddish
'yo': 'Yorùbá', // Yoruba
'yue': '粵語', // Cantonese -- (bug 8217) yue instead of zh-yue, http://www.sil.org/iso639-3/codes.asp?order=639_3&letter=y
'za': 'Vahcuengh', // Zhuang
'zea': 'Zeêuws', // Zeeuws/Zeaws
'zh': '中文', // (Zhōng Wén) - Chinese
'zh-classical': '文言', // Classical Chinese/Literary Chinese -- (see bug 8217)
'zh-cn': "中文(中国大陆)", // Chinese (PRC)
'zh-hans': "中文(简体)", // Mandarin Chinese (Simplified Chinese script) (cmn-hans)
'zh-hant': "中文(繁體)", // Mandarin Chinese (Traditional Chinese script) (cmn-hant)
'zh-hk': "中文(香港)", // Chinese (Hong Kong)
'zh-min-nan': 'Bân-lâm-gú', // Min-nan -- (see bug 8217)
'zh-mo': "中文(澳門)", // Chinese (Macau)
'zh-my': "中文(马来西亚)", // Chinese (Malaysia)
'zh-sg': "中文(新加坡)", // Chinese (Singapore)
'zh-tw': "中文(台灣)", // Chinese (Taiwan)
'zh-yue': '粵語', // Cantonese -- (see bug 8217)
'zu': 'isiZulu' // Zulu
},
That should work without problems. :) Hołek ҉ 22:49, 24 November 2010 (UTC)
- Done - but not duplicating the work/load as these values are in wpAvailableLanguages set by MediaWiki:Common.js -- RE rillke questions? 19:34, 1 May 2012 (UTC)
Add also Portuguese translation ("pt" and "pt-br") for the other variables:
stringHelp: {
'pt': 'Seleção do idioma:',
'pt-br': 'Seleção do idioma:',
},
stringSelect: {
'pt': 'Selecionar',
'pt-br': 'Selecionar',
},
stringShowAll: {
'pt': 'Mostrar todos',
'pt-br': 'Mostrar todos',
},
By the way, why is the following?
// inflexible: can't accept multiple languages
// remove dialect/region code, leaving only the ISO 639 code
language = language.replace(/-.*?/, '');
Can't it be fixed? Helder 11:15, 25 November 2010 (UTC)
- It's not really broken. We have {{En}} or {{Fr}} ,now we don't have {{En US}},{{En UK}} {{Fr BE}} {{Fr FR}} templates and we most likely won't need it for most files. Esby (talk) 13:12, 25 November 2010 (UTC)
- Yep, but there are users which set its language to these options in the preferences and for some variants there can be big diferences in the text. Compare for example these lines:
'kk': 'Қазақша', // Kazakh (multiple scripts - defaults to Cyrillic)
'kk-cn': "قازاقشا (جۇنگو)", // Kazakh (China) 'kk-kz': "Қазақша (Қазақстан)", // Kazakh (Kazakhstan)
- Helder 16:03, 25 November 2010 (UTC)
- I am unsure if such modifications should be performed or not. Is there a way to rely on translate wiki for the internationasation, so the code stays more or less clear? Also, right now, two strings are not used anymore due to the new interface implemented by DieBuche. Esby (talk) 10:34, 6 December 2010 (UTC)
- Also, to talk back on 'kk-cn' and 'kk-kz', this javascript relies on the existence of localized template. Should the cn text be selected when using kk-cn an the kk (or kz?) text be used on the other side? I see a similar issue with de-ch, while the two language have separate code, I don't think that the {{De-ch}} exists on commons, and {{Ch}} is used for chammoro. so basically, if something has to be done, it must be done on case per case, since no generalization can be performed. That also implies descriptions in those dialects available on the files. Esby (talk) 10:41, 6 December 2010 (UTC)
- Well, not all the strings have to be right away, and we could just delete all the unnecessary ones, including dialects, if we want to. I'm simply showing a possible solution to showing a more user-friendly language select box, that's all. You're welcome to modify and adapt it however you like. Hołek ҉ 12:23, 29 December 2010 (UTC)
It seems that my initial request was missed: could someone add the Portuguese translations mentioned above? Helder 00:22, 30 December 2010 (UTC)
- Done --AVRS (talk) 09:34, 30 December 2010 (UTC)
Danish text strings
{{editprotected}} Please add danish translations for variable text messages:
- for ls_string_help
'da': 'Vælg sprog:'
- for ls_string_select
'da': 'Vælg'
- for ls_string_showall
'da': 'Vis alle'
Thanks! --Hejsa (talk) 23:51, 5 December 2010 (UTC)
Swedish text strings
{{Editprotected}} Please add these Swedish translated strings:
- stringHelp
'sv': 'Välj språk:'
- stringSelect
'sv': 'Välj'
- stringShowAll
'sv': 'Visa alla'
Thank you! // WikiPhoenix (Talk|Contr.) 18:56, 5 January 2011 (UTC)
- Thank you. Done --Dschwen (talk) 19:07, 5 January 2011 (UTC)
Hungarian text strings
{{Editprotected}} Please add these Hungarian translated strings:
- stringHelp
'hu': 'Nyelvválasztás:'
- stringSelect
'hu': 'Választás'
- stringShowAll
'hu': 'Mutasd mind'
Thanks! --BáthoryPéter (talk) 10:26, 12 January 2011 (UTC)
- Done Esby (talk) 10:38, 12 January 2011 (UTC)
Belarusian (taraškievica) strings
{{editprotected}} Add some strings, please:
{
stringHelp : {
'be-tarask' : 'Выбар мовы',
'be-x-old' : 'Выбар мовы' //compat. code
},
stringSelect : {
'be-tarask' : 'Выбраць',
'be-x-old' : 'Выбраць'
},
stringShowAll : {
'be-tarask' : 'Паказаць усе',
'be-x-old' : 'Паказаць усе'
}
}
Thank you! Wizardist (talk) 12:27, 2 April 2011 (UTC)
- Done --Mormegil (talk) 09:25, 18 April 2011 (UTC)
Stripping language variant codes
I want to raise this problem one more time. I use be-tarask
interface. So, it's not very good for me to get be
by default. I've read the previous discussion and still can't get the idea of such a policy. If a user selects "dashed" language, they will get something irrelevant. It's unacceptable as well. Here we get some ignorance towards all these locales. I don't see some template inexistance as something bad. Anyway, it can be fixed quick enough to stay unnoticed by general users.
What's wrong with this approach, comrades? :) Wizardist (talk) 20:27, 4 April 2011 (UTC)
- To ask the difficult question directly: How are you suggesting to code that? template and overall wise? Esby (talk) 22:38, 4 April 2011 (UTC)
- I can't understand what you've just written. I'll try once again: why have locales like 'pt-br' and 'be-tarask' been thrown away? Let's start with this. For now, I don't understand the current situation. Wizardist (talk) 16:59, 5 April 2011 (UTC)
- it's not like those two were thrown away, it's more like all specific language code were thrown away. as most don't and won't have a specific language template on commons: eg: fr-be, fr-ch, en-uk, en-us, etc.
- Now pt-br and be-tarask seems to be different enough to get their own template on commons {{Pt-br}} and {{Be-tarask}}.
- The issue is what to do when such language are selected by the user? there is obviously a need to fallback to {{Be}} when there is no {{Be-tarask}} existing. Same for {{Pt}} and {{Pt-br}}, and maybe the reverse is true, supposing we get {{Pt-br}} and no {{Pt}} in a description...
- So some coding has to be done to support that...
- Esby (talk) 20:55, 5 April 2011 (UTC)
- So are we talkin about templates only? If templates are the issue, then there's no problem to make a temporary redirect for all language variants which still don't have one. They can be fixed in future if needed. If something is translated into xx-xxx, and not in xx, then it's problem of xx community and its users. Well, xx-xxx would still be displayed in the list, so people will see it. Or we may let people see all variants, not the basic ones. It's much more reasonable, and it makes no ignorance attitude. Wizardist (talk) 00:32, 6 April 2011 (UTC)
- I can't understand what you've just written. I'll try once again: why have locales like 'pt-br' and 'be-tarask' been thrown away? Let's start with this. For now, I don't understand the current situation. Wizardist (talk) 16:59, 5 April 2011 (UTC)
I'm seeing the fallback problem mentioned by [[User:E, personally, that might be caused by a fix for the issue Wizardist was reporting. My locale is set to en-gb
and I've just been to the Stewards election page and I get all languages displayed, unless I choose en
from the drop-down list. There won't always be British English content and it would be better to show me generic English than everything. Similarly, if there is no Brazilian Portuguese, then generic Portuguese would be better than language soup, surely?
Looking at the JavaScript (and my JS is pretty dated these days, so I could well be wrong), it seems like the code (within the method apply
)
var jQueryrequestedLang = jQuery(this).find('[lang=' + language + ']');
if (jQueryrequestedLang.length) {
jQuery(this).children('[lang][lang!=' + language + ']').hide();
jQuery(this).children('[lang=' + language + ']').show();
} else {
jQuery(this).children('[lang]').show();
}
should maybe be something like
var jQueryrequestedLang = jQuery(this).find('[lang=' + language + ']');
if (jQueryrequestedLang.length) {
jQuery(this).children('[lang][lang!=' + language + ']').hide();
jQuery(this).children('[lang=' + language + ']').show();
} else if (language.indexOf('-') > 1) {
var macrolanguage = language.substring(0, language.indexOf('-'));
jQueryrequestedLang = jQuery(this).find('[lang=' + macrolanguage + ']');
if (jQueryrequestedLang.length) {
jQuery(this).children('[lang][lang!=' + macrolanguage + ']').hide();
jQuery(this).children('[lang=' + macrolanguage + ']').show();
}
} else {
jQuery(this).children('[lang]').show();
}
, with a new else if
clause. Does that makes sense? -- OwenBlacker | Discussion 00:29, 17 September 2011 (UTC)
Lang-selector is no longer suitable
Just visit Category:Cultural heritage monuments in Austria and switch to another language. The subcat-div got a lang=settings-lang attribute and will be hidden. -- RE rillke questions? 08:29, 6 October 2011 (UTC)
- before saying it's not suitable, it could be good to know from where the bug is coming?
- new version of mediawiki?
- recent changes performed by Krinkle?
- some other change that has a side effect?
- Esby (talk) 10:59, 6 October 2011 (UTC)
- The page is delivered with the lang attribute from the server, so I guess it's MW1.18 . -- RE rillke questions? 13:20, 6 October 2011 (UTC)
- The lang attribute there, fixes many other things regarding mixed language content. The script will have to be adapted to become a tad more smarter. TheDJ (talk) 16:55, 6 October 2011 (UTC)
- The page is delivered with the lang attribute from the server, so I guess it's MW1.18 . -- RE rillke questions? 13:20, 6 October 2011 (UTC)
- Category:Ports_and_harbours also had this problem. It was "solved" by using a real {{Mld}}. Or by removing the {{Categorize}} (autotranslated). Cheers --Saibo (Δ) 20:38, 11 October 2011 (UTC)
Same problem for cats like Category:1924 or Category:1925. What are we supposed to do ? --TwoWings * to talk or not to talk... 16:02, 14 October 2011 (UTC)
- as a work around, you can enclose localized texts between {{mld/start}} {{mld/end}} code like in [1] Esby (talk) 08:17, 15 October 2011 (UTC)
- Since we have many categories workarounds do not help really. However, the year cats are strange: in my case above it helped to use a mld insted of simple language tags. But in your case the description is already inside of mld (although via a template). Cheers --Saibo (Δ) 12:17, 15 October 2011 (UTC)
- Someone working on this issue? I also would appreciate a more modular construction: A function which takes a jQuery-object and returns one (with the hidden nodes). This would be important for MediaWiki:Gadget-GallerySlideshow.js. -- RE rillke questions? 13:08, 18 October 2011 (UTC)
- Since we have many categories workarounds do not help really. However, the year cats are strange: in my case above it helped to use a mld insted of simple language tags. But in your case the description is already inside of mld (although via a template). Cheers --Saibo (Δ) 12:17, 15 October 2011 (UTC)
Sorry for keeping you waiting, it's fixed now. --DieBuche (talk) 23:00, 3 November 2011 (UTC)
Porting to a gadget
Right now, we have a gadget to disable this script. Since MW 1.18 there are default gadgets. I suggest making a default gadget from this one for the following reasons:
- Some scripts (like the slideshow) will depend on this one, once I've rewritten it. Gadgets are RL-modules and can be easily loaded/ their state can be checked
- Opt-out gadgets are counter-intuitive; if something is ticked in the preferences, this should mean something is on and will be loaded.
- Code minification (comments & white space are stripped by RL)
-- RE rillke questions? 19:45, 1 May 2012 (UTC)
wpAvailableLanguages is not defined
When I access
http://meta.wikimedia.org/wiki/Don't_delete_redirects
I get the following error on Google Chrome:
Uncaught ReferenceError: wpAvailableLanguages is not defined
window.multilingual.buildWidget index.php:135
jQuery.extend.each load.php:9
jQuery.fn.jQuery.each load.php:4
window.multilingual.buildWidget index.php:131
window.multilingual.init index.php:185
(anonymous function) index.php:221
jQuery.Callbacks.fire load.php:14
jQuery.Callbacks.self.add load.php:14
jQuery.fn.jQuery.ready load.php:4
(anonymous function) index.php:220
loader.using load.php:156
(anonymous function) index.php:219
(anonymous function)
from line
var verboseLang = wpAvailableLanguages ? (wpAvailableLanguages[lang] || lang) : lang;
of this script.
Could someone take a look into it? Helder 20:15, 6 May 2012 (UTC)
- There was no warning that this script is foreign-used. Where else it is used? -- RE rillke questions? 20:51, 6 May 2012 (UTC)
- Thanks for the error-message, additionally I made a mistake; The intended behavior was to gracefully reduce the features if wpAvailableLanguages is not available.
- The intention is to display the language instead of the two-letter code. You can see it on Category:Flickr images needing human review.
- Isn't this dangerous for meta-admins (who have some advanced power) to load a JS from Commons?
Please purge your browser’s cache or enable JavaScript in your Browser's settings. (You only need to do it once.)
Operating system Browser |
Microsoft Windows or Linux | macOS |
---|---|---|
Chrome | Press Ctrl+F5 or ⇧ Shift+F5 or hold down ⇧ Shift while clicking Reload |
Press ⌘ Cmd+F5 or ⇧ Shift+F5 or hold down ⇧ Shift while clicking Reload |
Mozilla Firefox | Hold down ⇧ Shift while clicking Reload (or press Ctrl+F5 or Ctrl+⇧ Shift+R) |
Press ⌘ Cmd+R (reload page) or ⌘ Cmd+⇧ Shift+R (reload page and rewrite cache) |
Safari | Hold down ⇧ Shift+Alt while clicking Reload | |
Press Ctrl+R | Press ⌘ Cmd+⌥ Option+E (clear browser cache) or ⌘ Cmd+R (update) | |
Opera | Press Ctrl+F5 or ⇧ Shift+F5 | |
Konqueror | ||
Internet Explorer | Press Ctrl+F5 |
to see the results -- RE rillke questions? 20:59, 6 May 2012 (UTC)
Request for correction
Hello,
Many pages have a local menu in French who says :
“Sélecteur de langue:”
This is incorrect. Please correct that into :
“Sélecteur de langue :”
With a non-breaking space (
).
I found that the correction is needed in the page commons.wikimedia.org/wiki/MediaWiki:Multilingual_description.js.
I was going to correct that, but it's locked.
Thanks,
--Nnemo (talk) 08:09, 26 May 2012 (UTC)
- Done. Pages in MediaWiki-Namespace are always "locked". -- RE rillke questions? 08:29, 26 May 2012 (UTC)
Italian text strings
Please add these Italian translated strings:
- stringHelp
'it': 'Seleziona lingua:',
- stringShowAll
'it': 'Mostra tutte',
Thank you! {{Edit request}} Raoli ✉ (talk) 19:17, 1 October 2012 (UTC)
- Done. Thanks for you help. -- Rillke(q?) 10:19, 2 October 2012 (UTC)
Chinese translation
{{Edit request}} Please add Chinese: stringHelp:
'zh-hans': '语言选择',
stringShowAll:
'zh-hans': '全部显示',
--李Lee凡其Fanchy 06:15, 3 January 2013 (UTC)
- Done Thanks for helping! Jean-Fred (talk) 10:51, 3 January 2013 (UTC)
Farsi translation
{{Editprotected}} Please add the following text t the source. Thanks -- Meisam (talk) 06:24, 18 January 2013 (UTC)
stringHelp: {
'fa': 'انتخاب زبان:',
}
stringShowAll: {
'fa': 'نمایش همه',
}
- Done. Thanks for your translation efforts. -- Rillke(q?) 12:30, 18 January 2013 (UTC)
Gadget does not seem to work for me
I have the gadget enabled, but if it is supposed to collapse e.g. {{de|Foo}} if your language is en
or whatever, then it does not work for me. E.g. for me [2], in View mode, reads:
- Deutsch: Shanghai ist die grösste Stadt Chinas, zugleich eine Sonderwirtschaftszone.
- Česky: Šanghaj je nejlidnatější město Číny a významné hospodářské centrum této země.
...
It is only after I added the language-selector code per Meta that [3] came to read:
- English: Shanghai is the largest city in China ...
Any thoughts? It Is Me Here t / c 18:11, 22 February 2013 (UTC)
- If you wrap the multilingualDesc in
<li>s
, it does not work. Remove the*
and it works as expected. -- Rillke(q?) 18:17, 22 February 2013 (UTC)
Spanish and Galician
stringHelp: { 'es': 'Seleccionar idioma:', 'gl': 'Seleccionar idioma:', stringShowAll: { 'es': 'Mostrar todos', 'gl': 'Amosar todos',
Please add these translations. --Vivaelcelta {discussion · contributions} 15:25, 11 March 2013 (UTC)
- Done, thanks for helping! odder (talk) 23:51, 12 March 2013 (UTC)
Estonian translation
stringHelp: { 'et': 'Keelevalik:', stringShowAll: { 'et': 'Näita kõiki',
Thanks! Pikne 06:17, 28 July 2013 (UTC)
- Done Thanks for helping! Jean-Fred (talk) 07:55, 28 July 2013 (UTC)
Please Turkish add
Please, add;
stringHelp: { section;
'tr': 'Dil seçimi:',
stringShowAll: { section;
'tr': 'Tümünü göster',
Thanks.--i.е. v-mail 01:08, 26 August 2013 (UTC)
- Done Thank you. −ebraminiotalk 12:26, 26 August 2013 (UTC)
Fix in Galician (gl)
{{Editprotected}} Please fix Galician (gl) translations:
stringHelp:
Selección de lingua:stringShowAll:
Mostrar todas
Thanks! --Toliño Fala aquí comigo 23:40, 10 January 2014 (UTC)
- Done Thank you! -- Rillke(q?) 10:18, 11 January 2014 (UTC)
Seems work randomly
For example File:Tour Eiffel 3c02660.jpg (File:Converted to SVG.svg) displays no dropdown and however all languages. But File:Escudo de España.svg and File:Flag of Cairo.svg for example works!? PS: This struck me because the MediaViewer indicates this automatic language selection as pro-argument against the common Commons view. → User: Perhelion (Commons: = crap?) 21:38, 23 July 2014 (UTC)
- I can confirm that: same behavior for the mentioned files here. Additionaly: File:De-Deutsches Institut für Entwicklungspolitik.ogg - no drop down - all languages shown .....Sicherlich talk 12:58, 21 August 2014 (UTC)
- Add a fourth language and it will collapse. See
langCountThreshold: 4,
in code. -- Rillke(q?) 18:52, 21 August 2014 (UTC)Oh no! Why is there a collapse parameter???→ User: Perhelion (Commons: = crap?) 19:58, 21 August 2014 (UTC)- Which collapse parameter? -- Rillke(q?) 23:50, 21 August 2014 (UTC)
- Ach sorry, habe das völlig falsch verstanden.. Dann aber noch eine Frage, (im Namen von) Sicherlich hatte gefragt, ob man nicht mehr als eine Sprache als Favorit auswählen kann!? Ist es richtig, dass das Anliegen hier genau bei dem Script liegen würde!? Das müsste doch einfach zu machen sein (ich weiße dass es in HTML DropDowns mit Mehrauswahl gibt). VG → User: Perhelion (Commons: = crap?) 07:46, 22 August 2014 (UTC)
- Sicher ginge das. Muss nur einer machen. Und ob das jetzt, ob der immer konkreter werdenden Pläne zu den strukturierten Daten für die Dateibeschreibungsseite, noch sinnvoll ist, weiß ich nicht. -- Rillke(q?) 12:22, 22 August 2014 (UTC)
Bengali translation
{{Editprotected}} please add.
stringHelp: 'bn': 'ভাষা নির্বাচন', stringShowAll: 'bn': 'সব দেখান',
--Aftab (talk) 19:03, 30 November 2014 (UTC)
HR translation
stringHelp: 'hr': 'Odabir jezika:', stringShowAll: 'hr': 'prikaži sve',
Thanks.--Ma▀▄Ga 09:11, 24 January 2016 (UTC)
- Done--Jarekt (talk) 02:57, 26 January 2016 (UTC)
Tagalog and Cebuano
{{Editprotected}} Please add the following. Thanks in advance.
{
stringHelp : {
'ceb' : 'Pagpili og pinulongan'
'tl' : 'Pumili ng wika',
},
stringShowAll : {
'ceb' : 'Ipakita tanan'
'tl' : 'Ipakita ang lahat',
}
}
-Ianlopez1115 (talk) 15:41, 1 December 2016 (UTC)
This javascript is in Category:Pages using invalid self-closed HTML tags
This javascript is in Category:Pages using invalid self-closed HTML tags, and there was a message that such tags will start working differently soon. Anybody knows how to fix that? --Jarekt (talk) 21:11, 6 February 2017 (UTC)
TypeError thrown when remotely loaded
{{Editprotected}}
In the object initialisation, $OuterContainer: mw.util.$content
throws a TypeError if the script runs before mediawiki.util
has loaded. This can happen when loaded from meta:MediaWiki:Common.js, or similar. Simply removing that initialisation should fix it, instead relying on the initialisation in the ready handler. Murph9000 (talk) 22:06, 15 June 2017 (UTC)
- @Steinsplitter: Schaust Du mal? --Hedwig in Washington (mail?) 06:40, 16 June 2017 (UTC)
- Damit kenne ich mich nicht aus, vielecht @Perhelion: ? --Steinsplitter (talk) 10:35, 16 June 2017 (UTC)
- Done Awesome! Thank you! -- User: Perhelion 11:30, 16 June 2017 (UTC)
Mirandese translation (mwl)
Hello, please add the translation for the Mirandese language:
stringHelp: 'mwl': 'Scuolha de la lhéngua:', stringShowAll: 'mwl': 'Amostrar todos',
Thanks and greetings from the Portuguese and Mirandese communities. Athena in Wonderland (talk) 13:51, 15 October 2017 (UTC)
Neapolitan translation
{{Edit request}}
stringHelp
'nap': 'Sciglie na lengua:',
stringShowAll
'nap': 'Vire tutte',
Thank you --Ruthven (msg) 13:32, 30 October 2019 (UTC)
- Done Thank you! – Kwj2772 (talk) 22:10, 3 November 2019 (UTC)
Gadget should use hook instead of document ready event
(See also the Phabricator task.) When using scripts that reload the page via Ajax (such as Convenient Discussions and DiscussionTools) the language selection isn't preformed on reload, and all the language versions get displayed instead of only the selected one.
You can see the demonstration at meta:User talk:Jack who built the house/LanguageSelect bug demo. A real world example is meta:User talk:90.160.155.100#May 2021. Jack who built the house (talk) 21:15, 16 May 2021 (UTC)
Sl translation
{{Edit request}} Hello. Please add the following translation for Slovenian (sl):
1. For stringHelp
'sl': 'Izberite jezik:',
2. For stringShowAll
'sl': 'Prikaži vse',
Thank you. --TadejM (t/p) 13:08, 16 January 2023 (UTC)
- Done Awesome! Thank you! —Mdaniels5757 (talk • contribs) 17:38, 16 January 2023 (UTC)