-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy dtMediaWiki v44 from trougnouf/dtMediaWiki #181
base: master
Are you sure you want to change the base?
Conversation
@supertobi I think @trougnouf has just triggered the next step(s) in the evolution of the lua-scripts repository. Here's what I think needs addressed:
I propose opening issues for each of the above so that we can address them in their own thread. @trougnouf could you point us at a page that has been populated using this script so that we can see what the output looks like? Thanks |
@wpferguson All files uploaded with the plugin are added to Uploaded_with_dtMediaWiki. File:SNCB_978_leaving_the_Ronet_classification_yard_(DSCF5536).jpg probably uses the latest revision (and makes uses the "other versions" feature). |
|
local dt = require "darktable" | ||
local MediaWikiApi = require "contrib/dtMediaWiki/lib/mediawikiapi" | ||
local version = 47 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation would be nice. examples/gettextExample.lua shows how
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do, but it might take a little while because I currently spend my free time getting a boat/radio/motorcycle license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wpferguson done :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this crashes with unprotected error in call to Lua API
when I use the "_
" function inside one of the functions registered in the dt.register_storage
function, namely register_storage_initialize
and register_storage_finalize
(although adding a print(_())
statement in register_storage_supported
is an easy way to test).
Any idea what went wrong?
In the meantime I've worked around it by typing out the content of the function (gettext.dgettext("dtMediaWiki", AMESSAGE)
) every time it's needed inside a register_storage function.
…h when using the _ (translation) function inside a register_storage function
Any feedback as to why this was rejected? |
It had the label waiting for feedback and it had been almost 4 years so I assumed that you had lost interest (and I finally got around to some house cleaning). Now that I opened it, I see where you pushed some commits, so my bad for assuming. I'll reopen it and we'll see if we can get it finished. |
commit 8a317078f6ca18767d90cab1786839d4d855b314 (HEAD -> master, origin/master, origin/HEAD) Author: Trougnouf (Benoit Brummer) <[email protected]> Date: Sat Dec 2 02:20:45 2023 +0100 fix fmt_flt for non-decimal trailing zeroes commit ffcc5d9ec79e0a34ee836326e78d6f520fae15e5 Author: Trougnouf (Benoit Brummer) <[email protected]> Date: Sat Dec 2 00:10:35 2023 +0100 fix camera categorization on non-US locale, add \comma workaround in categories commit 40451425f786a5ffbc5ef7883f169e5b0cc445c5 Author: trougnouf (Benoit Brummer) <[email protected]> Date: Tue Aug 3 14:27:27 2021 +0200 dtMediaWiki.lua: rm lint commit 1949e76639a331f59d673a8570e701ae48ddd5c9 Author: trougnouf (Benoit Brummer) <[email protected]> Date: Tue Aug 3 14:18:55 2021 +0200 dtMediaWiki.lua: workarounds for dt bug #9715 commit 25a9f8367ce94b129a3b6ebea0e106faadc155bc Author: trougnouf (Benoit Brummer) <[email protected]> Date: Mon Mar 22 19:08:19 2021 +0100 substitute_keywords: parse commit 88373c8cb27b35da53c60238f9842df93fbaf997 Author: trougnouf (Benoit Brummer) <[email protected]> Date: Wed Feb 10 18:41:49 2021 +0100 dtMediaWiki.get_alt_images: add debug info commit 7c2a2c79e96c4ef3838eb6127ff4576996d9e337 Author: trougnouf (Benoit Brummer) <[email protected]> Date: Mon Jan 25 16:38:54 2021 +0100 fix Localisation template with locales using comma decimal separator
I think I addressed everything I can at the time. I just pushed an update to the latest commit from my repo. |
dtMediaWiki adds Wikimedia Commons as a target storage. Latest documentation on https://commons.wikimedia.org/wiki/Commons:DtMediaWiki