Skip to content

Commit

Permalink
doc: add context to csv2po/po2csv CLI reference
Browse files Browse the repository at this point in the history
  • Loading branch information
paskausks authored and nijel committed Mar 26, 2024
1 parent a8a8dc7 commit 4410a4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/commands/csv2po.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Options (csv2po):
-S, --timestamp skip conversion if the output file has newer timestamp
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--charset=CHARSET set charset to decode from csv files
--columnorder=COLUMNORDER specify the order and position of columns (location,source,target)
--columnorder=COLUMNORDER specify the order and position of columns (location,source,target,context)
--duplicates=DUPLICATESTYLE
what to do with duplicate strings (identical source
text): :doc:`merge, msgctxt <option_duplicates>`
Expand All @@ -68,7 +68,7 @@ Options (po2csv):
-x EXCLUDE, --exclude=EXCLUDE exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT write to OUTPUT in csv format
-S, --timestamp skip conversion if the output file has newer timestamp
--columnorder=COLUMNORDER specify the order and position of columns (location,source,target)
--columnorder=COLUMNORDER specify the order and position of columns (location,source,target,context)


.. _csv2po#csv_file_layout:
Expand Down
2 changes: 1 addition & 1 deletion translate/convert/csv2po.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def main(argv=None):
callback=columnorder_callback,
type="str",
default=None,
help="specify the order and position of columns (location,source,target)",
help="specify the order and position of columns (location,source,target,context)",
)
parser.add_duplicates_option()
parser.passthrough.append("charset")
Expand Down
2 changes: 1 addition & 1 deletion translate/convert/po2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def main(argv=None):
callback=columnorder_callback,
type="str",
default=None,
help="specify the order and position of columns (location,source,target)",
help="specify the order and position of columns (location,source,target,context)",
)
parser.passthrough.append("columnorder")
parser.run(argv)
Expand Down

0 comments on commit 4410a4e

Please sign in to comment.