LLMS_Add_On::get_l10n( string $string )

Translate strings


Parameters Parameters

$string

(string) (Required) Untranslated string / key.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/models/model.llms.add-on.php

210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
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.22.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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