• When I edit theme options I can select the language, but when I change something is applied to all languages.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter abusquets

    (@abusquets)

    Untranslated strings are those called by get_option

    You need to add your settings to config section ‘options’.
    As example:

    
    {
      "options": {    
        "theme_mods_twentyseventeen": {
          "theme_option_name": {}
        }
      }
    }
    
    • This reply was modified 6 years, 6 months ago by VaLeXaR.
    Thread Starter abusquets

    (@abusquets)

    Hi Valentyn,
    many thanks for your attention, but it only works for blog options like blogname, blogdescription and not for the specific theme options like theme_home_advance_search_title and theme_featured_prop_title.

    This is my wpm-config.json theme file

    {
    “post_types”: {
    “property”: {}
    },
    “taxonomies”: {
    “property-feature”: {},
    “property-type”: {},
    “property-status”: {}
    },
    “options”: {
    “theme_mods_realhomes-monica”: {
    “blogname”: {},
    “blogdescription”: {},
    “theme_home_advance_search_title”: {},
    “theme_featured_prop_title”: {}
    }
    }
    }

    Maybe this options are not in “theme_mods_realhomes-monica”? Can You show dump of the array of the option “theme_mods_realhomes-monica”?

    Thread Starter abusquets

    (@abusquets)

    Sorry, but i don’t know how to do this.

    Thread Starter abusquets

    (@abusquets)

    I installed a plugin for that, and yes, the options are from theme

    • This reply was modified 6 years, 6 months ago by abusquets.

    So, can You show the dump of the theme settings array?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘translate theme options’ is closed to new replies.