@samsosclass
Ok I've done a lot of testing, and outcome is:
- let's consider we have sigma theme and sigma_child theme
- to make translations working properly, languages folder must be created in sigma_child
- if languages folder does not exists, osclass takes oc-content/languages folder
- to ensure osclass takes translations from child languages file, functions in php files must use domain 'sigma_child', not 'sigma'
- this means it is not possible to properly use child themes with translations (you would need to create all files and change translation domain)
This is completely missing in osclass now, to consider parent theme for child as well.
I've done some development and this will be fixed in 4.2.0 version, and will work in this way:
- first, it will load parent theme translations and apply it on everything with domain 'sigma', even it is used in child theme as well
- next, it will load child theme translations and apply it on everything with domain 'sigma_child'
This will basically merge different translation files and allow to use full potential of child themes.
I've done demo and created child for home page on sigma there
https://dev7.abprofitrade.eu/<?php _e('All locations', 'sigma'); ?> ---> loads translation from oc-content/themes/sigma/languages
<?php _e('All categories', 'sigma_child'); ?> ---> loads translation from oc-content/themes/sigma_child/languages
Both used in same file main.php