mayukojpn / force-update-translations

Download WordPress theme/plugin translations and apply them to your site manually even their language pack haven't been released or reviewed on translate.wordpress.org
https://wordpress.org/plugins/force-update-translations/
12 stars 6 forks source link

Child theme support. #35

Closed mayukojpn closed 1 year ago

mayukojpn commented 3 years ago

In most cases of trying to update the translation files of child themes, it intends to get the parent themes' one since this plugin is for translation.wordpress.org.

genepine commented 1 year ago

Hello I made Child Theme by Child Theme Configurator. After activating the child theme, when I go to Appearance > Update Translations, I get the following error:

Cannot get source file: https://translate.wordpress.org/projects/wp-themes//ja/default/export-translations?filters%5Bstatus%5D=current_or_waiting_or_fuzzy

Cannot get source file: https://translate.wordpress.org/projects/wp-themes//ja/default/export-translations?filters%5Bstatus%5D=current_or_waiting_or_fuzzy&format=mo

wp-themes//ja cannot get the child theme name.

mayukojpn commented 1 year ago

@genepine Hi! Thanks for the heads up. I like the idea! That makes sense to check if the theme has a parent. I'll check if I have time to work on that.

pedro-mendonca commented 1 year ago

There are child themes in wp.org, I think the procedure should be: 1) Try to get the translation if the theme is on wp.org 2) Check if it's a child theme, if so, also try to get its parent theme translation, if it exists on wp.org