Puede ajustar la configuración de JSON para personalizar la forma en que se procesa este tipo de archivo durante la traducción o revisión.
Procedimiento
- Decide for which projects you want to configure file type settings:
- For the active project, go to the Projects view, and on the Home tab, select Project Settings.
- For all future projects, go to .
- Expanda la lista Tipos de archivo y seleccione el filtro JSON.
- Select the Parser page, and then:
- Under String value extraction, choose one of the options:
- Extract all string, to extract all string values that contain a key.
- Specify rules for extracting, to extract values (numbers, boolean, strings, date time) from specific file paths. If the source file has no value, then that empty value becomes undefined in the target file.
- If you choose Specify rules for extracting (under String value extraction), select Add. In the Add JSON Path dialog, type a path, choose a value from the Document Structure Information list, and then select OK.
- Select the Writer page, and then:
- Under Writer:
- Select Escape non-ASCII and control characters, so that all symbols are transformed to strings, including the Chinese or Arabic characters. For example, if the option is enabled, certain symbols will look like
"\u63d0" (hexdecimal digits). If the option is disabled, the hexadecimal digits will be shown as Unicode characters and will be displayed as such in the target file.
- Select Enable pretty printing in the target file, so that you avoid having all the content written inline. This option is enabled by default.
- Under Unicode UTF-8 byte order mark (BOM), choose when the SDL file support software should insert a UTF-8 BOM in the target file:
- Preserve: don't add if not originally present
- Preserve: add if not originally present
- Remove if present
- Seleccione la página Contenido incrustado.
- Seleccione Procesar contenido incrustado encontrado en la información de estructura de documento: para procesar el contenido incrustado XML.
- Seleccione Agregar y, a continuación, en Agregar procesador de contenido incrustado, elija un procesador del contenido incrustado de la lista Procesador incrustado.
- Select the QuickInsert page.
- Specify QuickInsert settings to insert tags and formatting, or to insert text and special characters.
- Seleccione Aceptar.