-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
po/lua submodule #16135
po/lua submodule #16135
Conversation
7e9e8e1
to
9bc70d9
Compare
This might actually be easy... I added a locale_dir to the darktable.configuration table (attached lua/src/configuation.c). |
9bc70d9
to
d158b56
Compare
I have committed your new configuration.c in this PR. |
d158b56
to
b6368e3
Compare
b6368e3
to
7633e02
Compare
@wpferguson : Can you double check all is there? Should we translate all Lua scripts or start with the official ones? For the record this is around 700 more strings, quite lot of work ahead :) |
This makes the Lua scripts first-class citizen in darktable.
7633e02
to
e153937
Compare
I have checked the strings and see some that may not to be translated. Can you check:
And more I think about this I'd probably prefer starting with officials scripts for now. What do you think? And add others later (but before 5.0), this will be a faster path to something usable that will get some field testing. |
I agree, let's start with official. I'll work on the list above. |
@wpferguson : What's the status of this? I don't want to put too much pressure, but since this will bring quite a lot of new strings I'd like to have this merged if possible in September. TIA. |
I got the official scripts ready for translation and merged PR (above) into the lua-scripts. I created an API-9.3.0 branch so that the merged scripts wouldn't affect 4.8.1 (script_manager checks the API against the repository branches and checks out the correct one) After I had fixed the official scripts I thought you were going to merge and let the translators get started on them. Maybe I misunderstood. I started working on the example scripts, but I hadn't finished them yet because I didn't want to add more messages to be translated before work had started on the official scripts. I looked at the list and I have fixes for all of them, but again I didn't move forward because work hadn't started on the official scripts. My plan is to do the example scripts, then tools, then contrib in 2 or 3 batches. One note, translations can't be tested until #17300 is merged as the current API is 9.3.0 and script_manager will check out that branch of the lua-scripts instead of using the master branch. #17300 will bump the API to 9.4.0. |
Maybe I'm the one confused now :) You said:
But since I do not follow closely the lua repository I don't know if it is ready or not... Anyway, I kind of understand that you want me to merge this PR now, right? Sorry for all my stupid questions, I'm not clear on this... |
Yes please.
I will tag you on commits and give you my thoughts on where we stand. My plan going forward:
|
Ok, I'm merging now but then the list above must be fixed ASAP to ensure that translation won't be invalidated, there is still a lot to translate better avoiding asking our translators too much work :) |
I propose turning this, The underscore notation is in contrib/rename_images.lua but all the variable substitution code will be replaced with the string library functions that do the same and use the . notation. |
BTW @wpferguson let me know when your work is over so I can let translators start working on this huge number of new strings. TIA. |
@TurboGit I'll do that. Right now I'm working on the last item from the list, variable substitution. |
@wpferguson : Thanks! As we are at it, to integrate the module better I would propose a renaming of "script manager". All current module name are simple nouns : Collections, History stack... So why not have just "Scripts" ? Or something like that. I had thought about "Lua scripts", but well end users don't care about it being Lua or whatever and they don't even know what is Lua. So "Scripts" looks simple, we could alternatively have "External scripts". What do you think? |
In #17422 I jokingly suggested calling it Features to get past some user's ideas that scripts are hacks or not "real" code. I don't have a strong attachment to the name script_manager, so scripts is fine. |
Another idea is "Extensions". We are emphasizing not that these are "scripts" (in the sense of not "real code"), but that they are extensions that we can activate. |
@victoryforce I thought of that right after I finished the above comment 😄 |
I have a slight preference for |
and you want the first letter capitalized? Or should it be lower case like the rest of the modules? You can play with it by editing tools/script_manager.lua and changing the second argument to dt.register_lib (line 1168). Then you can see what it looks like and decide |
@wpferguson : Lower case of course! |
This is a POC for a PR made on the Lua script repository to support Lua script translation using dt support.
@wpferguson : This is the dt part for make the Lua script PR working:
See darktable-org/lua-scripts#450