Changes for DocSystem translations
Changes for DocSystem translations
This commit is contained in:
@@ -26,16 +26,29 @@ class dashletOpenVSCompleted implements DashletInterface
|
||||
$contextTimeStore->xtype = 'arraystore';
|
||||
$contextTimeStore->fields = array ('id','value'
|
||||
);
|
||||
$contextTimeStore->data = array (array ('TODAY','Today'
|
||||
),array ('YESTERDAY','Yesterday'
|
||||
),array ('THIS_WEEK','This week'
|
||||
),array ('PREVIOUS_WEEK','Previous Week'
|
||||
),array ('THIS_MONTH','This Month'
|
||||
),array ('PREVIOUS_MONTH','Previous Month'
|
||||
),array ('THIS_YEAR','This Year'
|
||||
),array ('PREVIOUS_YEAR','Previous Year'
|
||||
)
|
||||
);
|
||||
if (defined('PARTNER_FLAG')) {
|
||||
$contextTimeStore->data = array (array ('TODAY','Hoje'
|
||||
),array ('YESTERDAY','Ontem'
|
||||
),array ('THIS_WEEK','Essa semana'
|
||||
),array ('PREVIOUS_WEEK','Semana anterior'
|
||||
),array ('THIS_MONTH','Este mês'
|
||||
),array ('PREVIOUS_MONTH','Mês Anterior'
|
||||
),array ('THIS_YEAR','Este ano'
|
||||
),array ('PREVIOUS_YEAR','Ano anterior'
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$contextTimeStore->data = array (array ('TODAY','Today'
|
||||
),array ('YESTERDAY','Yesterday'
|
||||
),array ('THIS_WEEK','This week'
|
||||
),array ('PREVIOUS_WEEK','Previous Week'
|
||||
),array ('THIS_MONTH','This Month'
|
||||
),array ('PREVIOUS_MONTH','Previous Month'
|
||||
),array ('THIS_YEAR','This Year'
|
||||
),array ('PREVIOUS_YEAR','Previous Year'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$contextTime = new stdclass();
|
||||
$contextTime->xtype = 'combo';
|
||||
|
||||
@@ -233,6 +233,8 @@ class Dashboard extends Controller
|
||||
}
|
||||
$dashlets = $this->getDashlets();
|
||||
$this->setJSVar( 'storeDasUID', $dashlets );
|
||||
$this->setJSVar('PARTNER_FLAG', (defined('PARTNER_FLAG')) ? PARTNER_FLAG : false);
|
||||
|
||||
if ($data->DAS_INS_UID != '') {
|
||||
$this->pmDashlet->setup( $data->DAS_INS_UID );
|
||||
$this->setJSVar( 'dashletInstance', $this->pmDashlet->getDashletInstance() );
|
||||
|
||||
@@ -39,24 +39,24 @@ $html .= '</tr>';
|
||||
|
||||
$html .= '<tr>';
|
||||
$html .= '<td width="50%">';
|
||||
$html .= '<label for="type_label">Type Variable</label>';
|
||||
$html .= '<label for="type_label">'.G::LoadTranslation('ID_TINY_TYPE_VARIABLE').'</label>';
|
||||
$html .= '</td>';
|
||||
|
||||
$html .= '<td width="25%">';
|
||||
$html .= '<label for="prefix_label">Prefix</label>';
|
||||
$html .= '<label for="prefix_label">'.G::LoadTranslation('ID_PREFIX').'</label>';
|
||||
$html .= '</td>';
|
||||
|
||||
$html .= '<td width="25%">';
|
||||
$html .= '<label for="variables_label">Search</label>';
|
||||
$html .= '<label for="variables_label">'.G::LoadTranslation( 'ID_SEARCH').'</label>';
|
||||
$html .= '</td>';
|
||||
$html .= '</tr>';
|
||||
|
||||
$html .= '<tr>';
|
||||
$html .= '<td width="25%">';
|
||||
$html .= '<select name="type_variables" id="type_variables">';
|
||||
$html .= '<option value="all">All Variables</option>';
|
||||
$html .= '<option value="system">System Variables</option>';
|
||||
$html .= '<option value="process">Process Variables</option>';
|
||||
$html .= '<option value="all">'.G::LoadTranslation( 'ID_TINY_ALL_VARIABLES' ).'</option>';
|
||||
$html .= '<option value="system">'.G::LoadTranslation( 'ID_TINY_SYSTEM_VARIABLES' ).'</option>';
|
||||
$html .= '<option value="process">'.G::LoadTranslation( 'ID_TINY_PROCESS_VARIABLES' ).'</option>';
|
||||
$html .= '</select> ';
|
||||
$html .= '</td>';
|
||||
|
||||
@@ -78,7 +78,7 @@ $html .= '<input type="text" id="search" size="15">';
|
||||
$html .= '</td>';
|
||||
$html .= '</tr>';
|
||||
$html .= '<tr>';
|
||||
$html .= '<tr><td><label for="prefix_label">Variables</label></td></tr>';
|
||||
$html .= '<tr><td><label for="prefix_label">'.G::LoadTranslation( 'ID_VARIABLES' ).'</label></td></tr>';
|
||||
$html .= '<tr>';
|
||||
|
||||
$html .= '<td colspan="3">';
|
||||
@@ -113,11 +113,11 @@ $html .= '</div>';
|
||||
$html .= '<br>';
|
||||
$html .= '<table border="1" width="90%" align="center">';
|
||||
$html .= '<tr width="40%">';
|
||||
$html .= '<td>Result</td>';
|
||||
$html .= '<td>'.G::LoadTranslation('ID_RESULT').'</td>';
|
||||
$html .= '<td><span id="selectedVariableLabel">@@SYS_LANG</span></td>';
|
||||
$html .= '</tr>';
|
||||
$html .= '<tr width="60%">';
|
||||
$html .= '<td>Description</td>';
|
||||
$html .= '<td>'.G::LoadTranslation('ID_DESCRIPTION').'</td>';
|
||||
$html .= '<td><span id="desc_variables">'.G::LoadTranslation('ID_SYSTEM').'</span></td>';
|
||||
$html .= '</tr>';
|
||||
$html .= '</table>';
|
||||
|
||||
@@ -16,7 +16,7 @@ Ext.onReady(function() {
|
||||
storeDasInsOwnerType = new Ext.data.ArrayStore({
|
||||
idIndex: 0,
|
||||
fields: ['id', 'value'],
|
||||
data: [['USER', 'User'], ['DEPARTMENT', 'Department'], ['GROUP', 'Group'], ['EVERYBODY', 'Everybody']]
|
||||
data: PARTNER_FLAG?[['USER', 'Usuário'], ['DEPARTMENT', 'Departmento'], ['GROUP', 'Grupo'], ['EVERYBODY', 'Todos']]:[['USER', 'User'], ['DEPARTMENT', 'Department'], ['GROUP', 'Group'], ['EVERYBODY', 'Everybody']]
|
||||
});
|
||||
|
||||
storeDasInsOwnerUID = new Ext.data.Store({
|
||||
|
||||
Reference in New Issue
Block a user