mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
N°5904 Move dict entries
This commit is contained in:
@@ -2172,7 +2172,7 @@ class MenuBlock extends DisplayBlock
|
||||
if ($bIsCreationInModalAllowed === true) {
|
||||
$oAddLinkActionButton = ButtonUIBlockFactory::MakeIconAction(
|
||||
'fas fa-plus',
|
||||
Dict::S('UI:Links:New:Button:Tooltip'),
|
||||
Dict::S('UI:DisplayBlock:List:AddEntry:Tooltip'),
|
||||
'UI:Links:New',
|
||||
'',
|
||||
false
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (C) 2013-2023 Combodo SARL
|
||||
*
|
||||
* This file is part of iTop.
|
||||
*
|
||||
* iTop is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* iTop is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
*/
|
||||
|
||||
Dict::Add('EN US', 'English', 'English', array(
|
||||
'UI:DisplayBlock:List:AddEntry:Tooltip' => 'Add an entry in the list',
|
||||
));
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (C) 2013-2023 Combodo SARL
|
||||
*
|
||||
* This file is part of iTop.
|
||||
*
|
||||
* iTop is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* iTop is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
*/
|
||||
|
||||
Dict::Add('FR FR', 'French', 'Français', array(
|
||||
'UI:DisplayBlock:List:AddEntry:Tooltip' => 'Ajouter une entrée dans la liste',
|
||||
));
|
||||
@@ -29,11 +29,7 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'UI:Links:ActionRow:Modify' => 'Modify',
|
||||
'UI:Links:ActionRow:Modify+' => 'Modify this object',
|
||||
'UI:Links:ActionRow:Modify:Modal:Title' => 'Modify an object',
|
||||
|
||||
// New
|
||||
'UI:Links:New:Modal:Title' => 'Creation of an object',
|
||||
'UI:Links:New:Button:Tooltip' => 'Add an entry in the list',
|
||||
|
||||
|
||||
// Bulk
|
||||
'UI:Links:Bulk:LinkWillBeCreatedForAllObjects' => 'Link all objects',
|
||||
'UI:Links:Bulk:LinkWillBeDeletedFromAllObjects' => 'Unlink all objects',
|
||||
|
||||
@@ -29,11 +29,7 @@ Dict::Add('FR FR', 'French', 'Français', array(
|
||||
'UI:Links:ActionRow:Modify' => 'Modifier',
|
||||
'UI:Links:ActionRow:Modify+' => 'Modifier cet object',
|
||||
'UI:Links:ActionRow:Modify:Modal:Title' => 'Modifier un object',
|
||||
|
||||
// New
|
||||
'UI:Links:New:Modal:Title' => 'Creation d\'un objet',
|
||||
'UI:Links:New:Button:Tooltip' => 'Ajouter une entrée dans la liste',
|
||||
|
||||
|
||||
// Bulk
|
||||
'UI:Links:Bulk:LinkWillBeCreatedForAllObjects' => 'Lier à tous les objets',
|
||||
'UI:Links:Bulk:LinkWillBeDeletedFromAllObjects' => 'Détacher de tous les objets',
|
||||
|
||||
@@ -9,4 +9,5 @@ Dict::Add('EN US', 'English', 'English', [
|
||||
'UI:Layout:ObjectDetails:KeyboardShortcut:DeleteObject' => 'Delete displayed object',
|
||||
'UI:Layout:ObjectDetails:KeyboardShortcut:NewObject' => 'Create a new object (with same class as displayed object)',
|
||||
'UI:Layout:ObjectDetails:KeyboardShortcut:SaveObject' => 'Save displayed object',
|
||||
'UI:Layout:ObjectDetails:New:Modal:Title' => 'Creation of an object',
|
||||
]);
|
||||
|
||||
@@ -8,4 +8,5 @@ Dict::Add('FR FR', 'French', 'Français', [
|
||||
'UI:Layout:ObjectDetails:KeyboardShortcut:DeleteObject' => 'Supprimer l\'objet affiché',
|
||||
'UI:Layout:ObjectDetails:KeyboardShortcut:NewObject' => 'Créer un nouvel objet (avec la même classe que l\'objet affiché)',
|
||||
'UI:Layout:ObjectDetails:KeyboardShortcut:SaveObject' => 'Enregistrer l\'objet affiché',
|
||||
'UI:Layout:ObjectDetails:New:Modal:Title' => 'Creation d\'un objet',
|
||||
]);
|
||||
|
||||
@@ -103,7 +103,7 @@ let LinkSetWorker = new function(){
|
||||
let sHostObjectId = oTable.closest('[data-role="ibo-object-details"]').attr('data-object-id');
|
||||
|
||||
let oOptions = {
|
||||
title: Dict.S('UI:Links:New:Modal:Title'),
|
||||
title: Dict.S('UI:Layout:ObjectDetails:New:Modal:Title'),
|
||||
content: {
|
||||
endpoint: `${ROUTER_BASE_URL}?route=${ROUTE_LINK_SET_CREATE_OBJECT}`,
|
||||
data: {
|
||||
|
||||
@@ -216,6 +216,7 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
|
||||
// Modals
|
||||
$this->add_dict_entries('UI:Modal:');
|
||||
$this->add_dict_entries('UI:Links:');
|
||||
$this->add_dict_entry('UI:Layout:ObjectDetails:New:Modal:Title');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user