├── sql
├── update-3.0.6.sql
├── update-3.1.2.sql
├── update-1.1.sql
├── update-1.7.0.sql
├── update-1.4.1.sql
├── update-2.1.0.sql
├── update-1.5.0.sql
├── update-2.0.2.sql
├── update-2.1.3.sql
├── update-1.2.0.sql
├── empty-3.0.6.sql
├── empty-1.7.0.sql
├── empty-2.1.0.sql
├── empty-2.3.0.sql
├── empty-2.0.2.sql
├── empty-2.1.3.sql
├── empty-2.2.1.sql
├── empty-3.0.0.sql
├── empty-1.5.0.sql
├── update-1.3.0.sql
├── empty-1.0.sql
├── empty-1.2.0.sql
├── empty-1.1.sql
├── empty-1.3.0.sql
└── empty-1.4.1.sql
├── locales
├── cs_CZ.mo
├── en_GB.mo
├── es_AR.mo
├── es_EC.mo
├── es_MX.mo
├── fi_FI.mo
├── fr_FR.mo
├── it_IT.mo
├── pl_PL.mo
├── pt_BR.mo
├── pt_PT.mo
├── ro_RO.mo
├── ru_RU.mo
├── tr_TR.mo
├── zh_TW.mo
├── glpi.pot
├── zh_TW.po
├── es_MX.po
├── it_IT.po
├── pt_BR.po
├── es_EC.po
├── tr_TR.po
├── fr_FR.po
├── en_GB.po
├── fi_FI.po
├── ro_RO.po
├── pt_PT.po
├── ru_RU.po
├── pl_PL.po
└── es_AR.po
├── manufacturersimports.png
├── ISSUE_TEMPLATE.md
├── tools
├── update_mo.pl
├── extract_template.sh
└── update_po.pl
├── .github
└── workflows
│ ├── updatepot.yml
│ ├── generatemo.yml
│ └── release.yml
├── index.php
├── ajax
├── index.php
├── dropdownSuppliers.php
└── dropdownMassiveAction.php
├── front
├── index.php
├── config.php
├── import.php
├── config.form.php
└── massiveaction.php
├── manufacturersimports.css
├── public
└── manufacturersimports.css
├── src
├── Ibm.php
├── Log.php
├── Menu.php
├── Wortmann_ag.php
├── Toshiba.php
├── Fujitsu.php
├── Manufacturer.php
└── Import.php
├── prerequis.txt
├── README.md
└── setup.php
/sql/update-3.0.6.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
2 |
--------------------------------------------------------------------------------
/locales/cs_CZ.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/cs_CZ.mo
--------------------------------------------------------------------------------
/locales/en_GB.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/en_GB.mo
--------------------------------------------------------------------------------
/locales/es_AR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/es_AR.mo
--------------------------------------------------------------------------------
/locales/es_EC.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/es_EC.mo
--------------------------------------------------------------------------------
/locales/es_MX.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/es_MX.mo
--------------------------------------------------------------------------------
/locales/fi_FI.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/fi_FI.mo
--------------------------------------------------------------------------------
/locales/fr_FR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/fr_FR.mo
--------------------------------------------------------------------------------
/locales/it_IT.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/it_IT.mo
--------------------------------------------------------------------------------
/locales/pl_PL.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/pl_PL.mo
--------------------------------------------------------------------------------
/locales/pt_BR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/pt_BR.mo
--------------------------------------------------------------------------------
/locales/pt_PT.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/pt_PT.mo
--------------------------------------------------------------------------------
/locales/ro_RO.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/ro_RO.mo
--------------------------------------------------------------------------------
/locales/ru_RU.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/ru_RU.mo
--------------------------------------------------------------------------------
/locales/tr_TR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/tr_TR.mo
--------------------------------------------------------------------------------
/locales/zh_TW.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/locales/zh_TW.mo
--------------------------------------------------------------------------------
/sql/update-3.1.2.sql:
--------------------------------------------------------------------------------
1 | DELETE FROM `glpi_crontasks` WHERE `itemtype` LIKE 'PluginManufacturersimports%';
2 |
--------------------------------------------------------------------------------
/sql/update-1.1.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `glpi_plugin_suppliertag_config` ADD `FK_entities` int(11) NOT NULL default '0';
--------------------------------------------------------------------------------
/manufacturersimports.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfotelGLPI/manufacturersimports/HEAD/manufacturersimports.png
--------------------------------------------------------------------------------
/sql/update-1.7.0.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` ADD `supplier_key` VARCHAR(32) default NULL;
--------------------------------------------------------------------------------
/sql/update-1.4.1.sql:
--------------------------------------------------------------------------------
1 | UPDATE `glpi_plugin_manufacturersimports_configs` SET `Supplier_url` = 'http://h20000.www2.hp.com/bizsupport/TechSupport/WarrantyResults.jsp?' WHERE `name` ='HP';
--------------------------------------------------------------------------------
/sql/update-2.1.0.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` ADD `supplier_secret` VARCHAR(255) NOT NULL ;
2 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` CHANGE `supplier_key` `supplier_key` VARCHAR(255);
--------------------------------------------------------------------------------
/sql/update-1.5.0.sql:
--------------------------------------------------------------------------------
1 | UPDATE `glpi_plugin_manufacturersimports_configs` SET `Supplier_url` = 'http://www.dell.com/support/troubleshooting/us/en/04/Index?c=us&l=en&s=bsd&cs=04&t=system&ServiceTag=' WHERE `name` ='Dell';
2 | UPDATE `glpi_plugin_manufacturersimports_configs` SET `name` = 'Fujitsu' WHERE `name` ='Fujitsu-Siemens';
--------------------------------------------------------------------------------
/sql/update-2.0.2.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` ADD `supplier_secret` VARCHAR(255) NULL DEFAULT NULL;
2 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` ADD `warranty_url` VARCHAR(255) NULL DEFAULT NULL;
3 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` ADD `token_url` VARCHAR(255) NULL DEFAULT NULL;
4 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` CHANGE `supplier_key` `supplier_key` VARCHAR(255);
--------------------------------------------------------------------------------
/sql/update-2.1.3.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` ADD `warranty_url` VARCHAR(255) NULL DEFAULT NULL;
2 | ALTER TABLE `glpi_plugin_manufacturersimports_configs` ADD `token_url` VARCHAR(255) NULL DEFAULT NULL;
3 |
4 | ALTER TABLE `glpi_plugin_manufacturersimports_configs`
5 | ENGINE=InnoDB;
6 | ALTER TABLE `glpi_plugin_manufacturersimports_logs`
7 | ENGINE=InnoDB;
8 | ALTER TABLE `glpi_plugin_manufacturersimports_models`
9 | ENGINE=InnoDB;
--------------------------------------------------------------------------------
/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | Dear GLPi user.
2 |
3 | BEFORE SUBMITTING YOUR ISSUE, please make sure to read and follow these steps :
4 |
5 | * Verify that your question has not already been asked
6 | * Please use the below template.
7 | * Delete this text before submiting your issue.
8 |
9 | The Plugin team.
10 |
11 | ------------
12 | * Version of the plugin :
13 |
14 |
15 | * Version of your GLPI :
16 |
17 |
18 | * Steps to reproduce (which actions have you made) :
19 |
20 |
21 | * Expected result :
22 |
23 |
24 | * Actual result :
25 |
26 |
27 | * URL of the page :
28 |
29 |
30 | * Screenshot of the problem (if pertinent) :
31 |
32 |
--------------------------------------------------------------------------------
/tools/update_mo.pl:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 | #!/usr/bin/perl -w
3 |
4 | if (@ARGV!=0){
5 | print "USAGE update_mo.pl\n\n";
6 |
7 | exit();
8 | }
9 |
10 |
11 | opendir(DIRHANDLE,'locales')||die "ERROR: can not read current directory\n";
12 | foreach (readdir(DIRHANDLE)){
13 | if ($_ ne '..' && $_ ne '.'){
14 |
15 | if(!(-l "$dir/$_")){
16 | if (index($_,".po",0)==length($_)-3) {
17 | $lang=$_;
18 | $lang=~s/\.po//;
19 |
20 | `msgfmt locales/$_ -o locales/$lang.mo`;
21 | }
22 | }
23 |
24 | }
25 | }
26 | closedir DIRHANDLE;
27 |
28 | #
29 | #
30 |
--------------------------------------------------------------------------------
/tools/extract_template.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Recherche tous les fichiers PHP récursivement
4 | find . -name '*.php' > php_files.list
5 |
6 | # Extraction avec xgettext
7 | xgettext --files-from=php_files.list \
8 | --copyright-holder='ManufacturersImports Development Team' \
9 | --package-name='ManufacturersImports - Accounts plugin' \
10 | -o locales/glpi.pot \
11 | -L PHP \
12 | --add-comments=TRANS \
13 | --from-code=UTF-8 \
14 | --force-po \
15 | --keyword=_n:1,2,4t \
16 | --keyword=__s:1,2t \
17 | --keyword=__:1,2t \
18 | --keyword=_e:1,2t \
19 | --keyword=_x:1c,2,3t \
20 | --keyword=_ex:1c,2,3t \
21 | --keyword=_nx:1c,2,3,5t \
22 | --keyword=_sx:1c,2,3t
23 |
24 | # Nettoyage
25 | rm php_files.list
26 |
--------------------------------------------------------------------------------
/sql/update-1.2.0.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `glpi_plugin_suppliertag_imported` CHANGE `import_date` `import_date` DATE NULL default NULL;
2 | UPDATE `glpi_plugin_suppliertag_imported` SET `import_date` = NULL WHERE `import_date` ='0000-00-00';
3 |
4 | UPDATE `glpi_plugin_suppliertag_config` SET `Supplier_url` = 'http://support.dell.com/support/topics/global.aspx/support/my_systems_info/details?c=us&l=en&s=bsd&ServiceTag=' WHERE `name` ='Dell';
5 |
6 | ALTER TABLE `glpi_plugin_suppliertag_profiles` DROP COLUMN `interface`, DROP COLUMN `is_default`;
7 | ALTER TABLE `glpi_plugin_suppliertag_imported` CHANGE `FK_suppliertag` `import_status` int(11) NOT NULL default '0';
8 | ALTER TABLE `glpi_plugin_suppliertag_config` ADD `recursive` tinyint(1) NOT NULL default '0' AFTER FK_entities;
--------------------------------------------------------------------------------
/.github/workflows/updatepot.yml:
--------------------------------------------------------------------------------
1 | name: Update POT
2 | on:
3 | push:
4 | branches: [ master ]
5 | paths-ignore:
6 | - 'locales/**'
7 | permissions:
8 | contents: write
9 | env:
10 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 | jobs:
12 | run:
13 |
14 | name: Update POT
15 |
16 | runs-on: ubuntu-latest
17 | steps:
18 | - name: Checkout repo
19 | uses: actions/checkout@v4
20 |
21 | - name: install xgettext
22 |
23 | run: sudo apt-get install gettext;
24 | - name: Update POT
25 | run: sh tools/extract_template.sh;
26 |
27 |
28 | - name: Commit changes
29 | uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5
30 | with:
31 | message: "Update POT"
32 | - name: Push changes
33 |
34 | uses: actions-go/push@7ad7ce209f2a038e7bca929b7a4c92026363f856
35 |
36 |
--------------------------------------------------------------------------------
/tools/update_po.pl:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 | #!/usr/bin/perl -w
3 |
4 | if (@ARGV!=2){
5 | print "USAGE update_po.pl transifex_login transifex_password\n\n";
6 |
7 | exit();
8 | }
9 | $user = $ARGV[0];
10 | $password = $ARGV[1];
11 |
12 | opendir(DIRHANDLE,'locales')||die "ERROR: can not read current directory\n";
13 | foreach (readdir(DIRHANDLE)){
14 | if ($_ ne '..' && $_ ne '.'){
15 |
16 | if(!(-l "$dir/$_")){
17 | if (index($_,".po",0)==length($_)-3) {
18 | $lang=$_;
19 | $lang=~s/\.po//;
20 |
21 | `wget --user=$user --password=$password --output-document=locales/$_ http://www.transifex.com/api/2/project/GLPI_manufacturersimports/resource/glpi/translation/$lang/?file=$_`;
22 | }
23 | }
24 |
25 | }
26 | }
27 | closedir DIRHANDLE;
28 |
29 | #
30 | #
31 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 |
--------------------------------------------------------------------------------
/ajax/index.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 |
--------------------------------------------------------------------------------
/front/index.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 |
--------------------------------------------------------------------------------
/.github/workflows/generatemo.yml:
--------------------------------------------------------------------------------
1 | name: Generate MO
2 | on:
3 | push:
4 | branches: [ master ]
5 | paths:
6 | - '**.po'
7 | permissions:
8 | contents: write
9 | env:
10 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 | jobs:
12 | run:
13 |
14 | name: Generate mo
15 | runs-on: ubuntu-latest
16 | steps:
17 | - name: Checkout repo
18 | uses: actions/checkout@v4
19 |
20 | - name: Setup Perl environment
21 | # You may pin to the exact commit or the version.
22 | # uses: shogo82148/actions-setup-perl@8d2e3d59a9516b785ed32169d48a4888eaa9b514
23 | uses: shogo82148/actions-setup-perl@98dfedee230bcf1ee68d5b021931fc8d63f2016e
24 | - name: msgfmt
25 | # You may pin to the exact commit or the version.
26 | # uses: whtsky/msgfmt-action@6b2181f051b002182d01a1e1f1aff216230c5a4d
27 | uses: whtsky/msgfmt-action@6b2181f051b002182d01a1e1f1aff216230c5a4d
28 | - name: Generate mo
29 | run: perl tools/update_mo.pl;
30 |
31 | - name: Commit changes
32 | uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5
33 | with:
34 |
35 | message: "Generate mo"
36 | - name: Push changes
37 |
38 | uses: actions-go/push@7ad7ce209f2a038e7bca929b7a4c92026363f856
39 |
40 |
--------------------------------------------------------------------------------
/manufacturersimports.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
3 | -------------------------------------------------------------------------
4 | Manufacturersimports plugin for GLPI
5 | Copyright (C) 2009-2022 by the Manufacturersimports Development Team.
6 |
7 | https://github.com/InfotelGLPI/manufacturersimports
8 | -------------------------------------------------------------------------
9 |
10 | LICENSE
11 |
12 | This file is part of Manufacturersimports.
13 |
14 | Manufacturersimports is free software; you can redistribute it and/or modify
15 | it under the terms of the GNU General Public License as published by
16 | the Free Software Foundation; either version 2 of the License, or
17 | (at your option) any later version.
18 |
19 | Manufacturersimports is distributed in the hope that it will be useful,
20 | but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | GNU General Public License for more details.
23 |
24 | You should have received a copy of the GNU General Public License
25 | along with Manufacturersimports. If not, see .
26 | --------------------------------------------------------------------------
27 | */
28 |
29 | .plugin_manufacturersimports_import_OK {
30 | color: green;
31 | }
32 | .plugin_manufacturersimports_import_KO {
33 | color: red;
34 | }
35 |
--------------------------------------------------------------------------------
/public/manufacturersimports.css:
--------------------------------------------------------------------------------
1 | /*
2 | * @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
3 | -------------------------------------------------------------------------
4 | Manufacturersimports plugin for GLPI
5 | Copyright (C) 2009-2022 by the Manufacturersimports Development Team.
6 |
7 | https://github.com/InfotelGLPI/manufacturersimports
8 | -------------------------------------------------------------------------
9 |
10 | LICENSE
11 |
12 | This file is part of Manufacturersimports.
13 |
14 | Manufacturersimports is free software; you can redistribute it and/or modify
15 | it under the terms of the GNU General Public License as published by
16 | the Free Software Foundation; either version 2 of the License, or
17 | (at your option) any later version.
18 |
19 | Manufacturersimports is distributed in the hope that it will be useful,
20 | but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | GNU General Public License for more details.
23 |
24 | You should have received a copy of the GNU General Public License
25 | along with Manufacturersimports. If not, see .
26 | --------------------------------------------------------------------------
27 | */
28 |
29 | .plugin_manufacturersimports_import_OK {
30 | color: green;
31 | }
32 | .plugin_manufacturersimports_import_KO {
33 | color: red;
34 | }
35 |
--------------------------------------------------------------------------------
/front/config.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | use GlpiPlugin\Manufacturersimports\Config;
31 | use GlpiPlugin\Manufacturersimports\Menu;
32 |
33 | Session::checkRight("config", UPDATE);
34 |
35 | if (Plugin::isPluginActive("manufacturersimports")) {
36 | Html::header(__('Setup'), '', "tools", Menu::class, "config");
37 | Search::show(Config::class);
38 | } else {
39 | Html::header(__('Setup'), '', "config", "plugin");
40 | echo "
";
41 | echo "".__('Please activate the plugin', 'manufacturersimports')."
";
42 | }
43 |
44 | Html::footer();
45 |
--------------------------------------------------------------------------------
/ajax/dropdownSuppliers.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | use GlpiPlugin\Manufacturersimports\Config;
31 |
32 | if (strpos($_SERVER['PHP_SELF'], "dropdownSuppliers.php")) {
33 | header("Content-Type: text/html; charset=UTF-8");
34 | Html::header_nocache();
35 | }
36 | if (!defined('GLPI_ROOT')) {
37 | die("Can not acces directly to this file");
38 | }
39 |
40 | Session::checkLoginUser();
41 |
42 | $config = new Config();
43 | if ($_POST['supplier'] != -1) {
44 | echo " "._sx('button', 'Update')."";
45 | }
46 |
--------------------------------------------------------------------------------
/front/import.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | use Glpi\Exception\Http\AccessDeniedHttpException;
31 | use GlpiPlugin\Manufacturersimports\Menu;
32 | use GlpiPlugin\Manufacturersimports\PreImport;
33 |
34 | Html::header(
35 | PreImport::getTypeName(),
36 | '',
37 | "tools",
38 | Menu::class
39 | );
40 |
41 | $preimport = new PreImport();
42 | if ($preimport->canView() || Session::haveRight("config", UPDATE)) {
43 | $values = $_GET;
44 | if (isset($_POST["typechoice"])) {
45 | $values = $_POST;
46 | }
47 | PreImport::searchForm($values);
48 | PreImport::seePreImport($values);
49 | } else {
50 | throw new AccessDeniedHttpException();
51 | }
52 | Html::footer();
53 |
--------------------------------------------------------------------------------
/src/Ibm.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | namespace GlpiPlugin\Manufacturersimports;
31 |
32 | if (!defined('GLPI_ROOT')) {
33 | die("Sorry. You can't access directly to this file");
34 | }
35 |
36 | /**
37 | * Class Ibm
38 | */
39 | class Ibm extends Manufacturer
40 | {
41 | /**
42 | * @see Manufacturer::getSupplierInfo()
43 | */
44 | public function getSupplierInfo(
45 | $compSerial = null,
46 | $otherSerial = null,
47 | $key = null,
48 | $apisecret = null,
49 | $supplierUrl = null
50 | )
51 | {
52 | $info["name"]="IBM";
53 | $info["supplier_url"] = "http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/warranty?";
54 | $info["url"] = $supplierUrl."type=".$otherSerial."&serial=".$compSerial."&brandind=5000008&Submit=Submit&action=warranty";
55 | return $info;
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/ajax/dropdownMassiveAction.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | Session::checkLoginUser();
31 |
32 | header("Content-Type: text/html; charset=UTF-8");
33 | Html::header_nocache();
34 |
35 | if (isset($_POST["action"])||isset($_POST["id"])) {
36 | echo Html::hidden('action', ['value' => $_POST["action"]]);
37 | echo Html::hidden('id', ['value' => $_POST["id"]]);
38 | switch ($_POST["action"]) {
39 |
40 | case "reinit_once":
41 | case "import":
42 | echo Html::hidden('itemtype', ['value' => $_POST["itemtype"]]);
43 | echo Html::hidden('start', ['value' => $_POST["start"]]);
44 | echo Html::hidden('manufacturers_id', ['value' => $_POST["manufacturers_id"]]);
45 | echo Html::hidden('imported', ['value' => $_POST["imported"]]);
46 | echo Html::submit(_sx('button', 'Post'), ['name' => 'massiveaction', 'class' => 'btn btn-primary']);
47 | break;
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/sql/empty-3.0.6.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int unsigned NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL,
5 | `entities_id` int unsigned NOT NULL default '0',
6 | `is_recursive` tinyint NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8mb4_unicode_ci default NULL,
8 | `manufacturers_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int unsigned NOT NULL default '0',
11 | `document_adding` int unsigned NOT NULL default '0',
12 | `documentcategories_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int unsigned NOT NULL default '0',
14 | `supplier_key` VARCHAR(255) default NULL,
15 | `supplier_secret` VARCHAR(255) NULL DEFAULT NULL,
16 | `token_url` VARCHAR(255) NULL DEFAULT NULL,
17 | `warranty_url` VARCHAR(255) NULL DEFAULT NULL,
18 | PRIMARY KEY (`id`),
19 | KEY `name` (`name`),
20 | KEY `entities_id` (`entities_id`),
21 | KEY `manufacturers_id` (`manufacturers_id`),
22 | KEY `suppliers_id` (`suppliers_id`),
23 | KEY `documentcategories_id` (`documentcategories_id`)
24 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
25 |
26 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
27 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
28 | `id` int unsigned NOT NULL auto_increment,
29 | `import_status` int unsigned NOT NULL default '0',
30 | `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
31 | `itemtype` varchar(100) collate utf8mb4_unicode_ci NOT NULL COMMENT 'see .class.php file',
32 | `documents_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
33 | `date_import` timestamp NULL DEFAULT NULL,
34 | PRIMARY KEY (`id`),
35 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
36 | KEY `FK_device` (`items_id`,`itemtype`),
37 | KEY `item` (`itemtype`,`items_id`)
38 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
39 |
--------------------------------------------------------------------------------
/prerequis.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
3 | -------------------------------------------------------------------------
4 | Manufacturersimports plugin for GLPI
5 | Copyright (C) 2009-2022 by the Manufacturersimports Development Team.
6 |
7 | https://github.com/InfotelGLPI/manufacturersimports
8 | -------------------------------------------------------------------------
9 |
10 | LICENSE
11 |
12 | This file is part of Manufacturersimports.
13 |
14 | Manufacturersimports is free software; you can redistribute it and/or modify
15 | it under the terms of the GNU General Public License as published by
16 | the Free Software Foundation; either version 2 of the License, or
17 | (at your option) any later version.
18 |
19 | Manufacturersimports is distributed in the hope that it will be useful,
20 | but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | GNU General Public License for more details.
23 |
24 | You should have received a copy of the GNU General Public License
25 | along with Manufacturersimports. If not, see .
26 | --------------------------------------------------------------------------
27 | */
28 |
29 | Dell
30 | Le matériel doit avoir le champ numéro de serie rempli avec le TAG Dell
31 | Le matériel doit avoir le bon fabricant (Dell - voir config)
32 |
33 | HP
34 | Le matériel doit avoir le champ numéro de serie rempli avec le TAG HP
35 | Le matériel doit avoir le champ Numéro de modèle du matériel rempli avec le TAG HP (dans le modèle - Numéro du produit)
36 | Le matériel doit avoir le bon fabricant (HP - voir config)
37 |
38 | fujitsu-siemens
39 | Le matériel doit avoir le champ numéro de serie rempli avec le TAG fujitsu-siemens
40 | Le matériel doit avoir le bon fabricant (fujitsu-siemens - voir config)
41 |
42 | Toshiba
43 | Le matériel doit avoir le champ numéro de serie rempli avec le TAG Toshiba
44 | Le matériel doit avoir le champ Numéro de modèle du matériel rempli avec le TAG Toshiba (dans le modèle - Numéro du produit)
45 | Le matériel doit avoir le bon fabricant (Toshiba - voir config)
46 |
47 | Wortmann AG
48 | Le matériel doit avoir le champ numéro de serie rempli avec le TAG Wortmann_AG
49 | Le matériel doit avoir le bon fabricant (Wortmann_AG - voir config)
50 |
--------------------------------------------------------------------------------
/front/config.form.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | use GlpiPlugin\Manufacturersimports\Config;
31 | use GlpiPlugin\Manufacturersimports\Menu;
32 |
33 | if (!isset($_GET["id"])) {
34 | $_GET["id"] = 0;
35 | }
36 | if (!isset($_GET["preconfig"])) {
37 | $_GET["preconfig"] = -1;
38 | }
39 |
40 | $config = new Config();
41 |
42 | if (isset($_POST["add"])) {
43 | Session::checkRight("plugin_manufacturersimports", CREATE);
44 | $config->add($_POST);
45 | Html::back();
46 |
47 | } else if (isset($_POST["update"])) {
48 |
49 | Session::checkRight("plugin_manufacturersimports", UPDATE);
50 | $config->update($_POST);
51 | Html::back();
52 |
53 | } else if (isset($_POST["delete"])) {
54 |
55 | Session::checkRight("plugin_manufacturersimports", PURGE);
56 | $config->delete($_POST, true);
57 | Html::redirect("./config.php");
58 |
59 | } else if (isset($_POST["purge"])) {
60 |
61 | Session::checkRight("plugin_manufacturersimports", PURGE);
62 | $config->delete($_POST, true);
63 | Html::redirect("./config.php");
64 |
65 | } else if (isset($_POST["retrieve_warranty"])) {
66 | Session::checkRight("plugin_manufacturersimports", UPDATE);
67 |
68 | Config::retrieveOneWarranty($_POST["itemtype"], $_POST["items_id"]);
69 |
70 | Html::back();
71 |
72 | } else {
73 |
74 | Html::header(__('Setup'), '', "tools", Menu::class, "config");
75 |
76 | $config->checkGlobal(READ);
77 | $config->display($_GET);
78 | Html::footer();
79 | }
80 |
--------------------------------------------------------------------------------
/sql/empty-1.7.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | `supplier_key` VARCHAR(32) default NULL,
15 | PRIMARY KEY (`id`),
16 | KEY `name` (`name`),
17 | KEY `entities_id` (`entities_id`),
18 | KEY `manufacturers_id` (`manufacturers_id`),
19 | KEY `suppliers_id` (`suppliers_id`),
20 | KEY `documentcategories_id` (`documentcategories_id`)
21 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
22 |
23 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
24 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
25 | `id` int(11) NOT NULL auto_increment,
26 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
27 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
28 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
29 | PRIMARY KEY (`id`),
30 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
31 | KEY `FK_device` (`items_id`,`itemtype`),
32 | KEY `item` (`itemtype`,`items_id`)
33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
34 |
35 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
36 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
37 | `id` int(11) NOT NULL auto_increment,
38 | `import_status` int(11) NOT NULL default '0',
39 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
40 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
41 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
42 | `date_import` DATE default NULL,
43 | PRIMARY KEY (`id`),
44 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
45 | KEY `FK_device` (`items_id`,`itemtype`),
46 | KEY `item` (`itemtype`,`items_id`)
47 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/sql/empty-2.1.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | `supplier_key` VARCHAR(255) default NULL,
15 | `supplier_secret` VARCHAR(255) NOT NULL,
16 | PRIMARY KEY (`id`),
17 | KEY `name` (`name`),
18 | KEY `entities_id` (`entities_id`),
19 | KEY `manufacturers_id` (`manufacturers_id`),
20 | KEY `suppliers_id` (`suppliers_id`),
21 | KEY `documentcategories_id` (`documentcategories_id`)
22 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
23 |
24 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
25 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
26 | `id` int(11) NOT NULL auto_increment,
27 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
28 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
29 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
30 | PRIMARY KEY (`id`),
31 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
32 | KEY `FK_device` (`items_id`,`itemtype`),
33 | KEY `item` (`itemtype`,`items_id`)
34 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
35 |
36 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
37 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
38 | `id` int(11) NOT NULL auto_increment,
39 | `import_status` int(11) NOT NULL default '0',
40 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
41 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
42 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
43 | `date_import` DATE default NULL,
44 | PRIMARY KEY (`id`),
45 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
46 | KEY `FK_device` (`items_id`,`itemtype`),
47 | KEY `item` (`itemtype`,`items_id`)
48 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/sql/empty-2.3.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | `supplier_key` VARCHAR(255) default NULL,
15 | `supplier_secret` VARCHAR(255) NULL DEFAULT NULL,
16 | `token_url` VARCHAR(255) NULL DEFAULT NULL,
17 | `warranty_url` VARCHAR(255) NULL DEFAULT NULL,
18 | PRIMARY KEY (`id`),
19 | KEY `name` (`name`),
20 | KEY `entities_id` (`entities_id`),
21 | KEY `manufacturers_id` (`manufacturers_id`),
22 | KEY `suppliers_id` (`suppliers_id`),
23 | KEY `documentcategories_id` (`documentcategories_id`)
24 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
25 |
26 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
27 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
28 | `id` int(11) NOT NULL auto_increment,
29 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
30 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
31 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
32 | PRIMARY KEY (`id`),
33 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
34 | KEY `FK_device` (`items_id`,`itemtype`),
35 | KEY `item` (`itemtype`,`items_id`)
36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
37 |
38 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
39 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
40 | `id` int(11) NOT NULL auto_increment,
41 | `import_status` int(11) NOT NULL default '0',
42 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
43 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
44 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
45 | `date_import` timestamp NULL DEFAULT NULL,
46 | PRIMARY KEY (`id`),
47 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
48 | KEY `FK_device` (`items_id`,`itemtype`),
49 | KEY `item` (`itemtype`,`items_id`)
50 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
51 |
--------------------------------------------------------------------------------
/sql/empty-2.0.2.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | `supplier_key` VARCHAR(255) default NULL,
15 | `supplier_secret` VARCHAR(255) NULL DEFAULT NULL,
16 | `token_url` VARCHAR(255) NULL DEFAULT NULL,
17 | `warranty_url` VARCHAR(255) NULL DEFAULT NULL,
18 | PRIMARY KEY (`id`),
19 | KEY `name` (`name`),
20 | KEY `entities_id` (`entities_id`),
21 | KEY `manufacturers_id` (`manufacturers_id`),
22 | KEY `suppliers_id` (`suppliers_id`),
23 | KEY `documentcategories_id` (`documentcategories_id`)
24 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
25 |
26 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
27 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
28 | `id` int(11) NOT NULL auto_increment,
29 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
30 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
31 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
32 | PRIMARY KEY (`id`),
33 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
34 | KEY `FK_device` (`items_id`,`itemtype`),
35 | KEY `item` (`itemtype`,`items_id`)
36 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
37 |
38 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
39 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
40 | `id` int(11) NOT NULL auto_increment,
41 | `import_status` int(11) NOT NULL default '0',
42 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
43 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
44 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
45 | `date_import` DATE default NULL,
46 | PRIMARY KEY (`id`),
47 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
48 | KEY `FK_device` (`items_id`,`itemtype`),
49 | KEY `item` (`itemtype`,`items_id`)
50 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/sql/empty-2.1.3.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | `supplier_key` VARCHAR(255) default NULL,
15 | `supplier_secret` VARCHAR(255) NULL DEFAULT NULL,
16 | `token_url` VARCHAR(255) NULL DEFAULT NULL,
17 | `warranty_url` VARCHAR(255) NULL DEFAULT NULL,
18 | PRIMARY KEY (`id`),
19 | KEY `name` (`name`),
20 | KEY `entities_id` (`entities_id`),
21 | KEY `manufacturers_id` (`manufacturers_id`),
22 | KEY `suppliers_id` (`suppliers_id`),
23 | KEY `documentcategories_id` (`documentcategories_id`)
24 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
25 |
26 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
27 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
28 | `id` int(11) NOT NULL auto_increment,
29 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
30 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
31 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
32 | PRIMARY KEY (`id`),
33 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
34 | KEY `FK_device` (`items_id`,`itemtype`),
35 | KEY `item` (`itemtype`,`items_id`)
36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
37 |
38 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
39 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
40 | `id` int(11) NOT NULL auto_increment,
41 | `import_status` int(11) NOT NULL default '0',
42 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
43 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
44 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
45 | `date_import` DATE default NULL,
46 | PRIMARY KEY (`id`),
47 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
48 | KEY `FK_device` (`items_id`,`itemtype`),
49 | KEY `item` (`itemtype`,`items_id`)
50 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/sql/empty-2.2.1.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | `supplier_key` VARCHAR(255) default NULL,
15 | `supplier_secret` VARCHAR(255) NULL DEFAULT NULL,
16 | `token_url` VARCHAR(255) NULL DEFAULT NULL,
17 | `warranty_url` VARCHAR(255) NULL DEFAULT NULL,
18 | PRIMARY KEY (`id`),
19 | KEY `name` (`name`),
20 | KEY `entities_id` (`entities_id`),
21 | KEY `manufacturers_id` (`manufacturers_id`),
22 | KEY `suppliers_id` (`suppliers_id`),
23 | KEY `documentcategories_id` (`documentcategories_id`)
24 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
25 |
26 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
27 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
28 | `id` int(11) NOT NULL auto_increment,
29 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
30 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
31 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
32 | PRIMARY KEY (`id`),
33 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
34 | KEY `FK_device` (`items_id`,`itemtype`),
35 | KEY `item` (`itemtype`,`items_id`)
36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
37 |
38 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
39 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
40 | `id` int(11) NOT NULL auto_increment,
41 | `import_status` int(11) NOT NULL default '0',
42 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
43 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
44 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
45 | `date_import` DATE default NULL,
46 | PRIMARY KEY (`id`),
47 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
48 | KEY `FK_device` (`items_id`,`itemtype`),
49 | KEY `item` (`itemtype`,`items_id`)
50 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 |
2 | on:
3 | push:
4 | # Sequence of patterns matched against refs/tags
5 | tags:
6 | - '*.*.*' # Push events to matching ex:20.15.10
7 |
8 | name: Create release with tag
9 | env:
10 | TAG_VALUE: ${GITHUB_REF/refs\/tags\//}
11 | jobs:
12 | build:
13 | name: Upload Release Asset
14 | runs-on: ubuntu-latest
15 | steps:
16 | - name: Checkout code
17 | uses: actions/checkout@v2
18 | - name: Build project # This would actually build your project, using zip for an example artifact
19 | id: build_
20 | env:
21 | GITHUB_NAME: ${{ github.event.repository.name }}
22 |
23 |
24 | run: sudo apt-get install libxml-xpath-perl;echo $(xpath -e '/root/versions/version[num="'${GITHUB_REF/refs\/tags\//}'"]/compatibility/text()' $GITHUB_NAME.xml);echo ::set-output name=version_glpi::$(xpath -e '/root/versions/version[num="'${GITHUB_REF/refs\/tags\//}'"]/compatibility/text()' $GITHUB_NAME.xml); rm -rf $GITHUB_NAME.xml tools wiki screenshots test .git .github ISSUE_TEMPLATE.md TODO.txt $GITHUB_NAME.png;cd ..; tar jcvf glpi-$GITHUB_NAME-${GITHUB_REF/refs\/tags\//}.tar.bz2 $GITHUB_NAME;ls -al;echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//};echo ${{ steps.getxml.outputs.info }};
25 | # run: rm -rf $GITHUB_NAME.xml tools wiki screenshots test ISSUE_TEMPLATE.md TODO.txt $GITHUB_NAME.png; tar -zcvf glpi-$GITHUB_NAME-$GITHUB_TAG.tar.gz $GITHUB_NAME
26 | - name: Create Release
27 | id: create_release
28 | uses: actions/create-release@v1
29 | env:
30 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 | with:
32 | tag_name: ${{ github.ref }}
33 | release_name: |
34 | GLPI ${{ steps.build_.outputs.version_glpi }} : Version ${{ github.ref }} disponible / available
35 | body : Version ${{ steps.build_.outputs.tag }} released for GLPI ${{ steps.build_.outputs.version_glpi }}
36 | draft: false
37 | prerelease: true
38 | - name: Upload Release Asset
39 | id: upload-release-asset
40 | uses: actions/upload-release-asset@v1
41 | env:
42 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43 | GITHUB_NAME: ${{ github.event.repository.name }}
44 | with:
45 | upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
46 | asset_path: /home/runner/work/${{ github.event.repository.name }}/glpi-${{ github.event.repository.name }}-${{ steps.build_.outputs.tag }}.tar.bz2
47 | asset_name: glpi-${{ github.event.repository.name }}-${{ steps.build_.outputs.tag }}.tar.bz2
48 | asset_content_type: application/zip
49 |
50 |
--------------------------------------------------------------------------------
/front/massiveaction.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | use GlpiPlugin\Manufacturersimports\Log;
31 | use GlpiPlugin\Manufacturersimports\Config;
32 | use GlpiPlugin\Manufacturersimports\Menu;
33 | use GlpiPlugin\Manufacturersimports\PostImport;
34 |
35 | header("Content-Type: text/html; charset=UTF-8");
36 | Html::header_nocache();
37 |
38 | Session::checkLoginUser();
39 |
40 | $log = new Log();
41 | $config = new Config();
42 |
43 | Html::header(
44 | _n('Suppliers import', 'Suppliers imports', 2, 'manufacturersimports'),
45 | $_SERVER['PHP_SELF'],
46 | "tools",
47 | Menu::class
48 | );
49 |
50 | $config->checkGlobal(UPDATE);
51 |
52 | if (isset($_POST["action"])
53 | && isset($_POST["id"])
54 | && isset($_POST["item"])
55 | && count($_POST["item"])) {
56 | switch ($_POST["action"]) {
57 | case "import":
58 | PostImport::massiveimport($_POST);
59 | break;
60 |
61 | case "reinit_once":
62 | foreach ($_POST["item"] as $key => $val) {
63 | if ($val == 1) {
64 | $log->reinitializeImport($_POST["itemtype"], $key);
65 | }
66 | }
67 | Session::addMessageAfterRedirect(__('Operation successful'));
68 | Html::redirect($_SERVER['HTTP_REFERER'] . "?itemtype=" . $_POST["itemtype"] .
69 | "&manufacturers_id=" . $_POST["manufacturers_id"] .
70 | "&start=" . $_POST["start"] .
71 | "&imported=" . $_POST["imported"]);
72 | break;
73 | }
74 | } else {
75 | echo "";
76 | echo "" . __('No selected element or badly defined operation') . "
";
77 | }
78 |
79 | Html::footer();
80 |
--------------------------------------------------------------------------------
/sql/empty-3.0.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int unsigned NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL,
5 | `entities_id` int unsigned NOT NULL default '0',
6 | `is_recursive` tinyint NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8mb4_unicode_ci default NULL,
8 | `manufacturers_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int unsigned NOT NULL default '0',
11 | `document_adding` int unsigned NOT NULL default '0',
12 | `documentcategories_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int unsigned NOT NULL default '0',
14 | `supplier_key` VARCHAR(255) default NULL,
15 | `supplier_secret` VARCHAR(255) NULL DEFAULT NULL,
16 | `token_url` VARCHAR(255) NULL DEFAULT NULL,
17 | `warranty_url` VARCHAR(255) NULL DEFAULT NULL,
18 | PRIMARY KEY (`id`),
19 | KEY `name` (`name`),
20 | KEY `entities_id` (`entities_id`),
21 | KEY `manufacturers_id` (`manufacturers_id`),
22 | KEY `suppliers_id` (`suppliers_id`),
23 | KEY `documentcategories_id` (`documentcategories_id`)
24 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
25 |
26 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
27 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
28 | `id` int unsigned NOT NULL auto_increment,
29 | `model_name` varchar(100) collate utf8mb4_unicode_ci default NULL,
30 | `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
31 | `itemtype` varchar(100) collate utf8mb4_unicode_ci NOT NULL COMMENT 'see .class.php file',
32 | PRIMARY KEY (`id`),
33 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
34 | KEY `FK_device` (`items_id`,`itemtype`),
35 | KEY `item` (`itemtype`,`items_id`)
36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
37 |
38 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
39 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
40 | `id` int unsigned NOT NULL auto_increment,
41 | `import_status` int unsigned NOT NULL default '0',
42 | `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
43 | `itemtype` varchar(100) collate utf8mb4_unicode_ci NOT NULL COMMENT 'see .class.php file',
44 | `documents_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
45 | `date_import` timestamp NULL DEFAULT NULL,
46 | PRIMARY KEY (`id`),
47 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
48 | KEY `FK_device` (`items_id`,`itemtype`),
49 | KEY `item` (`itemtype`,`items_id`)
50 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
51 |
--------------------------------------------------------------------------------
/sql/empty-1.5.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | PRIMARY KEY (`id`),
15 | KEY `name` (`name`),
16 | KEY `entities_id` (`entities_id`),
17 | KEY `manufacturers_id` (`manufacturers_id`),
18 | KEY `suppliers_id` (`suppliers_id`),
19 | KEY `documentcategories_id` (`documentcategories_id`)
20 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
21 |
22 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_profiles`;
23 | CREATE TABLE `glpi_plugin_manufacturersimports_profiles` (
24 | `id` int(11) NOT NULL auto_increment,
25 | `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)',
26 | `manufacturersimports` char(1) collate utf8_unicode_ci default NULL,
27 | PRIMARY KEY (`id`),
28 | KEY `profiles_id` (`profiles_id`)
29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
30 |
31 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
32 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
33 | `id` int(11) NOT NULL auto_increment,
34 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
35 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
36 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
37 | PRIMARY KEY (`id`),
38 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
39 | KEY `FK_device` (`items_id`,`itemtype`),
40 | KEY `item` (`itemtype`,`items_id`)
41 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
42 |
43 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
44 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
45 | `id` int(11) NOT NULL auto_increment,
46 | `import_status` int(11) NOT NULL default '0',
47 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
48 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
49 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
50 | `date_import` DATE default NULL,
51 | PRIMARY KEY (`id`),
52 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
53 | KEY `FK_device` (`items_id`,`itemtype`),
54 | KEY `item` (`itemtype`,`items_id`)
55 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # manufacturersimports
2 | Plugin manufacturersimports pour GLPI
3 |
4 | Ce plugin est sur Transifex - Aidez-nous à le traduire :
5 | https://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/
6 |
7 | This plugin is on Transifex - Help us to translate :
8 | https://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/
9 |
10 |
11 | Ce plugin vous permet d'injecter des informations financières depuis les sites fabricants directement dans GLPI.
12 | > * Vous sélectionnez vos types de matériels et si au préalable vous avez fourni numéro de série et numéro de modèle (selon les fabricants) vous pourrez importer la garantie, la date d'achat, ainsi qu'enregistrer la page hmtl des fabricants.
13 | > * Fonctionne avec Dell, HP, Toshiba, Lenovo (> 1.5.0), Fujitsu-Siemens et Wortmann AG
14 |
15 |
16 | This plugin allows you to inject financials informations from manufacturers web site files in GLPI.
17 | > * You select your type of equipment in advance and if you provided serial number and model number (different from manufacturers) you can import the warranty, the date of purchase and save the page HMTL manufacturers.
18 | > * Works with Dell, HP, Toshiba, Lenovo (> 1.5.0), Fujitsu-Siemens and Wortmann AG
19 |
20 |
21 | Fabricants / Manufacturers
22 |
23 | > * Pour Dell, il faut maintenant s'enregistrer afin d'avoir une clé API :
24 |
25 | https://techdirect.dell.com
26 |
27 | URL dans le plugin :
28 | - Url du fabricant : https://www.dell.com/support/home/product-support/servicetag/
29 | - Adresse API du token d’accès : https://apigtwb2c.us.dell.com/auth/oauth/v2/token
30 | - Adresse API des garanties : https://apigtwb2c.us.dell.com/PROD/sbil/eapi/v5/asset-entitlements?servicetags=
31 |
32 | > * Pour HP, il faut maintenant s'enregistrer afin d'avoir une clé API :
33 |
34 | - Faire une demande d'accès à l'API via son HP account manager / commercial HP
35 | - L'account manager va rentrer la demande dans le système HP et donner quelques informations sur son client
36 | - Le client recevra un email de la part de l'adresse warrantyapi.customers@hp.com avec les étapes à effectuer pour finaliser sa demande et avoir l'accès
37 | - La clé est valable 90 jours
38 | - Un email sera envoyé à l'utilisateur quand il faudra renouveler cette clé ; l'email contient un lien sur lequel cliquer pour générer de nouvelles clés. C'est une démarche rapide.
39 |
40 | URL dans le plugin :
41 | - Url du fabricant : https://support.hp.com/fr-fr/check-warranty/
42 | - Adresse API du token d’accès : https://warranty.api.hp.com/oauth/v1/token
43 | - Adresse API des garanties : https://warranty.api.hp.com/productwarranty/v2/queries
44 |
45 |
46 | > * Pour Lenovo, il faut maintenant s'enregistrer chez Lenovo afin d'avoir une clé API:
47 |
48 | URL dans le plugin :
49 | Url du fabricant : https://supportapi.lenovo.com/v2.5/warranty
50 |
51 | > * Pour Toshiba
52 |
53 | URL dans le plugin :
54 | Url du fabricant : http://aps2.toshiba-tro.de/unit-details-php/unitdetails.aspx?
55 |
56 |
57 | > * Pour Fujitsu
58 |
59 | URL dans le plugin :
60 | Url du fabricant : https://support.ts.fujitsu.com/ProductCheck/Default.aspx?Lng=en&GotoDiv=Warranty/WarrantyStatus&DivID=indexwarranty&GotoUrl=IndexWarranty&RegionID=1&Token=${$i$M$f$u&Ident=
61 |
--------------------------------------------------------------------------------
/sql/update-1.3.0.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `glpi_plugin_suppliertag_config` RENAME `glpi_plugin_manufacturersimports_configs`;
2 | ALTER TABLE `glpi_plugin_suppliertag_profiles` RENAME `glpi_plugin_manufacturersimports_profiles`;
3 | ALTER TABLE `glpi_plugin_suppliertag_models` RENAME `glpi_plugin_manufacturersimports_models`;
4 | ALTER TABLE `glpi_plugin_suppliertag_imported` RENAME `glpi_plugin_manufacturersimports_logs`;
5 |
6 | ALTER TABLE `glpi_plugin_manufacturersimports_configs`
7 | CHANGE `ID` `id` int(11) NOT NULL auto_increment,
8 | CHANGE `name` `name` varchar(255) collate utf8_unicode_ci default NULL,
9 | CHANGE `FK_entities` `entities_id` int(11) NOT NULL default '0',
10 | CHANGE `recursive` `is_recursive` tinyint(1) NOT NULL default '0',
11 | CHANGE `Supplier_url` `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
12 | CHANGE `FK_glpi_enterprise` `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
13 | CHANGE `FK_enterprise` `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
14 | CHANGE `warranty` `warranty_duration` int(11) NOT NULL default '0',
15 | CHANGE `adddoc` `document_adding` int(11) NOT NULL default '0',
16 | CHANGE `rubrique` `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
17 | CHANGE `comments` `comment_adding` int(11) NOT NULL default '0',
18 | ADD INDEX (`name`),
19 | ADD INDEX (`entities_id`),
20 | ADD INDEX (`manufacturers_id`),
21 | ADD INDEX (`suppliers_id`),
22 | ADD INDEX (`documentcategories_id`);
23 |
24 | ALTER TABLE `glpi_plugin_manufacturersimports_profiles`
25 | CHANGE `ID` `id` int(11) NOT NULL auto_increment,
26 | ADD `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)',
27 | CHANGE `suppliertag` `manufacturersimports` char(1) collate utf8_unicode_ci default NULL,
28 | ADD INDEX (`profiles_id`);
29 |
30 | ALTER TABLE `glpi_plugin_manufacturersimports_models`
31 | CHANGE `ID` `id` int(11) NOT NULL auto_increment,
32 | CHANGE `FK_model` `model_name` varchar(100) collate utf8_unicode_ci default NULL,
33 | CHANGE `FK_device` `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
34 | CHANGE `device_type` `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
35 | DROP INDEX `FK_model`,
36 | DROP INDEX `FK_model_2`,
37 | DROP INDEX `FK_device`,
38 | ADD UNIQUE `unicity` (`model_name`,`items_id`,`itemtype`),
39 | ADD INDEX `FK_device` (`items_id`,`itemtype`),
40 | ADD INDEX `item` (`itemtype`,`items_id`);
41 |
42 | ALTER TABLE `glpi_plugin_manufacturersimports_logs`
43 | CHANGE `ID` `id` int(11) NOT NULL auto_increment,
44 | CHANGE `FK_device` `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
45 | CHANGE `device_type` `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
46 | CHANGE `FK_doc` `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
47 | CHANGE `import_date` `date_import` DATE default NULL,
48 | DROP INDEX `FK_suppliertag`,
49 | DROP INDEX `FK_suppliertag_2`,
50 | DROP INDEX `FK_device`,
51 | ADD UNIQUE `unicity` (`import_status`,`items_id`,`itemtype`),
52 | ADD INDEX `FK_device` (`items_id`,`itemtype`),
53 | ADD INDEX `item` (`itemtype`,`items_id`);
54 |
55 | UPDATE `glpi_plugin_manufacturersimports_configs` SET `Supplier_url` = 'http://aps2.toshiba-tro.de/unit-details-php/unitdetails.aspx?' WHERE `name` ='Toshiba';
56 |
--------------------------------------------------------------------------------
/sql/empty-1.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_config`;
2 | CREATE TABLE `glpi_plugin_suppliertag_config` (
3 | `ID` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) default NULL,
5 | `Supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
6 | `FK_glpi_enterprise` int(11) NOT NULL default '0',
7 | `FK_enterprise` int(11) NOT NULL default '0',
8 | `warranty` int(11) NOT NULL default '0',
9 | `adddoc` int(11) NOT NULL default '0',
10 | `rubrique` int(11) NOT NULL default '0',
11 | `comments` int(11) NOT NULL default '0',
12 | PRIMARY KEY (`ID`)
13 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
14 |
15 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_profiles`;
16 | CREATE TABLE `glpi_plugin_suppliertag_profiles` (
17 | `ID` int(11) NOT NULL auto_increment,
18 | `name` varchar(255) default NULL,
19 | `interface` varchar(50) NOT NULL default 'suppliertag',
20 | `is_default` smallint(6) NOT NULL default '0',
21 | `suppliertag` char(1) default NULL,
22 | PRIMARY KEY (`ID`),
23 | KEY `interface` (`interface`)
24 | ) TYPE=MyISAM;
25 |
26 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('1','Dell','http://support.euro.dell.com/support/topics/topic.aspx/emea/shared/support/my_systems_info/fr/details?c=fr&cs=frbsdt1&l=fr&s=bsd&ServiceTag=', '0', '0','36', '0','0');
27 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('2','HP','http://www11.itrc.hp.com/service/ewarranty/warrantyResults.do?', '0', '0','36', '0','0');
28 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('3','Fujitsu-Siemens','http://sali.fujitsu-siemens.co.uk/ServiceEntitlement/service.asp?', '0', '0','36', '0','0');
29 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('4','IBM','http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/warranty?', '0', '0','36', '0','0');
30 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('5','Toshiba','http://toshiba.eclaim.com/toshiba/tsbclok2.asp?', '0', '0','36', '0','0');
31 |
32 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_models`;
33 | CREATE TABLE `glpi_plugin_suppliertag_models` (
34 | `ID` int(11) NOT NULL auto_increment,
35 | `FK_model` varchar(255) default NULL,
36 | `FK_device` int(11) NOT NULL default '0',
37 | `device_type` int(11) NOT NULL default '0',
38 | PRIMARY KEY (`ID`),
39 | UNIQUE KEY `FK_model` (`FK_model`,`FK_device`,`device_type`),
40 | KEY `FK_model_2` (`FK_model`),
41 | KEY `FK_device` (`FK_device`,`device_type`)
42 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
43 |
44 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_imported`;
45 | CREATE TABLE `glpi_plugin_suppliertag_imported` (
46 | `ID` int(11) NOT NULL auto_increment,
47 | `FK_suppliertag` int(11) NOT NULL default '0',
48 | `FK_device` int(11) NOT NULL default '0',
49 | `device_type` int(11) NOT NULL default '0',
50 | `FK_doc` int(11) NOT NULL default '0',
51 | `import_date` date NOT NULL default '0000-00-00',
52 | PRIMARY KEY (`ID`),
53 | UNIQUE KEY `FK_suppliertag` (`FK_suppliertag`,`FK_device`,`device_type`),
54 | KEY `FK_suppliertag_2` (`FK_suppliertag`),
55 | KEY `FK_device` (`FK_device`,`device_type`)
56 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/sql/empty-1.2.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_config`;
2 | CREATE TABLE `glpi_plugin_suppliertag_config` (
3 | `ID` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) default NULL,
5 | `FK_entities` int(11) NOT NULL default '0',
6 | `recursive` tinyint(1) NOT NULL default '0',
7 | `Supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `FK_glpi_enterprise` int(11) NOT NULL default '0',
9 | `FK_enterprise` int(11) NOT NULL default '0',
10 | `warranty` int(11) NOT NULL default '0',
11 | `adddoc` int(11) NOT NULL default '0',
12 | `rubrique` int(11) NOT NULL default '0',
13 | `comments` int(11) NOT NULL default '0',
14 | PRIMARY KEY (`ID`)
15 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
16 |
17 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_profiles`;
18 | CREATE TABLE `glpi_plugin_suppliertag_profiles` (
19 | `ID` int(11) NOT NULL auto_increment,
20 | `name` varchar(255) default NULL,
21 | `suppliertag` char(1) default NULL,
22 | PRIMARY KEY (`ID`),
23 | KEY `name` (`name`)
24 | ) TYPE=MyISAM;
25 |
26 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`,`recursive`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('1','Dell',0,0,'http://support.dell.com/support/topics/global.aspx/support/my_systems_info/details?c=us&l=en&s=bsd&ServiceTag=', '0', '0','36', '0','0');
27 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`,`recursive`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('2','HP',0,0,'http://www11.itrc.hp.com/service/ewarranty/warrantyResults.do?', '0', '0','36', '0','0');
28 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`,`recursive`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('3','Fujitsu-Siemens',0,0,'http://sali.fujitsu-siemens.co.uk/ServiceEntitlement/service.asp?', '0', '0','36', '0','0');
29 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`,`recursive`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('4','IBM',0,0,'http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/warranty?', '0', '0','36', '0','0');
30 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`,`recursive`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('5','Toshiba',0,0,'http://toshiba.eclaim.com/toshiba/tsbclok2.asp?', '0', '0','36', '0','0');
31 |
32 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_models`;
33 | CREATE TABLE `glpi_plugin_suppliertag_models` (
34 | `ID` int(11) NOT NULL auto_increment,
35 | `FK_model` varchar(255) default NULL,
36 | `FK_device` int(11) NOT NULL default '0',
37 | `device_type` int(11) NOT NULL default '0',
38 | PRIMARY KEY (`ID`),
39 | UNIQUE KEY `FK_model` (`FK_model`,`FK_device`,`device_type`),
40 | KEY `FK_model_2` (`FK_model`),
41 | KEY `FK_device` (`FK_device`,`device_type`)
42 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
43 |
44 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_imported`;
45 | CREATE TABLE `glpi_plugin_suppliertag_imported` (
46 | `ID` int(11) NOT NULL auto_increment,
47 | `import_status` int(11) NOT NULL default '0',
48 | `FK_device` int(11) NOT NULL default '0',
49 | `device_type` int(11) NOT NULL default '0',
50 | `FK_doc` int(11) NOT NULL default '0',
51 | `import_date` DATE NULL default NULL,
52 | PRIMARY KEY (`ID`),
53 | UNIQUE KEY `FK_suppliertag` (`import_status`,`FK_device`,`device_type`),
54 | KEY `FK_suppliertag_2` (`import_status`),
55 | KEY `FK_device` (`FK_device`,`device_type`)
56 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/sql/empty-1.1.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_config`;
2 | CREATE TABLE `glpi_plugin_suppliertag_config` (
3 | `ID` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) default NULL,
5 | `FK_entities` int(11) NOT NULL default '0',
6 | `Supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
7 | `FK_glpi_enterprise` int(11) NOT NULL default '0',
8 | `FK_enterprise` int(11) NOT NULL default '0',
9 | `warranty` int(11) NOT NULL default '0',
10 | `adddoc` int(11) NOT NULL default '0',
11 | `rubrique` int(11) NOT NULL default '0',
12 | `comments` int(11) NOT NULL default '0',
13 | PRIMARY KEY (`ID`)
14 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
15 |
16 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_profiles`;
17 | CREATE TABLE `glpi_plugin_suppliertag_profiles` (
18 | `ID` int(11) NOT NULL auto_increment,
19 | `name` varchar(255) default NULL,
20 | `interface` varchar(50) NOT NULL default 'suppliertag',
21 | `is_default` smallint(6) NOT NULL default '0',
22 | `suppliertag` char(1) default NULL,
23 | PRIMARY KEY (`ID`),
24 | KEY `interface` (`interface`)
25 | ) TYPE=MyISAM;
26 |
27 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('1','Dell',0,'http://support.euro.dell.com/support/topics/topic.aspx/emea/shared/support/my_systems_info/fr/details?c=fr&cs=frbsdt1&l=fr&s=bsd&ServiceTag=', '0', '0','36', '0','0');
28 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('2','HP',0,'http://www11.itrc.hp.com/service/ewarranty/warrantyResults.do?', '0', '0','36', '0','0');
29 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('3','Fujitsu-Siemens',0,'http://sali.fujitsu-siemens.co.uk/ServiceEntitlement/service.asp?', '0', '0','36', '0','0');
30 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('4','IBM',0,'http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/warranty?', '0', '0','36', '0','0');
31 | INSERT INTO `glpi_plugin_suppliertag_config` ( `ID`,`name`,`FK_entities`, `Supplier_url` , `FK_glpi_enterprise`, `FK_enterprise`, `warranty`, `adddoc`, `rubrique`) VALUES ('5','Toshiba',0,'http://toshiba.eclaim.com/toshiba/tsbclok2.asp?', '0', '0','36', '0','0');
32 |
33 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_models`;
34 | CREATE TABLE `glpi_plugin_suppliertag_models` (
35 | `ID` int(11) NOT NULL auto_increment,
36 | `FK_model` varchar(255) default NULL,
37 | `FK_device` int(11) NOT NULL default '0',
38 | `device_type` int(11) NOT NULL default '0',
39 | PRIMARY KEY (`ID`),
40 | UNIQUE KEY `FK_model` (`FK_model`,`FK_device`,`device_type`),
41 | KEY `FK_model_2` (`FK_model`),
42 | KEY `FK_device` (`FK_device`,`device_type`)
43 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
44 |
45 | DROP TABLE IF EXISTS `glpi_plugin_suppliertag_imported`;
46 | CREATE TABLE `glpi_plugin_suppliertag_imported` (
47 | `ID` int(11) NOT NULL auto_increment,
48 | `FK_suppliertag` int(11) NOT NULL default '0',
49 | `FK_device` int(11) NOT NULL default '0',
50 | `device_type` int(11) NOT NULL default '0',
51 | `FK_doc` int(11) NOT NULL default '0',
52 | `import_date` date NOT NULL default '0000-00-00',
53 | PRIMARY KEY (`ID`),
54 | UNIQUE KEY `FK_suppliertag` (`FK_suppliertag`,`FK_device`,`device_type`),
55 | KEY `FK_suppliertag_2` (`FK_suppliertag`),
56 | KEY `FK_device` (`FK_device`,`device_type`)
57 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/src/Log.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | namespace GlpiPlugin\Manufacturersimports;
31 |
32 | use CommonDBTM;
33 | use Document;
34 |
35 | if (!defined('GLPI_ROOT')) {
36 | die("Sorry. You can't access directly to this file");
37 | }
38 |
39 | /**
40 | * Class Log
41 | */
42 | class Log extends CommonDBTM
43 | {
44 |
45 | /**
46 | * @param $items_id
47 | * @param $itemtype
48 | *
49 | * @return bool
50 | */
51 | function getFromDBbyDevice($items_id, $itemtype)
52 | {
53 | global $DB;
54 |
55 | $query = "SELECT * FROM `".$this->getTable()."` " .
56 | "WHERE `items_id` = '" . $items_id . "'
57 | AND `itemtype` = '" . $itemtype . "' ";
58 | if ($result = $DB->doQuery($query)) {
59 | if ($DB->numrows($result) != 1) {
60 | return false;
61 | }
62 | $this->fields = $DB->fetchAssoc($result);
63 | if (is_array($this->fields) && count($this->fields)) {
64 | return true;
65 | } else {
66 | return false;
67 | }
68 | }
69 | return false;
70 | }
71 |
72 | /**
73 | * @param $itemtype
74 | * @param $items_id
75 | *
76 | * @return bool
77 | */
78 | function checkIfAlreadyImported($itemtype, $items_id)
79 | {
80 |
81 | if ($this->getFromDBbyDevice($items_id, $itemtype)) {
82 | return $this->fields["id"];
83 | } else {
84 | return false;
85 | }
86 | }
87 |
88 | /**
89 | * @param $itemtype
90 | * @param $items_id
91 | */
92 | function reinitializeImport($itemtype, $items_id)
93 | {
94 | global $DB;
95 |
96 | if ($this->getFromDBbyDevice($items_id, $itemtype)) {
97 | $doc= new Document();
98 | if ($doc->GetfromDB($this->fields["documents_id"])) {
99 | $query ="DELETE
100 | FROM `glpi_documents_items`
101 | WHERE `documents_id` = '".$this->fields["documents_id"]."';";
102 | $DB->doQuery($query);
103 |
104 | if (is_file(GLPI_DOC_DIR."/".$doc->fields["filename"])
105 | && !is_dir(GLPI_DOC_DIR."/".$doc->fields["filename"])) {
106 | unlink(GLPI_DOC_DIR."/".$doc->fields["filename"]);
107 | }
108 |
109 | $doc->delete(['id'=>$this->fields["documents_id"]], true);
110 | }
111 | }
112 | if (isset($this->fields["id"])) {
113 | $this->delete(['id'=>$this->fields["id"]]);
114 | }
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/src/Menu.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | namespace GlpiPlugin\Manufacturersimports;
31 |
32 | use CommonGLPI;
33 | use Session;
34 |
35 | /**
36 | * Class Menu
37 | */
38 | class Menu extends CommonGLPI
39 | {
40 |
41 | static $rightname = 'plugin_manufacturersimports';
42 |
43 | /**
44 | * Get menu name
45 | *
46 | * @since version 0.85
47 | *
48 | * @return string menu shortcut key
49 | **/
50 | static function getMenuName()
51 | {
52 | return _n(
53 | 'Suppliers import',
54 | 'Suppliers imports',
55 | 2,
56 | 'manufacturersimports'
57 | );
58 | }
59 |
60 | /**
61 | * get menu content
62 | *
63 | * @since version 0.85
64 | *
65 | * @return array for menu
66 | **/
67 | static function getMenuContent()
68 | {
69 | $plugin_page = Import::getSearchURL(false);
70 | $menu = [];
71 | //Menu entry in tools
72 | $menu['title'] = self::getMenuName();
73 | $menu['page'] = $plugin_page;
74 | $menu['links']['search'] = $plugin_page;
75 |
76 | if (Session::haveRight(static::$rightname, UPDATE)
77 | || Session::haveRight("config", UPDATE)) {
78 | //Entry icon in breadcrumb
79 | $menu['links']['config'] = Config::getSearchURL(false);
80 | //Link to config page in admin plugins list
81 | $menu['config_page'] = Config::getSearchURL(false);
82 |
83 | //Add a fourth level in breadcrumb for configuration page
84 | $menu['options']['config']['title'] = __('Setup');
85 | $menu['options']['config']['page'] = Config::getSearchURL(false);
86 | $menu['options']['config']['links']['search'] = Config::getSearchURL(false);
87 | $menu['options']['config']['links']['add'] = Config::getFormURL(false);
88 | }
89 |
90 | $menu['icon'] = self::getIcon();
91 |
92 | return $menu;
93 | }
94 |
95 | static function getIcon()
96 | {
97 | return "ti ti-satellite";
98 | }
99 |
100 | static function removeRightsFromSession()
101 | {
102 | if (isset($_SESSION['glpimenu']['tools']['types'][Menu::class])) {
103 | unset($_SESSION['glpimenu']['tools']['types'][Menu::class]);
104 | }
105 | if (isset($_SESSION['glpimenu']['tools']['content'][Menu::class])) {
106 | unset($_SESSION['glpimenu']['tools']['content'][Menu::class]);
107 | }
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/src/Wortmann_ag.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | namespace GlpiPlugin\Manufacturersimports;
31 |
32 | if (!defined('GLPI_ROOT')) {
33 | die("Sorry. You can't access directly to this file");
34 | }
35 |
36 | /**
37 | * Class Wortmann_ag
38 | */
39 | class Wortmann_ag extends Manufacturer
40 | {
41 | /**
42 | * @see Manufacturer::showDocTitle()
43 | */
44 | public function showDocTitle($output_type, $header_num)
45 | {
46 | return false;
47 | }
48 |
49 | public function getSearchField()
50 | {
51 | return "search";
52 | }
53 |
54 | /**
55 | * @see Manufacturer::getSupplierInfo()
56 | */
57 | public function getSupplierInfo(
58 | $compSerial = null,
59 | $otherSerial = null,
60 | $key = null,
61 | $apisecret = null,
62 | $supplierUrl = null
63 | )
64 | {
65 | $info["name"] = Config::WORTMANN_AG;
66 | $info["supplier_url"] = "https://www.wortmann.de/fr-fr/profile/snsearch.aspx?SN=";
67 | $info["url"] = $supplierUrl.$compSerial;
68 | return $info;
69 | }
70 |
71 | /**
72 | * @see Manufacturer::getBuyDate()
73 | */
74 | public function getBuyDate($contents)
75 | {
76 | $field = "but de la service";
77 | $searchstart = stristr($contents, $field);
78 | $myDate = substr($searchstart, 26, 10);
79 |
80 | $myDate = trim($myDate);
81 | $myDate = str_replace('/', '-', $myDate);
82 |
83 | $myDate = PostImport::checkDate($myDate, true);
84 |
85 | if ($myDate != "0000-00-00") {
86 | list($day, $month, $year) = explode('-', $myDate);
87 | $myDate = date("Y-m-d", mktime(0, 0, 0, $month, $day, $year));
88 | }
89 |
90 | return $myDate;
91 | }
92 |
93 | /**
94 | * @see Manufacturer::getStartDate()
95 | */
96 | public function getStartDate($contents)
97 | {
98 | return self::getBuyDate($contents);
99 | }
100 |
101 | /**
102 | * @see Manufacturer::getExpirationDate()
103 | */
104 | public function getExpirationDate($contents)
105 | {
106 | $field = "Fin de service";
107 | $searchstart = stristr($contents, $field);
108 | $myDate = substr($searchstart, 23, 10);
109 |
110 | $myDate = trim($myDate);
111 | $myDate = str_replace('/', '-', $myDate);
112 |
113 | $myDate = PostImport::checkDate($myDate, true);
114 |
115 | if ($myDate != "0000-00-00") {
116 | list($day, $month, $year) = explode('-', $myDate);
117 | $myDate = date("Y-m-d", mktime(0, 0, 0, $month, $day, $year));
118 | }
119 | return $myDate;
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/src/Toshiba.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | namespace GlpiPlugin\Manufacturersimports;
31 |
32 | use Search;
33 |
34 | if (!defined('GLPI_ROOT')) {
35 | die("Sorry. You can't access directly to this file");
36 | }
37 |
38 | /**
39 | * Class Toshiba
40 | */
41 | class Toshiba extends Manufacturer
42 | {
43 | /**
44 | * @see Manufacturer::showDocTitle()
45 | */
46 | public function showDocTitle($output_type, $header_num)
47 | {
48 | return Search::showHeaderItem($output_type, __('File'), $header_num);
49 | }
50 |
51 | public function getSearchField()
52 | {
53 | return false;
54 | }
55 |
56 | /**
57 | * @see Manufacturer::getSupplierInfo()
58 | */
59 | public function getSupplierInfo(
60 | $compSerial = null,
61 | $otherSerial = null,
62 | $key = null,
63 | $apisecret = null,
64 | $supplierUrl = null
65 | )
66 | {
67 | $info["name"] = Config::TOSHIBA;
68 | $info["supplier_url"] = "https://support.dynabook.com/support/warrantyResults?";
69 | $info["url"] = $supplierUrl .
70 | "sno=" . $compSerial;
71 | return $info;
72 | }
73 |
74 | /**
75 | * Summary of getWarrantyUrl
76 | *
77 | * @param $config
78 | * @param $compSerial
79 | *
80 | * @return string[]
81 | */
82 | public static function getWarrantyUrl($config, $compSerial)
83 | {
84 | return ["url" => "https://support.dynabook.com/support/warrantyResults?sno=" . "$compSerial"];
85 | }
86 |
87 | /**
88 | * @see Manufacturer::getBuyDate()
89 | */
90 | public function getBuyDate($contents)
91 | {
92 | $field = "shipDate";
93 | $search = stristr($contents, $field);
94 | $myDate = substr($search, 11, 21);
95 | $myDate = trim($myDate);
96 | $myDate = PostImport::checkDate($myDate);
97 |
98 | return $myDate;
99 | }
100 |
101 | /**
102 | * @see Manufacturer::getStartDate()
103 | */
104 | public function getStartDate($contents)
105 | {
106 | $field = "customerPurchaseDate";
107 | $search = stristr($contents, $field);
108 | $myDate = substr($search, 23, 21);
109 | $myDate = trim($myDate);
110 | $myDate = PostImport::checkDate($myDate);
111 |
112 | return $myDate;
113 | }
114 |
115 | /**
116 | * @see Manufacturer::getExpirationDate()
117 | */
118 | public function getExpirationDate($contents)
119 | {
120 | $field = "warrantyExpiryDate";
121 | $search = stristr($contents, $field);
122 | $myEndDate = substr($search, 21, 21);
123 | $myEndDate = trim($myEndDate);
124 | $myEndDate = PostImport::checkDate($myEndDate);
125 | return $myEndDate;
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/src/Fujitsu.php:
--------------------------------------------------------------------------------
1 | .
28 | --------------------------------------------------------------------------
29 | */
30 |
31 | namespace GlpiPlugin\Manufacturersimports;
32 |
33 | use Search;
34 |
35 | if (!defined('GLPI_ROOT')) {
36 | die("Sorry. You can't access directly to this file");
37 | }
38 |
39 | /**
40 | * Class Fujitsu
41 | */
42 | class Fujitsu extends Manufacturer
43 | {
44 | /**
45 | * @see Manufacturer::showDocTitle()
46 | */
47 | public function showDocTitle($output_type, $header_num)
48 | {
49 | return Search::showHeaderItem($output_type, __('File'), $header_num);
50 | }
51 |
52 | public function getSearchField()
53 | {
54 | return false;
55 | }
56 |
57 | /**
58 | * @see Manufacturer::getSupplierInfo()
59 | */
60 | public function getSupplierInfo(
61 | $compSerial = null,
62 | $otherSerial = null,
63 | $key = null,
64 | $apisecret = null,
65 | $supplierUrl = null
66 | ) {
67 | $info["name"] = Config::FUJITSU;
68 | $info["supplier_url"] = 'https://support.ts.fujitsu.com/ProductCheck/Default.aspx?Lng=en&GotoDiv=Warranty/WarrantyStatus&DivID=indexwarranty&GotoUrl=IndexWarranty&RegionID=1&Token=${$i$M$f$u&Ident=';
69 | $info["url"] = $supplierUrl . $compSerial;
70 | $info["url_web"] = "https://support.ts.fujitsu.com/IndexWarranty.asp?lng=FR";
71 | return $info;
72 | }
73 |
74 | /**
75 | * Summary of getWarrantyUrl
76 | *
77 | * @param $config
78 | * @param $compSerial
79 | *
80 | * @return string[]
81 | */
82 | public static function getWarrantyUrl($config, $compSerial)
83 | {
84 | return ["url" => 'https://support.ts.fujitsu.com/ProductCheck/Default.aspx?Lng=en&GotoDiv=Warranty/WarrantyStatus&DivID=indexwarranty&GotoUrl=IndexWarranty&RegionID=1&Token=${$i$M$f$u&Ident=' . "$compSerial"];
85 | }
86 |
87 | /**
88 | * @see Manufacturer::getBuyDate()
89 | */
90 | public function getBuyDate($contents)
91 | {
92 | $matchesarray = [];
93 | preg_match_all("/value=\"(\d{4}\-\d{2}\-\d{2})\" id=\"Firstuse\"/", $contents, $matchesarray);
94 |
95 | $buydate = (isset($matchesarray[1][0]) ? trim($matchesarray[1][0]) : '0000-00-00');
96 |
97 | return $buydate;
98 | }
99 |
100 | /**
101 | * @see Manufacturer::getStartDate()
102 | */
103 | public function getStartDate($contents)
104 | {
105 | return self::getBuyDate($contents);
106 | }
107 |
108 |
109 | /**
110 | * @see Manufacturer::getExpirationDate()
111 | */
112 | public function getExpirationDate($contents)
113 | {
114 | $matchesarray = [];
115 | preg_match_all("/value=\"(\d{4}\-\d{2}\-\d{2})\" id=\"WarrantyEndDate\"/", $contents, $matchesarray);
116 |
117 | $expirationdate = (isset($matchesarray[1][0]) ? trim($matchesarray[1][0]) : '0000-00-00');
118 |
119 | return $expirationdate;
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/setup.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | define('PLUGIN_MANUFACTURERSIMPORTS_VERSION', '3.1.2');
31 |
32 | global $CFG_GLPI;
33 |
34 | use Glpi\Plugin\Hooks;
35 |
36 | use GlpiPlugin\Manufacturersimports\Config;
37 | use GlpiPlugin\Manufacturersimports\Menu;
38 |
39 |
40 | if (!defined("PLUGIN_MANUFACTURERSIMPORTS_DIR")) {
41 | define("PLUGIN_MANUFACTURERSIMPORTS_DIR", Plugin::getPhpDir("manufacturersimports"));
42 | $root = $CFG_GLPI['root_doc'] . '/plugins/manufacturersimports';
43 | define("PLUGIN_MANUFACTURERSIMPORTS_WEBDIR", $root);
44 | }
45 |
46 | // Init the hooks of the plugins -Needed
47 | function plugin_init_manufacturersimports()
48 | {
49 | global $PLUGIN_HOOKS, $CFG_GLPI;
50 |
51 | $PLUGIN_HOOKS['csrf_compliant']['manufacturersimports'] = true;
52 |
53 | if (Plugin::isPluginActive('manufacturersimports')
54 | && Session::getLoginUserID()) {
55 | Plugin::registerClass(
56 | Profile::class,
57 | ['addtabon' => 'Profile']
58 | );
59 |
60 | //Display menu entry only if user has right to see it !
61 | if (Session::haveRight('plugin_manufacturersimports', READ)) {
62 | $PLUGIN_HOOKS["menu_toadd"]['manufacturersimports']
63 | = ['tools' => Menu::class];
64 | }
65 |
66 | if (Session::haveRight('config', UPDATE)) {
67 | $PLUGIN_HOOKS['config_page']['manufacturersimports'] = 'front/config.php';
68 | $PLUGIN_HOOKS['use_massive_action']['manufacturersimports'] = 1;
69 | }
70 |
71 | // End init, when all types are registered
72 | $PLUGIN_HOOKS['post_init']['manufacturersimports']
73 | = 'plugin_manufacturersimports_postinit';
74 |
75 | $PLUGIN_HOOKS['infocom']['manufacturersimports'] = [Config::class, 'showForInfocom'];
76 | $PLUGIN_HOOKS['pre_show_item']['manufacturersimports'] = [Config::class, 'showItemImport'];
77 | }
78 |
79 | if (isset($_SESSION['glpiactiveprofile']['interface'])
80 | && $_SESSION['glpiactiveprofile']['interface'] == 'central') {
81 | // Add specific files to add to the header : javascript or css
82 | $PLUGIN_HOOKS[Hooks::ADD_CSS]['manufacturersimports'] = [
83 | "manufacturersimports.css",
84 | ];
85 | }
86 | }
87 |
88 | // Get the name and the version of the plugin - Needed
89 | function plugin_version_manufacturersimports()
90 | {
91 | return ['name' => _n(
92 | 'Suppliers import',
93 | 'Suppliers imports',
94 | 2,
95 | 'manufacturersimports'
96 | ),
97 | 'oldname' => 'suppliertag',
98 | 'version' => PLUGIN_MANUFACTURERSIMPORTS_VERSION,
99 | 'license' => 'GPLv2+',
100 | 'author' => "Infotel, Xavier CAILLAUD",
101 | 'homepage' => 'https://github.com/InfotelGLPI/manufacturersimports/',
102 | 'requirements' => [
103 | 'glpi' => [
104 | 'min' => '11.0',
105 | 'max' => '12.0',
106 | 'dev' => false
107 | ],
108 | 'php' => [
109 | 'exts' => ['soap', 'curl', 'json'],
110 | ]
111 | ]
112 | ];
113 | }
114 |
--------------------------------------------------------------------------------
/sql/empty-1.3.0.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | PRIMARY KEY (`id`),
15 | KEY `name` (`name`),
16 | KEY `entities_id` (`entities_id`),
17 | KEY `manufacturers_id` (`manufacturers_id`),
18 | KEY `suppliers_id` (`suppliers_id`),
19 | KEY `documentcategories_id` (`documentcategories_id`)
20 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
21 |
22 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('1','Dell',0,0,'http://support.dell.com/support/topics/global.aspx/support/my_systems_info/details?c=us&l=en&s=bsd&ServiceTag=', '0', '0','36', '0','0');
23 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('2','HP',0,0,'http://www11.itrc.hp.com/service/ewarranty/warrantyResults.do?', '0', '0','36', '0','0');
24 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('3','Fujitsu-Siemens',0,0,'http://sali.uk.ts.fujitsu.com/ServiceEntitlement/service.asp?command=search&', '0', '0','36', '0','0');
25 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('4','IBM',0,0,'http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/warranty?', '0', '0','36', '0','0');
26 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('5','Toshiba',0,0,'http://aps2.toshiba-tro.de/unit-details-php/unitdetails.aspx?', '0', '0','36', '0','0');
27 |
28 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_profiles`;
29 | CREATE TABLE `glpi_plugin_manufacturersimports_profiles` (
30 | `id` int(11) NOT NULL auto_increment,
31 | `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)',
32 | `manufacturersimports` char(1) collate utf8_unicode_ci default NULL,
33 | PRIMARY KEY (`id`),
34 | KEY `profiles_id` (`profiles_id`)
35 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
36 |
37 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
38 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
39 | `id` int(11) NOT NULL auto_increment,
40 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
41 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
42 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
43 | PRIMARY KEY (`id`),
44 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
45 | KEY `FK_device` (`items_id`,`itemtype`),
46 | KEY `item` (`itemtype`,`items_id`)
47 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
48 |
49 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
50 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
51 | `id` int(11) NOT NULL auto_increment,
52 | `import_status` int(11) NOT NULL default '0',
53 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
54 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
55 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
56 | `date_import` DATE default NULL,
57 | PRIMARY KEY (`id`),
58 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
59 | KEY `FK_device` (`items_id`,`itemtype`),
60 | KEY `item` (`itemtype`,`items_id`)
61 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/sql/empty-1.4.1.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_configs`;
2 | CREATE TABLE `glpi_plugin_manufacturersimports_configs` (
3 | `id` int(11) NOT NULL auto_increment,
4 | `name` varchar(255) collate utf8_unicode_ci default NULL,
5 | `entities_id` int(11) NOT NULL default '0',
6 | `is_recursive` tinyint(1) NOT NULL default '0',
7 | `supplier_url` varchar(255) collate utf8_unicode_ci collate utf8_unicode_ci default NULL,
8 | `manufacturers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_manufacturers (id)',
9 | `suppliers_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_suppliers (id)',
10 | `warranty_duration` int(11) NOT NULL default '0',
11 | `document_adding` int(11) NOT NULL default '0',
12 | `documentcategories_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documentcategories (id)',
13 | `comment_adding` int(11) NOT NULL default '0',
14 | PRIMARY KEY (`id`),
15 | KEY `name` (`name`),
16 | KEY `entities_id` (`entities_id`),
17 | KEY `manufacturers_id` (`manufacturers_id`),
18 | KEY `suppliers_id` (`suppliers_id`),
19 | KEY `documentcategories_id` (`documentcategories_id`)
20 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
21 |
22 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('1','Dell',0,0,'http://support.dell.com/support/topics/global.aspx/support/my_systems_info/details?c=us&l=en&s=bsd&ServiceTag=', '0', '0','36', '0','0');
23 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('2','HP',0,0,'http://h20000.www2.hp.com/bizsupport/TechSupport/WarrantyResults.jsp?', '0', '0','36', '0','0');
24 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('3','Fujitsu-Siemens',0,0,'http://sali.uk.ts.fujitsu.com/ServiceEntitlement/service.asp?command=search&', '0', '0','36', '0','0');
25 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('4','IBM',0,0,'http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/warranty?', '0', '0','36', '0','0');
26 | INSERT INTO `glpi_plugin_manufacturersimports_configs` ( `ID`,`name`,`entities_id`,`is_recursive`, `supplier_url` , `manufacturers_id`, `suppliers_id`, `warranty_duration`, `document_adding`, `documentcategories_id`) VALUES ('5','Toshiba',0,0,'http://aps2.toshiba-tro.de/unit-details-php/unitdetails.aspx?', '0', '0','36', '0','0');
27 |
28 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_profiles`;
29 | CREATE TABLE `glpi_plugin_manufacturersimports_profiles` (
30 | `id` int(11) NOT NULL auto_increment,
31 | `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)',
32 | `manufacturersimports` char(1) collate utf8_unicode_ci default NULL,
33 | PRIMARY KEY (`id`),
34 | KEY `profiles_id` (`profiles_id`)
35 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
36 |
37 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_models`;
38 | CREATE TABLE `glpi_plugin_manufacturersimports_models` (
39 | `id` int(11) NOT NULL auto_increment,
40 | `model_name` varchar(100) collate utf8_unicode_ci default NULL,
41 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
42 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
43 | PRIMARY KEY (`id`),
44 | UNIQUE KEY `unicity` (`model_name`,`items_id`,`itemtype`),
45 | KEY `FK_device` (`items_id`,`itemtype`),
46 | KEY `item` (`itemtype`,`items_id`)
47 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
48 |
49 | DROP TABLE IF EXISTS `glpi_plugin_manufacturersimports_logs`;
50 | CREATE TABLE `glpi_plugin_manufacturersimports_logs` (
51 | `id` int(11) NOT NULL auto_increment,
52 | `import_status` int(11) NOT NULL default '0',
53 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
54 | `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
55 | `documents_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_documents (id)',
56 | `date_import` DATE default NULL,
57 | PRIMARY KEY (`id`),
58 | UNIQUE KEY `unicity` (`import_status`,`items_id`,`itemtype`),
59 | KEY `FK_device` (`items_id`,`itemtype`),
60 | KEY `item` (`itemtype`,`items_id`)
61 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--------------------------------------------------------------------------------
/locales/glpi.pot:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR ManufacturersImports Development Team
3 | # This file is distributed under the same license as the ManufacturersImports - Accounts plugin package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | #, fuzzy
7 | msgid ""
8 | msgstr ""
9 | "Project-Id-Version: ManufacturersImports - Accounts plugin\n"
10 | "Report-Msgid-Bugs-To: \n"
11 | "POT-Creation-Date: 2025-12-05 11:39+0000\n"
12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 | "Last-Translator: FULL NAME \n"
14 | "Language-Team: LANGUAGE \n"
15 | "Language: \n"
16 | "MIME-Version: 1.0\n"
17 | "Content-Type: text/plain; charset=CHARSET\n"
18 | "Content-Transfer-Encoding: 8bit\n"
19 | "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20 |
21 | #: setup.php:92 front/massiveaction.php:44 src/PreImport.php:66
22 | #: src/Profile.php:97 src/Menu.php:53
23 | msgid "Suppliers import"
24 | msgid_plural "Suppliers imports"
25 | msgstr[0] ""
26 | msgstr[1] ""
27 |
28 | #: front/config.php:41
29 | msgid "Please activate the plugin"
30 | msgstr ""
31 |
32 | #: src/PreImport.php:365
33 | msgid "The choosen supplier is not recursive"
34 | msgstr ""
35 |
36 | #: src/PreImport.php:394 src/PreImport.php:407 src/Config.php:647
37 | msgid "Manufacturer information"
38 | msgstr ""
39 |
40 | #: src/PreImport.php:414
41 | msgid "Not yet imported"
42 | msgstr ""
43 |
44 | #: src/PreImport.php:417
45 | msgid "Problem during the importation"
46 | msgstr ""
47 |
48 | #: src/PreImport.php:425
49 | msgid "Already imported"
50 | msgstr ""
51 |
52 | #: src/PreImport.php:461
53 | msgid "Choose inventory type and manufacturer"
54 | msgstr ""
55 |
56 | #: src/PreImport.php:505
57 | msgid "Devices not imported"
58 | msgstr ""
59 |
60 | #: src/PreImport.php:506
61 | msgid "Devices already imported"
62 | msgstr ""
63 |
64 | #: src/PreImport.php:512 src/PreImport.php:516
65 | msgid "No manufacturer available. Please configure at least one manufacturer"
66 | msgstr ""
67 |
68 | #: src/PreImport.php:646
69 | msgid "Model Number"
70 | msgstr ""
71 |
72 | #: src/PreImport.php:654
73 | msgid "Supplier attached"
74 | msgstr ""
75 |
76 | #: src/PreImport.php:659 src/Config.php:246
77 | msgid "New warranty attached"
78 | msgstr ""
79 |
80 | #: src/PreImport.php:716
81 | #, php-format
82 | msgid "Total number of devices to import %s"
83 | msgstr ""
84 |
85 | #: src/PreImport.php:772
86 | msgid "No device finded"
87 | msgstr ""
88 |
89 | #: src/PreImport.php:1058
90 | msgid "Reset the import"
91 | msgstr ""
92 |
93 | #: src/Manufacturer.php:118
94 | msgid "Automatic"
95 | msgstr ""
96 |
97 | #: src/Config.php:229 src/Config.php:360
98 | msgid "Manufacturer web address"
99 | msgstr ""
100 |
101 | #: src/Config.php:238 src/Config.php:382
102 | msgid "Default supplier attached"
103 | msgstr ""
104 |
105 | #: src/Config.php:255 src/Config.php:427
106 | msgid "Auto add of document"
107 | msgstr ""
108 |
109 | #: src/Config.php:272 src/Config.php:442
110 | msgid "Add a comment line"
111 | msgstr ""
112 |
113 | #: src/Config.php:368
114 | msgid "Access token API address"
115 | msgstr ""
116 |
117 | #: src/Config.php:374
118 | msgid "Warranty API address"
119 | msgstr ""
120 |
121 | #: src/Config.php:393
122 | msgid "New warranty affected by default (Replace if 0)"
123 | msgstr ""
124 |
125 | #: src/Config.php:407 src/Config.php:420
126 | msgid "Client id"
127 | msgstr ""
128 |
129 | #: src/Config.php:413
130 | msgid "Client secret"
131 | msgstr ""
132 |
133 | #: src/Config.php:434
134 | msgid "Section for document records"
135 | msgstr ""
136 |
137 | #: src/Config.php:654 src/Config.php:763
138 | msgctxt "button"
139 | msgid "Retrieve warranty from manufacturer"
140 | msgstr ""
141 |
142 | #: src/Config.php:757
143 | msgid ""
144 | "You did not import the warranty for this item. Do you want to get it back?"
145 | msgstr ""
146 |
147 | #: src/Lenovo.php:59
148 | msgid "Model number"
149 | msgstr ""
150 |
151 | #: src/Import.php:54
152 | msgid "Warranty import (Dell, HP)"
153 | msgstr ""
154 |
155 | #: src/Import.php:184 src/PostImport.php:783
156 | msgid "Import OK"
157 | msgstr ""
158 |
159 | #: src/Import.php:187 src/PostImport.php:889
160 | msgid "Import failed"
161 | msgstr ""
162 |
163 | #: src/PostImport.php:88
164 | msgid "Curl PHP package not installed"
165 | msgstr ""
166 |
167 | #: src/PostImport.php:249
168 | msgid "Post import"
169 | msgstr ""
170 |
171 | #: src/PostImport.php:257
172 | msgid "Result"
173 | msgstr ""
174 |
175 | #: src/PostImport.php:258
176 | msgid "Details"
177 | msgstr ""
178 |
179 | #: src/PostImport.php:290
180 | #, php-format
181 | msgid "Total number of devices imported %s"
182 | msgstr ""
183 |
184 | #: src/PostImport.php:759 src/PostImport.php:769
185 | msgid "Imported from web site"
186 | msgstr ""
187 |
188 | #: src/PostImport.php:760 src/PostImport.php:770
189 | msgid "With the manufacturersimports plugin"
190 | msgstr ""
191 |
192 | #: src/PostImport.php:912
193 | msgid "Connection failed/data download from manufacturer web site"
194 | msgstr ""
195 |
--------------------------------------------------------------------------------
/src/Manufacturer.php:
--------------------------------------------------------------------------------
1 | .
27 | --------------------------------------------------------------------------
28 | */
29 |
30 | namespace GlpiPlugin\Manufacturersimports;
31 |
32 | use CommonDBTM;
33 | use Document;
34 | use Html;
35 | use Search;
36 |
37 | if (!defined('GLPI_ROOT')) {
38 | die("Sorry. You can't access directly to this file");
39 | }
40 |
41 | /**
42 | * Class Manufacturer
43 | */
44 | class Manufacturer extends CommonDBTM
45 | {
46 | /**
47 | * @param $ID
48 | * @param $sel
49 | * @param bool $otherSerial
50 | * @return string
51 | */
52 | public function showCheckbox($ID, $sel, $otherSerial = false)
53 | {
54 | $name = "item[" . $ID . "]";
55 | return Html::getCheckbox(["name" => $name, "value" => 1, "selected" => $sel]);
56 | }
57 |
58 | /**
59 | * @param $output_type
60 | * @param $header_num
61 | * @return bool
62 | */
63 | public function showItemTitle($output_type, $header_num)
64 | {
65 | return false;
66 | }
67 |
68 | /**
69 | * @param $output_type
70 | * @param bool $otherSerial
71 | * @param $item_num
72 | * @param $row_num
73 | * @return bool
74 | */
75 | public function showItem($output_type, $item_num, $row_num, $otherSerial = false)
76 | {
77 | return false;
78 | }
79 |
80 | /**
81 | * @param $output_type
82 | * @param $header_num
83 | * @return bool
84 | */
85 | public function showDocTitle($output_type, $header_num)
86 | {
87 | return false;
88 | }
89 |
90 | /**
91 | * @param $output_type
92 | * @param $item_num
93 | * @param $row_num
94 | * @param null $doc
95 | * @return string
96 | */
97 | public function showDocItem($output_type, $item_num, $row_num, $documents_id = null)
98 | {
99 | $doc = new Document();
100 | if ($doc->getFromDB($documents_id)) {
101 | return Search::showItem(
102 | $output_type,
103 | $doc->getDownloadLink(),
104 | $item_num,
105 | $row_num
106 | );
107 | }
108 | return Search::showItem($output_type, "", $item_num, $row_num);
109 | }
110 |
111 | /**
112 | *
113 | * @param type $ID
114 | * @param type $supplierWarranty
115 | */
116 | public function showWarrantyItem($ID, $supplierWarranty)
117 | {
118 | echo "".__('Automatic', 'manufacturersimports');
119 | $name = "to_warranty_duration".$ID;
120 | echo Html::hidden($name, ['value' => 0]);
121 | echo " | ";
122 | }
123 |
124 | /**
125 | * Get supplier information with url
126 | *
127 | * @param null $compSerial
128 | * @param null $otherserial
129 | * @param null $key
130 | * @param null $supplierUrl
131 | * @return mixed
132 | */
133 | public function getSupplierInfo(
134 | $compSerial = null,
135 | $otherSerial = null,
136 | $key = null,
137 | $apisecret = null,
138 | $supplierUrl = null
139 | )
140 | {
141 | }
142 |
143 | /**
144 | * Get buy date of object
145 | *
146 | * @param $contents
147 | */
148 | public function getBuyDate($contents)
149 | {
150 | }
151 |
152 | /**
153 | * Get start date of warranty
154 | *
155 | * @param $contents
156 | * @return mixed
157 | */
158 | public function getStartDate($contents)
159 | {
160 | return false;
161 | }
162 |
163 | /**
164 | * Get expiration date of warranty
165 | *
166 | * @param $contents
167 | */
168 | public function getExpirationDate($contents)
169 | {
170 | }
171 |
172 | /**
173 | * Get warranty info
174 | *
175 | * @param $contents
176 | */
177 | public function getWarrantyInfo($contents)
178 | {
179 | }
180 |
181 | /**
182 | * Summary of getToken
183 | * @param $config
184 | * @return mixed
185 | */
186 | public static function getToken($config)
187 | {
188 | return false;
189 | }
190 |
191 |
192 | /**
193 | * Summary of getWarrantyUrl
194 | * @param $config
195 | * @param $compSerial
196 | * @return string[]|boolean
197 | */
198 | public static function getWarrantyUrl($config, $compSerial)
199 | {
200 | return false;
201 | }
202 | }
203 |
--------------------------------------------------------------------------------
/locales/zh_TW.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | #
5 | # Translators:
6 | # WooboyTW , 2018
7 | msgid ""
8 | msgstr ""
9 | "Project-Id-Version: GLPI Project - manufacturersimports plugin\n"
10 | "Report-Msgid-Bugs-To: \n"
11 | "POT-Creation-Date: 2020-07-20 11:48+0200\n"
12 | "PO-Revision-Date: 2020-01-17 15:32+0000\n"
13 | "Last-Translator: Kevin HAINRY \n"
14 | "Language-Team: Chinese (Taiwan) (http://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/language/zh_TW/)\n"
15 | "MIME-Version: 1.0\n"
16 | "Content-Type: text/plain; charset=UTF-8\n"
17 | "Content-Transfer-Encoding: 8bit\n"
18 | "Language: zh_TW\n"
19 | "Plural-Forms: nplurals=1; plural=0;\n"
20 |
21 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
22 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
23 | msgid "Suppliers import"
24 | msgid_plural "Suppliers imports"
25 | msgstr[0] "匯入供應商"
26 |
27 | #: hook.php:233 inc/lenovo.class.php:53
28 | msgid "Model number"
29 | msgstr "型號"
30 |
31 | #: hook.php:261
32 | msgid "Add new material brand number"
33 | msgstr "新增型號"
34 |
35 | #: setup.php:97 setup.php:102 setup.php:107
36 | msgid "Incompatible PHP Installation. Requires module"
37 | msgstr "PHP安裝不相容,需要模組:"
38 |
39 | #: front/config.php:42
40 | msgid "Please activate the plugin"
41 | msgstr "請啟用外掛程式"
42 |
43 | #: inc/config.class.php:208 inc/config.class.php:335
44 | msgid "Manufacturer web address"
45 | msgstr "製造商網址"
46 |
47 | #: inc/config.class.php:217 inc/config.class.php:357
48 | msgid "Default supplier attached"
49 | msgstr "預設供應商已套用"
50 |
51 | #: inc/config.class.php:225 inc/preimport.class.php:638
52 | msgid "New warranty attached"
53 | msgstr "保固期已套用"
54 |
55 | #: inc/config.class.php:234 inc/config.class.php:409
56 | msgid "Auto add of document"
57 | msgstr "自動新增文件"
58 |
59 | #: inc/config.class.php:251 inc/config.class.php:424
60 | msgid "Add a comment line"
61 | msgstr "新增備註"
62 |
63 | #: inc/config.class.php:343
64 | msgid "Access token API address"
65 | msgstr ""
66 |
67 | #: inc/config.class.php:349
68 | msgid "Warranty API address"
69 | msgstr ""
70 |
71 | #: inc/config.class.php:367
72 | msgid "New warranty affected by default (Replace if 0)"
73 | msgstr "保固期已套用預設值(如果取得資訊為0)"
74 |
75 | #: inc/config.class.php:381
76 | msgid "Manufacturer API key"
77 | msgstr "製造商API金鑰"
78 |
79 | #: inc/config.class.php:388
80 | msgid "Manufacturer API Secret"
81 | msgstr "製造商API密碼"
82 |
83 | #: inc/config.class.php:396
84 | msgid "Client id"
85 | msgstr ""
86 |
87 | #: inc/config.class.php:402
88 | msgid "Client secret"
89 | msgstr ""
90 |
91 | #: inc/config.class.php:416
92 | msgid "Section for document records"
93 | msgstr "文件記錄區塊"
94 |
95 | #: inc/config.class.php:556 inc/preimport.class.php:334
96 | msgid "Manufacturer information"
97 | msgstr "製造商資訊"
98 |
99 | #: inc/dell.class.php:167
100 | msgid "Data recovery DELL for computer"
101 | msgstr ""
102 |
103 | #: inc/import.class.php:119 inc/postimport.class.php:679
104 | msgid "Import OK"
105 | msgstr "匯入完成"
106 |
107 | #: inc/import.class.php:122 inc/postimport.class.php:783
108 | msgid "Import failed"
109 | msgstr "匯入失敗"
110 |
111 | #: inc/model.class.php:137 inc/preimport.class.php:630
112 | msgid "Model Number"
113 | msgstr "型號"
114 |
115 | #: inc/postimport.class.php:73
116 | msgid "Curl PHP package not installed"
117 | msgstr "Curl PHP套件未安裝"
118 |
119 | #: inc/postimport.class.php:189
120 | msgid "Launching of imports"
121 | msgstr "開始匯入"
122 |
123 | #: inc/postimport.class.php:192
124 | msgid "Post import"
125 | msgstr "匯入後處理"
126 |
127 | #: inc/postimport.class.php:200
128 | msgid "Result"
129 | msgstr "結果"
130 |
131 | #: inc/postimport.class.php:201
132 | msgid "Details"
133 | msgstr "詳細內容"
134 |
135 | #: inc/postimport.class.php:219
136 | msgid "Import in progress"
137 | msgstr "匯入處理中"
138 |
139 | #: inc/postimport.class.php:227
140 | #, php-format
141 | msgid "Total number of devices imported %s"
142 | msgstr "%s組設備已備匯入"
143 |
144 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
145 | msgid "Imported from web site"
146 | msgstr "從網站匯入"
147 |
148 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
149 | msgid "With the manufacturersimports plugin"
150 | msgstr "透過 manufacturersimports 外掛程式"
151 |
152 | #: inc/postimport.class.php:807
153 | msgid "Connection failed/data download from manufacturer web site"
154 | msgstr "從製造商網站取得資料失敗"
155 |
156 | #: inc/preimport.class.php:306
157 | msgid "The choosen supplier is not recursive"
158 | msgstr "選擇的供應商不會遞迴查詢"
159 |
160 | #: inc/preimport.class.php:346
161 | msgid "Not yet imported"
162 | msgstr "尚未匯入"
163 |
164 | #: inc/preimport.class.php:349
165 | msgid "Problem during the importation"
166 | msgstr "匯入發生問題"
167 |
168 | #: inc/preimport.class.php:357
169 | msgid "Already imported"
170 | msgstr "已滙入"
171 |
172 | #: inc/preimport.class.php:395
173 | msgid "Choose inventory type and manufacturer"
174 | msgstr "選擇資產類別與製造商"
175 |
176 | #: inc/preimport.class.php:435
177 | msgid "Devices not imported"
178 | msgstr "設備未匯入"
179 |
180 | #: inc/preimport.class.php:437
181 | msgid "Devices already imported"
182 | msgstr "設備已匯入"
183 |
184 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
185 | msgid "No manufacturer available. Please configure at least one manufacturer"
186 | msgstr "沒有可用的製造商,請至少設定一個製造商"
187 |
188 | #: inc/preimport.class.php:635
189 | msgid "Supplier attached"
190 | msgstr "供應商已設定"
191 |
192 | #: inc/preimport.class.php:685
193 | #, php-format
194 | msgid "Total number of devices to import %s"
195 | msgstr "總共%s組設備要被匯入"
196 |
197 | #: inc/preimport.class.php:732
198 | msgid "No device finded"
199 | msgstr "沒有找到設備"
200 |
201 | #: inc/preimport.class.php:1030
202 | msgid "Reset the import"
203 | msgstr "重設匯入狀態"
204 |
--------------------------------------------------------------------------------
/locales/es_MX.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | # Translators:
7 | # Carlos Moreno Rodríguez , 2022
8 | #
9 | #, fuzzy
10 | msgid ""
11 | msgstr ""
12 | "Project-Id-Version: $soft\n"
13 | "Report-Msgid-Bugs-To: \n"
14 | "POT-Creation-Date: 2025-09-11 11:33+0000\n"
15 | "PO-Revision-Date: 2020-11-02 16:09+0000\n"
16 | "Last-Translator: Carlos Moreno Rodríguez , 2022\n"
17 | "Language-Team: Spanish (Mexico) (https://app.transifex.com/infotelGLPI/teams/12364/es_MX/)\n"
18 | "MIME-Version: 1.0\n"
19 | "Content-Type: text/plain; charset=UTF-8\n"
20 | "Content-Transfer-Encoding: 8bit\n"
21 | "Language: es_MX\n"
22 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
23 |
24 | #: setup.php:92 front/massiveaction.php:44 src/Menu.php:53
25 | #: src/Preimport.php:66 src/Profile.php:96
26 | msgid "Suppliers import"
27 | msgid_plural "Suppliers imports"
28 | msgstr[0] "Garantía de activos"
29 | msgstr[1] "Garantías de activos"
30 | msgstr[2] "Garantías de activos"
31 |
32 | #: front/config.php:41
33 | msgid "Please activate the plugin"
34 | msgstr "Activar complemento"
35 |
36 | #: src/Config.php:229 src/Config.php:360
37 | msgid "Manufacturer web address"
38 | msgstr "URL del fabricante"
39 |
40 | #: src/Config.php:238 src/Config.php:382
41 | msgid "Default supplier attached"
42 | msgstr "Proveedor predeterminado"
43 |
44 | #: src/Config.php:246 src/Preimport.php:704
45 | msgid "New warranty attached"
46 | msgstr "Garantía"
47 |
48 | #: src/Config.php:255 src/Config.php:427
49 | msgid "Auto add of document"
50 | msgstr "Auto agregar documento"
51 |
52 | #: src/Config.php:272 src/Config.php:442
53 | msgid "Add a comment line"
54 | msgstr "Agregar línea de comentario"
55 |
56 | #: src/Config.php:368
57 | msgid "Access token API address"
58 | msgstr "URL de la API de token de acceso"
59 |
60 | #: src/Config.php:374
61 | msgid "Warranty API address"
62 | msgstr "URL de la API de Garantía"
63 |
64 | #: src/Config.php:393
65 | msgid "New warranty affected by default (Replace if 0)"
66 | msgstr "Nueva garantía predeterminada (Si es 0 reemplazar)"
67 |
68 | #: src/Config.php:407 src/Config.php:420
69 | msgid "Client id"
70 | msgstr "Id. del Cliente"
71 |
72 | #: src/Config.php:413
73 | msgid "Client secret"
74 | msgstr "Clave Cliente"
75 |
76 | #: src/Config.php:434
77 | msgid "Section for document records"
78 | msgstr "Sección para guardados de documentos"
79 |
80 | #: src/Config.php:647 src/Preimport.php:409 src/Preimport.php:422
81 | msgid "Manufacturer information"
82 | msgstr "Información del fabricante"
83 |
84 | #: src/Config.php:654 src/Config.php:763
85 | msgctxt "button"
86 | msgid "Retrieve warranty from manufacturer"
87 | msgstr "Recuperar la garantía del fabricante"
88 |
89 | #: src/Config.php:757
90 | msgid ""
91 | "You did not import the warranty for this item. Do you want to get it back?"
92 | msgstr "No se importó la garantía de este elemento. ¿Deseas recuperarlo?"
93 |
94 | #: src/Import.php:54
95 | msgid "Warranty import (Dell, HP)"
96 | msgstr "Importación de garantía (Dell, HP)"
97 |
98 | #: src/Import.php:184 src/Postimport.php:775
99 | msgid "Import OK"
100 | msgstr "Importación correcta"
101 |
102 | #: src/Import.php:187 src/Postimport.php:881
103 | msgid "Import failed"
104 | msgstr "Importación fallida"
105 |
106 | #: src/Lenovo.php:59
107 | msgid "Model number"
108 | msgstr "Número de modelo"
109 |
110 | #: src/Postimport.php:86
111 | msgid "Curl PHP package not installed"
112 | msgstr "No está instalado el paquete Curl PHP"
113 |
114 | #: src/Postimport.php:247
115 | msgid "Post import"
116 | msgstr "Publicar importación"
117 |
118 | #: src/Postimport.php:255
119 | msgid "Result"
120 | msgstr "Resultado"
121 |
122 | #: src/Postimport.php:256
123 | msgid "Details"
124 | msgstr "Detalles"
125 |
126 | #: src/Postimport.php:288
127 | #, php-format
128 | msgid "Total number of devices imported %s"
129 | msgstr "Dispositivos importados %s"
130 |
131 | #: src/Postimport.php:757 src/Postimport.php:764
132 | msgid "Imported from web site"
133 | msgstr "Importado del sitio web"
134 |
135 | #: src/Postimport.php:758 src/Postimport.php:765
136 | msgid "With the manufacturersimports plugin"
137 | msgstr "Con el complemento Garantías de activos"
138 |
139 | #: src/Postimport.php:904
140 | msgid "Connection failed/data download from manufacturer web site"
141 | msgstr "Conexión fallida en la descarga de datos del sitio web del fabricante"
142 |
143 | #: src/Preimport.php:380
144 | msgid "The choosen supplier is not recursive"
145 | msgstr "El proveedor elegido no es recursivo"
146 |
147 | #: src/Preimport.php:429
148 | msgid "Not yet imported"
149 | msgstr "No importado aún"
150 |
151 | #: src/Preimport.php:432
152 | msgid "Problem during the importation"
153 | msgstr "Problema durante la importación"
154 |
155 | #: src/Preimport.php:440
156 | msgid "Already imported"
157 | msgstr "Importado"
158 |
159 | #: src/Preimport.php:478
160 | msgid "Choose inventory type and manufacturer"
161 | msgstr "Elegir tipo de elemento y fabricante"
162 |
163 | #: src/Preimport.php:522
164 | msgid "Devices not imported"
165 | msgstr "Dispositivos no importados"
166 |
167 | #: src/Preimport.php:523
168 | msgid "Devices already imported"
169 | msgstr "Dispositivos ya importados"
170 |
171 | #: src/Preimport.php:529 src/Preimport.php:533
172 | msgid "No manufacturer available. Please configure at least one manufacturer"
173 | msgstr "Fabricante no encontrado. Configurar al menos un fabricante"
174 |
175 | #: src/Preimport.php:691
176 | msgid "Model Number"
177 | msgstr "Número de modelo"
178 |
179 | #: src/Preimport.php:699
180 | msgid "Supplier attached"
181 | msgstr "Proveedor adjunto"
182 |
183 | #: src/Preimport.php:761
184 | #, php-format
185 | msgid "Total number of devices to import %s"
186 | msgstr "Dispositivos a importar %s"
187 |
188 | #: src/Preimport.php:817
189 | msgid "No device finded"
190 | msgstr "Ningún dispositivo encontrado"
191 |
192 | #: src/Preimport.php:1111
193 | msgid "Reset the import"
194 | msgstr "Restablecer importación"
195 |
--------------------------------------------------------------------------------
/locales/it_IT.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | # Translators:
7 | # Davide , 2025
8 | #
9 | #, fuzzy
10 | msgid ""
11 | msgstr ""
12 | "Project-Id-Version: $soft\n"
13 | "Report-Msgid-Bugs-To: \n"
14 | "POT-Creation-Date: 2025-09-11 11:33+0000\n"
15 | "PO-Revision-Date: 2020-11-02 16:09+0000\n"
16 | "Last-Translator: Davide , 2025\n"
17 | "Language-Team: Italian (Italy) (https://app.transifex.com/infotelGLPI/teams/12364/it_IT/)\n"
18 | "MIME-Version: 1.0\n"
19 | "Content-Type: text/plain; charset=UTF-8\n"
20 | "Content-Transfer-Encoding: 8bit\n"
21 | "Language: it_IT\n"
22 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
23 |
24 | #: setup.php:92 front/massiveaction.php:44 src/Menu.php:53
25 | #: src/Preimport.php:66 src/Profile.php:96
26 | msgid "Suppliers import"
27 | msgid_plural "Suppliers imports"
28 | msgstr[0] "Importa fornitore"
29 | msgstr[1] "Importa fornitori"
30 | msgstr[2] "Importa fornitori"
31 |
32 | #: front/config.php:41
33 | msgid "Please activate the plugin"
34 | msgstr "Attivare il plugin"
35 |
36 | #: src/Config.php:229 src/Config.php:360
37 | msgid "Manufacturer web address"
38 | msgstr "Indirizzo web del produttore"
39 |
40 | #: src/Config.php:238 src/Config.php:382
41 | msgid "Default supplier attached"
42 | msgstr "Fornitore predefinito collegato"
43 |
44 | #: src/Config.php:246 src/Preimport.php:704
45 | msgid "New warranty attached"
46 | msgstr "Nuova garanzia collegata"
47 |
48 | #: src/Config.php:255 src/Config.php:427
49 | msgid "Auto add of document"
50 | msgstr "Aggiunta automatica di documenti"
51 |
52 | #: src/Config.php:272 src/Config.php:442
53 | msgid "Add a comment line"
54 | msgstr "Aggiungi una linea di commento"
55 |
56 | #: src/Config.php:368
57 | msgid "Access token API address"
58 | msgstr "Token di accesso API"
59 |
60 | #: src/Config.php:374
61 | msgid "Warranty API address"
62 | msgstr "Indirizzo API della garanzia"
63 |
64 | #: src/Config.php:393
65 | msgid "New warranty affected by default (Replace if 0)"
66 | msgstr "Nuova garanzia interessata dal default (Sostituire se 0)"
67 |
68 | #: src/Config.php:407 src/Config.php:420
69 | msgid "Client id"
70 | msgstr "Client Id"
71 |
72 | #: src/Config.php:413
73 | msgid "Client secret"
74 | msgstr "Client secret"
75 |
76 | #: src/Config.php:434
77 | msgid "Section for document records"
78 | msgstr "Sezione per i documenti archiviati"
79 |
80 | #: src/Config.php:647 src/Preimport.php:409 src/Preimport.php:422
81 | msgid "Manufacturer information"
82 | msgstr "Informazioni sul produttore"
83 |
84 | #: src/Config.php:654 src/Config.php:763
85 | msgctxt "button"
86 | msgid "Retrieve warranty from manufacturer"
87 | msgstr "Recuperare la garanzia dal produttore"
88 |
89 | #: src/Config.php:757
90 | msgid ""
91 | "You did not import the warranty for this item. Do you want to get it back?"
92 | msgstr ""
93 | "Non avete importato la garanzia per questo articolo. Volete recuperarlo?"
94 |
95 | #: src/Import.php:54
96 | msgid "Warranty import (Dell, HP)"
97 | msgstr "Importazione della garanzia (Dell, HP)"
98 |
99 | #: src/Import.php:184 src/Postimport.php:775
100 | msgid "Import OK"
101 | msgstr "Importazione avvenuta con successo"
102 |
103 | #: src/Import.php:187 src/Postimport.php:881
104 | msgid "Import failed"
105 | msgstr "Importazione fallita"
106 |
107 | #: src/Lenovo.php:59
108 | msgid "Model number"
109 | msgstr "Modello"
110 |
111 | #: src/Postimport.php:86
112 | msgid "Curl PHP package not installed"
113 | msgstr "Pacchetto PHP-curl non installato"
114 |
115 | #: src/Postimport.php:247
116 | msgid "Post import"
117 | msgstr "Post importazione"
118 |
119 | #: src/Postimport.php:255
120 | msgid "Result"
121 | msgstr "Risultato"
122 |
123 | #: src/Postimport.php:256
124 | msgid "Details"
125 | msgstr "Dettagli"
126 |
127 | #: src/Postimport.php:288
128 | #, php-format
129 | msgid "Total number of devices imported %s"
130 | msgstr "Numero totale di apparati importati: %s"
131 |
132 | #: src/Postimport.php:757 src/Postimport.php:764
133 | msgid "Imported from web site"
134 | msgstr "Importato dal sito web"
135 |
136 | #: src/Postimport.php:758 src/Postimport.php:765
137 | msgid "With the manufacturersimports plugin"
138 | msgstr "Con il plugin manufacturersimports"
139 |
140 | #: src/Postimport.php:904
141 | msgid "Connection failed/data download from manufacturer web site"
142 | msgstr "Connessione fallita/scarico dati dal sito web del produttore"
143 |
144 | #: src/Preimport.php:380
145 | msgid "The choosen supplier is not recursive"
146 | msgstr "Il fornitore scelto non è ricorsivo"
147 |
148 | #: src/Preimport.php:429
149 | msgid "Not yet imported"
150 | msgstr "Non ancora importato"
151 |
152 | #: src/Preimport.php:432
153 | msgid "Problem during the importation"
154 | msgstr "Problema durante l'importazione"
155 |
156 | #: src/Preimport.php:440
157 | msgid "Already imported"
158 | msgstr "Già importato"
159 |
160 | #: src/Preimport.php:478
161 | msgid "Choose inventory type and manufacturer"
162 | msgstr "Scegliere il tipo di inventario e il produttore"
163 |
164 | #: src/Preimport.php:522
165 | msgid "Devices not imported"
166 | msgstr " Apparato non importato"
167 |
168 | #: src/Preimport.php:523
169 | msgid "Devices already imported"
170 | msgstr "Apparato gìà importato"
171 |
172 | #: src/Preimport.php:529 src/Preimport.php:533
173 | msgid "No manufacturer available. Please configure at least one manufacturer"
174 | msgstr "Nessun produttore disponibile. Configurare almeno un produttore"
175 |
176 | #: src/Preimport.php:691
177 | msgid "Model Number"
178 | msgstr "Modello"
179 |
180 | #: src/Preimport.php:699
181 | msgid "Supplier attached"
182 | msgstr "Fornitore allegato"
183 |
184 | #: src/Preimport.php:761
185 | #, php-format
186 | msgid "Total number of devices to import %s"
187 | msgstr "Numero totale di dispositivi da importare %s"
188 |
189 | #: src/Preimport.php:817
190 | msgid "No device finded"
191 | msgstr "Nessun apparato trovato"
192 |
193 | #: src/Preimport.php:1111
194 | msgid "Reset the import"
195 | msgstr "Resettare l'importazione"
196 |
--------------------------------------------------------------------------------
/locales/pt_BR.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | # Translators:
7 | # Xavier CAILLAUD , 2020
8 | # Matheus Rafael, 2023
9 | #
10 | #, fuzzy
11 | msgid ""
12 | msgstr ""
13 | "Project-Id-Version: $soft\n"
14 | "Report-Msgid-Bugs-To: \n"
15 | "POT-Creation-Date: 2025-09-11 11:33+0000\n"
16 | "PO-Revision-Date: 2020-11-02 16:09+0000\n"
17 | "Last-Translator: Matheus Rafael, 2023\n"
18 | "Language-Team: Portuguese (Brazil) (https://app.transifex.com/infotelGLPI/teams/12364/pt_BR/)\n"
19 | "MIME-Version: 1.0\n"
20 | "Content-Type: text/plain; charset=UTF-8\n"
21 | "Content-Transfer-Encoding: 8bit\n"
22 | "Language: pt_BR\n"
23 | "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
24 |
25 | #: setup.php:92 front/massiveaction.php:44 src/Menu.php:53
26 | #: src/Preimport.php:66 src/Profile.php:96
27 | msgid "Suppliers import"
28 | msgid_plural "Suppliers imports"
29 | msgstr[0] "Importação de fornecedor"
30 | msgstr[1] "Importação de fornecedores"
31 | msgstr[2] "Importação de fornecedores"
32 |
33 | #: front/config.php:41
34 | msgid "Please activate the plugin"
35 | msgstr "Por favor, ative o plugin"
36 |
37 | #: src/Config.php:229 src/Config.php:360
38 | msgid "Manufacturer web address"
39 | msgstr "Endereço web do fabricante"
40 |
41 | #: src/Config.php:238 src/Config.php:382
42 | msgid "Default supplier attached"
43 | msgstr "Fornecedor padrão anexado"
44 |
45 | #: src/Config.php:246 src/Preimport.php:704
46 | msgid "New warranty attached"
47 | msgstr "Nova garantia anexada"
48 |
49 | #: src/Config.php:255 src/Config.php:427
50 | msgid "Auto add of document"
51 | msgstr "Adição automática de documento"
52 |
53 | #: src/Config.php:272 src/Config.php:442
54 | msgid "Add a comment line"
55 | msgstr "Adicionar uma linha de comentário"
56 |
57 | #: src/Config.php:368
58 | msgid "Access token API address"
59 | msgstr "Endereço da API do token de acesso"
60 |
61 | #: src/Config.php:374
62 | msgid "Warranty API address"
63 | msgstr "Endereço da API de garantia"
64 |
65 | #: src/Config.php:393
66 | msgid "New warranty affected by default (Replace if 0)"
67 | msgstr "Nova garantia afetada por padrão (substituir se 0)"
68 |
69 | #: src/Config.php:407 src/Config.php:420
70 | msgid "Client id"
71 | msgstr "ID do Cliente"
72 |
73 | #: src/Config.php:413
74 | msgid "Client secret"
75 | msgstr "Secret do Cliente"
76 |
77 | #: src/Config.php:434
78 | msgid "Section for document records"
79 | msgstr "Seção para armazenamento de documentos"
80 |
81 | #: src/Config.php:647 src/Preimport.php:409 src/Preimport.php:422
82 | msgid "Manufacturer information"
83 | msgstr "Informações do fabricante"
84 |
85 | #: src/Config.php:654 src/Config.php:763
86 | msgctxt "button"
87 | msgid "Retrieve warranty from manufacturer"
88 | msgstr "Recupere a garantia do fabricante"
89 |
90 | #: src/Config.php:757
91 | msgid ""
92 | "You did not import the warranty for this item. Do you want to get it back?"
93 | msgstr "Você não importou a garantia para este item. Você quer recuperá-lo?"
94 |
95 | #: src/Import.php:54
96 | msgid "Warranty import (Dell, HP)"
97 | msgstr "Importação de garantia (Dell, HP)"
98 |
99 | #: src/Import.php:184 src/Postimport.php:775
100 | msgid "Import OK"
101 | msgstr "Importação OK"
102 |
103 | #: src/Import.php:187 src/Postimport.php:881
104 | msgid "Import failed"
105 | msgstr "Importação falhou"
106 |
107 | #: src/Lenovo.php:59
108 | msgid "Model number"
109 | msgstr "Número do modelo"
110 |
111 | #: src/Postimport.php:86
112 | msgid "Curl PHP package not installed"
113 | msgstr "Pacote Curl PHP não está instalado"
114 |
115 | #: src/Postimport.php:247
116 | msgid "Post import"
117 | msgstr "Pós-importação"
118 |
119 | #: src/Postimport.php:255
120 | msgid "Result"
121 | msgstr "Resultado"
122 |
123 | #: src/Postimport.php:256
124 | msgid "Details"
125 | msgstr "Detalhes"
126 |
127 | #: src/Postimport.php:288
128 | #, php-format
129 | msgid "Total number of devices imported %s"
130 | msgstr "Número total de dispositivos importados %s"
131 |
132 | #: src/Postimport.php:757 src/Postimport.php:764
133 | msgid "Imported from web site"
134 | msgstr "Importado de site"
135 |
136 | #: src/Postimport.php:758 src/Postimport.php:765
137 | msgid "With the manufacturersimports plugin"
138 | msgstr "Com o plugin manufacturersimports"
139 |
140 | #: src/Postimport.php:904
141 | msgid "Connection failed/data download from manufacturer web site"
142 | msgstr "Falha de conexão/download de dados do site do fabricante"
143 |
144 | #: src/Preimport.php:380
145 | msgid "The choosen supplier is not recursive"
146 | msgstr "O fornecedor escolhido não é recursivo"
147 |
148 | #: src/Preimport.php:429
149 | msgid "Not yet imported"
150 | msgstr "Não importado ainda"
151 |
152 | #: src/Preimport.php:432
153 | msgid "Problem during the importation"
154 | msgstr "Problema enquanto na importação"
155 |
156 | #: src/Preimport.php:440
157 | msgid "Already imported"
158 | msgstr "Já importado"
159 |
160 | #: src/Preimport.php:478
161 | msgid "Choose inventory type and manufacturer"
162 | msgstr "Escolha tipo e fabricante do inventário"
163 |
164 | #: src/Preimport.php:522
165 | msgid "Devices not imported"
166 | msgstr "Dispositivos não importados"
167 |
168 | #: src/Preimport.php:523
169 | msgid "Devices already imported"
170 | msgstr "Dispositivos já importados"
171 |
172 | #: src/Preimport.php:529 src/Preimport.php:533
173 | msgid "No manufacturer available. Please configure at least one manufacturer"
174 | msgstr ""
175 | "Nenhum fabricante disponível. Por favor, configure pelo menos um fabricante"
176 |
177 | #: src/Preimport.php:691
178 | msgid "Model Number"
179 | msgstr "Número do modelo"
180 |
181 | #: src/Preimport.php:699
182 | msgid "Supplier attached"
183 | msgstr "Fornecedor anexado"
184 |
185 | #: src/Preimport.php:761
186 | #, php-format
187 | msgid "Total number of devices to import %s"
188 | msgstr "Número total de dispositivos para importar %s"
189 |
190 | #: src/Preimport.php:817
191 | msgid "No device finded"
192 | msgstr "Nenhum dispositivo encontrado"
193 |
194 | #: src/Preimport.php:1111
195 | msgid "Reset the import"
196 | msgstr "Reiniciar a importação"
197 |
--------------------------------------------------------------------------------
/locales/es_EC.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | # Translators:
7 | # Soporte Infraestructura Standby, 2023
8 | #
9 | #, fuzzy
10 | msgid ""
11 | msgstr ""
12 | "Project-Id-Version: $soft\n"
13 | "Report-Msgid-Bugs-To: \n"
14 | "POT-Creation-Date: 2025-09-11 11:33+0000\n"
15 | "PO-Revision-Date: 2020-11-02 16:09+0000\n"
16 | "Last-Translator: Soporte Infraestructura Standby, 2023\n"
17 | "Language-Team: Spanish (Ecuador) (https://app.transifex.com/infotelGLPI/teams/12364/es_EC/)\n"
18 | "MIME-Version: 1.0\n"
19 | "Content-Type: text/plain; charset=UTF-8\n"
20 | "Content-Transfer-Encoding: 8bit\n"
21 | "Language: es_EC\n"
22 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
23 |
24 | #: setup.php:92 front/massiveaction.php:44 src/Menu.php:53
25 | #: src/Preimport.php:66 src/Profile.php:96
26 | msgid "Suppliers import"
27 | msgid_plural "Suppliers imports"
28 | msgstr[0] "Proveedores importaciones"
29 | msgstr[1] "Proveedores importaciones"
30 | msgstr[2] "Proveedores importaciones"
31 |
32 | #: front/config.php:41
33 | msgid "Please activate the plugin"
34 | msgstr "Por favor, active el plugin"
35 |
36 | #: src/Config.php:229 src/Config.php:360
37 | msgid "Manufacturer web address"
38 | msgstr "Dirección web del fabricante"
39 |
40 | #: src/Config.php:238 src/Config.php:382
41 | msgid "Default supplier attached"
42 | msgstr "Proveedor por defecto adjunto"
43 |
44 | #: src/Config.php:246 src/Preimport.php:704
45 | msgid "New warranty attached"
46 | msgstr "Nueva garantía adjuntada"
47 |
48 | #: src/Config.php:255 src/Config.php:427
49 | msgid "Auto add of document"
50 | msgstr "Adición automática de documentos"
51 |
52 | #: src/Config.php:272 src/Config.php:442
53 | msgid "Add a comment line"
54 | msgstr "Agregar una línea de comentario"
55 |
56 | #: src/Config.php:368
57 | msgid "Access token API address"
58 | msgstr "Token de acceso Dirección API"
59 |
60 | #: src/Config.php:374
61 | msgid "Warranty API address"
62 | msgstr "Dirección API de garantía"
63 |
64 | #: src/Config.php:393
65 | msgid "New warranty affected by default (Replace if 0)"
66 | msgstr "Nueva garantía afectada por defecto (Sustituir si 0)"
67 |
68 | #: src/Config.php:407 src/Config.php:420
69 | msgid "Client id"
70 | msgstr "ID de cliente"
71 |
72 | #: src/Config.php:413
73 | msgid "Client secret"
74 | msgstr "Secreto de cliente"
75 |
76 | #: src/Config.php:434
77 | msgid "Section for document records"
78 | msgstr "Sección de registros de documentos"
79 |
80 | #: src/Config.php:647 src/Preimport.php:409 src/Preimport.php:422
81 | msgid "Manufacturer information"
82 | msgstr "Información del fabricante"
83 |
84 | #: src/Config.php:654 src/Config.php:763
85 | msgctxt "button"
86 | msgid "Retrieve warranty from manufacturer"
87 | msgstr "Recuperar la garantía del fabricante"
88 |
89 | #: src/Config.php:757
90 | msgid ""
91 | "You did not import the warranty for this item. Do you want to get it back?"
92 | msgstr "No ha importado la garantía de este artículo. Quieres recuperarlo?"
93 |
94 | #: src/Import.php:54
95 | msgid "Warranty import (Dell, HP)"
96 | msgstr "Importe de la garantía (Dell, HP)"
97 |
98 | #: src/Import.php:184 src/Postimport.php:775
99 | msgid "Import OK"
100 | msgstr "Importar OK"
101 |
102 | #: src/Import.php:187 src/Postimport.php:881
103 | msgid "Import failed"
104 | msgstr "Error de importación"
105 |
106 | #: src/Lenovo.php:59
107 | msgid "Model number"
108 | msgstr "Número de modelo"
109 |
110 | #: src/Postimport.php:86
111 | msgid "Curl PHP package not installed"
112 | msgstr "Paquete Curl PHP no instalado"
113 |
114 | #: src/Postimport.php:247
115 | msgid "Post import"
116 | msgstr "Importación de puestos"
117 |
118 | #: src/Postimport.php:255
119 | msgid "Result"
120 | msgstr "Resultado"
121 |
122 | #: src/Postimport.php:256
123 | msgid "Details"
124 | msgstr "Detalles"
125 |
126 | #: src/Postimport.php:288
127 | #, php-format
128 | msgid "Total number of devices imported %s"
129 | msgstr "Número total de dispositivos importados 1%s"
130 |
131 | #: src/Postimport.php:757 src/Postimport.php:764
132 | msgid "Imported from web site"
133 | msgstr "Importado desde el sitio web"
134 |
135 | #: src/Postimport.php:758 src/Postimport.php:765
136 | msgid "With the manufacturersimports plugin"
137 | msgstr "Con el plugin simports del fabricante"
138 |
139 | #: src/Postimport.php:904
140 | msgid "Connection failed/data download from manufacturer web site"
141 | msgstr "Fallo de conexión/descarga de datos del sitio web del fabricante"
142 |
143 | #: src/Preimport.php:380
144 | msgid "The choosen supplier is not recursive"
145 | msgstr "El proveedor elegido no es recursivo"
146 |
147 | #: src/Preimport.php:429
148 | msgid "Not yet imported"
149 | msgstr "Aún no importado"
150 |
151 | #: src/Preimport.php:432
152 | msgid "Problem during the importation"
153 | msgstr "Problema durante la importación"
154 |
155 | #: src/Preimport.php:440
156 | msgid "Already imported"
157 | msgstr "Ya importado"
158 |
159 | #: src/Preimport.php:478
160 | msgid "Choose inventory type and manufacturer"
161 | msgstr "Elija el tipo de inventario y el fabricante"
162 |
163 | #: src/Preimport.php:522
164 | msgid "Devices not imported"
165 | msgstr "Dispositivos no importados"
166 |
167 | #: src/Preimport.php:523
168 | msgid "Devices already imported"
169 | msgstr "Dispositivos ya importados"
170 |
171 | #: src/Preimport.php:529 src/Preimport.php:533
172 | msgid "No manufacturer available. Please configure at least one manufacturer"
173 | msgstr ""
174 | "No hay ningún fabricante disponible. Por favor, configure al menos un "
175 | "fabricante"
176 |
177 | #: src/Preimport.php:691
178 | msgid "Model Number"
179 | msgstr "Número de modelo"
180 |
181 | #: src/Preimport.php:699
182 | msgid "Supplier attached"
183 | msgstr "Proveedor adjunto"
184 |
185 | #: src/Preimport.php:761
186 | #, php-format
187 | msgid "Total number of devices to import %s"
188 | msgstr "Número total de dispositivos a importar 1%s"
189 |
190 | #: src/Preimport.php:817
191 | msgid "No device finded"
192 | msgstr "No se ha encontrado ningún dispositivo"
193 |
194 | #: src/Preimport.php:1111
195 | msgid "Reset the import"
196 | msgstr "Restablecer la importación"
197 |
--------------------------------------------------------------------------------
/locales/tr_TR.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR ManufacturersImports Development Team
3 | # This file is distributed under the same license as the ManufacturersImports - Accounts plugin package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | # Translators:
7 | # Xavier CAILLAUD , 2020
8 | # Kaya Zeren , 2025
9 | #
10 | #, fuzzy
11 | msgid ""
12 | msgstr ""
13 | "Project-Id-Version: ManufacturersImports - Accounts plugin\n"
14 | "Report-Msgid-Bugs-To: \n"
15 | "POT-Creation-Date: 2025-10-02 11:44+0000\n"
16 | "PO-Revision-Date: 2020-11-02 16:09+0000\n"
17 | "Last-Translator: Kaya Zeren , 2025\n"
18 | "Language-Team: Turkish (Turkey) (https://app.transifex.com/infotelGLPI/teams/12364/tr_TR/)\n"
19 | "MIME-Version: 1.0\n"
20 | "Content-Type: text/plain; charset=UTF-8\n"
21 | "Content-Transfer-Encoding: 8bit\n"
22 | "Language: tr_TR\n"
23 | "Plural-Forms: nplurals=2; plural=(n > 1);\n"
24 |
25 | #: setup.php:92 front/massiveaction.php:44 src/PreImport.php:66
26 | #: src/Profile.php:97 src/Menu.php:53
27 | msgid "Suppliers import"
28 | msgid_plural "Suppliers imports"
29 | msgstr[0] "Sağlayıcı içe aktarma"
30 | msgstr[1] "Sağlayıcıları içe aktarma"
31 |
32 | #: front/config.php:41
33 | msgid "Please activate the plugin"
34 | msgstr "Lütfen eklentiyi etkinleştirin"
35 |
36 | #: src/PreImport.php:365
37 | msgid "The choosen supplier is not recursive"
38 | msgstr "Seçilmiş sağlayıcı yinelenen türde değil"
39 |
40 | #: src/PreImport.php:394 src/PreImport.php:407 src/Config.php:647
41 | msgid "Manufacturer information"
42 | msgstr "Üretici bilgileri"
43 |
44 | #: src/PreImport.php:414
45 | msgid "Not yet imported"
46 | msgstr "Henüz içe aktarılmamış"
47 |
48 | #: src/PreImport.php:417
49 | msgid "Problem during the importation"
50 | msgstr "İçe aktarma sırasında sorun çıktı"
51 |
52 | #: src/PreImport.php:425
53 | msgid "Already imported"
54 | msgstr "Zaten içe aktarılmış"
55 |
56 | #: src/PreImport.php:461
57 | msgid "Choose inventory type and manufacturer"
58 | msgstr "Envanter türü ve üreticiyi seçin"
59 |
60 | #: src/PreImport.php:505
61 | msgid "Devices not imported"
62 | msgstr "Aygıtlar içe aktarılmadı"
63 |
64 | #: src/PreImport.php:506
65 | msgid "Devices already imported"
66 | msgstr "Aygıtlar zaten içe aktarılmış"
67 |
68 | #: src/PreImport.php:512 src/PreImport.php:516
69 | msgid "No manufacturer available. Please configure at least one manufacturer"
70 | msgstr ""
71 | "Kullanılabilecek bir üretici bulunamadı. Lütfen en az bir üretici ekleyin"
72 |
73 | #: src/PreImport.php:646
74 | msgid "Model Number"
75 | msgstr "Model numarası"
76 |
77 | #: src/PreImport.php:654
78 | msgid "Supplier attached"
79 | msgstr "Atanmış sağlayıcı"
80 |
81 | #: src/PreImport.php:659 src/Config.php:246
82 | msgid "New warranty attached"
83 | msgstr "Yeni garanti eklendi"
84 |
85 | #: src/PreImport.php:716
86 | #, php-format
87 | msgid "Total number of devices to import %s"
88 | msgstr "İçe aktarılacak toplam aygıt sayısı %s"
89 |
90 | #: src/PreImport.php:772
91 | msgid "No device finded"
92 | msgstr "Herhangi bir aygıt bulunamadı"
93 |
94 | #: src/PreImport.php:1058
95 | msgid "Reset the import"
96 | msgstr "İçe aktarmayı sıfırla"
97 |
98 | #: src/Manufacturer.php:118
99 | msgid "Automatic"
100 | msgstr "Otomatik"
101 |
102 | #: src/Config.php:229 src/Config.php:360
103 | msgid "Manufacturer web address"
104 | msgstr "Üretici web sitesi adresi"
105 |
106 | #: src/Config.php:238 src/Config.php:382
107 | msgid "Default supplier attached"
108 | msgstr "Atanmış varsayılan sağlayıcı "
109 |
110 | #: src/Config.php:255 src/Config.php:427
111 | msgid "Auto add of document"
112 | msgstr "Otomatik belge ekleme"
113 |
114 | #: src/Config.php:272 src/Config.php:442
115 | msgid "Add a comment line"
116 | msgstr "Açıklama satırı ekle"
117 |
118 | #: src/Config.php:368
119 | msgid "Access token API address"
120 | msgstr "Erişim kodu API adresi"
121 |
122 | #: src/Config.php:374
123 | msgid "Warranty API address"
124 | msgstr "Garanti API adresi"
125 |
126 | #: src/Config.php:393
127 | msgid "New warranty affected by default (Replace if 0)"
128 | msgstr "Varsayılan olarak yeni garanti kullanılsın (0 ise değiştirin)"
129 |
130 | #: src/Config.php:407 src/Config.php:420
131 | msgid "Client id"
132 | msgstr "Müşteri kimliği"
133 |
134 | #: src/Config.php:413
135 | msgid "Client secret"
136 | msgstr "Müşteri parolası"
137 |
138 | #: src/Config.php:434
139 | msgid "Section for document records"
140 | msgstr "Belge kayıtları bölümü"
141 |
142 | #: src/Config.php:654 src/Config.php:763
143 | msgctxt "button"
144 | msgid "Retrieve warranty from manufacturer"
145 | msgstr "Üreticiden garanti bilgilerini al"
146 |
147 | #: src/Config.php:757
148 | msgid ""
149 | "You did not import the warranty for this item. Do you want to get it back?"
150 | msgstr "Bu ögenin garantisini içe aktarmadınız. Geri almak ister misiniz?"
151 |
152 | #: src/Lenovo.php:59
153 | msgid "Model number"
154 | msgstr "Model numarası"
155 |
156 | #: src/Import.php:54
157 | msgid "Warranty import (Dell, HP)"
158 | msgstr "Garanti içe aktarma (Dell, HP)"
159 |
160 | #: src/Import.php:184 src/PostImport.php:779
161 | msgid "Import OK"
162 | msgstr "İçe aktarıldı"
163 |
164 | #: src/Import.php:187 src/PostImport.php:885
165 | msgid "Import failed"
166 | msgstr "İçe aktarılamadı"
167 |
168 | #: src/PostImport.php:88
169 | msgid "Curl PHP package not installed"
170 | msgstr "Curl PHP paketi yüklü değil"
171 |
172 | #: src/PostImport.php:249
173 | msgid "Post import"
174 | msgstr "İçe aktarma sonrası"
175 |
176 | #: src/PostImport.php:257
177 | msgid "Result"
178 | msgstr "Sonuçlar"
179 |
180 | #: src/PostImport.php:258
181 | msgid "Details"
182 | msgstr "Ayrıntılar"
183 |
184 | #: src/PostImport.php:290
185 | #, php-format
186 | msgid "Total number of devices imported %s"
187 | msgstr "Toplam %s aygıt içe aktarıldı"
188 |
189 | #: src/PostImport.php:759 src/PostImport.php:767
190 | msgid "Imported from web site"
191 | msgstr "Siteden içe aktarılan"
192 |
193 | #: src/PostImport.php:760 src/PostImport.php:768
194 | msgid "With the manufacturersimports plugin"
195 | msgstr "manufacturersimports eklentisi ile"
196 |
197 | #: src/PostImport.php:908
198 | msgid "Connection failed/data download from manufacturer web site"
199 | msgstr "Bağlantı kesildi / üreticinin sitesinden veri indirilemedi"
200 |
--------------------------------------------------------------------------------
/locales/fr_FR.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR ManufacturersImports Development Team
3 | # This file is distributed under the same license as the ManufacturersImports - Accounts plugin package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | # Translators:
7 | # Xavier CAILLAUD , 2025
8 | #
9 | #, fuzzy
10 | msgid ""
11 | msgstr ""
12 | "Project-Id-Version: ManufacturersImports - Accounts plugin\n"
13 | "Report-Msgid-Bugs-To: \n"
14 | "POT-Creation-Date: 2025-10-01 15:57+0000\n"
15 | "PO-Revision-Date: 2020-11-02 16:09+0000\n"
16 | "Last-Translator: Xavier CAILLAUD , 2025\n"
17 | "Language-Team: French (France) (https://app.transifex.com/infotelGLPI/teams/12364/fr_FR/)\n"
18 | "MIME-Version: 1.0\n"
19 | "Content-Type: text/plain; charset=UTF-8\n"
20 | "Content-Transfer-Encoding: 8bit\n"
21 | "Language: fr_FR\n"
22 | "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
23 |
24 | #: setup.php:92 front/massiveaction.php:44 src/Profile.php:97 src/Menu.php:53
25 | #: src/Preimport.php:66
26 | msgid "Suppliers import"
27 | msgid_plural "Suppliers imports"
28 | msgstr[0] "Import fabricants"
29 | msgstr[1] "Imports fabricants"
30 | msgstr[2] "Imports fabricants"
31 |
32 | #: front/config.php:41
33 | msgid "Please activate the plugin"
34 | msgstr "Merci d'activer le plugin"
35 |
36 | #: src/Manufacturer.php:118
37 | msgid "Automatic"
38 | msgstr "Automatique"
39 |
40 | #: src/Config.php:229 src/Config.php:360
41 | msgid "Manufacturer web address"
42 | msgstr "Url du fabricant"
43 |
44 | #: src/Config.php:238 src/Config.php:382
45 | msgid "Default supplier attached"
46 | msgstr "Fournisseur affecté par défaut"
47 |
48 | #: src/Config.php:246 src/Preimport.php:661
49 | msgid "New warranty attached"
50 | msgstr "Nouvelle garantie affectée"
51 |
52 | #: src/Config.php:255 src/Config.php:427
53 | msgid "Auto add of document"
54 | msgstr "Ajout automatique de document"
55 |
56 | #: src/Config.php:272 src/Config.php:442
57 | msgid "Add a comment line"
58 | msgstr "Ajout d'une ligne dans les commentaires"
59 |
60 | #: src/Config.php:368
61 | msgid "Access token API address"
62 | msgstr "Adresse API du token d’accès"
63 |
64 | #: src/Config.php:374
65 | msgid "Warranty API address"
66 | msgstr "Adresse API des garanties"
67 |
68 | #: src/Config.php:393
69 | msgid "New warranty affected by default (Replace if 0)"
70 | msgstr "Nouvelle garantie affectée par défaut (remplacée si différent de 0)"
71 |
72 | #: src/Config.php:407 src/Config.php:420
73 | msgid "Client id"
74 | msgstr "ID du client"
75 |
76 | #: src/Config.php:413
77 | msgid "Client secret"
78 | msgstr "Clé API secrète"
79 |
80 | #: src/Config.php:434
81 | msgid "Section for document records"
82 | msgstr "Rubrique pour l'enregistrement des documents"
83 |
84 | #: src/Config.php:647 src/Preimport.php:394 src/Preimport.php:407
85 | msgid "Manufacturer information"
86 | msgstr "Informations fabricant"
87 |
88 | #: src/Config.php:654 src/Config.php:763
89 | msgctxt "button"
90 | msgid "Retrieve warranty from manufacturer"
91 | msgstr "Récupérer la garantie du fabricant"
92 |
93 | #: src/Config.php:757
94 | msgid ""
95 | "You did not import the warranty for this item. Do you want to get it back?"
96 | msgstr ""
97 | "Vous n'avez pas importé la garantie pour cet objet. Voulez-vous la récupérer"
98 | " ?"
99 |
100 | #: src/Lenovo.php:59
101 | msgid "Model number"
102 | msgstr "Numéro de modèle"
103 |
104 | #: src/Postimport.php:88
105 | msgid "Curl PHP package not installed"
106 | msgstr "Le module Curl pour PHP n'est pas installé"
107 |
108 | #: src/Postimport.php:249
109 | msgid "Post import"
110 | msgstr "Post-Import"
111 |
112 | #: src/Postimport.php:257
113 | msgid "Result"
114 | msgstr "Résultat"
115 |
116 | #: src/Postimport.php:258
117 | msgid "Details"
118 | msgstr "Détails"
119 |
120 | #: src/Postimport.php:290
121 | #, php-format
122 | msgid "Total number of devices imported %s"
123 | msgstr "Nombre total de matériel importés %s"
124 |
125 | #: src/Postimport.php:759 src/Postimport.php:766
126 | msgid "Imported from web site"
127 | msgstr "Importé depuis le site de"
128 |
129 | #: src/Postimport.php:760 src/Postimport.php:767
130 | msgid "With the manufacturersimports plugin"
131 | msgstr "Avec le plugin manufacturersimports"
132 |
133 | #: src/Postimport.php:777 src/Import.php:184
134 | msgid "Import OK"
135 | msgstr "Import OK"
136 |
137 | #: src/Postimport.php:883 src/Import.php:187
138 | msgid "Import failed"
139 | msgstr "Import KO"
140 |
141 | #: src/Postimport.php:906
142 | msgid "Connection failed/data download from manufacturer web site"
143 | msgstr "Echec de connexion/récupération de données au site du fabricant"
144 |
145 | #: src/Preimport.php:365
146 | msgid "The choosen supplier is not recursive"
147 | msgstr "Le fournisseur choisi n'est pas récursif"
148 |
149 | #: src/Preimport.php:414
150 | msgid "Not yet imported"
151 | msgstr "Pas encore importé"
152 |
153 | #: src/Preimport.php:417
154 | msgid "Problem during the importation"
155 | msgstr "Problème lors de l'importation"
156 |
157 | #: src/Preimport.php:425
158 | msgid "Already imported"
159 | msgstr "Déjà importé"
160 |
161 | #: src/Preimport.php:463
162 | msgid "Choose inventory type and manufacturer"
163 | msgstr "Choix du type de matériel et du fabricant"
164 |
165 | #: src/Preimport.php:507
166 | msgid "Devices not imported"
167 | msgstr "Matériels non importés"
168 |
169 | #: src/Preimport.php:508
170 | msgid "Devices already imported"
171 | msgstr "Matériels déjà importés"
172 |
173 | #: src/Preimport.php:514 src/Preimport.php:518
174 | msgid "No manufacturer available. Please configure at least one manufacturer"
175 | msgstr "Aucun fabricant utilisable. Merci de configurer au moins un fabricant"
176 |
177 | #: src/Preimport.php:648
178 | msgid "Model Number"
179 | msgstr "Numéro de modèle"
180 |
181 | #: src/Preimport.php:656
182 | msgid "Supplier attached"
183 | msgstr "Fournisseur affecté"
184 |
185 | #: src/Preimport.php:718
186 | #, php-format
187 | msgid "Total number of devices to import %s"
188 | msgstr "Nombre total de matériel à importer %s"
189 |
190 | #: src/Preimport.php:774
191 | msgid "No device finded"
192 | msgstr "Aucun matériel trouvé"
193 |
194 | #: src/Preimport.php:1060
195 | msgid "Reset the import"
196 | msgstr "Réinitialiser l'import"
197 |
198 | #: src/Import.php:54
199 | msgid "Warranty import (Dell, HP)"
200 | msgstr "Import des garanties (Dell, HP)"
201 |
--------------------------------------------------------------------------------
/locales/en_GB.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | #
5 | # Translators:
6 | msgid ""
7 | msgstr ""
8 | "Project-Id-Version: GLPI Project - manufacturersimports plugin\n"
9 | "Report-Msgid-Bugs-To: \n"
10 | "POT-Creation-Date: 2020-07-20 11:48+0200\n"
11 | "PO-Revision-Date: 2020-01-17 15:32+0000\n"
12 | "Last-Translator: Kevin HAINRY \n"
13 | "Language-Team: English (United Kingdom) (http://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/language/en_GB/)\n"
14 | "MIME-Version: 1.0\n"
15 | "Content-Type: text/plain; charset=UTF-8\n"
16 | "Content-Transfer-Encoding: 8bit\n"
17 | "Language: en_GB\n"
18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19 |
20 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
21 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
22 | msgid "Suppliers import"
23 | msgid_plural "Suppliers imports"
24 | msgstr[0] "Suppliers import"
25 | msgstr[1] "Suppliers imports"
26 |
27 | #: hook.php:233 inc/lenovo.class.php:53
28 | msgid "Model number"
29 | msgstr "Model number"
30 |
31 | #: hook.php:261
32 | msgid "Add new material brand number"
33 | msgstr "Add new material brand number"
34 |
35 | #: setup.php:97 setup.php:102 setup.php:107
36 | msgid "Incompatible PHP Installation. Requires module"
37 | msgstr "Incompatible PHP Installation. Requires module"
38 |
39 | #: front/config.php:42
40 | msgid "Please activate the plugin"
41 | msgstr "Please activate the plugin"
42 |
43 | #: inc/config.class.php:208 inc/config.class.php:335
44 | msgid "Manufacturer web address"
45 | msgstr "Manufacturer web address"
46 |
47 | #: inc/config.class.php:217 inc/config.class.php:357
48 | msgid "Default supplier attached"
49 | msgstr "Default supplier attached"
50 |
51 | #: inc/config.class.php:225 inc/preimport.class.php:638
52 | msgid "New warranty attached"
53 | msgstr "New warranty attached"
54 |
55 | #: inc/config.class.php:234 inc/config.class.php:409
56 | msgid "Auto add of document"
57 | msgstr "Auto add of document"
58 |
59 | #: inc/config.class.php:251 inc/config.class.php:424
60 | msgid "Add a comment line"
61 | msgstr "Add a comment line"
62 |
63 | #: inc/config.class.php:343
64 | msgid "Access token API address"
65 | msgstr "Access token API address"
66 |
67 | #: inc/config.class.php:349
68 | msgid "Warranty API address"
69 | msgstr "Warranty API address"
70 |
71 | #: inc/config.class.php:367
72 | msgid "New warranty affected by default (Replace if 0)"
73 | msgstr "New warranty affected by default (Replace if 0)"
74 |
75 | #: inc/config.class.php:381
76 | msgid "Manufacturer API key"
77 | msgstr "Manufacturer API key"
78 |
79 | #: inc/config.class.php:388
80 | msgid "Manufacturer API Secret"
81 | msgstr "Manufacturer API Secret"
82 |
83 | #: inc/config.class.php:396
84 | msgid "Client id"
85 | msgstr "Client id"
86 |
87 | #: inc/config.class.php:402
88 | msgid "Client secret"
89 | msgstr "Client secret"
90 |
91 | #: inc/config.class.php:416
92 | msgid "Section for document records"
93 | msgstr "Section for document records"
94 |
95 | #: inc/config.class.php:556 inc/preimport.class.php:334
96 | msgid "Manufacturer information"
97 | msgstr "Manufacturer information"
98 |
99 | #: inc/dell.class.php:167
100 | msgid "Data recovery DELL for computer"
101 | msgstr "Data recovery DELL for computer"
102 |
103 | #: inc/import.class.php:119 inc/postimport.class.php:679
104 | msgid "Import OK"
105 | msgstr "Import OK"
106 |
107 | #: inc/import.class.php:122 inc/postimport.class.php:783
108 | msgid "Import failed"
109 | msgstr "Import failed"
110 |
111 | #: inc/model.class.php:137 inc/preimport.class.php:630
112 | msgid "Model Number"
113 | msgstr "Model Number"
114 |
115 | #: inc/postimport.class.php:73
116 | msgid "Curl PHP package not installed"
117 | msgstr "Curl PHP package not installed"
118 |
119 | #: inc/postimport.class.php:189
120 | msgid "Launching of imports"
121 | msgstr "Launching of imports"
122 |
123 | #: inc/postimport.class.php:192
124 | msgid "Post import"
125 | msgstr "Post import"
126 |
127 | #: inc/postimport.class.php:200
128 | msgid "Result"
129 | msgstr "Result"
130 |
131 | #: inc/postimport.class.php:201
132 | msgid "Details"
133 | msgstr "Details"
134 |
135 | #: inc/postimport.class.php:219
136 | msgid "Import in progress"
137 | msgstr "Import in progress"
138 |
139 | #: inc/postimport.class.php:227
140 | #, php-format
141 | msgid "Total number of devices imported %s"
142 | msgstr "Total number of devices imported %s"
143 |
144 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
145 | msgid "Imported from web site"
146 | msgstr "Imported from web site"
147 |
148 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
149 | msgid "With the manufacturersimports plugin"
150 | msgstr "With the manufacturersimports plugin"
151 |
152 | #: inc/postimport.class.php:807
153 | msgid "Connection failed/data download from manufacturer web site"
154 | msgstr "Connection failed/data download from manufacturer web site"
155 |
156 | #: inc/preimport.class.php:306
157 | msgid "The choosen supplier is not recursive"
158 | msgstr "The choosen supplier is not recursive"
159 |
160 | #: inc/preimport.class.php:346
161 | msgid "Not yet imported"
162 | msgstr "Not yet imported"
163 |
164 | #: inc/preimport.class.php:349
165 | msgid "Problem during the importation"
166 | msgstr "Problem during the importation"
167 |
168 | #: inc/preimport.class.php:357
169 | msgid "Already imported"
170 | msgstr "Already imported"
171 |
172 | #: inc/preimport.class.php:395
173 | msgid "Choose inventory type and manufacturer"
174 | msgstr "Choose inventory type and manufacturer"
175 |
176 | #: inc/preimport.class.php:435
177 | msgid "Devices not imported"
178 | msgstr "Devices not imported"
179 |
180 | #: inc/preimport.class.php:437
181 | msgid "Devices already imported"
182 | msgstr "Devices already imported"
183 |
184 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
185 | msgid "No manufacturer available. Please configure at least one manufacturer"
186 | msgstr "No manufacturer available. Please configure at least one manufacturer"
187 |
188 | #: inc/preimport.class.php:635
189 | msgid "Supplier attached"
190 | msgstr "Supplier attached"
191 |
192 | #: inc/preimport.class.php:685
193 | #, php-format
194 | msgid "Total number of devices to import %s"
195 | msgstr "Total number of devices to import %s"
196 |
197 | #: inc/preimport.class.php:732
198 | msgid "No device finded"
199 | msgstr "No device finded"
200 |
201 | #: inc/preimport.class.php:1030
202 | msgid "Reset the import"
203 | msgstr "Reset the import"
204 |
--------------------------------------------------------------------------------
/locales/fi_FI.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | #
5 | # Translators:
6 | # Markku Vepsä, 2018
7 | msgid ""
8 | msgstr ""
9 | "Project-Id-Version: GLPI Project - manufacturersimports plugin\n"
10 | "Report-Msgid-Bugs-To: \n"
11 | "POT-Creation-Date: 2020-07-20 11:48+0200\n"
12 | "PO-Revision-Date: 2020-01-17 15:32+0000\n"
13 | "Last-Translator: Kevin HAINRY \n"
14 | "Language-Team: Finnish (Finland) (http://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/language/fi_FI/)\n"
15 | "MIME-Version: 1.0\n"
16 | "Content-Type: text/plain; charset=UTF-8\n"
17 | "Content-Transfer-Encoding: 8bit\n"
18 | "Language: fi_FI\n"
19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20 |
21 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
22 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
23 | msgid "Suppliers import"
24 | msgid_plural "Suppliers imports"
25 | msgstr[0] "Toimitustiedon tuonti"
26 | msgstr[1] "Toimitustietojen tuonti"
27 |
28 | #: hook.php:233 inc/lenovo.class.php:53
29 | msgid "Model number"
30 | msgstr "Mallinumero"
31 |
32 | #: hook.php:261
33 | msgid "Add new material brand number"
34 | msgstr "Lisää uusi materiaalin tuotemerkin numero"
35 |
36 | #: setup.php:97 setup.php:102 setup.php:107
37 | msgid "Incompatible PHP Installation. Requires module"
38 | msgstr "Yhteensopimaton PHP-asennus. Vaatii moduulin"
39 |
40 | #: front/config.php:42
41 | msgid "Please activate the plugin"
42 | msgstr "Ole hyvä ja aktivoi liitännäinen"
43 |
44 | #: inc/config.class.php:208 inc/config.class.php:335
45 | msgid "Manufacturer web address"
46 | msgstr "Valmistajan web-osoite"
47 |
48 | #: inc/config.class.php:217 inc/config.class.php:357
49 | msgid "Default supplier attached"
50 | msgstr "Oletus laitetoimittaja"
51 |
52 | #: inc/config.class.php:225 inc/preimport.class.php:638
53 | msgid "New warranty attached"
54 | msgstr "Uusi takuutieto liitetään"
55 |
56 | #: inc/config.class.php:234 inc/config.class.php:409
57 | msgid "Auto add of document"
58 | msgstr "Dokumentin automaattinen lisäys"
59 |
60 | #: inc/config.class.php:251 inc/config.class.php:424
61 | msgid "Add a comment line"
62 | msgstr "Lisää kommenttirivi"
63 |
64 | #: inc/config.class.php:343
65 | msgid "Access token API address"
66 | msgstr ""
67 |
68 | #: inc/config.class.php:349
69 | msgid "Warranty API address"
70 | msgstr ""
71 |
72 | #: inc/config.class.php:367
73 | msgid "New warranty affected by default (Replace if 0)"
74 | msgstr "Oletustakuu (Korvaa jos 0)"
75 |
76 | #: inc/config.class.php:381
77 | msgid "Manufacturer API key"
78 | msgstr "Valmistajan API-avain"
79 |
80 | #: inc/config.class.php:388
81 | msgid "Manufacturer API Secret"
82 | msgstr "Valmistajan API salainen avain"
83 |
84 | #: inc/config.class.php:396
85 | msgid "Client id"
86 | msgstr ""
87 |
88 | #: inc/config.class.php:402
89 | msgid "Client secret"
90 | msgstr ""
91 |
92 | #: inc/config.class.php:416
93 | msgid "Section for document records"
94 | msgstr "Dokumentin kategoria"
95 |
96 | #: inc/config.class.php:556 inc/preimport.class.php:334
97 | msgid "Manufacturer information"
98 | msgstr "Valmistajan tiedot"
99 |
100 | #: inc/dell.class.php:167
101 | msgid "Data recovery DELL for computer"
102 | msgstr "Tietojen palautus DELL-tietokoneille"
103 |
104 | #: inc/import.class.php:119 inc/postimport.class.php:679
105 | msgid "Import OK"
106 | msgstr "Tuonti onnistui"
107 |
108 | #: inc/import.class.php:122 inc/postimport.class.php:783
109 | msgid "Import failed"
110 | msgstr "Tuonti epäonnistui"
111 |
112 | #: inc/model.class.php:137 inc/preimport.class.php:630
113 | msgid "Model Number"
114 | msgstr "Mallinumero"
115 |
116 | #: inc/postimport.class.php:73
117 | msgid "Curl PHP package not installed"
118 | msgstr "Curl PHP pakettia ei ole asennettu"
119 |
120 | #: inc/postimport.class.php:189
121 | msgid "Launching of imports"
122 | msgstr "Tuonnin käynnistäminen"
123 |
124 | #: inc/postimport.class.php:192
125 | msgid "Post import"
126 | msgstr "Tuonnin yhteenveto"
127 |
128 | #: inc/postimport.class.php:200
129 | msgid "Result"
130 | msgstr "Tulos"
131 |
132 | #: inc/postimport.class.php:201
133 | msgid "Details"
134 | msgstr "Yksityiskohdat"
135 |
136 | #: inc/postimport.class.php:219
137 | msgid "Import in progress"
138 | msgstr "Tuonti käynnissä"
139 |
140 | #: inc/postimport.class.php:227
141 | #, php-format
142 | msgid "Total number of devices imported %s"
143 | msgstr "Tuotujen laitteiden kokonaismäärä %s "
144 |
145 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
146 | msgid "Imported from web site"
147 | msgstr "Tuotu verkkosivustosta"
148 |
149 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
150 | msgid "With the manufacturersimports plugin"
151 | msgstr "\"manufacturersimports\" -liitännäisellä"
152 |
153 | #: inc/postimport.class.php:807
154 | msgid "Connection failed/data download from manufacturer web site"
155 | msgstr "Yhteysvirhe tai tietojen lataus valmistajan verkkosivustolta ei onnistunut"
156 |
157 | #: inc/preimport.class.php:306
158 | msgid "The choosen supplier is not recursive"
159 | msgstr "Valittu laitetoimittaja ei ole rekursiivinen"
160 |
161 | #: inc/preimport.class.php:346
162 | msgid "Not yet imported"
163 | msgstr "Ei vielä tuotu"
164 |
165 | #: inc/preimport.class.php:349
166 | msgid "Problem during the importation"
167 | msgstr "Ongelma tuonnin yhteydessä"
168 |
169 | #: inc/preimport.class.php:357
170 | msgid "Already imported"
171 | msgstr "Aiemmin tuotu"
172 |
173 | #: inc/preimport.class.php:395
174 | msgid "Choose inventory type and manufacturer"
175 | msgstr "Valitse inventaarion tyyppi ja valmistaja"
176 |
177 | #: inc/preimport.class.php:435
178 | msgid "Devices not imported"
179 | msgstr "Ei tuodut laitteet"
180 |
181 | #: inc/preimport.class.php:437
182 | msgid "Devices already imported"
183 | msgstr "Aiemmin tuodut laitteet"
184 |
185 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
186 | msgid "No manufacturer available. Please configure at least one manufacturer"
187 | msgstr "Valmistajia ei ole käytettävissä. Ole hyvä ja määritä vähintään yksi valmistaja"
188 |
189 | #: inc/preimport.class.php:635
190 | msgid "Supplier attached"
191 | msgstr "Liitetty toimittaja"
192 |
193 | #: inc/preimport.class.php:685
194 | #, php-format
195 | msgid "Total number of devices to import %s"
196 | msgstr "Tuonnissa olevien laitteiden kokonaismäärä %s "
197 |
198 | #: inc/preimport.class.php:732
199 | msgid "No device finded"
200 | msgstr "Laitetta ei löytynyt"
201 |
202 | #: inc/preimport.class.php:1030
203 | msgid "Reset the import"
204 | msgstr "Palauta tuonnin tila"
205 |
--------------------------------------------------------------------------------
/locales/ro_RO.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | #
5 | # Translators:
6 | # Doru DEACONU , 2015
7 | # Doru DEACONU , 2012
8 | msgid ""
9 | msgstr ""
10 | "Project-Id-Version: GLPI Project - manufacturersimports plugin\n"
11 | "Report-Msgid-Bugs-To: \n"
12 | "POT-Creation-Date: 2020-07-20 11:48+0200\n"
13 | "PO-Revision-Date: 2020-01-17 15:32+0000\n"
14 | "Last-Translator: Kevin HAINRY \n"
15 | "Language-Team: Romanian (Romania) (http://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/language/ro_RO/)\n"
16 | "MIME-Version: 1.0\n"
17 | "Content-Type: text/plain; charset=UTF-8\n"
18 | "Content-Transfer-Encoding: 8bit\n"
19 | "Language: ro_RO\n"
20 | "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
21 |
22 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
23 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
24 | msgid "Suppliers import"
25 | msgid_plural "Suppliers imports"
26 | msgstr[0] "Import producători"
27 | msgstr[1] "Importuri producători"
28 | msgstr[2] "Importuri producători"
29 |
30 | #: hook.php:233 inc/lenovo.class.php:53
31 | msgid "Model number"
32 | msgstr "Număr model"
33 |
34 | #: hook.php:261
35 | msgid "Add new material brand number"
36 | msgstr "Adaugă un număr de model de device"
37 |
38 | #: setup.php:97 setup.php:102 setup.php:107
39 | msgid "Incompatible PHP Installation. Requires module"
40 | msgstr "Instalare PHP incompatibilă. Necesită modulul"
41 |
42 | #: front/config.php:42
43 | msgid "Please activate the plugin"
44 | msgstr "Activaţi vă rog modulul"
45 |
46 | #: inc/config.class.php:208 inc/config.class.php:335
47 | msgid "Manufacturer web address"
48 | msgstr "Adresa web producător"
49 |
50 | #: inc/config.class.php:217 inc/config.class.php:357
51 | msgid "Default supplier attached"
52 | msgstr "Furnizor ataşat predefinit"
53 |
54 | #: inc/config.class.php:225 inc/preimport.class.php:638
55 | msgid "New warranty attached"
56 | msgstr "Garanţie nouă ataşată"
57 |
58 | #: inc/config.class.php:234 inc/config.class.php:409
59 | msgid "Auto add of document"
60 | msgstr "Adăugare automată de documente"
61 |
62 | #: inc/config.class.php:251 inc/config.class.php:424
63 | msgid "Add a comment line"
64 | msgstr "Adaugă o linie de comentariu"
65 |
66 | #: inc/config.class.php:343
67 | msgid "Access token API address"
68 | msgstr ""
69 |
70 | #: inc/config.class.php:349
71 | msgid "Warranty API address"
72 | msgstr ""
73 |
74 | #: inc/config.class.php:367
75 | msgid "New warranty affected by default (Replace if 0)"
76 | msgstr "Nouă garantie afectată predefinit (înlocuiţi dacă 0)"
77 |
78 | #: inc/config.class.php:381
79 | msgid "Manufacturer API key"
80 | msgstr "API key Producator"
81 |
82 | #: inc/config.class.php:388
83 | msgid "Manufacturer API Secret"
84 | msgstr ""
85 |
86 | #: inc/config.class.php:396
87 | msgid "Client id"
88 | msgstr ""
89 |
90 | #: inc/config.class.php:402
91 | msgid "Client secret"
92 | msgstr ""
93 |
94 | #: inc/config.class.php:416
95 | msgid "Section for document records"
96 | msgstr "Rubrică pentru înregistrarea documentelor"
97 |
98 | #: inc/config.class.php:556 inc/preimport.class.php:334
99 | msgid "Manufacturer information"
100 | msgstr "Informaţii producător"
101 |
102 | #: inc/dell.class.php:167
103 | msgid "Data recovery DELL for computer"
104 | msgstr ""
105 |
106 | #: inc/import.class.php:119 inc/postimport.class.php:679
107 | msgid "Import OK"
108 | msgstr "Import OK"
109 |
110 | #: inc/import.class.php:122 inc/postimport.class.php:783
111 | msgid "Import failed"
112 | msgstr "Import KO"
113 |
114 | #: inc/model.class.php:137 inc/preimport.class.php:630
115 | msgid "Model Number"
116 | msgstr "Număr model"
117 |
118 | #: inc/postimport.class.php:73
119 | msgid "Curl PHP package not installed"
120 | msgstr "Modulul Curl pentru PHP nu este instalat"
121 |
122 | #: inc/postimport.class.php:189
123 | msgid "Launching of imports"
124 | msgstr ""
125 |
126 | #: inc/postimport.class.php:192
127 | msgid "Post import"
128 | msgstr "Post import"
129 |
130 | #: inc/postimport.class.php:200
131 | msgid "Result"
132 | msgstr "Rezultat"
133 |
134 | #: inc/postimport.class.php:201
135 | msgid "Details"
136 | msgstr "Detalii"
137 |
138 | #: inc/postimport.class.php:219
139 | msgid "Import in progress"
140 | msgstr ""
141 |
142 | #: inc/postimport.class.php:227
143 | #, php-format
144 | msgid "Total number of devices imported %s"
145 | msgstr "Număr total al device - urilor importate %s"
146 |
147 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
148 | msgid "Imported from web site"
149 | msgstr "Import din site web"
150 |
151 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
152 | msgid "With the manufacturersimports plugin"
153 | msgstr "Cu pluginul manufacturesimports"
154 |
155 | #: inc/postimport.class.php:807
156 | msgid "Connection failed/data download from manufacturer web site"
157 | msgstr "Eşec la conexiunea / download - ul datelor de pe situl producătorului"
158 |
159 | #: inc/preimport.class.php:306
160 | msgid "The choosen supplier is not recursive"
161 | msgstr "Furnizorul ales nu este recursiv"
162 |
163 | #: inc/preimport.class.php:346
164 | msgid "Not yet imported"
165 | msgstr "Încă neinportate "
166 |
167 | #: inc/preimport.class.php:349
168 | msgid "Problem during the importation"
169 | msgstr "Probleme la importare"
170 |
171 | #: inc/preimport.class.php:357
172 | msgid "Already imported"
173 | msgstr "Deja importate"
174 |
175 | #: inc/preimport.class.php:395
176 | msgid "Choose inventory type and manufacturer"
177 | msgstr "Alege tipul inventarului şi producătorul"
178 |
179 | #: inc/preimport.class.php:435
180 | msgid "Devices not imported"
181 | msgstr "Device - uri neimportate"
182 |
183 | #: inc/preimport.class.php:437
184 | msgid "Devices already imported"
185 | msgstr "Device - uri deja importate"
186 |
187 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
188 | msgid "No manufacturer available. Please configure at least one manufacturer"
189 | msgstr "Niciun producător disponibil. Configuraţi cel puţin un producător"
190 |
191 | #: inc/preimport.class.php:635
192 | msgid "Supplier attached"
193 | msgstr "Furnizpr ataşat"
194 |
195 | #: inc/preimport.class.php:685
196 | #, php-format
197 | msgid "Total number of devices to import %s"
198 | msgstr "NUmărul toatal de device uri de importat %s"
199 |
200 | #: inc/preimport.class.php:732
201 | msgid "No device finded"
202 | msgstr "Niciun device găsit"
203 |
204 | #: inc/preimport.class.php:1030
205 | msgid "Reset the import"
206 | msgstr "Resetează importul"
207 |
--------------------------------------------------------------------------------
/locales/pt_PT.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | #
5 | # Translators:
6 | # Emperium , 2018
7 | # Pedro Rocha , 2017
8 | msgid ""
9 | msgstr ""
10 | "Project-Id-Version: GLPI Project - manufacturersimports plugin\n"
11 | "Report-Msgid-Bugs-To: \n"
12 | "POT-Creation-Date: 2020-07-20 11:48+0200\n"
13 | "PO-Revision-Date: 2020-01-17 15:32+0000\n"
14 | "Last-Translator: Kevin HAINRY \n"
15 | "Language-Team: Portuguese (Portugal) (http://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/language/pt_PT/)\n"
16 | "MIME-Version: 1.0\n"
17 | "Content-Type: text/plain; charset=UTF-8\n"
18 | "Content-Transfer-Encoding: 8bit\n"
19 | "Language: pt_PT\n"
20 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21 |
22 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
23 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
24 | msgid "Suppliers import"
25 | msgid_plural "Suppliers imports"
26 | msgstr[0] "Importação de fornecedor"
27 | msgstr[1] "Importação de fornecedores"
28 |
29 | #: hook.php:233 inc/lenovo.class.php:53
30 | msgid "Model number"
31 | msgstr "Número do modelo"
32 |
33 | #: hook.php:261
34 | msgid "Add new material brand number"
35 | msgstr "Adicione novo número de marca de material"
36 |
37 | #: setup.php:97 setup.php:102 setup.php:107
38 | msgid "Incompatible PHP Installation. Requires module"
39 | msgstr "Instalação PHP incompatível. Requer módulo "
40 |
41 | #: front/config.php:42
42 | msgid "Please activate the plugin"
43 | msgstr "Por favor active o plugin"
44 |
45 | #: inc/config.class.php:208 inc/config.class.php:335
46 | msgid "Manufacturer web address"
47 | msgstr "Endereço web do fabricante"
48 |
49 | #: inc/config.class.php:217 inc/config.class.php:357
50 | msgid "Default supplier attached"
51 | msgstr "Fornecedor por omissão anexado"
52 |
53 | #: inc/config.class.php:225 inc/preimport.class.php:638
54 | msgid "New warranty attached"
55 | msgstr "Nova garantia anexada"
56 |
57 | #: inc/config.class.php:234 inc/config.class.php:409
58 | msgid "Auto add of document"
59 | msgstr "Adição automática de documento"
60 |
61 | #: inc/config.class.php:251 inc/config.class.php:424
62 | msgid "Add a comment line"
63 | msgstr "Adicione uma linha de comentário"
64 |
65 | #: inc/config.class.php:343
66 | msgid "Access token API address"
67 | msgstr ""
68 |
69 | #: inc/config.class.php:349
70 | msgid "Warranty API address"
71 | msgstr ""
72 |
73 | #: inc/config.class.php:367
74 | msgid "New warranty affected by default (Replace if 0)"
75 | msgstr "Nova garantia afectada por omissão (substituir se 0)"
76 |
77 | #: inc/config.class.php:381
78 | msgid "Manufacturer API key"
79 | msgstr "Chave API do fabricante"
80 |
81 | #: inc/config.class.php:388
82 | msgid "Manufacturer API Secret"
83 | msgstr "API Secret do fabricante"
84 |
85 | #: inc/config.class.php:396
86 | msgid "Client id"
87 | msgstr ""
88 |
89 | #: inc/config.class.php:402
90 | msgid "Client secret"
91 | msgstr ""
92 |
93 | #: inc/config.class.php:416
94 | msgid "Section for document records"
95 | msgstr "Secção de registo de documentos"
96 |
97 | #: inc/config.class.php:556 inc/preimport.class.php:334
98 | msgid "Manufacturer information"
99 | msgstr "Informação do fabricante"
100 |
101 | #: inc/dell.class.php:167
102 | msgid "Data recovery DELL for computer"
103 | msgstr "Recuperação de dados para computadores DELL"
104 |
105 | #: inc/import.class.php:119 inc/postimport.class.php:679
106 | msgid "Import OK"
107 | msgstr "Importação OK"
108 |
109 | #: inc/import.class.php:122 inc/postimport.class.php:783
110 | msgid "Import failed"
111 | msgstr "Falha na importação"
112 |
113 | #: inc/model.class.php:137 inc/preimport.class.php:630
114 | msgid "Model Number"
115 | msgstr "Número de modelo"
116 |
117 | #: inc/postimport.class.php:73
118 | msgid "Curl PHP package not installed"
119 | msgstr "Pacote Curl do PHP não instalado"
120 |
121 | #: inc/postimport.class.php:189
122 | msgid "Launching of imports"
123 | msgstr "Lançamento das importações"
124 |
125 | #: inc/postimport.class.php:192
126 | msgid "Post import"
127 | msgstr "Pós importação"
128 |
129 | #: inc/postimport.class.php:200
130 | msgid "Result"
131 | msgstr "Resultado"
132 |
133 | #: inc/postimport.class.php:201
134 | msgid "Details"
135 | msgstr "Detalhes"
136 |
137 | #: inc/postimport.class.php:219
138 | msgid "Import in progress"
139 | msgstr "Importação em progresso"
140 |
141 | #: inc/postimport.class.php:227
142 | #, php-format
143 | msgid "Total number of devices imported %s"
144 | msgstr "Número total de dispositivos importados %s"
145 |
146 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
147 | msgid "Imported from web site"
148 | msgstr "Importado de um site web"
149 |
150 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
151 | msgid "With the manufacturersimports plugin"
152 | msgstr "Com o plugin manufacturersimports"
153 |
154 | #: inc/postimport.class.php:807
155 | msgid "Connection failed/data download from manufacturer web site"
156 | msgstr "Falha na ligação/descarga dos dados do web site do fabricante "
157 |
158 | #: inc/preimport.class.php:306
159 | msgid "The choosen supplier is not recursive"
160 | msgstr "O fornecedor escolhido não é recursivo"
161 |
162 | #: inc/preimport.class.php:346
163 | msgid "Not yet imported"
164 | msgstr "Ainda não importado"
165 |
166 | #: inc/preimport.class.php:349
167 | msgid "Problem during the importation"
168 | msgstr "Problema durante a importação"
169 |
170 | #: inc/preimport.class.php:357
171 | msgid "Already imported"
172 | msgstr "Já foi importado"
173 |
174 | #: inc/preimport.class.php:395
175 | msgid "Choose inventory type and manufacturer"
176 | msgstr "Escolha tipo de inventário e fabricante"
177 |
178 | #: inc/preimport.class.php:435
179 | msgid "Devices not imported"
180 | msgstr "Dispositivos não importados"
181 |
182 | #: inc/preimport.class.php:437
183 | msgid "Devices already imported"
184 | msgstr "Dispositivos já importados"
185 |
186 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
187 | msgid "No manufacturer available. Please configure at least one manufacturer"
188 | msgstr "Fabricante não disponível. Por favor configure pelo menos um fabricante"
189 |
190 | #: inc/preimport.class.php:635
191 | msgid "Supplier attached"
192 | msgstr "Fornecedor anexado"
193 |
194 | #: inc/preimport.class.php:685
195 | #, php-format
196 | msgid "Total number of devices to import %s"
197 | msgstr "Número total de dispositivos importados %s"
198 |
199 | #: inc/preimport.class.php:732
200 | msgid "No device finded"
201 | msgstr "Nenhum dispositivo encontrado"
202 |
203 | #: inc/preimport.class.php:1030
204 | msgid "Reset the import"
205 | msgstr "Reposição da importação"
206 |
--------------------------------------------------------------------------------
/locales/ru_RU.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | #
5 | # Translators:
6 | # Ilya Petrikov , 2017
7 | msgid ""
8 | msgstr ""
9 | "Project-Id-Version: GLPI Project - manufacturersimports plugin\n"
10 | "Report-Msgid-Bugs-To: \n"
11 | "POT-Creation-Date: 2020-07-20 11:48+0200\n"
12 | "PO-Revision-Date: 2020-01-17 15:32+0000\n"
13 | "Last-Translator: Kevin HAINRY \n"
14 | "Language-Team: Russian (Russia) (http://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/language/ru_RU/)\n"
15 | "MIME-Version: 1.0\n"
16 | "Content-Type: text/plain; charset=UTF-8\n"
17 | "Content-Transfer-Encoding: 8bit\n"
18 | "Language: ru_RU\n"
19 | "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
20 |
21 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
22 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
23 | msgid "Suppliers import"
24 | msgid_plural "Suppliers imports"
25 | msgstr[0] "Импорт поставщиков"
26 | msgstr[1] "Импорт поставщиков"
27 | msgstr[2] "Импорт поставщиков"
28 | msgstr[3] "Импорт поставщиков"
29 |
30 | #: hook.php:233 inc/lenovo.class.php:53
31 | msgid "Model number"
32 | msgstr "Номер модели"
33 |
34 | #: hook.php:261
35 | msgid "Add new material brand number"
36 | msgstr "Добавить новую модель"
37 |
38 | #: setup.php:97 setup.php:102 setup.php:107
39 | msgid "Incompatible PHP Installation. Requires module"
40 | msgstr "Несовместимая установка PHP. Требуется модуль"
41 |
42 | #: front/config.php:42
43 | msgid "Please activate the plugin"
44 | msgstr "Активируйте плагин"
45 |
46 | #: inc/config.class.php:208 inc/config.class.php:335
47 | msgid "Manufacturer web address"
48 | msgstr "WEB-сайт производителя"
49 |
50 | #: inc/config.class.php:217 inc/config.class.php:357
51 | msgid "Default supplier attached"
52 | msgstr "Поставщик по умолчанию"
53 |
54 | #: inc/config.class.php:225 inc/preimport.class.php:638
55 | msgid "New warranty attached"
56 | msgstr "Новая гарантия прилагается"
57 |
58 | #: inc/config.class.php:234 inc/config.class.php:409
59 | msgid "Auto add of document"
60 | msgstr "Добавить документ автоматически"
61 |
62 | #: inc/config.class.php:251 inc/config.class.php:424
63 | msgid "Add a comment line"
64 | msgstr "Добавить коментарий"
65 |
66 | #: inc/config.class.php:343
67 | msgid "Access token API address"
68 | msgstr ""
69 |
70 | #: inc/config.class.php:349
71 | msgid "Warranty API address"
72 | msgstr ""
73 |
74 | #: inc/config.class.php:367
75 | msgid "New warranty affected by default (Replace if 0)"
76 | msgstr "Новая гарантия по умолчанию (заменить, если 0)"
77 |
78 | #: inc/config.class.php:381
79 | msgid "Manufacturer API key"
80 | msgstr "API ключ производителя"
81 |
82 | #: inc/config.class.php:388
83 | msgid "Manufacturer API Secret"
84 | msgstr ""
85 |
86 | #: inc/config.class.php:396
87 | msgid "Client id"
88 | msgstr ""
89 |
90 | #: inc/config.class.php:402
91 | msgid "Client secret"
92 | msgstr ""
93 |
94 | #: inc/config.class.php:416
95 | msgid "Section for document records"
96 | msgstr "Раздел для записи документа"
97 |
98 | #: inc/config.class.php:556 inc/preimport.class.php:334
99 | msgid "Manufacturer information"
100 | msgstr "Информация о производителе"
101 |
102 | #: inc/dell.class.php:167
103 | msgid "Data recovery DELL for computer"
104 | msgstr "Восстановление данных Dell для компьютера"
105 |
106 | #: inc/import.class.php:119 inc/postimport.class.php:679
107 | msgid "Import OK"
108 | msgstr "Импорт выполнен"
109 |
110 | #: inc/import.class.php:122 inc/postimport.class.php:783
111 | msgid "Import failed"
112 | msgstr "Импорт не удался"
113 |
114 | #: inc/model.class.php:137 inc/preimport.class.php:630
115 | msgid "Model Number"
116 | msgstr "Номер модели"
117 |
118 | #: inc/postimport.class.php:73
119 | msgid "Curl PHP package not installed"
120 | msgstr "Пакет Curl PHP не установлен"
121 |
122 | #: inc/postimport.class.php:189
123 | msgid "Launching of imports"
124 | msgstr "Запуск импорта"
125 |
126 | #: inc/postimport.class.php:192
127 | msgid "Post import"
128 | msgstr "После импорта"
129 |
130 | #: inc/postimport.class.php:200
131 | msgid "Result"
132 | msgstr "Результат"
133 |
134 | #: inc/postimport.class.php:201
135 | msgid "Details"
136 | msgstr "Подробности"
137 |
138 | #: inc/postimport.class.php:219
139 | msgid "Import in progress"
140 | msgstr "Выполняется импорт"
141 |
142 | #: inc/postimport.class.php:227
143 | #, php-format
144 | msgid "Total number of devices imported %s"
145 | msgstr "Общее количество импортированных устройств %s"
146 |
147 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
148 | msgid "Imported from web site"
149 | msgstr "Импорт с сайта"
150 |
151 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
152 | msgid "With the manufacturersimports plugin"
153 | msgstr "С плагином manufacturersimports"
154 |
155 | #: inc/postimport.class.php:807
156 | msgid "Connection failed/data download from manufacturer web site"
157 | msgstr "Не удалось установить соединение загрузки/данных с веб-сайта производителя"
158 |
159 | #: inc/preimport.class.php:306
160 | msgid "The choosen supplier is not recursive"
161 | msgstr "Выбранный поставщик не рекурсивный"
162 |
163 | #: inc/preimport.class.php:346
164 | msgid "Not yet imported"
165 | msgstr "Еще не импортировано"
166 |
167 | #: inc/preimport.class.php:349
168 | msgid "Problem during the importation"
169 | msgstr "Проблема при импорте"
170 |
171 | #: inc/preimport.class.php:357
172 | msgid "Already imported"
173 | msgstr "Уже импортировано"
174 |
175 | #: inc/preimport.class.php:395
176 | msgid "Choose inventory type and manufacturer"
177 | msgstr "Выберите тип оборудования и производителя"
178 |
179 | #: inc/preimport.class.php:435
180 | msgid "Devices not imported"
181 | msgstr "Устройства не импортированы"
182 |
183 | #: inc/preimport.class.php:437
184 | msgid "Devices already imported"
185 | msgstr "Устройства уже импортированы"
186 |
187 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
188 | msgid "No manufacturer available. Please configure at least one manufacturer"
189 | msgstr "Нет доступных производителей. Пожалуйста, настройте по крайней мере, одного производителя"
190 |
191 | #: inc/preimport.class.php:635
192 | msgid "Supplier attached"
193 | msgstr "Поставщик добавлен"
194 |
195 | #: inc/preimport.class.php:685
196 | #, php-format
197 | msgid "Total number of devices to import %s"
198 | msgstr "Общее количество устройств для импорта %s"
199 |
200 | #: inc/preimport.class.php:732
201 | msgid "No device finded"
202 | msgstr "Устройства не надены"
203 |
204 | #: inc/preimport.class.php:1030
205 | msgid "Reset the import"
206 | msgstr "Сброс импорта"
207 |
--------------------------------------------------------------------------------
/locales/pl_PL.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | #
5 | # Translators:
6 | # Seba C , 2016
7 | # Xavier CAILLAUD , 2012
8 | msgid ""
9 | msgstr ""
10 | "Project-Id-Version: GLPI Project - manufacturersimports plugin\n"
11 | "Report-Msgid-Bugs-To: \n"
12 | "POT-Creation-Date: 2020-07-20 11:48+0200\n"
13 | "PO-Revision-Date: 2020-01-17 15:32+0000\n"
14 | "Last-Translator: Kevin HAINRY \n"
15 | "Language-Team: Polish (Poland) (http://www.transifex.com/infotelGLPI/GLPI_manufacturersimports/language/pl_PL/)\n"
16 | "MIME-Version: 1.0\n"
17 | "Content-Type: text/plain; charset=UTF-8\n"
18 | "Content-Transfer-Encoding: 8bit\n"
19 | "Language: pl_PL\n"
20 | "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
21 |
22 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
23 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
24 | msgid "Suppliers import"
25 | msgid_plural "Suppliers imports"
26 | msgstr[0] "Importowany dostawca"
27 | msgstr[1] "Importowani dostawcy"
28 | msgstr[2] "Importowani dostawcy"
29 | msgstr[3] "Importowani dostawcy"
30 |
31 | #: hook.php:233 inc/lenovo.class.php:53
32 | msgid "Model number"
33 | msgstr "Numer modelu"
34 |
35 | #: hook.php:261
36 | msgid "Add new material brand number"
37 | msgstr "Dodaj nowy numer marki"
38 |
39 | #: setup.php:97 setup.php:102 setup.php:107
40 | msgid "Incompatible PHP Installation. Requires module"
41 | msgstr "Niekompletna instalacja PHP. Wymagane moduy"
42 |
43 | #: front/config.php:42
44 | msgid "Please activate the plugin"
45 | msgstr "Proszę aktywować plugin"
46 |
47 | #: inc/config.class.php:208 inc/config.class.php:335
48 | msgid "Manufacturer web address"
49 | msgstr "Adres strony internetowej producenta"
50 |
51 | #: inc/config.class.php:217 inc/config.class.php:357
52 | msgid "Default supplier attached"
53 | msgstr "Dostawca domyślny"
54 |
55 | #: inc/config.class.php:225 inc/preimport.class.php:638
56 | msgid "New warranty attached"
57 | msgstr "Nowa gwarancja przyłączona"
58 |
59 | #: inc/config.class.php:234 inc/config.class.php:409
60 | msgid "Auto add of document"
61 | msgstr "Automatycznie dodaj dokument"
62 |
63 | #: inc/config.class.php:251 inc/config.class.php:424
64 | msgid "Add a comment line"
65 | msgstr "Dodaj komentarz"
66 |
67 | #: inc/config.class.php:343
68 | msgid "Access token API address"
69 | msgstr ""
70 |
71 | #: inc/config.class.php:349
72 | msgid "Warranty API address"
73 | msgstr ""
74 |
75 | #: inc/config.class.php:367
76 | msgid "New warranty affected by default (Replace if 0)"
77 | msgstr "Nowa gwarancja dotyczy domyślnie (Zastąp jeśli 0)"
78 |
79 | #: inc/config.class.php:381
80 | msgid "Manufacturer API key"
81 | msgstr "Klucz API producenta"
82 |
83 | #: inc/config.class.php:388
84 | msgid "Manufacturer API Secret"
85 | msgstr ""
86 |
87 | #: inc/config.class.php:396
88 | msgid "Client id"
89 | msgstr ""
90 |
91 | #: inc/config.class.php:402
92 | msgid "Client secret"
93 | msgstr ""
94 |
95 | #: inc/config.class.php:416
96 | msgid "Section for document records"
97 | msgstr "Sekcja zapisu dokumentu "
98 |
99 | #: inc/config.class.php:556 inc/preimport.class.php:334
100 | msgid "Manufacturer information"
101 | msgstr "Informacje o producencie"
102 |
103 | #: inc/dell.class.php:167
104 | msgid "Data recovery DELL for computer"
105 | msgstr ""
106 |
107 | #: inc/import.class.php:119 inc/postimport.class.php:679
108 | msgid "Import OK"
109 | msgstr "Import OK"
110 |
111 | #: inc/import.class.php:122 inc/postimport.class.php:783
112 | msgid "Import failed"
113 | msgstr "Błąd importu"
114 |
115 | #: inc/model.class.php:137 inc/preimport.class.php:630
116 | msgid "Model Number"
117 | msgstr "Numer modelu"
118 |
119 | #: inc/postimport.class.php:73
120 | msgid "Curl PHP package not installed"
121 | msgstr "Paczka Curl PHP nie zainstalowana"
122 |
123 | #: inc/postimport.class.php:189
124 | msgid "Launching of imports"
125 | msgstr ""
126 |
127 | #: inc/postimport.class.php:192
128 | msgid "Post import"
129 | msgstr "Po imporcie"
130 |
131 | #: inc/postimport.class.php:200
132 | msgid "Result"
133 | msgstr "Rezultat"
134 |
135 | #: inc/postimport.class.php:201
136 | msgid "Details"
137 | msgstr "Szczegóły"
138 |
139 | #: inc/postimport.class.php:219
140 | msgid "Import in progress"
141 | msgstr ""
142 |
143 | #: inc/postimport.class.php:227
144 | #, php-format
145 | msgid "Total number of devices imported %s"
146 | msgstr "Całkowita liczba zaimportowanych urządzeń %s"
147 |
148 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
149 | msgid "Imported from web site"
150 | msgstr "Zaimportowane ze strony internetowej"
151 |
152 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
153 | msgid "With the manufacturersimports plugin"
154 | msgstr "Z wtyczki Import ServiceTag"
155 |
156 | #: inc/postimport.class.php:807
157 | msgid "Connection failed/data download from manufacturer web site"
158 | msgstr "Połączenie nie powiodło się, pobieranie danych ze strony internetowej producenta"
159 |
160 | #: inc/preimport.class.php:306
161 | msgid "The choosen supplier is not recursive"
162 | msgstr "Wybrany dostawca nie jest rekursywny"
163 |
164 | #: inc/preimport.class.php:346
165 | msgid "Not yet imported"
166 | msgstr "jeszcze nie zaimportowane"
167 |
168 | #: inc/preimport.class.php:349
169 | msgid "Problem during the importation"
170 | msgstr "Problem w trakcie importu"
171 |
172 | #: inc/preimport.class.php:357
173 | msgid "Already imported"
174 | msgstr "Już zaimportowany"
175 |
176 | #: inc/preimport.class.php:395
177 | msgid "Choose inventory type and manufacturer"
178 | msgstr "Wybierz rodzaj inwentaryzacji oraz producenta"
179 |
180 | #: inc/preimport.class.php:435
181 | msgid "Devices not imported"
182 | msgstr "Urządzenia niezaimportowane"
183 |
184 | #: inc/preimport.class.php:437
185 | msgid "Devices already imported"
186 | msgstr "Urządzenia zaimportowane"
187 |
188 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
189 | msgid "No manufacturer available. Please configure at least one manufacturer"
190 | msgstr "Brak dostępnego producenta. Należy skonfigurować co najmniej jednego producenta."
191 |
192 | #: inc/preimport.class.php:635
193 | msgid "Supplier attached"
194 | msgstr "Dostawca przyłączony"
195 |
196 | #: inc/preimport.class.php:685
197 | #, php-format
198 | msgid "Total number of devices to import %s"
199 | msgstr "Całkowita liczba urządzeń do importu %s"
200 |
201 | #: inc/preimport.class.php:732
202 | msgid "No device finded"
203 | msgstr "Nie znaleziono urządzenia"
204 |
205 | #: inc/preimport.class.php:1030
206 | msgid "Reset the import"
207 | msgstr "Resetowanie importu"
208 |
--------------------------------------------------------------------------------
/locales/es_AR.po:
--------------------------------------------------------------------------------
1 | # SOME DESCRIPTIVE TITLE.
2 | # Copyright (C) YEAR $copyright
3 | # This file is distributed under the same license as the $soft package.
4 | # FIRST AUTHOR , YEAR.
5 | #
6 | # Translators:
7 | # Xavier CAILLAUD , 2020
8 | # Luis Angel Uriarte , 2020
9 | #
10 | #, fuzzy
11 | msgid ""
12 | msgstr ""
13 | "Project-Id-Version: $soft\n"
14 | "Report-Msgid-Bugs-To: \n"
15 | "POT-Creation-Date: 2020-11-03 13:30+0000\n"
16 | "PO-Revision-Date: 2020-11-02 16:09+0000\n"
17 | "Last-Translator: Luis Angel Uriarte , 2020\n"
18 | "Language-Team: Spanish (Argentina) (https://www.transifex.com/infotelGLPI/teams/12364/es_AR/)\n"
19 | "MIME-Version: 1.0\n"
20 | "Content-Type: text/plain; charset=UTF-8\n"
21 | "Content-Transfer-Encoding: 8bit\n"
22 | "Language: es_AR\n"
23 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
24 |
25 | #: hook.php:229 setup.php:70 ajax/massiveaction.php:40 inc/menu.class.php:45
26 | #: inc/model.class.php:48 inc/preimport.class.php:50 inc/profile.class.php:71
27 | msgid "Suppliers import"
28 | msgid_plural "Suppliers imports"
29 | msgstr[0] "Proveedor"
30 | msgstr[1] "Proveedores"
31 |
32 | #: hook.php:233 inc/lenovo.class.php:53
33 | msgid "Model number"
34 | msgstr "Número de modelo"
35 |
36 | #: hook.php:261
37 | msgid "Add new material brand number"
38 | msgstr "Agregar nuevo número de marca del material"
39 |
40 | #: setup.php:97 setup.php:102 setup.php:107
41 | msgid "Incompatible PHP Installation. Requires module"
42 | msgstr "Instalación PHP Incompatible. Requiere módulo"
43 |
44 | #: front/config.php:42
45 | msgid "Please activate the plugin"
46 | msgstr "Por favor activar el plugin"
47 |
48 | #: inc/config.class.php:208 inc/config.class.php:335
49 | msgid "Manufacturer web address"
50 | msgstr "Dirección web del fabricante"
51 |
52 | #: inc/config.class.php:217 inc/config.class.php:357
53 | msgid "Default supplier attached"
54 | msgstr "Proveedor por defecto adjuntado"
55 |
56 | #: inc/config.class.php:225 inc/preimport.class.php:638
57 | msgid "New warranty attached"
58 | msgstr "Garantía nueva adjuntada"
59 |
60 | #: inc/config.class.php:234 inc/config.class.php:409
61 | msgid "Auto add of document"
62 | msgstr "Auto agregar documento"
63 |
64 | #: inc/config.class.php:251 inc/config.class.php:424
65 | msgid "Add a comment line"
66 | msgstr "Agregar linea de comentario"
67 |
68 | #: inc/config.class.php:343
69 | msgid "Access token API address"
70 | msgstr "Dirección de API de token de acceso"
71 |
72 | #: inc/config.class.php:349
73 | msgid "Warranty API address"
74 | msgstr "Dirección de API de Garantía"
75 |
76 | #: inc/config.class.php:367
77 | msgid "New warranty affected by default (Replace if 0)"
78 | msgstr "Nueva garantía afectada por defecto (Si es 0 reemplazar)"
79 |
80 | #: inc/config.class.php:381
81 | msgid "Manufacturer API key"
82 | msgstr "Clave API del Fabricante"
83 |
84 | #: inc/config.class.php:388
85 | msgid "Manufacturer API Secret"
86 | msgstr "API Secreto del Fabricante"
87 |
88 | #: inc/config.class.php:396
89 | msgid "Client id"
90 | msgstr "Id. del Cliente"
91 |
92 | #: inc/config.class.php:402
93 | msgid "Client secret"
94 | msgstr "Clave Cliente"
95 |
96 | #: inc/config.class.php:416
97 | msgid "Section for document records"
98 | msgstr "Sección para guardados de documentos"
99 |
100 | #: inc/config.class.php:556 inc/preimport.class.php:334
101 | msgid "Manufacturer information"
102 | msgstr "Información del fabricante"
103 |
104 | #: inc/dell.class.php:190
105 | msgid "Data recovery DELL for computer"
106 | msgstr "Recuperación de Datos Dell para computadora"
107 |
108 | #: inc/import.class.php:119 inc/postimport.class.php:679
109 | msgid "Import OK"
110 | msgstr "Importación Lista"
111 |
112 | #: inc/import.class.php:122 inc/postimport.class.php:783
113 | msgid "Import failed"
114 | msgstr "Importación fallida"
115 |
116 | #: inc/model.class.php:137 inc/preimport.class.php:630
117 | msgid "Model Number"
118 | msgstr "Número de modelo"
119 |
120 | #: inc/postimport.class.php:73
121 | msgid "Curl PHP package not installed"
122 | msgstr "No está instalado el paquete Curl PHP"
123 |
124 | #: inc/postimport.class.php:189
125 | msgid "Launching of imports"
126 | msgstr "Comenzar a Importar"
127 |
128 | #: inc/postimport.class.php:192
129 | msgid "Post import"
130 | msgstr "Publicar importación"
131 |
132 | #: inc/postimport.class.php:200
133 | msgid "Result"
134 | msgstr "Resultado"
135 |
136 | #: inc/postimport.class.php:201
137 | msgid "Details"
138 | msgstr "Detalles"
139 |
140 | #: inc/postimport.class.php:219
141 | msgid "Import in progress"
142 | msgstr "Importación en progreso"
143 |
144 | #: inc/postimport.class.php:227
145 | #, php-format
146 | msgid "Total number of devices imported %s"
147 | msgstr "Número total de dispositivos importados %s"
148 |
149 | #: inc/postimport.class.php:658 inc/postimport.class.php:667
150 | msgid "Imported from web site"
151 | msgstr "Importado del sitio web"
152 |
153 | #: inc/postimport.class.php:659 inc/postimport.class.php:668
154 | msgid "With the manufacturersimports plugin"
155 | msgstr "Con el plugin manufacturersimports"
156 |
157 | #: inc/postimport.class.php:807
158 | msgid "Connection failed/data download from manufacturer web site"
159 | msgstr "Conexión fallida/dato bajado desde el sitio web del fabricante"
160 |
161 | #: inc/preimport.class.php:306
162 | msgid "The choosen supplier is not recursive"
163 | msgstr "El proveedor elegido no es recursivo"
164 |
165 | #: inc/preimport.class.php:346
166 | msgid "Not yet imported"
167 | msgstr "Todavía no importado"
168 |
169 | #: inc/preimport.class.php:349
170 | msgid "Problem during the importation"
171 | msgstr "Problema durante la importación"
172 |
173 | #: inc/preimport.class.php:357
174 | msgid "Already imported"
175 | msgstr "Ya se importó"
176 |
177 | #: inc/preimport.class.php:395
178 | msgid "Choose inventory type and manufacturer"
179 | msgstr "Elegir tipo de elemento y fabricante"
180 |
181 | #: inc/preimport.class.php:435
182 | msgid "Devices not imported"
183 | msgstr "Dispositivo no importado"
184 |
185 | #: inc/preimport.class.php:437
186 | msgid "Devices already imported"
187 | msgstr "Dispositivos ya importados"
188 |
189 | #: inc/preimport.class.php:444 inc/preimport.class.php:447
190 | msgid "No manufacturer available. Please configure at least one manufacturer"
191 | msgstr "Fabricante no encontrado. Por favor configure al menos un fabricante"
192 |
193 | #: inc/preimport.class.php:635
194 | msgid "Supplier attached"
195 | msgstr "Proveedor adjunto"
196 |
197 | #: inc/preimport.class.php:685
198 | #, php-format
199 | msgid "Total number of devices to import %s"
200 | msgstr "Total de números de dispositivos importados %s"
201 |
202 | #: inc/preimport.class.php:732
203 | msgid "No device finded"
204 | msgstr "Dispositivo no buscado "
205 |
206 | #: inc/preimport.class.php:1030
207 | msgid "Reset the import"
208 | msgstr "Borrar importación"
209 |
--------------------------------------------------------------------------------
/src/Import.php:
--------------------------------------------------------------------------------
1 | .
28 | --------------------------------------------------------------------------
29 | */
30 |
31 | namespace GlpiPlugin\Manufacturersimports;
32 |
33 | use CommonDBTM;
34 | use DbUtils;
35 |
36 | if (!defined('GLPI_ROOT')) {
37 | die("Sorry. You can't access directly to this file");
38 | }
39 |
40 | /**
41 | * Class Import
42 | */
43 | class Import extends CommonDBTM
44 | {
45 | /**
46 | * @param $name
47 | *
48 | * @return array
49 | */
50 | public static function cronInfo($name)
51 | {
52 | switch ($name) {
53 | case "DataWarrantyImport":
54 | return ['description' => PreImport::getTypeName(1) . " - " . __('Warranty import (Dell, HP)', 'manufacturersimports')];
55 | }
56 | return [];
57 | }
58 |
59 |
60 | /**
61 | * Run for data recovery warranties
62 | *
63 | * @param $task : object of crontask
64 | *
65 | * @return integer : 0 (nothing to do)
66 | * >0 (endded)
67 | **/
68 | public static function cronDataWarrantyImport($task)
69 | {
70 | $cron_status = Import::importCron($task, Config::DELL);
71 |
72 | $cron_status = Import::importCron($task, Config::HP);
73 |
74 | return $cron_status;
75 | }
76 | /**
77 | * Import via le cron
78 | *
79 | * @param type $supplier
80 | *
81 | * @return int
82 | * @global type $DB
83 | *
84 | */
85 | public static function importCron($task, $supplier)
86 | {
87 | global $DB;
88 |
89 | $config = new Config();
90 | $config->getFromDBByCrit(['name' => $supplier]);
91 |
92 | $log = new Log();
93 |
94 | $suppliername = $config->fields["name"];
95 | $supplierUrl = $config->fields["supplier_url"];
96 | $supplierkey = $config->fields["supplier_key"];
97 | $supplierId = $config->fields["suppliers_id"];
98 |
99 | $toview = ["name" => 1];
100 |
101 | $params = [];
102 | $params['manufacturers_id'] = $config->getID();
103 | $params['imported'] = PreImport::NOT_IMPORTED;
104 | $params['sort'] = 1;
105 | $params['order'] = "ASC";
106 | $params['start'] = 0;
107 |
108 | $nb_import_error = 0;
109 | $msg = "";
110 |
111 | // foreach ($types as $type) {
112 | $type = "Computer";
113 | $params['itemtype'] = $type;
114 | $query = PreImport::queryImport($params, $config, $toview, true);
115 |
116 | $result = $DB->doQuery($query);
117 |
118 | if ($DB->numrows($result) > 0) {
119 | while ($data = $DB->fetchArray($result)) {
120 | $log->reinitializeImport($type, $data['id']);
121 |
122 | $compSerial = $data['serial'];
123 | $ID = $data['id'];
124 | $dbu = new DbUtils();
125 | $modelfield = $dbu->getForeignKeyFieldForTable($dbu->getTableForItemType($type . "Model"));
126 |
127 | $models_id = $data[$modelfield];
128 | $otherSerial = "";
129 | if (class_exists($type . "Model") && $models_id != 0) {
130 | $modelitemtype = $type . "Model";
131 | $modelclass = new $modelitemtype();
132 | $modelclass->getfromDB($models_id);
133 | $otherSerial = $modelclass->fields["product_number"];
134 | }
135 |
136 | $url = PreImport::selectSupplier(
137 | $suppliername,
138 | $supplierUrl,
139 | $compSerial,
140 | $otherSerial,
141 | $supplierkey
142 | );
143 | $post = PreImport::getSupplierPost(
144 | $suppliername,
145 | $compSerial,
146 | $otherSerial
147 | );
148 |
149 | $options = ["url" => $url,
150 | "post" => $post,
151 | "type" => $type,
152 | "ID" => $ID,
153 | "config" => $config,
154 | "line" => $data,
155 | "display" => false];
156 |
157 | if (!empty($compSerial)) {
158 | $options['sn'] = $compSerial;
159 | }
160 | if (!empty($otherserial)) {
161 | $options['pn'] = $otherserial;
162 | }
163 |
164 | if ($suppliername == Config::DELL
165 | || $suppliername == Config::HP) {
166 | $supplierclass = "GlpiPlugin\Manufacturersimports\\".$suppliername;
167 | $token = $supplierclass::getToken($config);
168 | $warranty_url = $supplierclass::getWarrantyUrl($config, $compSerial);
169 | $options['token'] = $token;
170 | if (isset($warranty_url)) {
171 | $options['url'] = $warranty_url['url'];
172 | }
173 | if (PostImport::saveImport($options)) {
174 | $task->addVolume(1);
175 | } else {
176 | $nb_import_error += 1;
177 | }
178 | }
179 | }
180 | }
181 |
182 | // }
183 | if ($task) {
184 | $task->log(__('Import OK', 'manufacturersimports'));
185 |
186 | $task->addVolume($nb_import_error);
187 | $task->log(__('Import failed', 'manufacturersimports'));
188 | }
189 | return true;
190 | }
191 | }
192 |
--------------------------------------------------------------------------------