@@ -856,32 +856,38 @@ def run(self):
856856class ConcatenationCatalog (CommandMixin ):
857857 description = 'concatenates and merges the specified PO files'
858858 user_options = [
859- ('input-files' , None , '' ),
860- ('files-from=' , 'f' , '' ),
861- ('directory=' , 'D' , '' ),
862- ('output-file=' , 'o' , '' ),
863- ('less-than=' , '<' , '' ),
864- ('more-than=' , '>' , '' ),
865- ('unique' , 'u' , '' ),
866- ('properties-input' , 'P' , '' ),
867- ('stringtable-input' , None , '' ),
868- ('to-code=' ,'t' , '' ),
869- ('use-first' , None , '' ),
870- ('lang=' , None , '' ),
871- ('color=' , None , '' ),
872- ('style=' , None , '' ),
873- ('no-escape' , 'e' , '' ),
874- ('escape' , 'E' , '' ),
875- ('force-po' , None , '' ),
876- ('indent' , 'i' , '' ),
877- ('no-location' , None , '' ),
878- ('strict' , None , '' ),
879- ('properties-output' , None , '' ),
880- ('stringtable-output' , None , '' ),
881- ('width=' , 'w' , '' ),
882- ('no-wrap' , None , '' ),
883- ('sort-output' , 's' , '' ),
884- ('sort-by-file' , 'F' , '' ),
859+ ('input-files' , None , 'input files' ),
860+ ('files-from=' , 'f' , 'get list of input files from FILE' ),
861+ ('directory=' , 'D' , 'add DIRECTORY to list for input files search'
862+ 'If input file is -, standard input is read.' ),
863+ ('output-file=' , 'o' , 'write output to specified file' ),
864+ ('less-than=' , '<' , 'print messages with less than this many'
865+ 'definitions, defaults to infinite if not set' ),
866+ ('more-than=' , '>' , 'print messages with more than this many'
867+ 'definitions, defaults to 0 if not set' ),
868+ ('unique' , 'u' , 'shorthand for --less-than=2, requests'
869+ 'that only unique messages be printed' ),
870+ ('properties-input' , 'P' , 'input files are in Java .properties syntax' ),
871+ ('stringtable-input' , None , 'input files are in NeXTstep/GNUstep .strings syntax' ),
872+ ('to-code=' ,'t' , 'encoding for output' ),
873+ ('use-first' , None , 'use first available translation for each'
874+ 'message, don\' t merge several translations' ),
875+ ('lang=' , None , 'set ' Language ' field in the header entry' ),
876+ ('color=' , None , 'use colors and other text attributes always' ),
877+ ('style=' , None , 'specify CSS style rule file for --color' ),
878+ ('no-escape' , 'e' , 'do not use C escapes in output (default)' ),
879+ ('escape' , 'E' , 'use C escapes in output, no extended chars' ),
880+ ('force-po' , None , 'write PO file even if empty' ),
881+ ('indent' , 'i' , 'write the .po file using indented style' ),
882+ ('no-location' , None , 'do not write \' #: filename:line\' lines' ),
883+ ('strict' , None , 'write out strict Uniforum conforming .po file' ),
884+ ('properties-output' , None , 'write out a Java .properties file' ),
885+ ('stringtable-output' , None , 'write out a NeXTstep/GNUstep .strings file' ),
886+ ('width=' , 'w' , 'set output page width' ),
887+ ('no-wrap' , None , 'do not break long message lines, longer than'
888+ 'the output page width, into several lines' ),
889+ ('sort-output' , 's' , 'generate sorted output' ),
890+ ('sort-by-file' , 'F' , 'sort output by file location' ),
885891 ]
886892
887893 as_args = 'input-files'
@@ -918,7 +924,7 @@ def initialize_options(self):
918924 self .properties_input = None
919925 self .stringtable_input = None
920926 self .to_code = None
921- # временно всегда используется первый перевод
927+ # the first translation is always used temporarily
922928 self .use_first = True #~
923929 self .lang = None
924930 self .color = None
@@ -1003,36 +1009,38 @@ def run(self):
10031009class MergeCatalog (CommandMixin ):
10041010 description = 'combines two Uniforum-style PO files into one'
10051011 user_options = [
1006- ('input-files' , None , '' ),
1007- ('directory=' , 'D' , '' ),
1008- ('compendium=' , 'C' , '' ),
1009- ('compendium-overwrite' , '' , '' ),
1012+ ('input-files' , None , 'def.po ref.pot ' ),
1013+ ('directory=' , 'D' , 'add DIRECTORY to list for input files search ' ),
1014+ ('compendium=' , 'C' , 'additional library of message translations, may be specified more than once ' ),
1015+ ('compendium-overwrite' , '' , 'overwrite mode of compendium ' ),
10101016 ('no-compendium-comment' , '' , '' ),
1011- ('update' , 'U' , '' ),
1012- ('output-file=' , 'o' , '' ),
1013- ('backup' , None , '' ),
1014- ('suffix=' , None , '' ),
1015- ('multi-domain' , 'm' , '' ),
1016- ('for-msgfmt' , None , '' ),
1017- ('no-fuzzy-matching' , 'N' , '' ),
1018- ('previous' , None , '' ),
1019- ('properties-input' , 'P' , '' ),
1020- ('stringtable-input' , None , '' ),
1021- ('lang=' , None , '' ),
1022- ('color=' , None , '' ),
1023- ('style=' , None , '' ),
1024- ('no-escape' , 'e' , '' ),
1025- ('escape' , 'E' , '' ),
1026- ('force-po' , None , '' ),
1027- ('indent' , 'i' , '' ),
1028- ('no-location' , None , '' ),
1029- ('strict' , None , '' ),
1030- ('properties-output' , None , '' ),
1031- ('stringtable-output' , None , '' ),
1032- ('width=' , 'w' , '' ),
1033- ('no-wrap' , None , '' ),
1034- ('sort-output' , 's' , '' ),
1035- ('sort-by-file' , 'F' , '' ),
1017+ ('update' , 'U' , 'pdate def.po, do nothing if def.po already up to date' ),
1018+ ('output-file=' , 'o' , 'write output to specified file, the results are written'
1019+ 'to standard output if no output file is specified' ),
1020+ ('backup' , None , 'make a backup of def.po' ),
1021+ ('suffix=' , None , 'override the usual backup suffix' ),
1022+ ('multi-domain' , 'm' , 'apply ref.pot to each of the domains in def.po' ),
1023+ ('for-msgfmt' , None , 'produce output for ' msgfmt ', not for a translator' ),
1024+ ('no-fuzzy-matching' , 'N' , 'do not use fuzzy matching' ),
1025+ ('previous' , None , 'keep previous msgids of translated messages' ),
1026+ ('properties-input' , 'P' , 'input files are in Java .properties syntax' ),
1027+ ('stringtable-input' , None , 'input files are in NeXTstep/GNUstep .strings syntax' ),
1028+ ('lang=' , None , 'set ' Language ' field in the header entry' ),
1029+ ('color=' , None , 'use colors and other text attributes always' ),
1030+ ('style=' , None , 'specify CSS style rule file for --color' ),
1031+ ('no-escape' , 'e' , 'do not use C escapes in output (default)' ),
1032+ ('escape' , 'E' , 'use C escapes in output, no extended chars' ),
1033+ ('force-po' , None , 'write PO file even if empty' ),
1034+ ('indent' , 'i' , 'indented output style' ),
1035+ ('no-location' , None , 'suppress \' #: filename:line\' lines' ),
1036+ ('strict' , None , 'strict Uniforum output style' ),
1037+ ('properties-output' , None , 'write out a Java .properties file' ),
1038+ ('stringtable-output' , None , 'write out a NeXTstep/GNUstep .strings file' ),
1039+ ('width=' , 'w' , 'set output page width' ),
1040+ ('no-wrap' , None , 'do not break long message lines, longer'
1041+ 'than the output page width, into several lines' ),
1042+ ('sort-output' , 's' , 'generate sorted output' ),
1043+ ('sort-by-file' , 'F' , 'sort output by file location' ),
10361044 ]
10371045
10381046 as_args = 'input-files'
0 commit comments