• Resolved rxb28

    (@rxb28)


    Hey everyone,
    I am trying to create a directory site specific for Indian customers. I saw that there are language options when entering an entry (like what languages they speak) but I was wondering if there was a way to customize that. Right now the list includes:
    Arabic
    Bengali
    Chinese
    English
    Filipino
    French
    German
    Hindi
    Indonesian
    Italian
    Japanese
    Korean
    Portuguese
    Russian
    Slovenian
    Spanish
    Tai-Kadai
    Vietnamese
    I’d like to know if I could change that to a few different languages. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    You can hook into the cn_languages_options to customize the language to better suit your needs.

    Here’s an example which adds a language:

    add_filter(
      'cn_languages_options',
      function( $options ) {
        $options['gre'] = 'Greek';
        return $options;
      }
    );

    The gre is just the ISO 639-2 code.

    You do not need to use the code, any lowercase letter with no spaces and special characters will work.

    I hope this helps!

    Thread Starter rxb28

    (@rxb28)

    Thank you! I got it working now.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    No problem! happy to help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Language when adding an entry’ is closed to new replies.