MediaWiki talk:WatchlistNotice.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Please help translating this script

[edit]

below is the i18n part of this script in w:JSON notation. Adding new translations is easy:

1. copy the line directly below and change en to the language code you want to add (go to your preferences and you will find a list of codes in the language dropdown list).

 'en': [ 'dismiss', 'Hide this message for one week' ],

2. translate the two strings (if you need to use the appostrophe ' please prepend a \ to it sot that it makes \', this is called escaping)

3. insert your new line to the top of the list directly below the line that says

i18n: {

translations

[edit]
 i18n: {
  'en': [ 'dismiss', 'Hide this message for one week' ],
  'de': [ 'verstecken', 'Diese Nachricht für eine Woche verstecken' ],
  'fr': [ 'enlever', 'Masquer ce message pour une semaine' ],
  'km': [ 'លាក់', 'លាក់សារនេះសំរាប់រយៈមួយសប្តាហ៍' ],
 },

{{Editprotected}}

 'ja': [ '閉じる', 'これを押すと、このメッセージは今後1週間表示されなくなります' ],

{{Editprotected}} Please add the Bengali translation. 'bn': ['বাতিল', 'এই বার্তাটি এক সপ্তাহের জন্য লুকাও'], --Aftab1995 (talk) 01:26, 2 February 2014 (UTC)[reply]

✓ Done --Steinsplitter (talk) 09:54, 4 February 2014 (UTC)[reply]
Oh noooo, i made a mistake. Could you please replace 'bn': ['বাতিল', 'এই বার্তাটি এক সপ্তাহের জন্য লুকাও'], with 'bn': ['আড়াল করো', 'এই বার্তাটি এক সপ্তাহের জন্য আড়াল করো'],--Aftab1995 (talk) 15:27, 4 February 2014 (UTC)[reply]
[edit]

{{Edit request}} As far as I can see, the current scipt does not support item-wise dismissing. I have rewritten the script at User:Whym/WatchlistNotice.js to support it. (diff) It took idea from en:MediaWiki:Common.js/watchlist.js using jQuery to make it concise. Could someone review it and apply? --whym (talk) 07:41, 12 January 2013 (UTC)[reply]

I did my very best. -- Rillke(q?) 23:44, 15 January 2013 (UTC)[reply]
Thank you for the thorough review and edit! Much appreciated. --whym (talk) 14:19, 17 January 2013 (UTC)[reply]

Mess with RTL e.g. Farsi

[edit]

It looks really messy. I remember how long it took until I got RotateLink to display in the way I wanted. But now, it behaves very correctly. -- Rillke(q?) 00:44, 13 May 2013 (UTC)[reply]