Skip to content

Translating Theme

The Asli theme is fully translatable into other languages.

For easy string translation, I recommend installing the free Loco Translate plugin, which allows you to translate your theme directly from the WordPress admin panel.

Preparing for Translation

WARNING

Before translating, ensure that the folder 📁 wp-content/languages/loco/themes exists and is writable by the web server.

If WordPress automatic updates are enabled, the 📁 wp-content/languages folder likely already exists.

The 📁 /loco subfolder is essential as it protects your custom translations from being overwritten by automatic updates.

Translation Dashboard

If you haven't already installed and activated Loco Translate, please do so now.

Go to Loco Translate → Themes in the WordPress admin panel. You will see a list of available themes. Find Asli in the list and click on it.

Above the language list (which may be empty), click on New language

Adding a New Language

To start translating the theme into another language, click New language. You will be directed to a new screen where you can choose the desired language.

Select a language from the dropdown list. For example, selecting German will set the language code to de.

If your folders are set up correctly, you should see an option marked as Custom.

Select this option to protect your translations from being overwritten by updates

On the editor screen, you will see all translatable theme strings. Untranslated strings appear in bold blue.

Translate your strings and click Save once done