@@ -891,32 +891,38 @@ def run(self):
891891class ConcatenationCatalog (CommandMixin ):
892892 description = 'concatenates and merges the specified PO files'
893893 user_options = [
894- ('input-files' , None , '' ),
895- ('files-from=' , 'f' , '' ),
896- ('directory=' , 'D' , '' ),
897- ('output-file=' , 'o' , '' ),
898- ('less-than=' , '<' , '' ),
899- ('more-than=' , '>' , '' ),
900- ('unique' , 'u' , '' ),
901- ('properties-input' , 'P' , '' ),
902- ('stringtable-input' , None , '' ),
903- ('to-code=' ,'t' , '' ),
904- ('use-first' , None , '' ),
905- ('lang=' , None , '' ),
906- ('color=' , None , '' ),
907- ('style=' , None , '' ),
908- ('no-escape' , 'e' , '' ),
909- ('escape' , 'E' , '' ),
910- ('force-po' , None , '' ),
911- ('indent' , 'i' , '' ),
912- ('no-location' , None , '' ),
913- ('strict' , None , '' ),
914- ('properties-output' , None , '' ),
915- ('stringtable-output' , None , '' ),
916- ('width=' , 'w' , '' ),
917- ('no-wrap' , None , '' ),
918- ('sort-output' , 's' , '' ),
919- ('sort-by-file' , 'F' , '' ),
894+ ('input-files' , None , 'input files' ),
895+ ('files-from=' , 'f' , 'get list of input files from FILE' ),
896+ ('directory=' , 'D' , 'add DIRECTORY to list for input files search'
897+ 'If input file is -, standard input is read.' ),
898+ ('output-file=' , 'o' , 'write output to specified file' ),
899+ ('less-than=' , '<' , 'print messages with less than this many'
900+ 'definitions, defaults to infinite if not set' ),
901+ ('more-than=' , '>' , 'print messages with more than this many'
902+ 'definitions, defaults to 0 if not set' ),
903+ ('unique' , 'u' , 'shorthand for --less-than=2, requests'
904+ 'that only unique messages be printed' ),
905+ ('properties-input' , 'P' , 'input files are in Java .properties syntax' ),
906+ ('stringtable-input' , None , 'input files are in NeXTstep/GNUstep .strings syntax' ),
907+ ('to-code=' ,'t' , 'encoding for output' ),
908+ ('use-first' , None , 'use first available translation for each'
909+ 'message, don\' t merge several translations' ),
910+ ('lang=' , None , 'set ' Language ' field in the header entry' ),
911+ ('color=' , None , 'use colors and other text attributes always' ),
912+ ('style=' , None , 'specify CSS style rule file for --color' ),
913+ ('no-escape' , 'e' , 'do not use C escapes in output (default)' ),
914+ ('escape' , 'E' , 'use C escapes in output, no extended chars' ),
915+ ('force-po' , None , 'write PO file even if empty' ),
916+ ('indent' , 'i' , 'write the .po file using indented style' ),
917+ ('no-location' , None , 'do not write \' #: filename:line\' lines' ),
918+ ('strict' , None , 'write out strict Uniforum conforming .po file' ),
919+ ('properties-output' , None , 'write out a Java .properties file' ),
920+ ('stringtable-output' , None , 'write out a NeXTstep/GNUstep .strings file' ),
921+ ('width=' , 'w' , 'set output page width' ),
922+ ('no-wrap' , None , 'do not break long message lines, longer than'
923+ 'the output page width, into several lines' ),
924+ ('sort-output' , 's' , 'generate sorted output' ),
925+ ('sort-by-file' , 'F' , 'sort output by file location' ),
920926 ]
921927
922928 as_args = 'input-files'
@@ -953,7 +959,7 @@ def initialize_options(self):
953959 self .properties_input = None
954960 self .stringtable_input = None
955961 self .to_code = None
956- # временно всегда используется первый перевод
962+ # the first translation is always used temporarily
957963 self .use_first = True #~
958964 self .lang = None
959965 self .color = None
@@ -1038,36 +1044,38 @@ def run(self):
10381044class MergeCatalog (CommandMixin ):
10391045 description = 'combines two Uniforum-style PO files into one'
10401046 user_options = [
1041- ('input-files' , None , '' ),
1042- ('directory=' , 'D' , '' ),
1043- ('compendium=' , 'C' , '' ),
1044- ('compendium-overwrite' , '' , '' ),
1047+ ('input-files' , None , 'def.po ref.pot ' ),
1048+ ('directory=' , 'D' , 'add DIRECTORY to list for input files search ' ),
1049+ ('compendium=' , 'C' , 'additional library of message translations, may be specified more than once ' ),
1050+ ('compendium-overwrite' , '' , 'overwrite mode of compendium ' ),
10451051 ('no-compendium-comment' , '' , '' ),
1046- ('update' , 'U' , '' ),
1047- ('output-file=' , 'o' , '' ),
1048- ('backup' , None , '' ),
1049- ('suffix=' , None , '' ),
1050- ('multi-domain' , 'm' , '' ),
1051- ('for-msgfmt' , None , '' ),
1052- ('no-fuzzy-matching' , 'N' , '' ),
1053- ('previous' , None , '' ),
1054- ('properties-input' , 'P' , '' ),
1055- ('stringtable-input' , None , '' ),
1056- ('lang=' , None , '' ),
1057- ('color=' , None , '' ),
1058- ('style=' , None , '' ),
1059- ('no-escape' , 'e' , '' ),
1060- ('escape' , 'E' , '' ),
1061- ('force-po' , None , '' ),
1062- ('indent' , 'i' , '' ),
1063- ('no-location' , None , '' ),
1064- ('strict' , None , '' ),
1065- ('properties-output' , None , '' ),
1066- ('stringtable-output' , None , '' ),
1067- ('width=' , 'w' , '' ),
1068- ('no-wrap' , None , '' ),
1069- ('sort-output' , 's' , '' ),
1070- ('sort-by-file' , 'F' , '' ),
1052+ ('update' , 'U' , 'pdate def.po, do nothing if def.po already up to date' ),
1053+ ('output-file=' , 'o' , 'write output to specified file, the results are written'
1054+ 'to standard output if no output file is specified' ),
1055+ ('backup' , None , 'make a backup of def.po' ),
1056+ ('suffix=' , None , 'override the usual backup suffix' ),
1057+ ('multi-domain' , 'm' , 'apply ref.pot to each of the domains in def.po' ),
1058+ ('for-msgfmt' , None , 'produce output for ' msgfmt ', not for a translator' ),
1059+ ('no-fuzzy-matching' , 'N' , 'do not use fuzzy matching' ),
1060+ ('previous' , None , 'keep previous msgids of translated messages' ),
1061+ ('properties-input' , 'P' , 'input files are in Java .properties syntax' ),
1062+ ('stringtable-input' , None , 'input files are in NeXTstep/GNUstep .strings syntax' ),
1063+ ('lang=' , None , 'set ' Language ' field in the header entry' ),
1064+ ('color=' , None , 'use colors and other text attributes always' ),
1065+ ('style=' , None , 'specify CSS style rule file for --color' ),
1066+ ('no-escape' , 'e' , 'do not use C escapes in output (default)' ),
1067+ ('escape' , 'E' , 'use C escapes in output, no extended chars' ),
1068+ ('force-po' , None , 'write PO file even if empty' ),
1069+ ('indent' , 'i' , 'indented output style' ),
1070+ ('no-location' , None , 'suppress \' #: filename:line\' lines' ),
1071+ ('strict' , None , 'strict Uniforum output style' ),
1072+ ('properties-output' , None , 'write out a Java .properties file' ),
1073+ ('stringtable-output' , None , 'write out a NeXTstep/GNUstep .strings file' ),
1074+ ('width=' , 'w' , 'set output page width' ),
1075+ ('no-wrap' , None , 'do not break long message lines, longer'
1076+ 'than the output page width, into several lines' ),
1077+ ('sort-output' , 's' , 'generate sorted output' ),
1078+ ('sort-by-file' , 'F' , 'sort output by file location' ),
10711079 ]
10721080
10731081 as_args = 'input-files'
0 commit comments