User talk:Jitrixis/nameGuzzler.js

Latest comment: 9 months ago by Wolverène in topic en-us
nameGuzzler.js (VIP labels)
This script allows you to add the same label in different language.
Developed by Jitrixis, an idea from Ljubinka. More information on the talk page How to custom : Go on Special:MyPage/nameGuzzlerOption.js then add this code : var nameGuzzler = ["en","de","fr","it", "es", "..."];$(document).myPlugin(nameGuzzler);

Sami languages

edit

@Jitrixis: Hi, could you please add "sje" and "smj" to the list of languages? Jon Harald Søby (talk) 07:05, 7 June 2017 (UTC)Reply

Add Balinese

edit

@Jitrixis:, could you add Balinese (ban)? Thanks --Beeyan (talk) 10:08, 17 June 2017 (UTC)Reply

Add all supported languages

edit

{{Editprotected}} I added all languages Wikidata supports to a copy of this script on my userpage, and at first it didn't work, until I found the culprit, which was a number in line 159. So, please make the following changes to this script:

Change line 138 to the following:

	var langlist = ["aa", "ab", "ace", "ady", "ady-cyrl", "aeb", "aeb-arab", "aeb-latn", "af", "ak", "aln", "am", "an", "ang", "anp", "ar", "arc", "arn", "arq", "ary", "arz", "as", "ast", "atj", "awa", "av", "avk", "ay", "az", "azb", "ba", "ban", "bar", "bbc", "bcc", "bcl", "be", "be-tarask", "bg", "bgn", "bho", "bi", "bjn", "bm", "bn", "bo", "bpy", "bqi", "br", "brh", "bs", "bto", "bug", "bxr", "ca", "cbk-zam", "cdo", "ce", "ceb", "ch", "cho", "chr", "chy", "ckb", "co", "cps", "cr", "crh-latn", "crh-cyrl", "cs", "csb", "cu", "cv", "cy", "da", "de", "de-at", "de-ch", "din", "diq", "dsb", "dtp", "dty", "dv", "dz", "ee", "egl", "el", "eml", "en", "en-ca", "en-gb", "eo", "es", "et", "eu", "ext", "fa", "ff", "fi", "fit", "fj", "fo", "fr", "frc", "frp", "frr", "fur", "fy", "ga", "gag", "gan", "gan-hans", "gan-hant", "gd", "gl", "glk", "gn", "gom", "gom-deva", "gom-latn", "gor", "got", "grc", "gsw", "gu", "gv", "ha", "hak", "haw", "he", "hi", "hif", "hif-latn", "hil", "ho", "hr", "hrx", "hsb", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "ike-cans", "ike-latn", "ilo", "inh", "io", "is", "it", "iu", "ja", "jam", "jbo", "jut", "jv", "ka", "kaa", "kab", "kbd", "kbd-cyrl", "kbp", "kea", "kg", "khw", "ki", "kiu", "kj", "kk", "kk-arab", "kk-cyrl", "kk-latn", "kk-cn", "kk-kz", "kk-tr", "kl", "km", "kn", "ko", "ko-kp", "koi", "kr", "krc", "kri", "krj", "krl", "ks", "ks-arab", "ks-deva", "ksh", "ku", "ku-latn", "ku-arab", "kv", "kw", "ky", "la", "lad", "lb", "lbe", "lez", "lfn", "lg", "li", "lij", "liv", "lki", "lmo", "ln", "lo", "loz", "lrc", "lt", "ltg", "lus", "luz", "lv", "lzh", "lzz", "mai", "map-bms", "mdf", "mg", "mh", "mhr", "mi", "min", "mk", "ml", "mn", "mo", "mr", "mrj", "ms", "mt", "mus", "mwl", "my", "myv", "mzn", "na", "nah", "nan", "nap", "nb", "nds", "nds-nl", "ne", "new", "ng", "niu", "nl", "nn", "nod", "nov", "nrm", "nso", "nv", "ny", "nys", "oc", "olo", "om", "or", "os", "ota", "pa", "pag", "pam", "pap", "pcd", "pdc", "pdt", "pfl", "pi", "pih", "pl", "pms", "pnb", "pnt", "prg", "ps", "pt", "pt-br", "qu", "qug", "rgn", "rif", "rm", "rmy", "rn", "ro", "roa-tara", "ru", "rue", "rup", "ruq", "ruq-cyrl", "ruq-latn", "rw", "rwr", "sa", "sah", "sat", "sc", "scn", "sco", "sd", "sdc", "sdh", "se", "sei", "ses", "sg", "sgs", "sh", "shi", "shi-tfng", "shi-latn", "shn", "si", "sje", "sk", "sl", "sli", "sm", "sma", "smj", "sn", "so", "sq", "sr", "sr-ec", "sr-el", "srn", "srq", "ss", "st", "stq", "su", "sv", "sw", "szl", "ta", "tcy", "te", "tet", "tg", "tg-cyrl", "tg-latn", "th", "ti", "tk", "tl", "tly", "tn", "to", "tokipona", "tpi", "tr", "tru", "ts", "tt", "tt-cyrl", "tt-latn", "tum", "tw", "ty", "tyv", "udm", "ug", "ug-arab", "ug-latn", "uk", "ur", "uz", "ve", "vec", "vep", "vi", "vls", "vmf", "vo", "vot", "vro", "wa", "war", "wo", "wuu", "xal", "xh", "xmf", "yi", "yo", "yue", "za", "zea", "zh", "zh-cn", "zh-hans", "zh-hant", "zh-hk", "zh-mo", "zh-my", "zh-sg", "zh-tw", "zu"];

And change the number 35 to 37 in line 159. Thank you! Jon Harald Søby (talk) 01:40, 18 June 2017 (UTC)Reply

  Done - Nikki (talk) 07:49, 21 June 2017 (UTC)Reply

Add simple (Simple English) to nameGuzzler

edit

{{Editprotected}}

Could you add the langcode 'simple' to the list of langs?

NEW CODE:

edit
	var langlist = ["aa", "ab", "ace", "ady", "ady-cyrl", "aeb", "aeb-arab", "aeb-latn", "af", "ak", "aln", "am", "an", "ang", "anp", "ar", "arc", "arn", "arq", "ary", "arz", "as", "ast", "atj", "awa", "av", "avk", "ay", "az", "azb", "ba", "ban", "bar", "bbc", "bbc-latn", "bcc", "bcl", "be", "be-tarask", "bg", "bgn", "bho", "bi", "bjn", "bm", "bn", "bo", "bpy", "bqi", "br", "brh", "bs", "bto", "bug", "bxr", "ca", "cbk-zam", "cdo", "ce", "ceb", "ch", "cho", "chr", "chy", "ckb", "co", "cps", "cr", "crh-latn", "crh-cyrl", "cs", "csb", "cu", "cv", "cy", "da", "de", "de-at", "de-ch", "din", "diq", "dsb", "dtp", "dty", "dv", "dz", "ee", "egl", "el", "eml", "en", "en-ca", "en-gb", "eo", "es", "et", "eu", "ext", "fa", "ff", "fi", "fit", "fj", "fo", "fr", "frc", "frp", "frr", "fur", "fy", "ga", "gag", "gan", "gan-hans", "gan-hant", "gd", "gl", "glk", "gn", "gom", "gom-deva", "gom-latn", "gor", "got", "grc", "gsw", "gu", "gv", "ha", "hak", "haw", "he", "hi", "hif", "hif-latn", "hil", "ho", "hr", "hrx", "hsb", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "ike-cans", "ike-latn", "ilo", "inh", "io", "is", "it", "iu", "ja", "jam", "jbo", "jut", "jv", "ka", "kaa", "kab", "kbd", "kbd-cyrl", "kbp", "kea", "kg", "khw", "ki", "kiu", "kj", "kk", "kk-arab", "kk-cyrl", "kk-latn", "kk-cn", "kk-kz", "kk-tr", "kl", "km", "kn", "ko", "ko-kp", "koi", "kr", "krc", "kri", "krj", "krl", "ks", "ks-arab", "ks-deva", "ksh", "ku", "ku-latn", "ku-arab", "kv", "kw", "ky", "la", "lad", "lb", "lbe", "lez", "lfn", "lg", "li", "lij", "liv", "lki", "lmo", "ln", "lo", "loz", "lrc", "lt", "ltg", "lus", "luz", "lv", "lzh", "lzz", "mai", "map-bms", "mdf", "mg", "mh", "mhr", "mi", "min", "mk", "ml", "mn", "mo", "mr", "mrj", "ms", "mt", "mus", "mwl", "my", "myv", "mzn", "na", "nah", "nan", "nap", "nb", "nds", "nds-nl", "ne", "new", "ng", "niu", "nl", "nn", "nod", "nov", "nrm", "nso", "nv", "ny", "nys", "oc", "olo", "om", "or", "os", "ota", "pa", "pag", "pam", "pap", "pcd", "pdc", "pdt", "pfl", "pi", "pih", "pl", "pms", "pnb", "pnt", "prg", "ps", "pt", "pt-br", "qu", "qug", "rgn", "rif", "rm", "rmy", "rn", "ro", "roa-tara", "ru", "rue", "rup", "ruq", "ruq-cyrl", "ruq-latn", "rw", "rwr", "sa", "sah", "sat", "sc", "scn", "sco", "sd", "sdc", "sdh", "se", "sei", "ses", "sg", "sgs", "sh", "shi", "shi-tfng", "shi-latn", "shn", "si", "simple", "sje", "sk", "sl", "sli", "sm", "sma", "smj", "sn", "so", "sq", "sr", "sr-ec", "sr-el", "srn", "srq", "ss", "st", "stq", "su", "sv", "sw", "szl", "ta", "tcy", "te", "tet", "tg", "tg-cyrl", "tg-latn", "th", "ti", "tk", "tl", "tly", "tn", "to", "tokipona", "tpi", "tr", "tru", "ts", "tt", "tt-cyrl", "tt-latn", "tum", "tw", "ty", "tyv", "udm", "ug", "ug-arab", "ug-latn", "uk", "ur", "uz", "ve", "vec", "vep", "vi", "vls", "vmf", "vo", "vot", "vro", "wa", "war", "wo", "wuu", "xal", "xh", "xmf", "yi", "yo", "yue", "za", "zea", "zh", "zh-cn", "zh-hans", "zh-hant", "zh-hk", "zh-mo", "zh-my", "zh-sg", "zh-tw", "zu"];
  Not done, simple is a discouraged "language" on Wikidata (only 32 labels atm). Sjoerd de Bruin (talk) 19:48, 24 June 2017 (UTC)Reply

New .js

edit

Может кто нибудь создать такой же инструмент, но только для кириллицы. Could somebody to create new .js but fo cyrillic. ToJack (talkcontribslogs) 15:45, 9 July 2017 (UTC)Reply

Toki pona

edit

Salut @Jitrixis:,

Intrigué par la présence du tokipona, j'ai testé sur Wikidata Sandbox (Q4115189) et j'ai reçu le message suivant :

nameGuzzler.js : Error : {"error":{"code":"not-recognized-language","info":"The supplied language code was not recognized.","messages":[{"name":"wikibase-api-not-recognized-language","parameters":[],"html":{"*":"The supplied language code was not recognized."}}],"*":"See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."},"servedby":"mw1230"}

Pourrais-tu jeter un œil ? (désolé, je ne me souviens plus où se trouve la liste complète des langues acceptées en libellé dans Wikidata).

Cdlt, VIGNERON (talk) 10:59, 3 November 2017 (UTC)Reply

Please exclude zh-my

edit

reason can be found at phab:T156572. --Liuxinyu970226 (talk) 13:02, 27 November 2017 (UTC)Reply

@Jitrixis: ^^? --Liuxinyu970226 (talk) 01:43, 6 January 2018 (UTC)Reply

Multiple aliases in one edit

edit

Many people and other items have multiple aliases in every (western-alphabet) language. For example, 'William Smith' may also be known as:

  • William John Smith
  • Bill Smith
  • W Smith
  • W J Smith

It would be good to be able to use this tool in "alias" mode, and to apply multiple values, using the pipe separator, like this:

William John Smith|Bill Smith|W Smith|W J Smith

Could you implement that, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:45, 5 January 2018 (UTC)Reply

Punctuation may be a problem here - this example person may be "W. Smith" or "W.J. Smith" or "W. J. Smith" in different locales. --Palnatoke (talk) 08:30, 25 February 2018 (UTC)Reply

Greek translation

edit
		
                'el': {
			'τίτλος': 'Ετικέτες VIP',
			'label': 'Ετικέτες',
			'languages': 'Γλώσσες',
			'send': 'Αποστολή',
			'close': 'Κλείσιμο',
			'select-all': 'Επιλογή όλων',
			'auto': 'Αυτόματη επιλογή',
			'reset': 'Επαναφορά',
			'selected-language': 'επιλεγμένη/ες γλώσσα/ες',
			'exemple': 'Ουίλλιαμ Σαίξπηρ', // Ο κύριος συγγραφέας μιας χώρας
			'mode-label': 'Περισσότερες Ετικέττες',
			'mode-aliases': 'Περισσότερα Αλλώνυμα'
		},

 – The preceding unsigned comment was added by Xaris333 (talk • contribs).

I've been bold and added both Greek and Italian translations to the tool. --Sannita - not just another it.wiki sysop 12:42, 29 June 2018 (UTC)Reply

Select all error

edit

When I use the "select all" option, I consistently get an error:

nameGuzzler.js : Error : {"error":{"code":"not-recognized-language","info":"The supplied language code was not recognized.","messages":[{"name":"wikibase-api-not-recognized-language","parameters":[],"html":{"*":"The supplied language code was not recognized."}}],"*":"See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."},"servedby":"mw1340"}

Can you fix this? - PKM (talk) 20:50, 2 March 2019 (UTC)Reply

Latvian language

edit

Hi, could you remove "lv". In Latvian seems this not work correctly. For example, this entry. --Treisijs (talk) 14:57, 12 March 2019 (UTC)Reply

@Jitrixis: Is here somebody? Please, remove Latvian. This doesn't work correctly for Latvian. --Treisijs (talk) 20:29, 29 May 2019 (UTC)Reply
There is transcription for Latvian. For example — "Michael Jackson" is Maikls Džeksons in Latvian. --Treisijs (talk) 20:32, 29 May 2019 (UTC)Reply

Translation in Brezhoneg

edit

Hi @Jitrixis:

Could you add this translation in Breton?

'br': {
			'title': 'Skridennad VIP',
			'label': 'Skridennad',
			'languages': 'Yezhoù',
			'send': 'Degas',
			'close': 'Serriñ',
			'select-all': 'Dibab pep tra',
			'auto': 'Dibab emgefre',
			'reset': 'Adderaouekaat',
			'selected-language': 'yezh(où) dibabet',
			'exemple': 'Añjela Duval',
			'mode-label': 'Mod skridennad',
			'mode-aliases': 'Mod anvet ivez'
		},

Cdlt, VIGNERON (talk) 13:59, 12 May 2019 (UTC)Reply

@VIGNERON:   Done --Jitrixis (talk) 08:03, 14 May 2019 (UTC)Reply

Filtering the list

edit

One should remove some (wrong) language codes, I don't know which, but when I press to add "all languages" gadget refuses because of wrong codes. --Infovarius (talk) 14:45, 13 August 2019 (UTC)Reply

Finnish translation and Saami languages

edit

Here's the translation into Finnish:

'fi': { 'title': 'VIPn nimet', 'label': 'Nimet', 'languages': 'Kielet', 'send': 'Lähetä', 'close': 'Sulje', 'select-all': 'Valitse kaikki', 'auto': 'Valitse automaattisesti', 'reset': 'Palauta', 'selected-language': 'valitut kielet', 'exemple': 'Aleksis Kivi', // The main writer of a country 'mode-label': 'Nimimoodi', 'mode-aliases': 'Aliasmoodi' },

Also, can you enable these Saami languages: sms, smn

Cheers, Susanna Ånäs (Susannaanas) (talk) 07:30, 23 August 2019 (UTC)Reply

Brazilian Portuguese translation

edit

Hi @Jitrixis:

Could you add this translation in Brazilian Portuguese?

'pt-br': {
			'title': 'Rótulos de VIPs',
			'label': 'Rótulos',
			'languages': 'Idiomas',
			'send': 'Envia',
			'close': 'Fecha',
			'select-all': 'Seleciona tudo',
			'auto': 'Seleção automática',
			'reset': 'Reset',
			'selected-language': 'Seleciona idioma(s)',
			'exemple': 'Machado de Assis'
		},

And include Brazilian Portuguese (pt-br) in "Auto Select"? Thank you! --Pablo Busatto (talk) 18:36, 23 August 2019 (UTC)Reply

How should it look like?

edit

Could you provide a screenshot how it‘s supposed to look in action? I just can’t figure it out … --Emu (talk) 10:44, 22 September 2019 (UTC)Reply

If you open an item page, there is a new "VIP's labels" entry in the "Tools" section of the menus on the left side of the browser window (assuming you are using the Vector skin). Click on it to open the dialogue, which is pretty self-explaining to my experience … —MisterSynergy (talk) 11:37, 22 September 2019 (UTC)Reply
Thank you! --Emu (talk) 11:43, 22 September 2019 (UTC)Reply

es translation

edit

{{Editrequest}} Please update spanish translation

'es': {
			'title': 'Etiquetas VIP',
			'label': 'Etiquetas',
			'languages': 'Idiomas',
			'send': 'Enviar',
			'close': 'Cerrar',
			'select-all': 'Seleccionar todo',
			'auto': 'Selección automática',
			'reset': 'Reiniciar',
			'selected-language': 'idioma(s) seleccionado(s)',
			'exemple': 'Miguel de Cervantes',
			'mode-label': 'Modo etiquetas',
			'mode-aliases': 'Modo alias'
		},

Thank you, --Ninovolador (talk) 05:13, 20 July 2020 (UTC)Reply

  DoneMisterSynergy (talk) 21:13, 14 October 2021 (UTC)Reply

Add Dagbani

edit

@Jitrixis:, could you please add Dagbani (dag)? Thanks! -—M@sssly 15:16, 23 December 2020 (UTC)Reply

sv translation

edit

{{Editrequest}}

		'sv': {
			'title': 'VIP-etiketter',
			'label': 'Etiketter',
			'languages': 'Språk',
			'send': 'Skicka',
			'close': 'Stäng',
			'select-all': 'Välj alla',
			'auto': 'Välj automatiskt',
			'reset': 'Återställ',
			'selected-language': 'valda språk',
			'exemple': 'Astrid Lindgren', // The main writer of a country
			'mode-label': 'Mode-etikett',
			'mode-aliases': 'Mode-alias'
		},

--Sabelöga (talk) 13:20, 4 August 2021 (UTC)Reply

  DoneMisterSynergy (talk) 21:10, 14 October 2021 (UTC)Reply

Overwriting existing labels/aliases with nameGuzzler

edit

Is there a way to do this with nameGuzzler at all? In my time editing Wikidata items, I've encountered a number of items where I actually want to update all or most of the labels mass-added by somebody else who used nameGuzzler, and I find I can't do this by default apparently. In one case just now, it turns out I can't even undo the previous nameGuzzler use without undoing a merge first. Monster Iestyn (talk) 03:35, 21 February 2023 (UTC)Reply

en-us

edit

@MisterSynergy: Would you please add the language en-us. Thank you! Quick-O-Mat (talk) 14:19, 13 June 2023 (UTC)Reply

@MisterSynergy: Could you please, as an interface administrator, help me to add also Dagbani 'dag' and Ladin 'lld' languages? As well as the ru translation of the gadget interface:
 'ru': {
			'title': 'Обозначения (VIP)',
			'label': 'Обозначения',
			'languages': 'Языки',
			'send': 'Отправить',
			'close': 'Закрыть',
			'select-all': 'Выбрать ВСЁ',
			'auto': 'Автовыбор',
			'reset': 'Сбросить',
			'selected-language': 'избранных языков',
			'exemple': 'Александр Пушкин', // главный писатель страны
			'mode-label': 'Режим обозначений',
			'mode-aliases': 'Режим синонимов'
		},
Thank you in advance. --Wolverène (talk) 12:29, 5 September 2023 (UTC)Reply
  DoneMisterSynergy (talk) 15:28, 5 September 2023 (UTC)Reply
Great! but 'en-us' is still not in the code... --Wolverène (talk) 17:45, 5 September 2023 (UTC)Reply
Oh I see.
Let's take a step back: there are currently 415 language codes defined in this script, but we have terms in 557 different languages (queried via wbt_text_in_lang table). A few of those seem clearly incorrect, but it is reasonable to assume that 100+ language codes are missing from this script. Do we have a place (script/documentation) that ultimately defines which language codes are allowed for terms? —MisterSynergy (talk) 19:48, 5 September 2023 (UTC)Reply
Well, I do not have a ready answer because I don't work much with such scripts. That was just a suggestion. :-) --Wolverène (talk) 17:58, 8 September 2023 (UTC)Reply
Return to the user page of "Jitrixis/nameGuzzler.js".