CSV Format for GlotPress

plugin banner

Adds the CSV format to GlotPress to export/import translations and originals.

Author:Pedro Mendonça (profile at wordpress.org)
WordPress version required:4.9
WordPress version tested:6.5
Plugin version:1.0.2
Added to WordPress repository:21-11-2022
Last updated:22-03-2024
Rating, %:0
Rated by:0
Plugin URI:https://wordpress.org/plugins/gp-format-csv/
Total downloads:1 300
plugin download
Click to start download

Adds the CSV format to GlotPress to export/import translations and originals.

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

This plugin is properly prepared for localization.

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.

Included filters

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.

Usage

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.

FAQ
ChangeLog