Translations added- Modified

Translations added - Modified
This commit is contained in:
norahmollo
2013-07-17 14:06:22 -04:00
parent b30bd75a1d
commit 841d0f15a5
2 changed files with 2 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ class PMDashlet extends DashletInstance implements DashletInterface
if (strstr($row['DAS_TITLE'], '*')) {
$row['DAS_TITLE'] = G::LoadTranslationPlugin('advancedDashboards', str_replace("*","",$row['DAS_TITLE']));
}//G::pr($row['DAS_TITLE']);
}
$row['DAS_INS_STATUS_LABEL'] = ($row['DAS_INS_STATUS'] == '1' ? G::LoadTranslation( 'ID_ACTIVE' ) : G::LoadTranslation( 'ID_INACTIVE' ));
$row['DAS_INS_TITLE'] = (isset( $arrayField['DAS_INS_TITLE'] ) && ! empty( $arrayField['DAS_INS_TITLE'] )) ? $arrayField['DAS_INS_TITLE'] : '';
if (! class_exists( $row['DAS_CLASS'] )) {

View File

@@ -435,7 +435,7 @@ class Dashboard extends Controller
$dataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$dataset->next();
while ($row = $dataset->getRow()) {
if (strstr($row['DAS_TITLE'], '_')) {
if (strstr($row['DAS_TITLE'], '*')) {
$row['DAS_TITLE'] = str_replace('*', '', $row['DAS_TITLE']);
$row['DAS_TITLE'] = G::LoadTranslationPlugin('advancedDashboards', $row['DAS_TITLE']);
}
@@ -450,7 +450,6 @@ class Dashboard extends Controller
} catch (Exception $error) {
throw $error;
}
//G::pr($dashlets);die;
return $dashlets;
}