WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / WPEstate Translate Plugin / Translating Theme & Plugin Strings

Translating Theme & Plugin Strings

223 views 0
Translate theme and plugin strings in WPEstate Translate: scan, type or auto translate with OpenAI, then generate the translation files. The video also shows how to check the result on the front end. Watch Video on Youtube

Search labels, buttons, dashboard messages, emails and notices come from the theme and plugin code. You translate them in two places: .po files, and the Theme & Plugins Strings screen of WPEstate Translate. This article shows how to use both.

CONTENT

  • Two Ways to Translate Strings
  • Start with the .po Files
  • Scan the Strings
  • Translate by Hand
  • Translate Automatically
  • Generate the Translation Files
  • Delete and Clear Translations

Two Ways to Translate Strings

Where Best for
.po files, edited with Loco Translate The default language, and complete translations of the theme and plugins in other languages. The WPResidence child theme already ships .po files for many languages.
WPEstate Translate > Theme & Plugins Strings The other languages of a multilingual site: see what the .po files already translate, fill in the gaps, change single texts, or let a translation service fill a whole group.

A text translated in Theme & Plugins Strings replaces the same text from the .po file. A text you leave empty there keeps the .po translation.

Start with the .po Files

Activate the WPResidence child theme. Its languages folder holds ready translations, and updates do not overwrite it. At the top of Theme & Plugins Strings, a message tells you whether a child theme with translation files was found, and the box Where are translation files loaded from? lists the .po files in use.

Theme and Plugins Strings screen in WPResidence

To edit a .po file with Loco Translate, see How to translate WPResidence. For how the files load, see Gettext and MO Files.

Scan the Strings

  1. Go to WPEstate Translate > Theme & Plugins Strings. The screen is titled String Translation.
  2. Click Scan for translations. The plugin reads the theme, the child theme and the active plugins, and fills each language column with the translations already in their .po files. A notice tells you how many new strings were found.

Scan completed notice on the String Translation screen

Scan again after you install a plugin, update the theme or add a language.

Translate by Hand

  1. Find the text. Use Show (All strings, Not translated strings or Translated strings), Search and Domain, then click Filter. The domain is the group the text belongs to, for example the theme, WPResidence Core or wpresidence_admin for the texts typed in Theme Options.
  2. Type the translation in the column of the language. It saves when you click outside the box. The Default column is the original text and cannot be edited here.
  3. Repeat for the other texts, then generate the translation files.

Translate Automatically

  1. Connect a translation service first: see Automatic Translation with OpenAI, Google, DeepL and Azure.
  2. Under Automatic translate strings, choose a domain (or All domains) and a language.
  3. Click Automatic Translate. The empty boxes are filled in. Read the result and correct what you need.
  4. Generate the translation files.

Generate the Translation Files

Click Generate translation files after each round of changes. Visitors see your new texts only after this step. A notice confirms how many files and translations were created.

Generated files notice on the String Translation screen

No file is created for the default language. Change default-language texts in Theme Options or in the default .po file.

Delete and Clear Translations

  • Delete selected translations: tick the rows, then click the button under the list. Those texts go back to the .po translation.
  • Clear stored translations: empties the whole list. Use it only to start over, then click Scan for translations again.

After either action, click Generate translation files.

WPEstate Translate Plugin

Related Articles

  • String Scanner — Developer Guide
  • The String Scanner
  • Gettext Pipeline & MO Files — Developer Guide
  • Gettext & MO Files — Making Translations Appear on the Front End
MLSImportWordPress IDX Plugin for MLS ListingsImport MLS listings into your WordPress website, customize your property pages, and keep your inventory updated.Start free 30-day trial →

Help Categories

  • 51 Getting Started
  • 72 Installation & Setup
  • 243 Installation FAQ
  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 56FAQ
  • 15Footer
  • 37Header
  • 2IDX & MLSImport
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 7Other Third party Plugins
  • 21Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Pages & Layouts
  • 32Search & Filtering
  • 162Technical how to | Custom Code
  • 8Technical: Actions and filters
  • 7Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Translations & Languages
  • 16WPBakery Shortcodes
  • 50WPEstate Translate Plugin
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 9WPResidence Elementor Studio

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API