Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/main.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/php-lint.yml

This file was deleted.

8 changes: 7 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function plugin_room_uninstall()
{
global $DB;

// Drop plugin tables
$tables = [
'glpi_plugin_room_rooms_computers',
'glpi_plugin_room_roomtypes',
Expand All @@ -133,6 +134,11 @@ function plugin_room_uninstall()
$DB->query("DROP TABLE IF EXISTS `$table`;");
}

// Delete reservations
$DB->query('DELETE FROM `glpi_reservations` WHERE `reservationitems_id` in
(SELECT id FROM `glpi_reservationitems` WHERE `itemtype` = "PluginRoomRoom");');

// Delete logs, items and other things from glpi tables
$tables_glpi = [
'glpi_displaypreferences',
'glpi_documents_items',
Expand All @@ -143,7 +149,7 @@ function plugin_room_uninstall()
];

foreach ($tables_glpi as $table_glpi) {
$DB->query('DELETE FROM `$table_glpi` WHERE `itemtype` = "PluginRoomRoom";');
$DB->query("DELETE FROM `$table_glpi` WHERE `itemtype` = 'PluginRoomRoom';");
}

return true;
Expand Down
Binary file modified locales/it_IT.mo
Binary file not shown.
20 changes: 10 additions & 10 deletions locales/it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ msgstr[1] "Locali"

#: inc/dropdown1.class.php:14
msgid "Room specificities"
msgstr "Caratteristica di Locale"
msgstr "Caratteristica del locale"

#: inc/profile.class.php:115
msgid "General"
Expand All @@ -61,35 +61,35 @@ msgstr ""
#: inc/roomaccesscond.class.php:14 inc/room.class.php:113
#: inc/room.class.php:330
msgid "Conditions of Access"
msgstr ""
msgstr "Condizioni di accesso"

#: inc/room.class.php:61 inc/room.class.php:318
msgid "Type"
msgstr ""
msgstr "Tipo"

#: inc/room.class.php:69 inc/room.class.php:377
msgid "Group in charge of the hardware"
msgstr ""
msgstr "Gruppo responsabile dell'hardware"

#: inc/room.class.php:79 inc/room.class.php:353
msgid "Technician in charge of the hardware"
msgstr ""
msgstr "Responsabile tecnico"

#: inc/room.class.php:87 inc/room.class.php:342
msgid "Alternate username"
msgstr ""
msgstr "Nome utente alternativo"

#: inc/room.class.php:95 inc/room.class.php:153 inc/room.class.php:468
msgid "Comments"
msgstr ""
msgstr "Commenti"

#: inc/room.class.php:105 inc/room.class.php:364
msgid "Seating"
msgstr "Posti a sedere"

#: inc/room.class.php:121 inc/room.class.php:387
msgid "Date of purchase"
msgstr ""
msgstr "Data di acquisto"

#: inc/room.class.php:129
msgid "Printer"
Expand Down Expand Up @@ -149,11 +149,11 @@ msgstr ""

#: inc/room.class.php:306
msgid "Location"
msgstr ""
msgstr "Posizione"

#: inc/room.class.php:400
msgid "Whiteboard"
msgstr ""
msgstr "Lavagna"

#: inc/room.class.php:513
msgid "Associated items"
Expand Down
29 changes: 16 additions & 13 deletions locales/room.pot
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# GLPI - Room Management plugin
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Rooms Development Team
# This file is distributed under the same license as the GLPI - Rooms plugin package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: GLPI - Room plugin 3.2.0-jb\n\n"
"Project-Id-Version: GLPI - Rooms plugin\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-30 18:48+0200\n"
"POT-Creation-Date: 2022-04-07 21:15+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -21,7 +22,7 @@ msgstr ""
msgid "Error during the database update"
msgstr ""

#: hook.php:276 hook.php:284 hook.php:362 front/room.form.php:82
#: hook.php:276 hook.php:284 hook.php:362 index.php:11 front/room.form.php:82
#: front/room.php:11 inc/profile.class.php:145
msgid "Room Management"
msgstr ""
Expand Down Expand Up @@ -57,14 +58,11 @@ msgstr ""
msgid "General"
msgstr ""

#: inc/roomaccesscond.class.php:14 inc/room.class.php:113
#: inc/room.class.php:330
msgid "Conditions of Access"
msgstr ""

#: inc/room.class.php:61 inc/room.class.php:318
#: inc/room.class.php:61 inc/room.class.php:318 inc/roomtype.class.php:14
msgid "Type"
msgstr ""
msgid_plural "Types"
msgstr[0] ""
msgstr[1] ""

#: inc/room.class.php:69 inc/room.class.php:377
msgid "Group in charge of the hardware"
Expand All @@ -86,6 +84,11 @@ msgstr ""
msgid "Seating"
msgstr ""

#: inc/room.class.php:113 inc/room.class.php:330
#: inc/roomaccesscond.class.php:14
msgid "Conditions of Access"
msgstr ""

#: inc/room.class.php:121 inc/room.class.php:387
msgid "Date of purchase"
msgstr ""
Expand Down