mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-25 15:50:49 +08:00
182 lines
51 KiB
ReStructuredText
182 lines
51 KiB
ReStructuredText
..
|
|
Partly generated using ./manage.py list_file_format_params
|
|
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| Parameter name | File formats | Label | Help text |
|
|
+=============================+=========================+=================================================+=======================================================================================================================================================================================+
|
|
| csv_encoding | * ``csv`` | File encoding | Encoding used for CSV files |
|
|
| | * ``csv-multi`` | | |
|
|
| | | | Available choices: |
|
|
| | | | |
|
|
| | | | ``auto`` |
|
|
| | | | Auto-detect |
|
|
| | | | |
|
|
| | | | ``utf-8`` |
|
|
| | | | UTF-8 |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| csv_simple_encoding | * ``csv-simple`` | File encoding | Encoding used for simple CSV files |
|
|
| | | | |
|
|
| | | | Available choices: |
|
|
| | | | |
|
|
| | | | ``auto`` |
|
|
| | | | Auto-detect |
|
|
| | | | |
|
|
| | | | ``utf-8`` |
|
|
| | | | UTF-8 |
|
|
| | | | |
|
|
| | | | ``iso-8859-1`` |
|
|
| | | | ISO-8859-1 |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| flatxml_key_name | * ``flatxml`` | FlatXML key name | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| flatxml_root_name | * ``flatxml`` | FlatXML Root name | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| flatxml_value_name | * ``flatxml`` | FlatXML value name | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| gwt_encoding | * ``gwt`` | File encoding | Encoding used for GWT Properties files |
|
|
| | | | |
|
|
| | | | Available choices: |
|
|
| | | | |
|
|
| | | | ``utf-8`` |
|
|
| | | | UTF-8 |
|
|
| | | | |
|
|
| | | | ``iso-8859-1`` |
|
|
| | | | ISO-8859-1 |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| json_indent | * ``json`` | JSON indentation | |
|
|
| | * ``json-nested`` | | |
|
|
| | * ``webextension`` | | |
|
|
| | * ``i18next`` | | |
|
|
| | * ``i18nextv4`` | | |
|
|
| | * ``arb`` | | |
|
|
| | * ``go-i18n-json`` | | |
|
|
| | * ``go-i18n-json-v2`` | | |
|
|
| | * ``formatjs`` | | |
|
|
| | * ``gotext`` | | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| json_indent_style | * ``json`` | JSON indentation style | Available choices: |
|
|
| | * ``json-nested`` | | |
|
|
| | * ``webextension`` | | ``spaces`` |
|
|
| | * ``i18next`` | | Spaces |
|
|
| | * ``i18nextv4`` | | |
|
|
| | * ``arb`` | | ``tabs`` |
|
|
| | * ``go-i18n-json`` | | Tabs |
|
|
| | * ``go-i18n-json-v2`` | | |
|
|
| | * ``formatjs`` | | |
|
|
| | * ``gotext`` | | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| json_sort_keys | * ``json`` | Sort JSON keys | |
|
|
| | * ``json-nested`` | | |
|
|
| | * ``webextension`` | | |
|
|
| | * ``i18next`` | | |
|
|
| | * ``i18nextv4`` | | |
|
|
| | * ``arb`` | | |
|
|
| | * ``go-i18n-json`` | | |
|
|
| | * ``go-i18n-json-v2`` | | |
|
|
| | * ``formatjs`` | | |
|
|
| | * ``gotext`` | | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| json_use_compact_separators | * ``json`` | Avoid spaces after separators | |
|
|
| | * ``json-nested`` | | |
|
|
| | * ``webextension`` | | |
|
|
| | * ``i18next`` | | |
|
|
| | * ``i18nextv4`` | | |
|
|
| | * ``arb`` | | |
|
|
| | * ``go-i18n-json`` | | |
|
|
| | * ``go-i18n-json-v2`` | | |
|
|
| | * ``formatjs`` | | |
|
|
| | * ``gotext`` | | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| merge_duplicates | * ``markdown`` | Deduplicate identical strings | Consolidates identical source strings into a single translation unit. Prevents translation loss during file restructuring or table reordering by removing position-dependent context. |
|
|
| | * ``html`` | | |
|
|
| | * ``txt`` | | |
|
|
| | * ``dokuwiki`` | | |
|
|
| | * ``mediawiki`` | | |
|
|
| | * ``asciidoc`` | | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| po_fuzzy_matching | * ``po`` | Use fuzzy matching | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| po_keep_previous | * ``po`` | Keep previous msgids of translated strings | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| po_line_wrap | * ``po`` | Long lines wrapping | By default, gettext wraps lines at 77 characters and at newlines. With the ``--no-wrap`` parameter, wrapping is only done at newlines. |
|
|
| | * ``po-mono`` | | |
|
|
| | | | Available choices: |
|
|
| | | | |
|
|
| | | | ``77`` |
|
|
| | | | Wrap lines at 77 characters and at newlines (xgettext default) |
|
|
| | | | |
|
|
| | | | ``65535`` |
|
|
| | | | Only wrap lines at newlines (like ``xgettext --no-wrap``) |
|
|
| | | | |
|
|
| | | | ``-1`` |
|
|
| | | | No line wrapping |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| po_no_location | * ``po`` | Do not include location information in the file | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| properties_encoding | * ``properties`` | File encoding | Encoding used for Java Properties files |
|
|
| | | | |
|
|
| | | | Available choices: |
|
|
| | | | |
|
|
| | | | ``iso-8859-1`` |
|
|
| | | | ISO-8859-1 |
|
|
| | | | |
|
|
| | | | ``utf-8`` |
|
|
| | | | UTF-8 |
|
|
| | | | |
|
|
| | | | ``utf-16`` |
|
|
| | | | UTF-16 |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| strings_encoding | * ``strings`` | File encoding | Encoding used for iOS strings files |
|
|
| | | | |
|
|
| | | | Available choices: |
|
|
| | | | |
|
|
| | | | ``utf-8`` |
|
|
| | | | UTF-8 |
|
|
| | | | |
|
|
| | | | ``utf-16`` |
|
|
| | | | UTF-16 |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| xml_closing_tags | * ``ts`` | Include closing tag for blank XML tags | |
|
|
| | * ``plainxliff`` | | |
|
|
| | * ``xliff`` | | |
|
|
| | * ``xliff2`` | | |
|
|
| | * ``xliff2-placeables`` | | |
|
|
| | * ``poxliff`` | | |
|
|
| | * ``apple-xliff`` | | |
|
|
| | * ``resx`` | | |
|
|
| | * ``aresource`` | | |
|
|
| | * ``moko-resource`` | | |
|
|
| | * ``cmp-resource`` | | |
|
|
| | * ``tbx`` | | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| yaml_indent | * ``yaml`` | YAML indentation | |
|
|
| | * ``ruby-yaml`` | | |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| yaml_line_break | * ``yaml`` | Line breaks | Available choices: |
|
|
| | * ``ruby-yaml`` | | |
|
|
| | | | ``dos`` |
|
|
| | | | DOS (\\r\\n) |
|
|
| | | | |
|
|
| | | | ``unix`` |
|
|
| | | | UNIX (\\n) |
|
|
| | | | |
|
|
| | | | ``mac`` |
|
|
| | | | MAC (\\r) |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| yaml_line_wrap | * ``yaml`` | Long lines wrapping | Available choices: |
|
|
| | * ``ruby-yaml`` | | |
|
|
| | | | ``80`` |
|
|
| | | | Wrap lines at 80 chars |
|
|
| | | | |
|
|
| | | | ``100`` |
|
|
| | | | Wrap lines at 100 chars |
|
|
| | | | |
|
|
| | | | ``120`` |
|
|
| | | | Wrap lines at 120 chars |
|
|
| | | | |
|
|
| | | | ``180`` |
|
|
| | | | Wrap lines at 180 chars |
|
|
| | | | |
|
|
| | | | ``65535`` |
|
|
| | | | No line wrapping |
|
|
+-----------------------------+-------------------------+-------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|