WPML and Marathi language

Tagged:
  • radeko
    Participant
    3 years, 8 months ago #23785

    Hi, when at 2.1 the search archive checkbox is activated the result page is not language aware. If I understood the video tutorial I have to create an index for each language. Unfortunately the drop down menu ‘Language’ does not list all my languages for example Marathi is missing.

    My list
    mysql> select english_name from wp_icl_languages where active=1;
    +————————+
    | english_name |
    +————————+
    | English |
    | Spanish |
    | German |
    | French |
    | Arabic |
    | Bulgarian |
    | Czech |
    | Greek |
    | Persian |
    | Finnish |
    | Hebrew |
    | Hindi |
    | Hungarian |
    | Armenian |
    | Indonesian |
    | Italian |
    | Japanese |
    | Lithuanian |
    | Mongolian |
    | Dutch |
    | Polish |
    | Portuguese, Portugal |
    | Romanian |
    | Russian |
    | Albanian |
    | Thai |
    | Turkish |
    | Ukrainian |
    | Vietnamese |
    | Chinese (Simplified) |
    | Chinese (Traditional) |
    | Marathi |
    | Slovak |
    | Telugu |

    wpsolr
    Keymaster
    3 years, 8 months ago #23789

    (I can see in your WPML SQL “| Marathi”)

    Unfortunately, I do not think Marathi is supported by Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html

    It seems to be supported by Algolia though: https://www.algolia.com/doc/api-reference/api-parameters/queryLanguages/

    radeko
    Participant
    3 years, 8 months ago #23792

    Thank you. So in my case since I do not need any special features for Marathi I can create for example an index with English language and in the WPML extension (/admin.php?page=solr_settings&tab=solr_plugins&subtab=extension_wpml_opt) match it to ‘mr’. Right?

    wpsolr
    Keymaster
    3 years, 8 months ago #23793

    If you have only one language on your site, you do not need the WPSOLR WPML extension.
    Just create your English index, and use it as-is with your theme.

    radeko
    Participant
    3 years, 8 months ago #23794

    I do need the WPSOLR WPML extension, just trying to figure out how to add Marathi language so the result display page will work as desired.

    wpsolr
    Keymaster
    3 years, 8 months ago #23795

    Then as you mentioned, create your English index, and link it to the Marathi language in the WPSOLR’s WPML extension settings.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.