User talk:Yair rand/FindRedirectsForAliases.js

From Wikidata
Jump to navigation Jump to search

Italian translation[edit]

Thank you. Raoli (talk) 16:32, 12 November 2012 (UTC)[reply]

    it: {
      FindRedirects: 'Trova redirect',
      FRTooltip: 'Aggiungi alias dai redirect di Wikipedia',
      loading: "Caricamento in corso...",
      dialogtitle: "Aggiunta alias dai redirect",
      error: "Errore: ",
      nonefound: "Nessun redirect trovato.",
      dialogintro: "Seleziona i redirect da aggiungere come alias: ",
      add: "Aggiungi"
    },
Added to the script, thanks. --Yair rand (talk) 23:03, 12 November 2012 (UTC)[reply]
Thanks Raoli (talk) 00:39, 13 November 2012 (UTC)[reply]

German translation[edit]

FindRedirects: 'Finde Weiterleitungen',
FRTooltip: 'Füge Wikipedia-Weiterleitungen als Alias hinzu',
loading: "Lädt…",
dialogtitle: "Füge Weiterleitungen als Alias hinzu",
error: "Fehler: ",
nonefound: "Keine Weiterleitung gefunden.",
dialogintro: "Wähle eine Weiterleitung um sie als Alias hinzuzufügen: ",
add: "Hinzufügen"

And two things:

  • If a redirect is chosen, the change of the color is very tiny and its difficult to see wether a redirect is chosen or not.
  • Is it possible to add something like a "global" option, that would add the redirect(s) to all wikis? In many cases that would be usefull.

Greets and thanks or the script.--CENNOXX (talk) 13:43, 14 November 2012 (UTC)[reply]

 Support I agree this this two ideas. --Raoli (talk) 16:15, 14 November 2012 (UTC)[reply]
  • I've added the translation to the script and changed the background color of selected items to make the difference more visible. I don't quite understand where a "global" option would be useful, though. Different languages use entirely different scripts. When would it be appropriate to have an alias applying to every language? --Yair rand (talk) 22:13, 14 November 2012 (UTC)[reply]
    For example, if I created an entity on many chemical elements I would have the possibility to add only aliases for my language. Many other people should add those same aliases to their tongues. This is a expenditure of energy, in my opinion, unnecessary. A button that allows you to switch language would be perfect. Raoli (talk) 22:42, 14 November 2012 (UTC)[reply]

Update[edit]

It may happen that people use in a wrong way this tool. Therefore I propose the addition of this text. Raoli (talk) 16:45, 14 November 2012 (UTC)[reply]

      dialogintro: "Non aggiungere pagine come “Titolo (disambiguante)”. Seleziona i redirect da aggiungere come alias: ", //it
      dialogintro: "Please, don't pick pages like “Title (disambiguation)”. Select redirects to add as aliases: ", //en
I like the idea, but I'm not sure "Title (disambiguation)" is the best example. There are a lot of other types of redirects that aren't acceptable as aliases, and I don't want the tool to give the impression that everything short of having brackets in the name is appropriate. Additionally, redirects like "Title (disambiguation)" are kind of rare, aren't they? --Yair rand (talk) 22:18, 14 November 2012 (UTC)[reply]
Frankly, in English Wikipedia I don't know this. In Italian Wikipedia are quite frequent. As far as I concerned, a warning like this had to put because the tool may be integrated into a more powerful tool that contains all the gadgets so far created. Raoli (talk) 22:29, 14 November 2012 (UTC)[reply]

Chinese Translation[edit]

zh: {
      FindRedirects: '查找重定向',
      FRTooltip: '根据维基百科的重定向添加别名',
      loading: "载入中……",
      dialogtitle: "根据重定向添加别名",
      error: "错误:",
      nonefound: "没有找到重定向。",
      dialogintro: "选择重定向以添加为别名:",
      add: "添加"
    },
zh-hans: {
      FindRedirects: '查找重定向',
      FRTooltip: '根据维基百科的重定向添加别名',
      loading: "载入中……",
      dialogtitle: "根据重定向添加别名",
      error: "错误:",
      nonefound: "没有找到重定向。",
      dialogintro: "选择重定向以添加为别名:",
      add: "添加"
    },
zh-cn: {
      FindRedirects: '查找重定向',
      FRTooltip: '根据维基百科的重定向添加别名',
      loading: "载入中……",
      dialogtitle: "根据重定向添加别名",
      error: "错误:",
      nonefound: "没有找到重定向。",
      dialogintro: "选择重定向以添加为别名:",
      add: "添加"
    },
zh-sg: {
      FindRedirects: '查找重定向',
      FRTooltip: '根据维基百科的重定向添加别名',
      loading: "载入中……",
      dialogtitle: "根据重定向添加别名",
      error: "错误:",
      nonefound: "没有找到重定向。",
      dialogintro: "选择重定向以添加为别名:",
      add: "添加"
    },
zh-hant: {
      FindRedirects: '查找重定向',
      FRTooltip: '根據維基百科的重定向添加別名',
      loading: "載入中……",
      dialogtitle: "根據重定向添加別名",
      error: "錯誤:",
      nonefound: "沒有找到重定向。",
      dialogintro: "選擇重定向以添加為別名:",
      add: "添加"
    },
zh-hk: {
      FindRedirects: '查找重定向',
      FRTooltip: '根據維基百科的重定向添加別名',
      loading: "載入中……",
      dialogtitle: "根據重定向添加別名",
      error: "錯誤:",
      nonefound: "沒有找到重定向。",
      dialogintro: "選擇重定向以添加為別名:",
      add: "添加"
    },
zh-mo: {
      FindRedirects: '查找重定向',
      FRTooltip: '根據維基百科的重定向添加別名',
      loading: "載入中……",
      dialogtitle: "根據重定向添加別名",
      error: "錯誤:",
      nonefound: "沒有找到重定向。",
      dialogintro: "選擇重定向以添加為別名:",
      add: "添加"
    },
zh-tw: {
      FindRedirects: '查找重定向',
      FRTooltip: '根據維基百科的重定向添加別名',
      loading: "載入中……",
      dialogtitle: "根據重定向添加別名",
      error: "錯誤:",
      nonefound: "沒有找到重定向。",
      dialogintro: "選擇重定向以添加為別名:",
      add: "添加"
    },

Not sure if zh-cn/zh-sg can fallback to zh-hans (Simplified Chinese), zh-hk/zh-mo/zh-tw can fallback to zh-hant (Traditional Chinese) automatically or not, so I included them all :-P Thank you. --tOMG 01:50, 17 November 2012 (UTC)[reply]

The script works by finding redirects in the specific Wikipedia of the selected language, so if a user has zh-cn selected as their language, it won't be able to find any redirects, as http://zh-cn.wikipedia.org/ doesn't exist.
I've added the zh translation to the script. --Yair rand (talk) 11:03, 18 November 2012 (UTC)[reply]

french and catalan translations[edit]

Hello,

I added two translation (catalan i french) into your script. -- Bertrand GRONDIN  → (écrire) 20:34, 19 November 2012 (UTC)[reply]

feature request[edit]

Hy, is it possible to check if a redirect links to a special part of an article and exclude them?--CENNOXX (talk) 15:14, 24 November 2012 (UTC)[reply]

The only way that I can think of to do that would be to request the content of the pages from the servers. Not the fastest operation, I suspect. I've thrown together User:Yair rand/FindRedirectsForAliases2.js, which does this. If it's a helpful improvement, I'll add it to FindRedirectsForAliases.js. --Yair rand (talk) 15:26, 26 November 2012 (UTC)[reply]

farsi translation[edit]

    fa: {
      FindRedirects: 'یافتن تغییرمسیرها',
      FRTooltip: 'افزودن لقب‌ها بر پایه تغییرمسیرها',
      loading: "بارگیری...",
      dialogtitle: "افزودن لقب‌ها بر پایه تغییرمسیرها",
      error: "خطا: ",
      nonefound: "تغییرمسیری یافت نشد.",
      dialogintro: "تغییرمسیری را که می خواهید به عنوان لقب از آن استفاده کنید را انتخاب کنید: ",
      add: "افزودن",
      policynote: "(توجه کنید همه تغییرمسیرها نمی‌توانند به عنوان لقب قابل استفاده باشند. لطفاً $1 را برای اطلاعات بیشتر مطالعه نمائید.)",
      policypage: "Help:Aliases"
    },

please add this text as farsi translation, thanks Reza1615 (talk) 18:04, 18 February 2013 (UTC)[reply]

✓ Done, thanks. --Yair rand (talk) 18:07, 18 February 2013 (UTC)[reply]

Speedup[edit]

--Fomafix (talk) 11:42, 27 February 2013 (UTC)[reply]

✓ Done. --Yair rand (talk) 20:01, 27 February 2013 (UTC)[reply]