Language key issue

Not really a bug 'per se' more of a performance tweak

The fade in / fade out animation of the popover for entering a new language key is too long. When entering many language keys it get's quite tedious having to sit there waiting for the animation to catch up. Plus if you hit the add new key button too quickly the new dialog appears only to fade out again.

I personally would either make the animation very short, or get rid of the animation altogether.

It would also be good to have a way of entering multiple language keys.

/DM

Dolphin - Ajax Masturbation
Quote · 4 May 2010

So just do it the fast way. Put all your keys in a script and run it.

<?php

require_once('inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'db.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'design.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'languages.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'utils.inc.php');

$aLangKeys = array(
'_MyKey1' => 'My Key 1',
'_MyKey2' => 'My Key 2',
'_MyKey3' => 'My Key 3',
'_MyKey4' => 'My Key 4',
'_MyKey5' => 'My Key 5',
'_MyKey6' => 'My Key 6',
'_MyKey7' => 'My Key 7',
'_MyKey8' => 'My Key 8',
'_MyKey9' => 'My Key 9',
);



foreach ($aLangKeys as $sKey => $sValue) {
if (!addStringToLanguage($sKey, $sValue, -1, 1)) {
echo "Error adding language key " . $sKey . ". Key may already exist.<br>";
}
}

if (!compileLanguage()) {
echo "Error compiling language file.";
exit;
}


?>

https://www.deanbassett.com
Quote · 4 May 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.