You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to run pofilter only for some po files and not all in the directory structure (like a/xx.po d/xx.po). But only one --input parameter is considered. (I can give many --exclude parameters which are all considered, but this gets too complicated with many files.)
So I suggest to support several input parameters for pofilter (and other commands).
How
To change this, inputoption must have action="append" in
If it is not supposed to be for all commands, it must be changed in another place. (For pofilter only, adapt it in translate/filter/pofilter.py by adding method setformats() calling the super method and then adapting the option.)
I monkey-patched pofilter and it runs as expected.
the input files or directories are used
to create the output directories, the common ancestor directory of the input is used as base
Other commands could profit as well from this idea. (All those accepting a directory as input.) I did not check all commands, but converters (checked po2tiki and po2xliff) do, pocompile and poclean do, ...
I do not get if pomerge does, I do not understand the message.
I am happy to send a patch, but I would like to know for where because I do not have experience with most of the commands.
The text was updated successfully, but these errors were encountered:
I want to run pofilter only for some po files and not all in the directory structure (like a/xx.po d/xx.po). But only one
--input
parameter is considered. (I can give many--exclude
parameters which are all considered, but this gets too complicated with many files.)So I suggest to support several input parameters for pofilter (and other commands).
How
To change this,
inputoption
must haveaction="append"
intranslate/translate/misc/optrecurse.py
Line 319 in 65b7093
If it is not supposed to be for all commands, it must be changed in another place. (For pofilter only, adapt it in
translate/filter/pofilter.py
by adding methodsetformats()
calling the super method and then adapting the option.)More info
The code supports array for input:
translate/translate/misc/optrecurse.py
Line 435 in 65b7093
I monkey-patched
pofilter
and it runs as expected.Other commands could profit as well from this idea. (All those accepting a directory as input.) I did not check all commands, but converters (checked
po2tiki
andpo2xliff
) do,pocompile
andpoclean
do, ...I do not get if
pomerge
does, I do not understand the message.I am happy to send a patch, but I would like to know for where because I do not have experience with most of the commands.
The text was updated successfully, but these errors were encountered: