LLMS_Helper_Add_On::get_l10n( string $string )

Translate strings


Parameters Parameters

$string

(string) (Required) Untranslated string / key.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: libraries/lifterlms-helper/includes/models/class-llms-helper-add-on.php

	public function get_l10n( $string ) {

		$strings = array(

			'active'           => __( 'Active', 'lifterlms' ),
			'inactive'         => __( 'Inactive', 'lifterlms' ),

			'installed'        => __( 'Installed', 'lifterlms' ),
			'uninstalled'      => __( 'Not Installed', 'lifterlms' ),

			'activate'         => __( 'Activate', 'lifterlms' ),
			'deactivate'       => __( 'Deactivate', 'lifterlms' ),
			'install'          => __( 'Install', 'lifterlms' ),

			'none'             => __( 'N/A', 'lifterlms' ),

			'license_active'   => __( 'Licensed', 'lifterlms' ),
			'license_inactive' => __( 'Unlicensed', 'lifterlms' ),

		);

		return $strings[ $string ];

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Use core textdomain.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.