Translate Astra Themes/Plugins into your own language with GlotPress

Astra The theme supports 100% translation and provides .po and .mo files that can be used to POEdit,GlotPress and other software for translation. Among these programs, we recommend the use of GlotPressTheGlotPress be WordPress The biggest advantage of an officially used online translation tool is community involvement. Anyone can log in to GlotPressThe translation is done in an efficient way, by contributing translations, suggesting changes or validating existing translations. In this way, the translation process can be completed more quickly and accurately.

图片[1]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译

In this article, we'll go over how to use the GlotPress Translate Astra themes and plugins to help you translate your website into your desired language.

图片[2]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译

Step 1: Visit the GlotPress project page

Astra thematic GlotPress The project is hosted in WordPress In the repository. You can translate Astra topics by visiting the following link:

Step 2: Log in or register a new account

If you already have GlotPress account, you can log in directly. If you don't have an account, you can log in at GlotPress Register a new account on the site. After registering, you will be able to participate in translations and contribute translated content.

Step 3: Select Translation Language

exist GlotPress In the "Translations" section, select the language you wish to translate into. After clicking on the language link, you will see the status of the translation for that language as well as information about other translators. The different status symbols help you understand the progress of the translation:

  • Untranslated: A string that has not yet been translated, pending translation.
  • Waiting: Translated string, waiting for validation.
  • Fuzzy: There are several strings with different translations waiting for the verifier to choose the most appropriate one.
  • Translated: String that has been translated and completed without further work.

Select the language you need to translate and view the current progress of the translation.

图片[3]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译

Step 4: Translate String

Click on any string that needs to be translated to go to the translation editing page. Here you can provide a translation for that string. After completing the translation, the Project Validator will review and approve your translation.

图片[4]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译

Translated strings, when approved by the validator, will appear in the WordPress Backend update in progress. If the project is hosted in a WordPress.org repository, the translations are updated automatically. If it is Astra Pro plugin, translations will be released with the plugin update.

图片[5]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译

Step 5: Exporting the Translation File

Once the translation is complete, you can export the current translation files (.po and .mo formats). These files will be used in your WordPress website to help automate the application of translations.

Steps for exporting translated files:

  • exist GlotPress After completing the translation, scroll to the bottom of the page and select the Machine Object Message Catalog (.mo) Export translation files in the format.
  • Rename the translation file to a format that matches the language encoding:
    • For example, a German language file named astra-de_DE.mo respond in singing astra-de_DE.poThe
    • The French file is named astra-fr_FR.mo respond in singing astra-fr_FR.poThe
    • For the Hebrew, named astra-he_IL.moThe
图片[6]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译

File Upload Steps:

Rename the renamed .mo The file is uploaded to the following path:

  • For Astra topics:wp-content/languages/themes/
  • For the Astra Pro plug-in:wp-content/languages/plugins/

Make sure to follow the correct naming convention, which will ensure that the WordPress Correctly recognizes and applies translations.

Steps for exporting and uploading translations to the website

  • interviews GlotPress Project page and log in to your account.
  • Select the language you want to translate and translate the desired string.
图片[7]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译
  • strike (on the keyboard) deriveand then select Machine Object Message Catalog (.mo) format to export translations.
图片[8]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译
  • rename .mo documents, for example:astra-he_IL.mo(For Hebrew).
图片[9]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译
  • Rename the renamed .mo File uploaded:
    • For Astra topics:wp-content/languages/themes/
    • For the Astra Pro plug-in:wp-content/languages/plugins/
图片[10]-通过 GlotPress 实现 Astra 主题/插件的多语言翻译

When finished, your Astra website will automatically display the translated content.

summarize

utilization GlotPress rendering Astra Themes and plugins not only enhance a site'spolyglotsupport and also leverage the power of the community to speed up the translation process. With these steps, you can easily translate the Astra website into any language you need and apply it instantly to your website. By participating in the translation, you can also help other users get accurate translated content faster.

Related articles


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:托尼屎大颗
THE END
If you like it, support it.
kudos1242 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments