WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Translations & Languages / How to Translate Measurement Correctly

How to Translate Measurement Correctly

485 views 0

WpResidence uses these measurement options

$measure_array = array(
esc_html__('ft','wpresidence-core' ) => esc_html__('square feet - ft2','wpresidence-core' ),
esc_html__('m','wpresidence-core' ) => esc_html__('square meters - m2','wpresidence-core' ),
esc_html__('ac','wpresidence-core' ) => esc_html__('acres - ac','wpresidence-core' ),
esc_html__('yd','wpresidence-core' ) => esc_html__('square yards - yd2','wpresidence-core' ),
esc_html__('ha','wpresidence-core' ) => esc_html__('hectares - ha','wpresidence-core' ),
);

To change the translation you can use Loco Translate plugin steps explained here https://help.wpresidence.net/article/how-to-rename-theme-words-with-loco-translate/ 

Here is how you use Loco Translate to change ft to sqft

You can repeat this with any language and any measurement available

I will translate these to English

1st – Go to wpresidence-core-en_US.po

Find ft and translate it to sqft

2nd – Go to en_US.po from WpResidence Child Theme Languages

Translate ft to sqft

The measurement should be saved to square feet in Theme Options -> General -> Measurement Unit

When you check in front – you will see the measurement translation

Translations & Languages

Related Articles

  • How to Translate WPResidence Into Another Language
  • Rename theme words with Loco Translate Plugin
  • What Details are translated from Theme Options
  • Update .po translation after a theme update

Help Categories

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

Join Us On

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