*

bobyrou

  • ****
  • 107 posts
Langauge in Child Theme
« on: July 02, 2020, 05:22:13 PM »
I am trying to create a Languages child theme for Gamma theme but I can't make it work (by the way CSS in child theme works perfect).

I copied the languages/en_US/theme.mo and theme.po into the child_theme folder and then in child_theme/functions.php I pasted below code.

Code: [Select]
function gam_child_custom_lang() {
 osc_locale('locale', osc_current_web_theme_url('../gamma_child/languages/en_US/theme.mo'));
}
osc_add_hook('header', 'gam_child_custom_lang')
« Last Edit: July 04, 2020, 02:29:47 AM by bobyrou »

*

bobyrou

  • ****
  • 107 posts
Re: Langauge in Child Theme
« Reply #1 on: July 04, 2020, 02:04:41 AM »
Anyone willing to help please?

*

MB Themes

Re: Langauge in Child Theme
« Reply #2 on: July 04, 2020, 09:12:14 AM »
I think this was missing in documentation, try to create lang file in same way as for standard theme
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots