LLMS_Helper_Add_On::get_l10n( string $string )
Translate strings
Parameters Parameters
- $string
-
(string) (Required) Untranslated string / key.
Return Return
(string)
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 ];
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.4.0 | Use core textdomain. |
| 3.0.0 | Introduced. |