def core__get_menu_title_translation title, module_name
      return title if (!title.start_with?('translate'))

      title_key = core__get_string_inside_strings(title, '[', ']')
      module_languages = core__get_module_languages(module_name)
      return title if !module_languages || !module_languages[:menu] || !module_languages[:menu][title_key]

      return module_languages[:menu][title_key]
    end
def core__get_menu_title_translation title, module_name
      return title if (!title.start_with?('translate'))

      title_key = core__get_string_inside_strings(title, '[', ']')
      module_languages = core__get_module_languages(module_name)
      return title if !module_languages || !module_languages[:menu] || !module_languages[:menu][title_key]

      return module_languages[:menu][title_key]
    end
This function check the title name and, if it need a translaction, it return the value.