Astra_Builder_Helper::get_translatable_strings()
Method to return translatable strings for builder components.
Description
Source
File: inc/core/builder/class-astra-builder-helper.php
public static function get_translatable_strings() { if ( empty( self::$translatable_strings ) ) { // Count is 10 because component limit is set to 10 in $component_limit. self::$translatable_strings = array( // Header button components. 'header-button1-text' => _x( '%astra%', 'Builder: Header Button 1 Text', 'astra' ), 'header-button2-text' => _x( '%astra%', 'Builder: Header Button 2 Text', 'astra' ), 'header-button3-text' => _x( '%astra%', 'Builder: Header Button 3 Text', 'astra' ), 'header-button4-text' => _x( '%astra%', 'Builder: Header Button 4 Text', 'astra' ), 'header-button5-text' => _x( '%astra%', 'Builder: Header Button 5 Text', 'astra' ), 'header-button6-text' => _x( '%astra%', 'Builder: Header Button 6 Text', 'astra' ), 'header-button7-text' => _x( '%astra%', 'Builder: Header Button 7 Text', 'astra' ), 'header-button8-text' => _x( '%astra%', 'Builder: Header Button 8 Text', 'astra' ), 'header-button9-text' => _x( '%astra%', 'Builder: Header Button 9 Text', 'astra' ), 'header-button10-text' => _x( '%astra%', 'Builder: Header Button 10 Text', 'astra' ), // Footer button components. 'footer-button1-text' => _x( '%astra%', 'Builder: Footer Button 1 Text', 'astra' ), 'footer-button2-text' => _x( '%astra%', 'Builder: Footer Button 2 Text', 'astra' ), 'footer-button3-text' => _x( '%astra%', 'Builder: Footer Button 3 Text', 'astra' ), 'footer-button4-text' => _x( '%astra%', 'Builder: Footer Button 4 Text', 'astra' ), 'footer-button5-text' => _x( '%astra%', 'Builder: Footer Button 5 Text', 'astra' ), 'footer-button6-text' => _x( '%astra%', 'Builder: Footer Button 6 Text', 'astra' ), 'footer-button7-text' => _x( '%astra%', 'Builder: Footer Button 7 Text', 'astra' ), 'footer-button8-text' => _x( '%astra%', 'Builder: Footer Button 8 Text', 'astra' ), 'footer-button9-text' => _x( '%astra%', 'Builder: Footer Button 9 Text', 'astra' ), 'footer-button10-text' => _x( '%astra%', 'Builder: Footer Button 10 Text', 'astra' ), // Header HTML components. 'header-html-1' => _x( '%astra%', 'Builder: Header HTML 1', 'astra' ), 'header-html-2' => _x( '%astra%', 'Builder: Header HTML 2', 'astra' ), 'header-html-3' => _x( '%astra%', 'Builder: Header HTML 3', 'astra' ), 'header-html-4' => _x( '%astra%', 'Builder: Header HTML 4', 'astra' ), 'header-html-5' => _x( '%astra%', 'Builder: Header HTML 5', 'astra' ), 'header-html-6' => _x( '%astra%', 'Builder: Header HTML 6', 'astra' ), 'header-html-7' => _x( '%astra%', 'Builder: Header HTML 7', 'astra' ), 'header-html-8' => _x( '%astra%', 'Builder: Header HTML 8', 'astra' ), 'header-html-9' => _x( '%astra%', 'Builder: Header HTML 9', 'astra' ), 'header-html-10' => _x( '%astra%', 'Builder: Header HTML 10', 'astra' ), // Footer HTML components. 'footer-html-1' => _x( '%astra%', 'Builder: Footer HTML 1', 'astra' ), 'footer-html-2' => _x( '%astra%', 'Builder: Footer HTML 2', 'astra' ), 'footer-html-3' => _x( '%astra%', 'Builder: Footer HTML 3', 'astra' ), 'footer-html-4' => _x( '%astra%', 'Builder: Footer HTML 4', 'astra' ), 'footer-html-5' => _x( '%astra%', 'Builder: Footer HTML 5', 'astra' ), 'footer-html-6' => _x( '%astra%', 'Builder: Footer HTML 6', 'astra' ), 'footer-html-7' => _x( '%astra%', 'Builder: Footer HTML 7', 'astra' ), 'footer-html-8' => _x( '%astra%', 'Builder: Footer HTML 8', 'astra' ), 'footer-html-9' => _x( '%astra%', 'Builder: Footer HTML 9', 'astra' ), 'footer-html-10' => _x( '%astra%', 'Builder: Footer HTML 10', 'astra' ), ); // Old header button. self::$translatable_strings['header-main-rt-section-button-text'] = _x( '%astra%', 'Button text for last item in Primary Menu', 'astra' ); } return self::$translatable_strings; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.8.4 | Introduced. |