|
↳ See all 15 articles
/ Documentation /Translate Astra/ How to Translate Astra Theme / Plugins in Your Own Language using GlotPress?

How to Translate Astra Theme / Plugins in Your Own Language using GlotPress?

The Astra theme and the Astra Pro plugin are translation ready. They can be translated with tools like Poedit or GlotPress. GlotPress is the recommended option.

GlotPress is the online tool WordPress uses for translations. Anyone can log in, suggest translations, and suggest fixes to existing ones. Language validators then review and approve them. Because many people help, projects get translated faster and more accurately.

This guide applies to both the free Astra theme and the Astra Pro plugin. Each one is translated on a different site, as shown in Step 1.

Translate Astra With GlotPress

Step 1: Open the translation project

Astra and Astra Pro are translated on two different sites:

ProductTranslation projectAccount to use
Astra themetranslate.wordpress.org/projects/wp-themes/astra/Your WordPress.org account
Astra Pro plugintranslate.brainstormforce.com/glotpress/projects/astra-addon/An account on the Brainstorm Force translation portal

Step 2: Log in or create an account

You can browse and export translations without logging in. To add or suggest a translation, log in first. For the Astra theme, use Log In or Register at the top of WordPress.org. For Astra Pro, use Sign Up or Login on translate.brainstormforce.com.

Step 3: Choose your language

Once you are logged in, click your language in the Locale list. The language page shows how much of the project is translated and who has helped so far.

Each string has a status:

  • Translated: approved and ready to use. Only these strings go into the language pack your site downloads.
  • Untranslated: nobody has translated it yet. These need your help most.
  • Waiting: someone suggested a translation, and it is waiting for a validator to approve it.
  • Changes requested: a validator reviewed the suggestion and asked for changes (WordPress.org only).
  • Fuzzy: a translation that was approved before, but the original English text has changed a little since. It needs a check, then a fix or approval.

Step 4: Open the list of strings

Next, click the project name (for example, Astra) on the language page. Use the filters at the top, like Untranslated, to find strings that need work.

Step 5: Translate a string

Double-click a string to open the editor. Type your translation in the box and click Suggest. Your translation stays as a suggestion (Waiting) until a validator approves it.

When Translations Reach Your Site

How approved translations reach your site depends on the product.

When validators approve translations for the Astra theme, WordPress.org builds a language pack. Your site then gets it as a translation update under Dashboard > Updates. A language pack is first created once a language is 90% translated.

Translate the Astra Dashboard and Customizer: set your language under Settings > General > Site Language, then go to Dashboard > Updates and click Update Translations. The WordPress.org language pack includes the files these screens need. Files you export from GlotPress yourself (.po and .mo) do not translate these screens.

Astra Pro is not on WordPress.org, so its translations do not update on their own. Approved translations reach your site when they are added to the next Astra Pro release, so new translations can take until that release to appear. If you want to change a translation on your own site, see How to Use POEdit to Translate Astra Theme and Astra Pro Plugin.

Become a Translation Validator

Translation validators approve suggested translations so they can be shipped to all users. To become a validator, fill in the Become Translation Validator form. It asks for:

  • Your WordPress.org username
  • Your username on the Brainstorm Force translation portal
  • The products you want to translate
  • The locale code of your language
  • Details of any previous translation work

Once the request is reviewed, you are added as a translation validator for that language.

Use a Translation on Your Site Right Away

If you need the translation on your site before it arrives as an update, download the files and upload them yourself.

  1. Open your language’s string list (Step 4 above).
  2. Scroll to the bottom of the page. Next to Export, keep all current, choose Portable Object Message Catalog (.po/.pot), and click Export.
  3. Then change the format to Machine Object Message Catalog (.mo) and click Export again. You need both files.
  4. Rename both files using the naming rules below.
  5. Finally, upload them with FTP, SFTP, or your host’s file manager to the matching folder:
    • Astra theme: wp-content/languages/themes/
    • Astra Pro: wp-content/languages/plugins/

The Astra Pro portal has the same Export option at the bottom of its string list.

File naming rules

WordPress only loads a translation file when its name is correct. The name is the text domain, a dash, and the locale code of your language. Capital letters matter.

The text domain is the short name WordPress uses to match a translation file to a theme or plugin. Use astra for the Astra theme and astra-addon for Astra Pro.

Examples of file names for the Astra theme:

  • For German: astra-de_DE.po & astra-de_DE.mo
  • For French: astra-fr_FR.po & astra-fr_FR.mo

Note: a few Astra Pro admin screens, such as some Customizer and settings panels, may stay in English when you upload the files yourself.

Note:

Keep translation files in the wp-content/languages/ folders above, not inside the theme or plugin folder. Files inside the theme or plugin folder are removed with every update. Astra Pro also checks wp-content/languages/plugins/ first, so your files are used over the ones bundled in the plugin.

Expected Outcome

After following this guide, your translations are suggested on GlotPress and reach all users once approved. If you exported and uploaded the files yourself, the Astra theme or Astra Pro shows in your language on your site right away.

Related docs

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Scroll to Top