CSV Format for GlotPress

Descrição

Adiciona o formato CSV ao GlotPress para exportar/importar traduções e originais.

This allows you to export a translation set to a CSV file, and use this to import the translations or originals into the project.

Este plugin está correctamente preparado para localização.

The CSV Format

The CSV output has values separated by , and enclosured by " ".

The total number of columns depends on the number of Plural Forms of the exported Locale.

For an sample file, please check out example.csv.

The header columns for the different translations have the Translation (<plural-form>) naming convention, being the Plural Forms depending on each exported Locale.

See the example below for a Portuguese CSV export, which has 2 plural forms.

The exported CSV in plain text

"Context","Singular","Plural","Comments","References","Translation (Singular)","Translation (Plural)"
"","Singular in English.","","Comment 1.\nComment 2.","","Singular em Português.",""

The main columns

The 5 main columns are Context, Singular, Plural, Comments and References.

The Plural Forms variable columns

The number of Plural Forms columns may vary depending on each Locale setting.

Check the below table for examples of GlotPress Locales from 1 to 6 Plural Forms.

Filtros incluídos

The gp_format_csv_header allows you to add, remove or customize items from the CSV header.

The gp_format_csv_row allows you to add, remove or customize items from the CSV row.

Utilização

Export translations to CSV

  1. Go to the bottom of the translation table.
  2. Select CSV (.csv).
  3. Click on the Export link to download the CSV file.

Import translations from CSV

  1. Go to the bottom of the translation table.
  2. Click on the Import Translations link.
  3. Select the CSV file to upload, the Format is Auto Detected.
  4. Click on the Import button.

Import originals from CSV

  1. Go to the project page.
  2. On the project actions click on the Import Originals link.
  3. Select the CSV file to upload, the Format is Auto Detected.
  4. Click on the Import button.

Perguntas frequentes

Posso ajudar a traduzir este plugin para o meu idioma?

Pode! Se quiser traduzir este plugin para o seu idioma, por favor clique aqui.

Posso contribuir para o desenvolvimento deste plugin?

Claro que sim! O seu contributo é bem-vindo, pode reportar erros ou fazer sugestões de funcionalidades no repositório do GitHub.

Avaliações

Este plugin não tem avaliações.

Contribuidores e programadores

“CSV Format for GlotPress” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

“CSV Format for GlotPress” foi traduzido para 4 locales. Obrigado aos tradutores pelas suas contribuições.

Traduza o “CSV Format for GlotPress” para o seu idioma.

Interessado no desenvolvimento?

Consulte o código, consulte o repositório SVN, ou subscreva o registo de alterações por RSS.

Registo de alterações

1.0.2

  • Tested with WordPress 6.5.
  • Tested with GlotPress 4.0.
  • Tested with PHP 8.3.
  • Add WP Plugin Check CI test.
  • Update dependencies.

1.0.1

  • Fix log error message typo. Props @fxbenard.

1.0.0

  • Initial release.
  • All WPCS and PHPStan level 9 verified.