1. Home
  2. Docs
  3. Lunex – WordPress T...
  4. Translating the Theme

Translating the Theme

The Lunex theme is fully translation-ready and can be translated using two methods: via the Loco Translate plugin or manually using the .POT file.


Method 1: Using Loco Translate Plugin

Step 1: Install and Activate Loco Translate

  1. In your WordPress Dashboard, go to Plugins → Add New.
  2. Search for Loco Translate.
  3. Click Install Now and then Activate.

Step 2: Translate the Lunex Theme

  1. Navigate to Loco Translate → Themes.
  2. Select Lunex from the list.
  3. Click New Language.
  4. Choose your target language.
  5. Select where to save translation files:
    • Custom (recommended to preserve changes after theme updates)
    • System (may be overwritten after updates)
  6. Click Start Translating.
  7. Translate strings using the interface and click Save.

Step 3: Set Site Language

  • Go to Settings → General.
  • Change the Site Language to your translated language.

Method 2: Manual Translation Using .POT File

Step 1: Locate the .POT File

  • Find the file at:
    /wp-content/themes/Lunex/languages/Lunex.pot

Step 2: Use a Translation Editor

  • Download and install Poedit (https://poedit.net/) or any .PO file editor.
  • Open the .POT file in Poedit.

Step 3: Create Translation Files

  • Translate the strings into your desired language.
  • Save the translation as .PO and .MO files, named according to your language code.
    Example:
    • French (France): fr_FR.po and fr_FR.mo
    • Spanish (Spain): es_ES.po and es_ES.mo

Step 4: Upload Translation Files

  • Upload the .PO and .MO files to:
    /wp-content/themes/lunex/languages/

Step 5: Set Site Language

  • Go to Settings → General.
  • Select your new language from Site Language.

Tips

  • Using Loco Translate is recommended for convenience and in-dashboard translation.
  • When updating the theme, back up your translation files if saved in the System folder.
  • Keep translations updated with theme updates for new strings.

How can we help?