-
Notifications
You must be signed in to change notification settings - Fork 62
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
add --destlang option to po4a #539
base: master
Are you sure you want to change the base?
Conversation
This option allows to restrict the processing to specific destination languages for the translation. This way, po4a can be invoked only for updated languages and in parallel for different languages, in order to speed up the process.
Good, it's a long due one! I have some suggestions:
|
OK, Just reversing the order:
I'm not fond of being merciful at the begining of the logs, while after, there can be tons of messages about translation levels not reaching the required threshold. In addition, I expect this option to be used once for each invocation (that's how I'm using it for each language in a Makefile), so this would not make a difference for the end users, while making the code slightly more complicated. Do you have a specific use case in mind?
I do not understand this request. Do you mean po file update instead of po file creation?
Even if my intention is that the option is used only one time in the command line, it can be used several times, and then, the option cannot be named '--*-only' for this case, because that would imply a unique use. |
Yes, I meant to just remove the
I was imagining using it for testing and debugging issues (to not wait while po4a will build all the files) and running the same oneliner on several po4a's and in that case it's just a behavior I would have expected. But it's mostly hypothetical, and as well most likely I won't be specified more than once. And I guess the scorched-earth approach is a valid strategy too, so no pressure here.
It's the same thing for |
That's embarrassing because I thought that the main po4a script could already be used as a drop-in replacement. It was even the reason why I stepped into the deprecation of the other scripts... Thanks for taking care of this. As for the comments of @Fat-Zer, I agree with @jnavila that dying is important when something goes seriously wrong, as people don't read the logs otherwise. An inconsistent argument is something serious to me. For the parameter names, we could deprecate If I think about it, maybe |
This looks more like "set a lang of the localized file", which doesn't fit here... maybe just "--lang"? |
Ok, there are already several propositions, so I'll add mine : |
|
This option should allow to transition to po4a from po4a-*, while retaining the same steps in makefiles