Wilcity Translation

I. Translating with Loco Translate

  1. From the admin sidebar, click on Plugins -> Add New -> Install Loco Translate plugin
  2. Once this plugin has been activated, you will see Loco Translate on the sidebar, click on it
  3. Translate Wilcity: Click on Themes -> Search for “Wilcity” -> Choose a language: Select your Language -> Choose Location: We recommend using System option
  4. Translate Wilicty to your Language
  5. Do the same with Wilcity’s plugins: Click on Loco -> Plugins -> Search for “Wilcity”, “Wiloke” keywords

II. Translating config.translation.php

  1. Open the package that downloaded from https://themeforest.net/downloads, you will see a file call wilcity-childtheme.zip
  2. Extract this file -> create configs folder under wilcity-childtheme folder
  3. Copy wilcity -> configs -> config.translation.php to wilcity-childtheme -> configs folder.
  4. Open this file with a text editor -> Start to translate to your language like this instruction
    'askForAllowAccessingLocationTitle' => 'My Language',

II. Translating Select2

  1. Go to https://github.com/select2/select2/tree/develop/dist/js/i18n download your language file
  2. Put this file to wilcity-childtheme
  3. Add the following code to wilcity-childtheme -> functions.php
    add_action('wp_enqueue_scripts', 'wilcitySelectTranslation');
    
    function wilcitySelectTranslation(){
        wp_enqueue_script('select2-translation', get_stylesheet_directory_uri() . '/select2-mylanguage.js', array('jquery', 'jquery-select2'), '1.0', true);
    }
    

    select2-mylanguage.js is the file name that you downloaded.

  4. Finally, click compress wilcity-childtheme -> Log into your site -> Appearance -> Themes -> Add New -> Install the Child Theme and Activate it

III. Translating Single Navigation and AddListing page

With the Single Navigation, You can enter your language directly.

 

Tagged:

Leave A Comment?