MediaWiki talk:WatchlistNotice.js
![]() | Enables dismissing of watchlist notices for one week. Loaded via MediaWiki:Common.js. |
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': [ 'លាក់', 'លាក់សារនេះសំរាប់រយៈមួយសប្តាហ៍' ],
},
- Please add the Japanese translation below to the script. --whym (talk) 14:26, 6 December 2012 (UTC)
'ja': [ '閉じる', 'これを押すと、このメッセージは今後1週間表示されなくなります' ],
Done --Dschwen (talk) 20:02, 6 December 2012 (UTC)
{{Editprotected}}
Please add the Bengali translation. 'bn': ['বাতিল', 'এই বার্তাটি এক সপ্তাহের জন্য লুকাও'],
--Aftab1995 (talk) 01:26, 2 February 2014 (UTC)
Done --Steinsplitter (talk) 09:54, 4 February 2014 (UTC)
- Oh noooo, i made a mistake. Could you please replace
'bn': ['বাতিল', 'এই বার্তাটি এক সপ্তাহের জন্য লুকাও'],
with'bn': ['আড়াল করো', 'এই বার্তাটি এক সপ্তাহের জন্য আড়াল করো'],
--Aftab1995 (talk) 15:27, 4 February 2014 (UTC)
- Oh noooo, i made a mistake. Could you please replace
Done Please note, "This script is not in use anymore. It was kept primarily for historical interest. the new script is at [[MediaWiki:Gadget-WatchlistNotice.core.js" --Walter Siegmund (talk) 16:14, 4 February 2014 (UTC)
supporting cookie ID and cleanup
[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)
- I did my very best. -- Rillke(q?) 23:44, 15 January 2013 (UTC)
- Thank you for the thorough review and edit! Much appreciated. --whym (talk) 14:19, 17 January 2013 (UTC)
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)