LLMS_Add_On::get_l10n( string $string )
Translate strings
Parameters Parameters
- $string
-
(string) (Required) Untranslated string / key.
Return Return
(string)
Source Source
File: includes/models/model.llms.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.22.0 | Introduced. |