User talk:NguoiDungKhongDinhDanh/QuickDiff

From Meta, a Wikimedia project coordination wiki

Loading files from Fandom[edit]

User:NguoiDungKhongDinhDanh: I like QuickDiff, but loading resources from Fandom is not a good idea. It doesn't even work on test.wikipedia.org due to the CSP which, sooner or later, will be enabled on production wikis as well. Alexis Jazz (talk or ping me) 10:34, 23 April 2022 (UTC)[reply]

@Alexis Jazz: QuickDiff depends on some local files over there on Fandom, which makes it hard to copy-and-paste. As of now it still works for me on all wikis including testwiki. CSP errors are for logging only. Hopefully I'll have some time to completely import this one to Wikimedia, with all dependencies and such, in a few months along with JWB. NguoiDungKhongDinhDanh 10:44, 23 April 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, sorry you are right, it works for now. (the error was in red so I assumed resource blocked, but it's only a report) These import difficulties are why my scripts nowadays have minimal to no dependencies. Maybe I'll make my own QuickDiff-like script at some point. Alexis Jazz (talk or ping me) 11:09, 23 April 2022 (UTC)[reply]
@Alexis Jazz: While you're at it, QuickDiff is incompatible with Twinkle, RedWarn, CompareRevision and presumably some other diff-based scripts: their links/buttons will be multiplied. On the other hand, fancy-diff and QuickDiff makes a great combo. I'm interested to see if you can benefit from those. NguoiDungKhongDinhDanh 11:16, 23 April 2022 (UTC)[reply]
NguoiDungKhongDinhDanh, "some point" came soon. Here's a start: w:en:User:Alexis Jazz/CollaDiff.js. Alexis Jazz (talk or ping me) 14:53, 23 April 2022 (UTC)[reply]
@Alexis Jazz: Looks nice. Since diffs can be really long and complicated I still prefer popups to inline ones. NguoiDungKhongDinhDanh 14:57, 23 April 2022 (UTC)[reply]
@Alexis Jazz: I have fully migrated QuickDiff to Wikimedia; it will no longer load resources from Fandom. Also, I added a few handlers so that rollback, patrol, undo and thank links are now ajax links. NguoiDungKhongDinhDanh 21:15, 25 May 2022 (UTC)[reply]

New language[edit]

Hello @NguoiDungKhongDinhDanh! How can we add new language translations? (in that script there is only English). At fandom wiki there is Georgian translation (see https://dev.fandom.com/wiki/Special:BlankPage/I18nEdit/QuickDiff/ka), but in Georgian Wikipedia it's still in English. Thanks, გიო ოქრო 07:04, 27 September 2022 (UTC)[reply]

@გიო ოქრო: All translations for this script are stored at User:NguoiDungKhongDinhDanh/QuickDiff.js/i18n.json, which already includes Georgian. I have (hopefully) fixed the bug. Let me know if any other problems arise. NguoiDungKhongDinhDanh 15:03, 28 September 2022 (UTC)[reply]
@NguoiDungKhongDinhDanh Yes, now in works, but Georgian translations are outdated. There I updated they — https://dev.fandom.com/wiki/Special:BlankPage/I18nEdit/QuickDiff/ka. Also, in json "history" translation is missed. Thanks, გიო ოქრო 15:15, 28 September 2022 (UTC)[reply]
@გიო ოქრო: Are you sure that you have updated them? I don't see any recent edits to wikia:dev:MediaWiki:Custom-QuickDiff/i18n.json. NguoiDungKhongDinhDanh 22:48, 28 September 2022 (UTC)[reply]
@NguoiDungKhongDinhDanh Oh, I don't know why it's not updated... There is an error message when I try to save them: "An unknown API error occurred: permissiondenied (no further information available)". Please add this:
    "ka": {
        "differences": "განსხვავებები: $1",
        "differences-multipage": "განსხვავებები გვერდებს „$1“ და „$2“ შორის",
        "error": "მოხდა შეცდომა გვერდის „$1“ გახსნის დროს.",
        "history": "ისტორია",
        "link": "ბმულის გახსნა",
        "loading": "იტვირთება…"
    },
გიო ოქრო 07:13, 29 September 2022 (UTC)[reply]
@გიო ოქრო: Updated, thanks for your help. NguoiDungKhongDinhDanh 22:02, 29 September 2022 (UTC)[reply]