Opened 6 years ago
Closed 6 years ago
#4341 closed defect (bug) (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:
- 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.
- I add the translation to the file (one string). I have tried 3 options.
- 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.
- 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.
- 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.
- I tried to upload each of this files (see screenshot-02.png) but I don't get any translations added (see screenshot-03.png).
- 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)
Change History (10)
Note: See
TracTickets for help on using
tickets.
Thanks for the report, moved to https://github.com/GlotPress/GlotPress-WP/issues/1003.