diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-15 16:39:34 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-15 16:39:34 +0100 |
| commit | 116a457ee39ed614858888ec710f11b56e940c8f (patch) | |
| tree | 946e31a7bf5fb15a85ee3b0afd1cdef3fd46bfa5 /master_strings.php | |
| parent | 974ca7dd01b899652a5ddee850ab3ec2a483527e (diff) | |
| download | languages-116a457ee39ed614858888ec710f11b56e940c8f.tar.gz languages-116a457ee39ed614858888ec710f11b56e940c8f.tar.bz2 languages-116a457ee39ed614858888ec710f11b56e940c8f.zip | |
Namespace fixes
Diffstat (limited to 'master_strings.php')
| -rwxr-xr-x | master_strings.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/master_strings.php b/master_strings.php index b4075b3..f635fc1 100755 --- a/master_strings.php +++ b/master_strings.php @@ -11,6 +11,7 @@ /** * Initialization */ +use Bitweaver\KernelTools; require_once '../kernel/includes/setup_inc.php'; $gBitSystem->verifyPermission( 'p_languages_edit_master' ); @@ -25,12 +26,12 @@ if( !empty( $_REQUEST['source_hash'] ) && !is_array( $_REQUEST['source_hash'] ) if( !empty( $_REQUEST['delete_master'] ) && !empty( $_REQUEST['source_hash'] ) ) { if( empty( $_REQUEST['confirm'] ) ) { - $gBitSystem->setBrowserTitle( tra( 'Confirm Delete' ) ); + $gBitSystem->setBrowserTitle( KernelTools::tra( 'Confirm Delete' ) ); $formHash['delete_master'] = true; $msgHash = [ - 'label' => tra( 'Delete Master Strings' ), - 'warning' => tra( 'This will remove the language master string. If you are tracking translations and the string is still used, it will be inserted again, however, any translations associated with it will be lost.' ), - 'confirm_item' => tra( "The following Master Strings will be removed" ).":", + 'label' => KernelTools::tra( 'Delete Master Strings' ), + 'warning' => KernelTools::tra( 'This will remove the language master string. If you are tracking translations and the string is still used, it will be inserted again, however, any translations associated with it will be lost.' ), + 'confirm_item' => KernelTools::tra( "The following Master Strings will be removed" ).":", ]; foreach( $_REQUEST['source_hash'] as $source_hash ) { $gBitLanguage->loadMasterStrings( $source_hash ); |
