WordPress.org

Making WordPress.org

Opened 5 months ago

Closed 5 months ago

#4341 closed defect (reported-upstream)

Import translations doesn't work with JSON format

Reported by: Amieiro Owned by:
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords: has-patch
Cc:

Description

I am translating the "WordPress Importer" plugin to Galician language https://translate.wordpress.org/projects/wp-plugins/wordpress-importer/dev/gl/default/

My workflow is:

  1. I export a JSON file with the strings to be translated (only one string in my example). See screenshot-01.png. The output file is wp-plugins-wordpress-importer-dev-gl-01.json.
  2. I add the translation to the file (one string). I have tried 3 options.
    1. UTF-8 LF (Unix end of line type) with accent mark in Unicode, as I have seen in other translations. The result file is wp-plugins-wordpress-importer-dev-gl-02.json.
    2. UTF-8 LF (Unix end of line type) with accent mark without Unicode. The result file is wp-plugins-wordpress-importer-dev-gl-03.json.
    3. UTF-8 LF (Unix end of line type) without accent mark, only with english characters. The result file is wp-plugins-wordpress-importer-dev-gl-03.json.
  3. I tried to upload each of this files (see screenshot-02.png) but I don't get any translations added (see screenshot-03.png).
  4. To check that the string exists and it is not translated, I copy the original string from the JSON file (english string), paste it in the search box (see screenshot-04.png) and I find the string untranslated (see screenshot-05.png).

I think the importer with JSON files is not working correctly.

Attachments (9)

screenshot-01.png (57.9 KB) - added by Amieiro 5 months ago.
screenshot-02.png (31.5 KB) - added by Amieiro 5 months ago.
screenshot-03.png (49.0 KB) - added by Amieiro 5 months ago.
screenshot-04.png (33.3 KB) - added by Amieiro 5 months ago.
screenshot-05.png (56.8 KB) - added by Amieiro 5 months ago.
wp-plugins-wordpress-importer-dev-gl-01.json (207 bytes) - added by Amieiro 5 months ago.
wp-plugins-wordpress-importer-dev-gl-02.json (438 bytes) - added by Amieiro 5 months ago.
wp-plugins-wordpress-importer-dev-gl-03.json (430 bytes) - added by Amieiro 5 months ago.
wp-plugins-wordpress-importer-dev-gl-04.json (428 bytes) - added by Amieiro 5 months ago.

Download all attachments as: .zip

Change History (10)

#1 @ocean90
5 months ago

  • Keywords has-patch added; has-screenshots needs-patch removed
  • Resolution set to reported-upstream
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.