mirror of
https://github.com/Combodo/iTop.git
synced 2026-09-07 13:58:19 +02:00
Add dict entry for more action element in fields
This commit is contained in:
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('CS CZ', 'Czech', 'Čeština', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Neznámé hodnoty',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('DA DA', 'Danish', 'Dansk', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Unknown values~~',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('DE DE', 'German', 'Deutsch', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Unbekannte Werte',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'Weitere Aktionen',
|
||||
]);
|
||||
|
||||
@@ -21,4 +21,5 @@
|
||||
// Global search
|
||||
Dict::Add('EN US', 'English', 'English', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Unknown values',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions',
|
||||
]);
|
||||
|
||||
@@ -8,4 +8,5 @@
|
||||
// Global search
|
||||
Dict::Add('EN GB', 'British English', 'British English', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Unknown values',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions',
|
||||
]);
|
||||
|
||||
@@ -10,4 +10,5 @@
|
||||
*/
|
||||
Dict::Add('ES CR', 'Spanish', 'Español, Castellano', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Valores desconocidos',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('FR FR', 'French', 'Français', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Valeurs inconnues',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'Plus d\'actions',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('HU HU', 'Hungarian', 'Magyar', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Ismeretlen értékek',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('IT IT', 'Italian', 'Italiano', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Valori sconosciuti',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('JA JP', 'Japanese', '日本語', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Unknown values~~',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('NL NL', 'Dutch', 'Nederlands', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Onbekende waardes',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('PL PL', 'Polish', 'Polski', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Nieznane wartości',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('PT BR', 'Brazilian', 'Brazilian', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Valores desconhecidos',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('RU RU', 'Russian', 'Русский', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Неизвестные значения',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'Больше действий',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('SK SK', 'Slovak', 'Slovenčina', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Unknown values~~',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
*/
|
||||
Dict::Add('TR TR', 'Turkish', 'Türkçe', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => 'Unknown values~~',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -20,4 +20,5 @@
|
||||
// Global search
|
||||
Dict::Add('ZH CN', 'Chinese', '简体中文', [
|
||||
'UI:Component:Field:BulkModify:UnknownValues:Tooltip' => '未知值',
|
||||
'UI:Component:Field:GroupedActions:Tooltip' => 'More actions~~',
|
||||
]);
|
||||
|
||||
@@ -13,6 +13,7 @@ use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
||||
use Combodo\iTop\Application\UI\Base\Component\PopoverMenu\PopoverMenu;
|
||||
use Combodo\iTop\Application\UI\Base\Component\PopoverMenu\PopoverMenuFactory;
|
||||
use Combodo\iTop\Application\UI\Base\UIBlock;
|
||||
use Dict;
|
||||
use utils;
|
||||
|
||||
/**
|
||||
@@ -76,14 +77,13 @@ class FieldUIBlockFactory extends AbstractUIBlockFactory
|
||||
$aActions = [];
|
||||
// Create buttons for a few actions or a grouped-actions button for more actions than configured
|
||||
if (count($aParams['actions']) > $iMaxActions) {
|
||||
$oGroupedActionsButton = ButtonUIBlockFactory::MakeIconAction('fas fa-ellipsis-v', 'More actions', 'grouped-actions');
|
||||
$oGroupedActionsButton = ButtonUIBlockFactory::MakeIconAction('fas fa-ellipsis-v', Dict::S('UI:Component:Field:GroupedActions:Tooltip'), 'grouped-actions');
|
||||
$oGroupedActionsButton->AddCSSClass('ibo-field--action');
|
||||
|
||||
$aGroupedActions = [];
|
||||
foreach ($aParams['actions'] as $oAction) {
|
||||
$aGroupedActions[] = $oAction->GetMenuItem();
|
||||
}
|
||||
//TODO: Make a dict entry for the grouped actions menu label
|
||||
$oGroupedActionsPopoverMenu = PopoverMenuFactory::MakeMenuForActions($oField->GetId().'--grouped-actions-menu', $aGroupedActions);
|
||||
$oGroupedActionsPopoverMenu->AddCSSClass('ibo-field--grouped-actions-popover');
|
||||
$oGroupedActionsPopoverMenu->SetTogglerFromBlock($oGroupedActionsButton);
|
||||
|
||||
@@ -16,6 +16,7 @@ use Combodo\iTop\Application\UI\Base\Component\Input\RichText\RichText;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlock;
|
||||
use Combodo\iTop\Application\UI\Base\UIBlock;
|
||||
use DBObject;
|
||||
use Dict;
|
||||
use MetaModel;
|
||||
use utils;
|
||||
|
||||
@@ -281,7 +282,7 @@ class CaseLogEntryForm extends UIContentBlock
|
||||
*/
|
||||
protected function InitExtraActionButtonBar(): void
|
||||
{
|
||||
$this->oExtraActionButtonBar = new ButtonBar();
|
||||
$this->oExtraActionButtonBar = new ButtonBar([], Dict::S('UI:Component:Field:GroupedActions:Tooltip'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user