diff --git a/.travis.yml b/.travis.yml
index c5435a5b..7cc0a2bf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,7 +5,6 @@ php:
services:
- mysql
-
env:
global:
- DB=mysql
diff --git a/composer.json b/composer.json
index 7f281522..e6dc0ce2 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,7 @@
{
"require": {
- "php": "^7.2"
+ "php": "^7.2",
+ "symfony/yaml": "^4.4"
},
"require-dev": {
"atoum/atoum": "^3.1",
diff --git a/composer.lock b/composer.lock
index 3531ded2..b77c7836 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,8 +4,144 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "60eb7d1cf0f21f4b53c8aaeea526703a",
- "packages": [],
+ "content-hash": "8d2c1b3a5503cf3cfd1737c73281e2db",
+ "packages": [
+ {
+ "name": "symfony/polyfill-ctype",
+ "version": "v1.20.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41",
+ "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.20-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for ctype functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "ctype",
+ "polyfill",
+ "portable"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-10-23T14:02:19+00:00"
+ },
+ {
+ "name": "symfony/yaml",
+ "version": "v4.4.15",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/yaml.git",
+ "reference": "c7885964b1eceb70b0981556d0a9b01d2d97c8d1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/c7885964b1eceb70b0981556d0a9b01d2d97c8d1",
+ "reference": "c7885964b1eceb70b0981556d0a9b01d2d97c8d1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1.3",
+ "symfony/polyfill-ctype": "~1.8"
+ },
+ "conflict": {
+ "symfony/console": "<3.4"
+ },
+ "require-dev": {
+ "symfony/console": "^3.4|^4.0|^5.0"
+ },
+ "suggest": {
+ "symfony/console": "For validating YAML files using the lint command"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.4-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Yaml\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Yaml Component",
+ "homepage": "https://symfony.com",
+ "time": "2020-09-27T03:36:23+00:00"
+ }
+ ],
"packages-dev": [
{
"name": "atoum/atoum",
@@ -92,16 +228,16 @@
},
{
"name": "consolidation/annotated-command",
- "version": "4.1.1",
+ "version": "4.2.3",
"source": {
"type": "git",
"url": "https://github.com/consolidation/annotated-command.git",
- "reference": "efc58dc0f34a45539787c5190b41b5d2a50a08da"
+ "reference": "4b596872f24c39d9c04d7b3adb6bc51baa1f2fd5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/efc58dc0f34a45539787c5190b41b5d2a50a08da",
- "reference": "efc58dc0f34a45539787c5190b41b5d2a50a08da",
+ "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/4b596872f24c39d9c04d7b3adb6bc51baa1f2fd5",
+ "reference": "4b596872f24c39d9c04d7b3adb6bc51baa1f2fd5",
"shasum": ""
},
"require": {
@@ -133,7 +269,7 @@
}
},
"branch-alias": {
- "dev-master": "4.x-dev"
+ "dev-main": "4.x-dev"
}
},
"autoload": {
@@ -152,34 +288,35 @@
}
],
"description": "Initialize Symfony Console commands from annotated command class methods.",
- "time": "2020-05-27T21:11:36+00:00"
+ "time": "2020-10-03T14:28:42+00:00"
},
{
"name": "consolidation/config",
- "version": "1.2.1",
+ "version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/consolidation/config.git",
- "reference": "cac1279bae7efb5c7fb2ca4c3ba4b8eb741a96c1"
+ "reference": "9842670aad3406dbc8df3069fd680a9f8cd6edd7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/consolidation/config/zipball/cac1279bae7efb5c7fb2ca4c3ba4b8eb741a96c1",
- "reference": "cac1279bae7efb5c7fb2ca4c3ba4b8eb741a96c1",
+ "url": "https://api.github.com/repos/consolidation/config/zipball/9842670aad3406dbc8df3069fd680a9f8cd6edd7",
+ "reference": "9842670aad3406dbc8df3069fd680a9f8cd6edd7",
"shasum": ""
},
"require": {
"dflydev/dot-access-data": "^1.1.0",
"grasmash/expander": "^1",
- "php": ">=5.4.0"
+ "php": ">=7.1.3"
},
"require-dev": {
"g1a/composer-test-scenarios": "^3",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^5",
- "squizlabs/php_codesniffer": "2.*",
- "symfony/console": "^2.5|^3|^4",
- "symfony/yaml": "^2.8.11|^3|^4"
+ "php-coveralls/php-coveralls": "^2.2",
+ "phpunit/phpunit": "^6",
+ "squizlabs/php_codesniffer": "^3",
+ "symfony/console": "^4|^5",
+ "symfony/event-dispatcher": "^4|^5",
+ "symfony/yaml": "^4|^5"
},
"suggest": {
"symfony/yaml": "Required to use Consolidation\\Config\\Loader\\YamlConfigLoader"
@@ -189,32 +326,17 @@
"scenarios": {
"symfony4": {
"require-dev": {
- "symfony/console": "^4.0"
+ "symfony/console": "^4"
},
"config": {
"platform": {
"php": "7.1.3"
}
}
- },
- "symfony2": {
- "require-dev": {
- "symfony/console": "^2.8",
- "symfony/event-dispatcher": "^2.8",
- "phpunit/phpunit": "^4.8.36"
- },
- "remove": [
- "php-coveralls/php-coveralls"
- ],
- "config": {
- "platform": {
- "php": "5.4.8"
- }
- }
}
},
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-master": "2.x-dev"
}
},
"autoload": {
@@ -233,7 +355,7 @@
}
],
"description": "Provide configuration services for a commandline tool.",
- "time": "2019-03-03T19:37:04+00:00"
+ "time": "2020-05-27T17:11:23+00:00"
},
{
"name": "consolidation/log",
@@ -365,48 +487,48 @@
},
{
"name": "consolidation/robo",
- "version": "1.4.12",
+ "version": "2.2.1",
"source": {
"type": "git",
"url": "https://github.com/consolidation/Robo.git",
- "reference": "eb45606f498b3426b9a98b7c85e300666a968e51"
+ "reference": "1a7c652371615fd72ff05380ffe6ce263eb31eb3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/consolidation/Robo/zipball/eb45606f498b3426b9a98b7c85e300666a968e51",
- "reference": "eb45606f498b3426b9a98b7c85e300666a968e51",
+ "url": "https://api.github.com/repos/consolidation/Robo/zipball/1a7c652371615fd72ff05380ffe6ce263eb31eb3",
+ "reference": "1a7c652371615fd72ff05380ffe6ce263eb31eb3",
"shasum": ""
},
"require": {
- "consolidation/annotated-command": "^2.11.0|^4.1",
- "consolidation/config": "^1.2.1",
- "consolidation/log": "^1.1.1|^2",
- "consolidation/output-formatters": "^3.1.13|^4.1",
- "consolidation/self-update": "^1.1.5",
- "grasmash/yaml-expander": "^1.4",
+ "consolidation/annotated-command": "^4.2.1",
+ "consolidation/config": "^1.2.1|^2",
+ "consolidation/log": "^1.1.1|^2.0.1",
+ "consolidation/output-formatters": "^4.1.1",
+ "consolidation/self-update": "^1.2",
"league/container": "^2.4.1",
- "php": ">=5.5.0",
- "symfony/console": "^2.8|^3|^4",
- "symfony/event-dispatcher": "^2.5|^3|^4",
- "symfony/filesystem": "^2.5|^3|^4",
- "symfony/finder": "^2.5|^3|^4",
- "symfony/process": "^2.5|^3|^4"
+ "php": ">=7.1.3",
+ "symfony/console": "^4.4.11|^5",
+ "symfony/event-dispatcher": "^4.4.11|^5",
+ "symfony/filesystem": "^4.4.11|^5",
+ "symfony/finder": "^4.4.11|^5",
+ "symfony/process": "^4.4.11|^5"
},
- "replace": {
- "codegyre/robo": "< 1.0"
+ "conflict": {
+ "codegyre/robo": "*"
},
"require-dev": {
"g1a/composer-test-scenarios": "^3",
"natxet/cssmin": "3.0.4",
"patchwork/jsqueeze": "^2",
"pear/archive_tar": "^1.4.4",
- "php-coveralls/php-coveralls": "^1",
- "phpunit/phpunit": "^5.7.27",
+ "php-coveralls/php-coveralls": "^2.2",
+ "phpdocumentor/reflection-docblock": "^4.3.2",
+ "phpunit/phpunit": "^6.5.14",
"squizlabs/php_codesniffer": "^3"
},
"suggest": {
"henrikbjorn/lurker": "For monitoring filesystem changes in taskWatch",
- "natxet/CssMin": "For minifying CSS files in taskMinify",
+ "natxet/cssmin": "For minifying CSS files in taskMinify",
"patchwork/jsqueeze": "For minifying JS files in taskMinify",
"pear/archive_tar": "Allows tar archives to be created and extracted in taskPack and taskExtract, respectively."
},
@@ -418,36 +540,27 @@
"scenarios": {
"symfony4": {
"require": {
- "symfony/console": "^4"
- },
- "config": {
- "platform": {
- "php": "7.1.3"
- }
- }
- },
- "symfony2": {
- "require": {
- "symfony/console": "^2.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.36"
+ "symfony/console": "^4.4.11",
+ "symfony/event-dispatcher": "^4.4.11",
+ "symfony/filesystem": "^4.4.11",
+ "symfony/finder": "^4.4.11",
+ "symfony/process": "^4.4.11",
+ "phpunit/phpunit": "^6",
+ "nikic/php-parser": "^2"
},
"remove": [
- "php-coveralls/php-coveralls"
+ "codeception/phpunit-wrapper"
],
"config": {
"platform": {
- "php": "5.5.9"
+ "php": "7.1.3"
}
- },
- "scenario-options": {
- "create-lockfile": "false"
}
}
},
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-master": "2.x-dev",
+ "dev-main": "2.x-dev"
}
},
"autoload": {
@@ -466,7 +579,7 @@
}
],
"description": "Modern task runner",
- "time": "2020-02-18T17:31:26+00:00"
+ "time": "2020-09-08T16:23:18+00:00"
},
{
"name": "consolidation/self-update",
@@ -547,6 +660,7 @@
],
"description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
"homepage": "https://github.com/container-interop/container-interop",
+ "abandoned": "psr/container",
"time": "2017-02-14T19:40:03+00:00"
},
{
@@ -647,20 +761,20 @@
},
{
"name": "glpi-project/tools",
- "version": "0.1.13",
+ "version": "0.1.14",
"source": {
"type": "git",
"url": "https://github.com/glpi-project/tools.git",
- "reference": "2028ecf9acd8b838cff37771dcab77ced9391f41"
+ "reference": "fd2d9d5a8a465640efe8f20334a6ee302cafe05e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/glpi-project/tools/zipball/2028ecf9acd8b838cff37771dcab77ced9391f41",
- "reference": "2028ecf9acd8b838cff37771dcab77ced9391f41",
+ "url": "https://api.github.com/repos/glpi-project/tools/zipball/fd2d9d5a8a465640efe8f20334a6ee302cafe05e",
+ "reference": "fd2d9d5a8a465640efe8f20334a6ee302cafe05e",
"shasum": ""
},
"require": {
- "consolidation/robo": "^1.3",
+ "consolidation/robo": "^1.3 || ^2.0",
"glpi-project/coding-standard": "^0.7",
"natxet/cssmin": "^3.0",
"patchwork/jsqueeze": "^1.0"
@@ -693,7 +807,7 @@
"plugins",
"tools"
],
- "time": "2020-06-19T10:29:26+00:00"
+ "time": "2020-10-26T07:33:44+00:00"
},
{
"name": "grasmash/expander",
@@ -742,54 +856,6 @@
"description": "Expands internal property references in PHP arrays file.",
"time": "2017-12-21T22:14:55+00:00"
},
- {
- "name": "grasmash/yaml-expander",
- "version": "1.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/grasmash/yaml-expander.git",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/grasmash/yaml-expander/zipball/3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "reference": "3f0f6001ae707a24f4d9733958d77d92bf9693b1",
- "shasum": ""
- },
- "require": {
- "dflydev/dot-access-data": "^1.1.0",
- "php": ">=5.4",
- "symfony/yaml": "^2.8.11|^3|^4"
- },
- "require-dev": {
- "greg-1-anderson/composer-test-scenarios": "^1",
- "phpunit/phpunit": "^4.8|^5.5.4",
- "satooshi/php-coveralls": "^1.0.2|dev-master",
- "squizlabs/php_codesniffer": "^2.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Grasmash\\YamlExpander\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matthew Grasmick"
- }
- ],
- "description": "Expands internal property references in a yaml file.",
- "time": "2017-12-16T16:06:03+00:00"
- },
{
"name": "league/container",
"version": "2.4.1",
@@ -942,6 +1008,7 @@
"javascript",
"minification"
],
+ "abandoned": true,
"time": "2015-03-25T10:11:08+00:00"
},
{
@@ -1042,16 +1109,16 @@
},
{
"name": "squizlabs/php_codesniffer",
- "version": "3.5.5",
+ "version": "3.5.8",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6"
+ "reference": "9d583721a7157ee997f235f327de038e7ea6dac4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/73e2e7f57d958e7228fce50dc0c61f58f017f9f6",
- "reference": "73e2e7f57d958e7228fce50dc0c61f58f017f9f6",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/9d583721a7157ee997f235f327de038e7ea6dac4",
+ "reference": "9d583721a7157ee997f235f327de038e7ea6dac4",
"shasum": ""
},
"require": {
@@ -1089,20 +1156,20 @@
"phpcs",
"standards"
],
- "time": "2020-04-17T01:09:41+00:00"
+ "time": "2020-10-23T02:01:07+00:00"
},
{
"name": "symfony/console",
- "version": "v4.4.10",
+ "version": "v4.4.15",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "326b064d804043005526f5a0494cfb49edb59bb0"
+ "reference": "90933b39c7b312fc3ceaa1ddeac7eb48cb953124"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/326b064d804043005526f5a0494cfb49edb59bb0",
- "reference": "326b064d804043005526f5a0494cfb49edb59bb0",
+ "url": "https://api.github.com/repos/symfony/console/zipball/90933b39c7b312fc3ceaa1ddeac7eb48cb953124",
+ "reference": "90933b39c7b312fc3ceaa1ddeac7eb48cb953124",
"shasum": ""
},
"require": {
@@ -1180,20 +1247,20 @@
"type": "tidelift"
}
],
- "time": "2020-05-30T20:06:45+00:00"
+ "time": "2020-09-15T07:58:55+00:00"
},
{
"name": "symfony/event-dispatcher",
- "version": "v4.4.10",
+ "version": "v4.4.15",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "a5370aaa7807c7a439b21386661ffccf3dff2866"
+ "reference": "e17bb5e0663dc725f7cdcafc932132735b4725cd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a5370aaa7807c7a439b21386661ffccf3dff2866",
- "reference": "a5370aaa7807c7a439b21386661ffccf3dff2866",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e17bb5e0663dc725f7cdcafc932132735b4725cd",
+ "reference": "e17bb5e0663dc725f7cdcafc932132735b4725cd",
"shasum": ""
},
"require": {
@@ -1211,6 +1278,7 @@
"psr/log": "~1.0",
"symfony/config": "^3.4|^4.0|^5.0",
"symfony/dependency-injection": "^3.4|^4.0|^5.0",
+ "symfony/error-handler": "~3.4|~4.4",
"symfony/expression-language": "^3.4|^4.0|^5.0",
"symfony/http-foundation": "^3.4|^4.0|^5.0",
"symfony/service-contracts": "^1.1|^2",
@@ -1264,24 +1332,24 @@
"type": "tidelift"
}
],
- "time": "2020-05-20T08:37:50+00:00"
+ "time": "2020-09-18T14:07:46+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
- "version": "v1.1.7",
+ "version": "v1.1.9",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
- "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18"
+ "reference": "84e23fdcd2517bf37aecbd16967e83f0caee25a7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c43ab685673fb6c8d84220c77897b1d6cdbe1d18",
- "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/84e23fdcd2517bf37aecbd16967e83f0caee25a7",
+ "reference": "84e23fdcd2517bf37aecbd16967e83f0caee25a7",
"shasum": ""
},
"require": {
- "php": "^7.1.3"
+ "php": ">=7.1.3"
},
"suggest": {
"psr/event-dispatcher": "",
@@ -1291,6 +1359,10 @@
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@@ -1322,20 +1394,34 @@
"interoperability",
"standards"
],
- "time": "2019-09-17T09:54:03+00:00"
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-07-06T13:19:58+00:00"
},
{
"name": "symfony/filesystem",
- "version": "v4.4.10",
+ "version": "v4.4.15",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
- "reference": "b27f491309db5757816db672b256ea2e03677d30"
+ "reference": "ebc51494739d3b081ea543ed7c462fa73a4f74db"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/b27f491309db5757816db672b256ea2e03677d30",
- "reference": "b27f491309db5757816db672b256ea2e03677d30",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/ebc51494739d3b081ea543ed7c462fa73a4f74db",
+ "reference": "ebc51494739d3b081ea543ed7c462fa73a4f74db",
"shasum": ""
},
"require": {
@@ -1386,24 +1472,24 @@
"type": "tidelift"
}
],
- "time": "2020-05-30T18:50:54+00:00"
+ "time": "2020-09-27T13:54:16+00:00"
},
{
"name": "symfony/finder",
- "version": "v4.4.10",
+ "version": "v4.4.15",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "5729f943f9854c5781984ed4907bbb817735776b"
+ "reference": "60d08560f9aa72997c44077c40d47aa28a963230"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/5729f943f9854c5781984ed4907bbb817735776b",
- "reference": "5729f943f9854c5781984ed4907bbb817735776b",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/60d08560f9aa72997c44077c40d47aa28a963230",
+ "reference": "60d08560f9aa72997c44077c40d47aa28a963230",
"shasum": ""
},
"require": {
- "php": "^7.1.3"
+ "php": ">=7.1.3"
},
"type": "library",
"extra": {
@@ -1449,100 +1535,24 @@
"type": "tidelift"
}
],
- "time": "2020-03-27T16:54:36+00:00"
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.17.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
- "reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.17-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ],
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2020-06-06T08:46:27+00:00"
+ "time": "2020-10-02T07:34:48+00:00"
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.17.1",
+ "version": "v1.20.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "7110338d81ce1cbc3e273136e4574663627037a7"
+ "reference": "39d483bdf39be819deabf04ec872eb0b2410b531"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7110338d81ce1cbc3e273136e4574663627037a7",
- "reference": "7110338d81ce1cbc3e273136e4574663627037a7",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/39d483bdf39be819deabf04ec872eb0b2410b531",
+ "reference": "39d483bdf39be819deabf04ec872eb0b2410b531",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
},
"suggest": {
"ext-mbstring": "For best performance"
@@ -1550,7 +1560,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.17-dev"
+ "dev-main": "1.20-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -1602,29 +1612,29 @@
"type": "tidelift"
}
],
- "time": "2020-06-06T08:46:27+00:00"
+ "time": "2020-10-23T14:02:19+00:00"
},
{
"name": "symfony/polyfill-php73",
- "version": "v1.17.1",
+ "version": "v1.20.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php73.git",
- "reference": "fa0837fe02d617d31fbb25f990655861bb27bd1a"
+ "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fa0837fe02d617d31fbb25f990655861bb27bd1a",
- "reference": "fa0837fe02d617d31fbb25f990655861bb27bd1a",
+ "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/8ff431c517be11c78c48a39a66d37431e26a6bed",
+ "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.17-dev"
+ "dev-main": "1.20-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -1678,29 +1688,29 @@
"type": "tidelift"
}
],
- "time": "2020-06-06T08:46:27+00:00"
+ "time": "2020-10-23T14:02:19+00:00"
},
{
"name": "symfony/polyfill-php80",
- "version": "v1.17.1",
+ "version": "v1.20.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "4a5b6bba3259902e386eb80dd1956181ee90b5b2"
+ "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4a5b6bba3259902e386eb80dd1956181ee90b5b2",
- "reference": "4a5b6bba3259902e386eb80dd1956181ee90b5b2",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/e70aa8b064c5b72d3df2abd5ab1e90464ad009de",
+ "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de",
"shasum": ""
},
"require": {
- "php": ">=7.0.8"
+ "php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.17-dev"
+ "dev-main": "1.20-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -1758,24 +1768,24 @@
"type": "tidelift"
}
],
- "time": "2020-06-06T08:46:27+00:00"
+ "time": "2020-10-23T14:02:19+00:00"
},
{
"name": "symfony/process",
- "version": "v4.4.10",
+ "version": "v4.4.15",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "c714958428a85c86ab97e3a0c96db4c4f381b7f5"
+ "reference": "9b887acc522935f77555ae8813495958c7771ba7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/c714958428a85c86ab97e3a0c96db4c4f381b7f5",
- "reference": "c714958428a85c86ab97e3a0c96db4c4f381b7f5",
+ "url": "https://api.github.com/repos/symfony/process/zipball/9b887acc522935f77555ae8813495958c7771ba7",
+ "reference": "9b887acc522935f77555ae8813495958c7771ba7",
"shasum": ""
},
"require": {
- "php": "^7.1.3"
+ "php": ">=7.1.3"
},
"type": "library",
"extra": {
@@ -1821,24 +1831,24 @@
"type": "tidelift"
}
],
- "time": "2020-05-30T20:06:45+00:00"
+ "time": "2020-09-02T16:08:58+00:00"
},
{
"name": "symfony/service-contracts",
- "version": "v1.1.8",
+ "version": "v1.1.9",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
- "reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf"
+ "reference": "b776d18b303a39f56c63747bcb977ad4b27aca26"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/ffc7f5692092df31515df2a5ecf3b7302b3ddacf",
- "reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/b776d18b303a39f56c63747bcb977ad4b27aca26",
+ "reference": "b776d18b303a39f56c63747bcb977ad4b27aca26",
"shasum": ""
},
"require": {
- "php": "^7.1.3",
+ "php": ">=7.1.3",
"psr/container": "^1.0"
},
"suggest": {
@@ -1848,6 +1858,10 @@
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@@ -1879,65 +1893,6 @@
"interoperability",
"standards"
],
- "time": "2019-10-14T12:27:06+00:00"
- },
- {
- "name": "symfony/yaml",
- "version": "v4.4.10",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a",
- "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1.3",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "^3.4|^4.0|^5.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.4-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -1952,7 +1907,7 @@
"type": "tidelift"
}
],
- "time": "2020-05-20T08:37:50+00:00"
+ "time": "2020-07-06T13:19:58+00:00"
}
],
"aliases": [],
diff --git a/front/export_to_yaml.php b/front/export_to_yaml.php
new file mode 100644
index 00000000..e748a68a
--- /dev/null
+++ b/front/export_to_yaml.php
@@ -0,0 +1,20 @@
+add($_POST);
} else if (isset($_POST['update'])) {
$translation->update($_POST);
+
+} else if (isset($_POST['purge'])) {
+ $translation->delete($_POST, true);
}
Html::back();
diff --git a/inc/container.class.php b/inc/container.class.php
index 4be432da..1f337a7a 100644
--- a/inc/container.class.php
+++ b/inc/container.class.php
@@ -13,7 +13,9 @@ static function canPurge() {
static function titleList() {
echo "
";
+ __("Regenerate container files", "fields")." ".
+ __("Export to YAML", "fields")."
";
+
}
/**
@@ -90,25 +92,32 @@ static function install(Migration $migration, $version) {
if ($bad_named_containers->count() > 0) {
$migration->displayMessage(__("Fix container names", "fields"));
+ $toolbox = new PluginFieldsToolbox();
+
foreach ($bad_named_containers as $container) {
$old_name = $container['name'];
// Update container name
- $toolbox = new PluginFieldsToolbox();
- $container['name'] = $toolbox->getSystemNameFromLabel($container['label']);
+ $new_name = $toolbox->getSystemNameFromLabel($container['label']);
+ foreach (json_decode($container['itemtypes']) as $itemtype) {
+ while (strlen(getTableForItemType(self::getClassname($itemtype, $new_name))) > 64) {
+ // limit tables names to 64 chars (MySQL limit)
+ $new_name = substr($new_name, 0, -1);
+ }
+ }
+ $container['name'] = $new_name;
$container_obj = new PluginFieldsContainer();
$container_obj->update(
$container,
false
);
- // Rename container tables
+ // Rename container tables and itemtype if needed
foreach (json_decode($container['itemtypes']) as $itemtype) {
- $old_table = getTableForItemType(self::getClassname($itemtype, $old_name));
- $new_table = getTableForItemType(self::getClassname($itemtype, $container['name']));
- if ($DB->tableExists($old_table)) {
- $migration->renameTable($old_table, $new_table);
- }
+ $migration->renameItemtype(
+ self::getClassname($itemtype, $old_name),
+ self::getClassname($itemtype, $new_name)
+ );
}
}
}
@@ -408,6 +417,19 @@ function prepareInputForAdd($input) {
$toolbox = new PluginFieldsToolbox();
$input['name'] = $toolbox->getSystemNameFromLabel($input['label']);
+ //reject adding when container name is too long for mysql table name
+ foreach ($input['itemtypes'] as $itemtype) {
+ $tmp = getTableForItemType(self::getClassname($itemtype, $input['name']));
+ if (strlen($tmp) > 64) {
+ Session::AddMessageAfterRedirect(
+ __("Container name is too long for database (digits in name are replaced by characters, try to remove them)", 'fields'),
+ false,
+ ERROR
+ );
+ return false;
+ }
+ }
+
//check for already existing container with same name
$found = $this->find(['name' => $input['name']]);
if (count($found) > 0) {
@@ -563,6 +585,9 @@ static function getTypeName($nb = 0) {
public function showForm($ID, $options = []) {
global $CFG_GLPI;
+ echo "
";
+
$this->initForm($ID, $options);
$this->showFormHeader($options);
$rand = mt_rand();
@@ -748,15 +773,19 @@ static function getItemtypes($is_domtab) {
$tabs = [];
$tabs[__('Assets')] = [
- 'Computer' => Computer::getTypeName(2),
- 'Monitor' => Monitor::getTypeName(2),
- 'Software' => Software::getTypeName(2),
- 'NetworkEquipment' => NetworkEquipment::getTypeName(2),
- 'Peripheral' => Peripheral::getTypeName(2),
- 'Printer' => Printer::getTypeName(2),
- 'CartridgeItem' => CartridgeItem::getTypeName(2),
- 'ConsumableItem' => ConsumableItem::getTypeName(2),
- 'Phone' => Phone::getTypeName(2)
+ 'Computer' => Computer::getTypeName(2),
+ 'Monitor' => Monitor::getTypeName(2),
+ 'Software' => Software::getTypeName(2),
+ 'NetworkEquipment' => NetworkEquipment::getTypeName(2),
+ 'Peripheral' => Peripheral::getTypeName(2),
+ 'Printer' => Printer::getTypeName(2),
+ 'CartridgeItem' => CartridgeItem::getTypeName(2),
+ 'ConsumableItem' => ConsumableItem::getTypeName(2),
+ 'Phone' => Phone::getTypeName(2),
+ 'Rack' => Rack::getTypeName(2),
+ 'Enclosure' => Enclosure::getTypeName(2),
+ 'PDU' => PDU::getTypeName(2),
+ 'PassiveDCEquipment' => PassiveDCEquipment::getTypeName(2),
];
$tabs[__('Assistance')] = [
@@ -774,6 +803,11 @@ static function getItemtypes($is_domtab) {
'Contract' => Contract::getTypeName(2),
'Document' => Document::getTypeName(2),
'Line' => Line::getTypeName(2),
+ 'Certificate' => Certificate::getTypeName(2),
+ 'Datacenter' => Datacenter::getTypeName(2),
+ 'Cluster' => Cluster::getTypeName(2),
+ 'Domain' => Domain::getTypeName(2),
+ 'Appliance' => Appliance::getTypeName(2),
];
$tabs[__('Tools')] = [
diff --git a/inc/field.class.php b/inc/field.class.php
index 6cf57c68..5bc445f4 100644
--- a/inc/field.class.php
+++ b/inc/field.class.php
@@ -81,10 +81,19 @@ static function getTypeName($nb = 0) {
function prepareInputForAdd($input) {
- global $DB;
//parse name
$input['name'] = $this->prepareName($input);
+ //reject adding when field name is too long for mysql
+ if (strlen($input['name']) > 64) {
+ Session::AddMessageAfterRedirect(
+ __("Field name is too long for database (digits in name are replaced by characters, try to remove them)", 'fields'),
+ false,
+ ERROR
+ );
+ return false;
+ }
+
if ($input['type'] === "dropdown") {
//search if dropdown already exist in this container
$found = $this->find(
@@ -100,6 +109,16 @@ function prepareInputForAdd($input) {
return false;
}
+ //reject adding when dropdown name is too long for mysql table name
+ if (strlen(getTableForItemType(PluginFieldsDropdown::getClassname($input['name']))) > 64) {
+ Session::AddMessageAfterRedirect(
+ __("Field name is too long for database (digits in name are replaced by characters, try to remove them)", 'fields'),
+ false,
+ ERROR
+ );
+ return false;
+ }
+
$oldname = $input['name'];
$input['name'] = getForeignKeyFieldForItemType(
PluginFieldsDropdown::getClassname($input['name']));
diff --git a/inc/inventory.class.php b/inc/inventory.class.php
new file mode 100644
index 00000000..65db27b8
--- /dev/null
+++ b/inc/inventory.class.php
@@ -0,0 +1,94 @@
+ $inventories) {
+
+ if (in_array($itemtype, $availaibleItemType)) {
+ //retrive items id switch itemtype
+ switch ($itemtype) {
+ case Computer::getType():
+ $items_id = $params['computers_id'];
+ break;
+
+ case NetworkEquipment::getType():
+ $items_id = $params['networkequipments_id'];
+ break;
+
+ case Printer::getType():
+ $items_id = $params['printers_id'];
+ break;
+ }
+
+ //load inventory from DB because
+ //FI not update XML file if computer is not update
+ if ($itemtype == Computer::getType()) {
+ $db_info = new PluginFusioninventoryInventoryComputerComputer();
+ if ($db_info->getFromDBByCrit(['computers_id' => $items_id])) {
+
+ $arrayinventory = unserialize(gzuncompress($db_info->fields['serialized_inventory']));
+ if (isset($arrayinventory['custom'])) {
+ self::updateFields($arrayinventory['custom']['container'], $itemtype, $items_id);
+ }
+ }
+ //Load XML file because FI always update XML file and don't store inventory into DB
+ } else {
+ $file = self::loadXMLFile($itemtype, $items_id);
+ if ($file !== false) {
+ $arrayinventory = PluginFusioninventoryFormatconvert::XMLtoArray($file);
+ if (isset($arrayinventory['CUSTOM'])) {
+ self::updateFields($arrayinventory['CUSTOM']['CONTAINER'], $itemtype, $items_id);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ static function updateFields($containersData, $itemtype, $items_id) {
+ if (isset($containersData['ID'])) {
+ // $containersData contains only one element, encapsulate it into an array
+ $containersData = [$containersData];
+ }
+ foreach ($containersData as $key => $containerData) {
+ $container = new PluginFieldsContainer();
+ $container->getFromDB($containerData['ID']);
+ $data = [];
+ $data["items_id"] = $items_id;
+ $data["itemtype"] = $itemtype;
+ $data["plugin_fields_containers_id"] = $containerData['ID'];
+ foreach ($containerData['FIELDS'] as $key => $value) {
+ $data[strtolower($key)] = $value;
+ }
+ $container->updateFieldsValues($data, $itemtype, false);
+ }
+ }
+
+ static function loadXMLFile($itemtype, $items_id) {
+
+ $pxml = false;
+ $folder = substr($items_id, 0, -1);
+ if (empty($folder)) {
+ $folder = '0';
+ }
+
+ //Check if the file exists with the .xml extension (new format)
+ $file = PLUGIN_FUSIONINVENTORY_XML_DIR . strtolower($itemtype) . "/" . $folder . "/" . $items_id;
+ if (file_exists($file . '.xml')) {
+ $file .= '.xml';
+ } else if (!file_exists($file)) {
+ return false;
+ }
+ $pxml = simplexml_load_file($file, 'SimpleXMLElement', LIBXML_NOCDATA);
+ return $pxml;
+ }
+
+}
diff --git a/inc/labeltranslation.class.php b/inc/labeltranslation.class.php
index d7ab7497..ffd496e7 100644
--- a/inc/labeltranslation.class.php
+++ b/inc/labeltranslation.class.php
@@ -3,6 +3,14 @@
class PluginFieldsLabelTranslation extends CommonDBTM {
static $rightname = 'config';
+ static function canCreate() {
+ return self::canUpdate();
+ }
+
+ static function canPurge() {
+ return self::canUpdate();
+ }
+
/**
* Install or update fields
*
diff --git a/inc/toolbox.class.php b/inc/toolbox.class.php
index 845204ac..34d99dd2 100644
--- a/inc/toolbox.class.php
+++ b/inc/toolbox.class.php
@@ -93,9 +93,19 @@ public function fixFieldsNames(Migration $migration, $condition) {
$old_name = $field['name'];
// Update field name
- $field_obj = new PluginFieldsField();
$field['name'] = null;
- $field['name'] = $field_obj->prepareName($field);
+ $field_obj = new PluginFieldsField();
+ $new_name = $field_obj->prepareName($field);
+ if ($new_name > 64) {
+ // limit fields names to 64 chars (MySQL limit)
+ $new_name = substr($new_name, 0, 64);
+ }
+ while ('dropdown' === $field['type']
+ && strlen(getTableForItemType(PluginFieldsDropdown::getClassname($new_name))) > 64) {
+ // limit tables names to 64 chars (MySQL limit)
+ $new_name = substr($new_name, 0, -1);
+ }
+ $field['name'] = $new_name;
$field_obj->update(
$field,
false
@@ -109,6 +119,7 @@ public function fixFieldsNames(Migration $migration, $condition) {
// Rename dropdown table
$old_table = getTableForItemType(PluginFieldsDropdown::getClassname($old_name));
$new_table = getTableForItemType(PluginFieldsDropdown::getClassname($field['name']));
+
if ($DB->tableExists($old_table)) {
$migration->renameTable($old_table, $new_table);
}
diff --git a/locales/cs_CZ.mo b/locales/cs_CZ.mo
index 350aa74a..a94c3c81 100644
Binary files a/locales/cs_CZ.mo and b/locales/cs_CZ.mo differ
diff --git a/locales/cs_CZ.po b/locales/cs_CZ.po
index 69bcad65..dfb0d65a 100644
--- a/locales/cs_CZ.po
+++ b/locales/cs_CZ.po
@@ -10,9 +10,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-03 11:12+0000\n"
-"Last-Translator: Pavel Borecki \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Czech (Czech Republic) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/cs_CZ/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -33,7 +33,7 @@ msgid "MySQL tables uninstallation"
msgstr "Odebrání MySQL tabulek"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Další kolonky"
@@ -41,11 +41,11 @@ msgstr "Další kolonky"
msgid "Updating generated dropdown files"
msgstr "Aktualizují se vytvořené soubory rozbalovací nabídky"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Jazyk"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Štítek"
@@ -53,63 +53,73 @@ msgstr "Štítek"
msgid "Regenerate container files"
msgstr "Znovu vytvořit kontejnerové soubory"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Opravit názvy kontejnerů"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Aktualizují se vytvořené soubory kontejnerů"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Není možné přidat blok bez typu přiřazeného prvku"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Není možné přidat několik bloků s typem „Vložení do formuláře“ na stejný objekt"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Není možné přidat několik bloků typu „Vložení ve formuláři konkrétní karty“ na té stejné kartě objektu"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Není možné přidat více bloků se stejným názvem do jednoho objektu"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Blok"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Tabulka"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Přidat tabulku"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Vložení do formuláře (před tlačítkem uložit)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Vložení do formuláře konkrétního panelu (před tlačítkem uložit)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Některá povinná pole nejsou vyplněná"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Některé číselné kolonky obsahují nečíselné hodnoty"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Některé URL kolonky obsahují neplatné odkazy"
@@ -121,66 +131,72 @@ msgstr "Opravit názvy kolonek"
msgid "Field"
msgstr "Kolonka"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Kolonky"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Přidat novou kolonku"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Žádná kolonka pro tento blok"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Pouze pro čtení"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Nastavit"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Nastavit hodnoty kolonek"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "zobrazit"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Hlavička"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Text (jednořádkový)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Text (víceřádkový)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Číslo"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL adresa"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Rozbalovací"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Ano/Ne"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Datum"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Datum a čas"
diff --git a/locales/en_GB.mo b/locales/en_GB.mo
index e0dfec30..2e22d81c 100644
Binary files a/locales/en_GB.mo and b/locales/en_GB.mo differ
diff --git a/locales/en_GB.po b/locales/en_GB.po
index 7623bbe0..786c34da 100644
--- a/locales/en_GB.po
+++ b/locales/en_GB.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2020-07-03 18:53+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:42+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: en_GB\n"
@@ -30,7 +30,7 @@ msgid "MySQL tables uninstallation"
msgstr "MySQL tables uninstallation"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Additionnal fields"
@@ -38,11 +38,11 @@ msgstr "Additionnal fields"
msgid "Updating generated dropdown files"
msgstr "Updating generated dropdown files"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Language"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Label"
@@ -50,19 +50,23 @@ msgstr "Label"
msgid "Regenerate container files"
msgstr "Regenerate container files"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr "Export to YAML"
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Fix container names"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Updating generated containers files"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "You cannot add block without associated element type"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
@@ -70,7 +74,7 @@ msgstr ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific "
"tab' on same object tab"
@@ -78,39 +82,47 @@ msgstr ""
"You cannot add several blocks with type 'Insertion in the form of a specific "
"tab' on same object tab"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "You cannot add several blocs with identical name on same object"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Block"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Tab"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Add tab"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Insertion in the form (before save button)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Insertion in the form of a specific tab (before save button)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Some mandatory fields are empty"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Some numeric fields contains non numeric values"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Some URL fields contains invalid links"
@@ -122,66 +134,74 @@ msgstr "Fix fields names"
msgid "Field"
msgstr "Field"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Fields"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Add a new field"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "No field for this block"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Read only"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Configure"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Configure fields values"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "show"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Header"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Text (single line)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Text (multiples lines)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Number"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Dropdown"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Yes/No"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Date"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Date & time"
diff --git a/locales/en_US.mo b/locales/en_US.mo
index 378d5fa2..d131973c 100644
Binary files a/locales/en_US.mo and b/locales/en_US.mo differ
diff --git a/locales/en_US.po b/locales/en_US.po
index d6529663..ebe1ed07 100644
--- a/locales/en_US.po
+++ b/locales/en_US.po
@@ -9,9 +9,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-11-14 17:33+0000\n"
-"Last-Translator: Shawn Long \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: English (United States) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/en_US/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -32,7 +32,7 @@ msgid "MySQL tables uninstallation"
msgstr "MySQL tables uninstallation"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Additional Fields"
@@ -40,11 +40,11 @@ msgstr "Additional Fields"
msgid "Updating generated dropdown files"
msgstr "Updating generated dropdown files"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Language"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Label"
@@ -52,63 +52,73 @@ msgstr "Label"
msgid "Regenerate container files"
msgstr "Regenerate container files"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Fix container names"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Updating generated containers files"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "You cannot add block without associated element type"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "You cannot add several blocks with type 'Insertion in the form' on same object"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "You cannot add several blocks with type 'Insertion in the form of a specific tab' on same object tab"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "You cannot add several blocks with identical name on same object"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Block"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Tab"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Add Tab"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Insert in the Form (before save button)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Insert in the Form of a Specific Tab (before save button)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Some required fields are empty"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Some numeric fields contains non-numeric values"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Some URL fields contains invalid links"
@@ -120,66 +130,72 @@ msgstr "Fix fields names"
msgid "Field"
msgstr "Field"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Fields"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Add a New Field"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "No Field for this Block"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Read Only"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Configure"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Configure Fields Values"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "show"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Header"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Text (single line)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Text (multiples lines)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Number"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Dropdown"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Yes/No"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Date"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Date & Time"
diff --git a/locales/es_ES.mo b/locales/es_ES.mo
index 53b84c53..d4b7735a 100644
Binary files a/locales/es_ES.mo and b/locales/es_ES.mo differ
diff --git a/locales/es_ES.po b/locales/es_ES.po
index c7276054..0563a8f0 100644
--- a/locales/es_ES.po
+++ b/locales/es_ES.po
@@ -11,9 +11,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2020-03-24 15:21+0000\n"
-"Last-Translator: Ricardo Herrero \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Spanish (Spain) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/es_ES/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -34,7 +34,7 @@ msgid "MySQL tables uninstallation"
msgstr "Desinstalación de las tablas MySQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Campos adicionales"
@@ -42,11 +42,11 @@ msgstr "Campos adicionales"
msgid "Updating generated dropdown files"
msgstr "Actualización de los archivos 'desplegables' generados"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Idioma"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Etiqueta"
@@ -54,63 +54,73 @@ msgstr "Etiqueta"
msgid "Regenerate container files"
msgstr "Regenerar archivos contenedores"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Corrija los nombres de los contenedores"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Actualizar los archivos de contenedores generados"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "No se puede agregar un bloque sin el tipo de elemento asociado"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "No se pueden añadir varios bloques con el tipo 'inserción en el formulario' en el mismo objeto"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "No puede agregar varios bloques con el tipo 'inserción en forma de una pestaña específica' en la misma pestaña de objeto"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "No se pueden añadir varios bloques con un nombre idéntico en el mismo objeto"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Bloque"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Pestaña"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Agregar pestaña"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Insertando en el formulario (antes del botón guardar)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Inserción en el formulario de una pestaña específica (antes del botón guardar)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Algunos campos obligatorios están vacíos"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Algunos campos numéricos contienen valores no numéricos"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Algunos campos de URL contienen vínculos no válidos"
@@ -122,66 +132,72 @@ msgstr "Corrija los nombres de los campos"
msgid "Field"
msgstr "Campo"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Campos"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Agregar nuevo campo"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Ningún campo para este bloque"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Solo lectura"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Configurar"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Configure valores de los campos"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "mostrar"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Encabezamiento"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Texto (línea simple)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Texto (multiples líneas)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Número"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Menú desplegable"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Si/No"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Fecha"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Fecha & Hora"
diff --git a/locales/fi_FI.mo b/locales/fi_FI.mo
index 97373b81..04a27eff 100644
Binary files a/locales/fi_FI.mo and b/locales/fi_FI.mo differ
diff --git a/locales/fi_FI.po b/locales/fi_FI.po
index d122f6f0..88443aac 100644
--- a/locales/fi_FI.po
+++ b/locales/fi_FI.po
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-02 10:39+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
"Last-Translator: Cédric Anne\n"
"Language-Team: Finnish (Finland) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/fi_FI/)\n"
"MIME-Version: 1.0\n"
@@ -31,7 +31,7 @@ msgid "MySQL tables uninstallation"
msgstr "MySQL-taulukoiden poistaminen"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Lisäkentät"
@@ -39,11 +39,11 @@ msgstr "Lisäkentät"
msgid "Updating generated dropdown files"
msgstr "Päivitetään luodut pudotusvalikko tiedostot"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Kieli"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Etiketti"
@@ -51,63 +51,73 @@ msgstr "Etiketti"
msgid "Regenerate container files"
msgstr "Luo uudelleen säilötiedostot"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Päivitetään luodut säilötiedostot"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Et voi lisätä osiota ilman liittyvää elementtityyppiä"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Et voi lisätä useita osioita, joiden tyyppi on \"Lisää lomakkeeseen\" samassa objektissa"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Et voi lisätä useita osioita, joissa on tyyppi \"Liitettynä lomakkeeseen tietyssä välilehdessä\" samassa objektin välilehdessä"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Et voi lisätä useita osioita samalla nimellä samaan objektiin"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Osio"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Välilehti"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Lisää välilehti"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Lisää lomakkeeseen (ennen tallennuspainiketta)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Lisää lomakkeeseen tietyssä välilehdessä (ennen tallennuspainiketta)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Jotkut pakolliset kentät ovat tyhjiä"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Jotkin numeeriset kentät sisältävät ei-numeerisia arvoja"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Joissakin URL-kentissä on virheellisiä linkkejä"
@@ -119,66 +129,72 @@ msgstr ""
msgid "Field"
msgstr "Kenttä"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Kentät"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Lisää uusi kenttä"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Ei kenttää tälle osiolle"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Vain luku"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Määritä"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Määritä kenttien arvot"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "näytä"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Ylätunniste"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Teksti (yksi rivi)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Teksti (useita rivejä)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Numero"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Pudotusvalikko"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Kyllä/Ei"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Päivämäärä"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Päivämäärä ja aika"
diff --git a/locales/fields.pot b/locales/fields.pot
index 8ff68072..0c3755b2 100644
--- a/locales/fields.pot
+++ b/locales/fields.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -30,7 +30,7 @@ msgid "MySQL tables uninstallation"
msgstr ""
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr ""
@@ -38,11 +38,11 @@ msgstr ""
msgid "Updating generated dropdown files"
msgstr ""
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr ""
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr ""
@@ -50,63 +50,73 @@ msgstr ""
msgid "Regenerate container files"
msgstr ""
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr ""
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr ""
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr ""
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific "
"tab' on same object tab"
msgstr ""
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr ""
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr ""
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr ""
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr ""
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr ""
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr ""
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr ""
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr ""
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr ""
@@ -118,66 +128,72 @@ msgstr ""
msgid "Field"
msgstr ""
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr ""
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr ""
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr ""
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr ""
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr ""
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr ""
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr ""
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr ""
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr ""
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr ""
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr ""
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr ""
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr ""
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr ""
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr ""
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr ""
diff --git a/locales/fr_FR.mo b/locales/fr_FR.mo
index 64c06c88..66a05bee 100644
Binary files a/locales/fr_FR.mo and b/locales/fr_FR.mo differ
diff --git a/locales/fr_FR.po b/locales/fr_FR.po
index a96f8eaa..1f54bcd4 100644
--- a/locales/fr_FR.po
+++ b/locales/fr_FR.po
@@ -11,8 +11,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-02 10:39+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
"Last-Translator: Cédric Anne\n"
"Language-Team: French (France) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/fr_FR/)\n"
"MIME-Version: 1.0\n"
@@ -34,7 +34,7 @@ msgid "MySQL tables uninstallation"
msgstr "Désinstallation des tables MySQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Champs supplémentaires"
@@ -42,11 +42,11 @@ msgstr "Champs supplémentaires"
msgid "Updating generated dropdown files"
msgstr "Mise à jour des fichiers générés des listes déroulantes "
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Langue"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Libellé"
@@ -54,63 +54,73 @@ msgstr "Libellé"
msgid "Regenerate container files"
msgstr "Régénérer les fichiers des blocs"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Mettre à jour les fichier de conteneurs générés"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Vous ne pouvez pas ajouter de bloc sans associer de type d'élément"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Vous ne pouvez pas créer plusieurs blocs de type 'Insertion dans le formulaire' sur le même objet"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Vous ne pouvez pas créer plusieurs blocs de type 'Insertion dans le formulaire d'un onglet spécifique' sur le même onglet d'un objet"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Vous ne pouvez pas ajouter plusieurs blocs avec un même nom sur le même objet"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Bloc"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Onglet"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Ajout d'un onglet"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Insertion dans le formulaire (avant le bouton sauvegarder)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Insertion dans le formulaire d'un onglet spécifique (avant le bouton sauvegarder)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Des champs obligatoires sont vides"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Des champs numériques contiennent des données non numériques"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Des champs URL contiennent des liens invalides"
@@ -122,66 +132,72 @@ msgstr ""
msgid "Field"
msgstr "Champ"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Champs"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Ajouter un nouveau champ"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Aucun champ pour ce bloc"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Lecture seule"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Configuration"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Configurer les valeurs du champ"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "afficher"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Entête"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Texte (ligne simple)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Texte (lignes multiples)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Nombre"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Liste déroulante (Intitulés)"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Oui/Non"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Date"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Date & heure"
diff --git a/locales/hr_HR.mo b/locales/hr_HR.mo
index 37f12112..314020bc 100644
Binary files a/locales/hr_HR.mo and b/locales/hr_HR.mo differ
diff --git a/locales/hr_HR.po b/locales/hr_HR.po
index 6430572d..ee5ef359 100644
--- a/locales/hr_HR.po
+++ b/locales/hr_HR.po
@@ -8,9 +8,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2020-02-12 13:19+0000\n"
-"Last-Translator: milotype \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Croatian (Croatia) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/hr_HR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -31,7 +31,7 @@ msgid "MySQL tables uninstallation"
msgstr "Deinstalacija MySQL tablica"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Dodatna polja"
@@ -39,11 +39,11 @@ msgstr "Dodatna polja"
msgid "Updating generated dropdown files"
msgstr "Aktualiziranje generiranih datoteka padajućih popisa"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Jezik"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Oznaka"
@@ -51,63 +51,73 @@ msgstr "Oznaka"
msgid "Regenerate container files"
msgstr "Ponovo generiraj datoteke spremnika"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Ispravi imena spremnika"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Aktualiziranje generiranih datoteka spremnika"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Nije moguće dodati blok bez povezane vrste elementa"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Nije moguće dodati višestruke blokove s vrstom „Umetanje u obrazac” na isti objekt"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Nije moguće dodati višestruke blokove s vrstom „Umetanje u obrazac određene kartice” na istu karticu objekta"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Nije moguće dodati blokove s jednakim imenon na isti objekt"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Blok"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Kartica"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Dodaj karticu"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Umetanje u obrazac (prije gumba za spremanje)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Umetanje u obrazac određene kartice (prije gumba za spremanje)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Neka obavezna polja su prazna"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Neka numerička polja sadrže ne numeričke vrijednosti"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Neka URL polja sadrže neispravne poveznice"
@@ -119,66 +129,72 @@ msgstr "Ispravi imena polja"
msgid "Field"
msgstr "Polje"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Polja"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Dodaj novo polje"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Nema polja za ovaj blok"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Samo-za-čitanje"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Konfiguriraj"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Konfiguriraj vrijednosti polja"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "prikaži"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Zaglavlje"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Tekst (jednoredni)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Tekst (višeredni)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Broj"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Padajući popis"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Da/Ne"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Datum"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Datum i vrijeme"
diff --git a/locales/it_IT.mo b/locales/it_IT.mo
new file mode 100644
index 00000000..59424435
Binary files /dev/null and b/locales/it_IT.mo differ
diff --git a/locales/it_IT.po b/locales/it_IT.po
new file mode 100644
index 00000000..76dcf163
--- /dev/null
+++ b/locales/it_IT.po
@@ -0,0 +1,200 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Translators:
+# Diego Giacani , 2020
+msgid ""
+msgstr ""
+"Project-Id-Version: GLPI Plugin - Fields\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
+"Language-Team: Italian (Italy) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/it_IT/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: it_IT\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: hook.php:58
+msgid "MySQL tables installation"
+msgstr "Installazione tabelle MySQL"
+
+#: hook.php:106
+msgid "The plugin can't be uninstalled when the plugin is disabled"
+msgstr "Il plugin non può essere disinstallato quando è disabilitato"
+
+#: hook.php:115
+msgid "MySQL tables uninstallation"
+msgstr "Disinstallazione tabelle MySQL"
+
+#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
+#: setup.php:187
+msgid "Additionnal fields"
+msgstr "Campi aggiuntivi"
+
+#: inc/dropdown.class.php:19
+msgid "Updating generated dropdown files"
+msgstr "Aggiornamento dei file a tendina generati"
+
+#: inc/labeltranslation.class.php:147
+msgid "Language"
+msgstr "Lingua"
+
+#: inc/labeltranslation.class.php:148
+msgid "Label"
+msgstr "Etichetta"
+
+#: inc/container.class.php:16
+msgid "Regenerate container files"
+msgstr "Rigenera i file dei contenitori"
+
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
+msgid "Fix container names"
+msgstr "Ripara i nomi dei contenitori"
+
+#: inc/container.class.php:181
+msgid "Updating generated containers files"
+msgstr "Aggiornamento dei file dei contenitori generati"
+
+#: inc/container.class.php:377
+msgid "You cannot add block without associated element type"
+msgstr "Non è possibile aggiungere un blocco senza il tipo di elemento associato"
+
+#: inc/container.class.php:394
+msgid ""
+"You cannot add several blocks with type 'Insertion in the form' on same "
+"object"
+msgstr "Non è possibile aggiungere più blocchi con il tipo 'Inserimento nel modulo' sullo stesso oggetto"
+
+#: inc/container.class.php:409
+msgid ""
+"You cannot add several blocks with type 'Insertion in the form of a specific"
+" tab' on same object tab"
+msgstr "Non è possibile aggiungere più blocchi con il tipo 'Inserimento sotto forma di una scheda specifica' sulla scheda dello stesso oggetto"
+
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
+msgid "You cannot add several blocs with identical name on same object"
+msgstr "Non è possibile aggiungere più blocchi con lo stesso nome sullo stesso oggetto"
+
+#: inc/container.class.php:582
+msgid "Block"
+msgstr "Blocco"
+
+#: inc/container.class.php:661
+msgid "Tab"
+msgstr "Scheda"
+
+#: inc/container.class.php:876
+msgid "Add tab"
+msgstr "Aggiungi scheda"
+
+#: inc/container.class.php:877
+msgid "Insertion in the form (before save button)"
+msgstr "Inserimento nel modulo (prima del pulsante di salvataggio)"
+
+#: inc/container.class.php:878
+msgid "Insertion in the form of a specific tab (before save button)"
+msgstr "Inserimento sotto forma di una scheda specifica (prima del pulsante di salvataggio)"
+
+#: inc/container.class.php:1240
+msgid "Some mandatory fields are empty"
+msgstr "Alcuni campi obbligatori sono vuoti"
+
+#: inc/container.class.php:1245
+msgid "Some numeric fields contains non numeric values"
+msgstr "Alcuni campi numerici contengono valori non numerici"
+
+#: inc/container.class.php:1250
+msgid "Some URL fields contains invalid links"
+msgstr "Alcuni campi URL contengono link non validi"
+
+#: inc/toolbox.class.php:90
+msgid "Fix fields names"
+msgstr "Ripara i nomi dei campi"
+
+#: inc/field.class.php:79
+msgid "Field"
+msgstr "Campo"
+
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
+msgid "Fields"
+msgstr "Campi"
+
+#: inc/field.class.php:326
+msgid "Add a new field"
+msgstr "Aggiungi nuovo campo"
+
+#: inc/field.class.php:330
+msgid "No field for this block"
+msgstr "Nessun campo per questo blocco"
+
+#: inc/field.class.php:342 inc/field.class.php:455
+msgid "Read only"
+msgstr "Sola lettura"
+
+#: inc/field.class.php:432
+msgid "Configure"
+msgstr "Configura"
+
+#: inc/field.class.php:432
+msgid "Configure fields values"
+msgstr "Configura i valori dei campi"
+
+#: inc/field.class.php:751
+msgid "show"
+msgstr "mostra"
+
+#: inc/field.class.php:897
+msgid "Header"
+msgstr "Intestazione"
+
+#: inc/field.class.php:898
+msgid "Text (single line)"
+msgstr "Testo (riga singola)"
+
+#: inc/field.class.php:899
+msgid "Text (multiples lines)"
+msgstr "Testo (righe multiple)"
+
+#: inc/field.class.php:900
+msgid "Number"
+msgstr "Numero"
+
+#: inc/field.class.php:901
+msgid "URL"
+msgstr "URL"
+
+#: inc/field.class.php:902
+msgid "Dropdown"
+msgstr "A tendina"
+
+#: inc/field.class.php:903
+msgid "Yes/No"
+msgstr "Sì/No"
+
+#: inc/field.class.php:904
+msgid "Date"
+msgstr "Data"
+
+#: inc/field.class.php:905
+msgid "Date & time"
+msgstr "Data & ora"
diff --git a/locales/ja_JP.mo b/locales/ja_JP.mo
index a832dbec..7c09a7eb 100644
Binary files a/locales/ja_JP.mo and b/locales/ja_JP.mo differ
diff --git a/locales/ja_JP.po b/locales/ja_JP.po
index 7e993294..33a5c05a 100644
--- a/locales/ja_JP.po
+++ b/locales/ja_JP.po
@@ -8,9 +8,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-09-07 23:02+0000\n"
-"Last-Translator: admin coleyon\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Japanese (Japan) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/ja_JP/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -31,7 +31,7 @@ msgid "MySQL tables uninstallation"
msgstr "MySQLテーブルのアンインストール"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "追加のフィールド"
@@ -39,11 +39,11 @@ msgstr "追加のフィールド"
msgid "Updating generated dropdown files"
msgstr "生成済ドロップダウンフィールドの選択肢を更新"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "言語"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "ラベル"
@@ -51,63 +51,73 @@ msgstr "ラベル"
msgid "Regenerate container files"
msgstr "コンテナファイルを再生成する"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "コンテナ名を変更する"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "生成済みコンテナファイルを更新"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "「関連アイテムタイプ」が空のブロックを追加することはできません。"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "同種のオブジェクトに、複数のブロックを追加することはできません。"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "同種のオブジェクトのタブに、「ラベル」が同じブロックを複数追加することはできません。"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "同種のオブジェクトに、「ラベル」が同じブロックを追加することはできません。"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "ブロック"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "タブ"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "タブを追加する"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "フォームに追加する(フォーム保存前時点)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "フォームのタブに追加する(フォーム保存前時点)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "必須項目が未入力です。"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "非数値を含む数値フィールドがあります。"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "不正なリンクを含むURLフィールドがあります。"
@@ -119,66 +129,72 @@ msgstr "フィールド名を変更する"
msgid "Field"
msgstr "フィールド"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "フィールド"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "新しいフィールドを追加する"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "ブロック内にフィールドはありません"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "読取専用"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "設定"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "フィールド値を設定"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "参照"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "ヘッダ"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "テキスト(単一行)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "テキスト(複数行)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "数値"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "ドロップダウン"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "はい/いいえ"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "日付"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "日時"
diff --git a/locales/ko_KR.mo b/locales/ko_KR.mo
index 404a6ac2..fe97d5e9 100644
Binary files a/locales/ko_KR.mo and b/locales/ko_KR.mo differ
diff --git a/locales/ko_KR.po b/locales/ko_KR.po
index 1437a762..9ed847df 100644
--- a/locales/ko_KR.po
+++ b/locales/ko_KR.po
@@ -8,9 +8,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2020-02-03 04:19+0000\n"
-"Last-Translator: SeongHyeon Cho \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Korean (Korea) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/ko_KR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -31,7 +31,7 @@ msgid "MySQL tables uninstallation"
msgstr "MySQL 테이블 제거"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "추가 항목"
@@ -39,11 +39,11 @@ msgstr "추가 항목"
msgid "Updating generated dropdown files"
msgstr "생성된 드롭다운 파일 갱신"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "언어"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "라벨"
@@ -51,63 +51,73 @@ msgstr "라벨"
msgid "Regenerate container files"
msgstr "컨테이너 파일 재생성"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "컨테이너 이름 수정"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "생성된 컨테이너 파일 갱신"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "관련된 요소 형식이 없으면 추가할 수 없습니다"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "동일한 객체에 '양식에 삽입' 유형이 있는 몇개의 블록을 추가할 수 없습니다."
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "동일한 객체 탭에 '특정 탭의 양식에 삽입' 유형이 있는 몇개의 블록을 추가할 수 없습니다."
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "동일한 객체에 동일한 이름을 가진 몇개의 블록을 추가할 수 없습니다."
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "블록"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "탭"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "탭 추가"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "(저장 버튼 전에) 양식에 삽입"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "(저장 버튼 전에) 특정 탭의 양식에 삽입"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "일부 필수 항목이 비었습니다"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "일부 숫자 항목에 비 숫자 값이 포함되었습니다"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "일부 URL 항목에 잘못된 링크가 포함되었습니다"
@@ -119,66 +129,72 @@ msgstr "항목 이름 수정"
msgid "Field"
msgstr "항목"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "항목"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "새 항목 추가"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "이 블럭에 대한 항목 없음"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "읽기 전용"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "구성"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "항목 값 구성"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "표시"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "헤더"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "문구 (한 줄)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "문구 (여러 줄)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "숫자"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "드롭다운"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "예/아니오"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "날짜"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "날짜 & 시간"
diff --git a/locales/pl_PL.mo b/locales/pl_PL.mo
index ecce2c38..dc2a4a1d 100644
Binary files a/locales/pl_PL.mo and b/locales/pl_PL.mo differ
diff --git a/locales/pl_PL.po b/locales/pl_PL.po
index b14e4e5b..ce842169 100644
--- a/locales/pl_PL.po
+++ b/locales/pl_PL.po
@@ -9,8 +9,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-02 10:39+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
"Last-Translator: Cédric Anne\n"
"Language-Team: Polish (Poland) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/pl_PL/)\n"
"MIME-Version: 1.0\n"
@@ -32,7 +32,7 @@ msgid "MySQL tables uninstallation"
msgstr "Deinstalacja tabel MYSQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Dodatkowe pola"
@@ -40,11 +40,11 @@ msgstr "Dodatkowe pola"
msgid "Updating generated dropdown files"
msgstr "Zaktualizowano pliki generowane z list rozwijanych"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Język"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Etykieta"
@@ -52,63 +52,73 @@ msgstr "Etykieta"
msgid "Regenerate container files"
msgstr "Wygeneruj ponownie"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Zaktualizowano wygenerowane pliki kontenerów"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Nie można dodać bloku bez powiązanego typu elementu"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Nie możesz dodać kilku bloków z typem 'Dodawanie danych w formularzu' w tym samym obiekcie"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr ""
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Nie możesz dodać kilku bloków o identycznej nazwie w tym samym obiekcie"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Blok"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Zakładka"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Dodaj zakładkę"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Dodawanie danych w formularzu (przed przyciskiem zapisz)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Dodawanie danych w formularzu w konkretnej karcie (przed przyciskiem zapisz)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Niektóre wymagane pola są puste"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Niektóre pola numeryczne zawierają wartości inne niż liczby"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Niektóre pola zawierają nieprawidłowe linki URL"
@@ -120,66 +130,72 @@ msgstr ""
msgid "Field"
msgstr "Pole"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Pola"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Dodaj nowe pole"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Brak pola dla tego bloku"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Tylko do odczytu"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Konfiguruj"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Konfiguruj wartości pól"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "pokaż"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Nagłówek"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Tekst (pojedyncza linia)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Tekst (wiele linii)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Liczba"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Lista rozwijana"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Tak/Nie"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Data"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Data & czas"
diff --git a/locales/pt_BR.mo b/locales/pt_BR.mo
index d2051d4a..3686b7cd 100644
Binary files a/locales/pt_BR.mo and b/locales/pt_BR.mo differ
diff --git a/locales/pt_BR.po b/locales/pt_BR.po
index 45182eb6..deb8dc7f 100644
--- a/locales/pt_BR.po
+++ b/locales/pt_BR.po
@@ -11,9 +11,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-09-24 21:27+0000\n"
-"Last-Translator: Aleson Santos \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -34,7 +34,7 @@ msgid "MySQL tables uninstallation"
msgstr "Desinstalação de tabelas no MySQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Campos adicionais"
@@ -42,11 +42,11 @@ msgstr "Campos adicionais"
msgid "Updating generated dropdown files"
msgstr "Atualizando arquivos que foram baixados"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Idioma"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Rótulo"
@@ -54,63 +54,73 @@ msgstr "Rótulo"
msgid "Regenerate container files"
msgstr "Regerar arquivos de contêiner"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Corrigir nomes de containers"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Atualizando arquivos de contêineres gerados"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Você não pode adicionar um bloco sem um tipo de elemento associado"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Você não pode adicionar vários blocos com o tipo 'Inserção no formulário' no mesmo objeto"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Você não pode adicionar vários blocos com o tipo 'Inserção na forma de uma guia específica' na mesma guia de objeto"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Você não pode adicionar vários blocos com nome idêntico no mesmo objeto"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Bloco"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Aba"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Adicionar aba"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Inserção no formulário (antes do botão de salvar)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Inserção no formulário de uma guia específica (antes do botão de salvar)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Alguns campos obrigatórios estão vazios"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Alguns campos numéricos contém valores não numéricos"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Alguns campos de URL contém links inválidos"
@@ -122,66 +132,72 @@ msgstr "Corrigir nomes de campos"
msgid "Field"
msgstr "Campo"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Campos"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Adicionar um novo campo"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Nenhum campo para este bloco"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Somente leitura"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Configurar"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Configurar valores dos campos"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "Exibir"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Cabeçalho"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Texto (linha simples)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Texto (Multiplas linhas)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Número"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Suspenso"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Sim/Não"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Data"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Datar & Hora"
diff --git a/locales/pt_PT.mo b/locales/pt_PT.mo
index faf3a0c9..f92501c5 100644
Binary files a/locales/pt_PT.mo and b/locales/pt_PT.mo differ
diff --git a/locales/pt_PT.po b/locales/pt_PT.po
index 73d31b30..1b73f267 100644
--- a/locales/pt_PT.po
+++ b/locales/pt_PT.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-02 10:39+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
"Last-Translator: Cédric Anne\n"
"Language-Team: Portuguese (Portugal) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/pt_PT/)\n"
"MIME-Version: 1.0\n"
@@ -30,7 +30,7 @@ msgid "MySQL tables uninstallation"
msgstr "Desinstalação de tabelas MySQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Campos adicionais"
@@ -38,11 +38,11 @@ msgstr "Campos adicionais"
msgid "Updating generated dropdown files"
msgstr "Atualizar as caixas pendentes geradas"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Seleccione o idioma"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Rótulo"
@@ -50,63 +50,73 @@ msgstr "Rótulo"
msgid "Regenerate container files"
msgstr "Regenerar"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Atualizar o container gerado"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Não podes adicionar um block sem um tipo de elemento definido"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Não podes adicionar diversos blocos do mesmo tipo"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Não podes adicionar diversos blocos com o sem especificar a aba"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Não podes adicionar blocos no o mesmo nome do que o objecto"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Bloco"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Aba"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Adicionar aba"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Inserir no formulário (antes de gravar)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Inserir o formulário num aba especifica"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Os campos obrigatórios não foram preenchidos"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Alguns campos numéricos não contem números"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Alguns campos de URL tem links invalidos"
@@ -118,66 +128,72 @@ msgstr ""
msgid "Field"
msgstr "Campo"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Campos"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Adicionar um novo campo"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Nenhum campo para este bloco"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Somente leitura"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Configurar"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Valores por defeito"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "mostrar"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "De cabeçalho de email"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Texto de manutenção"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Texto de manutenção"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Número"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Menu de selecção"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Sim - Não"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Data"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Data de vencimento"
diff --git a/locales/ro_RO.mo b/locales/ro_RO.mo
index 3161998c..fa09a464 100644
Binary files a/locales/ro_RO.mo and b/locales/ro_RO.mo differ
diff --git a/locales/ro_RO.po b/locales/ro_RO.po
index 25855052..75a08759 100644
--- a/locales/ro_RO.po
+++ b/locales/ro_RO.po
@@ -9,8 +9,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-02 10:39+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
"Last-Translator: Cédric Anne\n"
"Language-Team: Romanian (Romania) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/ro_RO/)\n"
"MIME-Version: 1.0\n"
@@ -32,7 +32,7 @@ msgid "MySQL tables uninstallation"
msgstr "Dezinstalare tabele MySQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Campuri aditionale"
@@ -40,11 +40,11 @@ msgstr "Campuri aditionale"
msgid "Updating generated dropdown files"
msgstr ""
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr ""
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr ""
@@ -52,63 +52,73 @@ msgstr ""
msgid "Regenerate container files"
msgstr ""
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr ""
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr ""
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr ""
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr ""
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr ""
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr ""
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Tab"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Add tab"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr ""
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr ""
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Unele campuri obligatorii sunt goale"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr ""
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr ""
@@ -120,66 +130,72 @@ msgstr ""
msgid "Field"
msgstr "Camp"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Campuri"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Add un camp nou"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr ""
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr ""
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Configurare"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Configurare valori campuri"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr ""
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Header"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Text (singura linie)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Text (multiple linii)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Numar"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr ""
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Dropdown"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Da/Nu"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Data"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Data & time"
diff --git a/locales/ru_RU.mo b/locales/ru_RU.mo
index a88c6bde..9db565a8 100644
Binary files a/locales/ru_RU.mo and b/locales/ru_RU.mo differ
diff --git a/locales/ru_RU.po b/locales/ru_RU.po
index d963a1c0..3ad363f4 100644
--- a/locales/ru_RU.po
+++ b/locales/ru_RU.po
@@ -10,8 +10,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-02 10:39+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
"Last-Translator: Cédric Anne\n"
"Language-Team: Russian (Russia) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/ru_RU/)\n"
"MIME-Version: 1.0\n"
@@ -33,7 +33,7 @@ msgid "MySQL tables uninstallation"
msgstr "Удаление таблиц MySQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Дополнительные поля"
@@ -41,11 +41,11 @@ msgstr "Дополнительные поля"
msgid "Updating generated dropdown files"
msgstr "Обновление автоматически раскрывающегося списка файлов"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Язык"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Метка"
@@ -53,63 +53,73 @@ msgstr "Метка"
msgid "Regenerate container files"
msgstr "Восстановить файлы контейнера"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Обновление созданных файлов контейнеров"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Вы не можете добавить блок без связанного типа элемента"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Вы не можете добавить несколько блоков с типом 'Вставить в виде' в один и тот же объект"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr ""
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Вы не можете добавить несколько блоков с одинаковыми именами на один и тот же объект"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Блок"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Вкладка"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Добавить вкладку"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Добавить в виде (до кнопки сохранения)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Добавить в виде конкретной вкладки (до кнопки сохранения)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Некоторые обязательные поля пусты"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Некоторые числовые поля содержат не только цифры"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Некоторый URL полей содержат недействительные ссылки"
@@ -121,66 +131,72 @@ msgstr ""
msgid "Field"
msgstr "Поле"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Поля"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Добавить новое поле"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Нет поля для этого блока"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Только чтение"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Настройка"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Настрить поля значений"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "показать"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Заголовок"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Тест (одна строка)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Текст (многострочный)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Номер"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Выпадающий список"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Да/Нет"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Дата"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Дата и время"
diff --git a/locales/tr_TR.mo b/locales/tr_TR.mo
index 34d3a781..2bf53e20 100644
Binary files a/locales/tr_TR.mo and b/locales/tr_TR.mo differ
diff --git a/locales/tr_TR.po b/locales/tr_TR.po
index f659cc2b..0635e9f0 100644
--- a/locales/tr_TR.po
+++ b/locales/tr_TR.po
@@ -8,9 +8,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-07-30 23:44+0000\n"
-"Last-Translator: Kaya Zeren \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Turkish (Turkey) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/tr_TR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -31,7 +31,7 @@ msgid "MySQL tables uninstallation"
msgstr "MySQL tabloları kaldırma"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Ek alanlar"
@@ -39,11 +39,11 @@ msgstr "Ek alanlar"
msgid "Updating generated dropdown files"
msgstr "Oluşturulmuş açılan kutu dosyaları güncelleniyor"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Dil"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Etiket"
@@ -51,63 +51,73 @@ msgstr "Etiket"
msgid "Regenerate container files"
msgstr "Kapsayıcı dosyalar yeniden oluşturulsun"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Kapsayıcı adlarını düzelt"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Oluşturulmuş kapsayıcı dosyaları güncelleniyor"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "İlişkilendirilmiş bir bileşen tipi olmadan bir blok eklenemez"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Aynı nesne üzerine 'Forma eklensin' türünde bir kaç blok eklenemez"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Aynı nesne sekmesi üzerine 'Forma sekme olarak eklensin' türünde bir kaç blok eklenemez"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Aynı nesne üzerine aynı adla birden fazla blok eklenemez"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Blok"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Sekme"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Sekme ekle"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Forma eklensin (kaydet düğmesinden önce)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Forma sekme olarak eklensin (kaydet düğmesinden önce)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Bazı zorunlu alanlar boş"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Bazı sayısal alanlarda sayısal olmayan değerler var"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Bazı İnternet adresi alanlarında geçersiz bağlantılar var"
@@ -119,66 +129,72 @@ msgstr "Alan adlarını düzelt"
msgid "Field"
msgstr "Alan"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Alanlar"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Alan ekle"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Bu blokta henüz bir alan yok"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Salt okunur"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Yapılandırma"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Alan değerleri yapılandırması"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "görüntüle"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Üst Bilgi"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Metin (tek satır)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Metin (birden çok satır)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Sayı"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "İnternet Adresi"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Açılan Kutu"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Evet/Hayır"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Tarih"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Tarih ve Saat"
diff --git a/locales/uk_UA.mo b/locales/uk_UA.mo
index f353823f..e1e0aaac 100644
Binary files a/locales/uk_UA.mo and b/locales/uk_UA.mo differ
diff --git a/locales/uk_UA.po b/locales/uk_UA.po
index 3f27ce34..eeb94384 100644
--- a/locales/uk_UA.po
+++ b/locales/uk_UA.po
@@ -8,9 +8,9 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2020-05-18 14:24+0000\n"
-"Last-Translator: Andriy Smilyanets \n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
+"Last-Translator: Cédric Anne\n"
"Language-Team: Ukrainian (Ukraine) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/uk_UA/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -31,7 +31,7 @@ msgid "MySQL tables uninstallation"
msgstr "Видалення таблиць MySQL"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "Додаткові поля"
@@ -39,11 +39,11 @@ msgstr "Додаткові поля"
msgid "Updating generated dropdown files"
msgstr "Оновлюю згенеровані файли випадаючих списків"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "Мова"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "Мітка"
@@ -51,63 +51,73 @@ msgstr "Мітка"
msgid "Regenerate container files"
msgstr "Перегенерувати файли контейнеру"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr "Виправити назви контейнерів"
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "Оновлення згенерованих файлів контейнерів"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "Не можна додати блок без визначеного типу елементу"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "Не можна до одного об'єкту додати декілька блоків з типом 'Вставка в форму'"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "Не можна до однієї закладки додати декілька блоків з типом 'Вставка в форму закладки'"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "Не можна до одного об'єкту додати декілька блоків з однаковою назвою"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "Блок"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "Закладка"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "Додати закладку"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "Вставка в форму (до кнопки Зберегти)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "Вставка в форму закладки (до кнопки Зберегти)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "Деякі обов'язкові поля порожні"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "Деякі числові поля містять не цифрові значення"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "Деякі поля URL містять невірні посилання"
@@ -119,66 +129,72 @@ msgstr "Виправити назви полів"
msgid "Field"
msgstr "Поле"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "Поля"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "Додати нове поле"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "Для цього блоку ще немає полів"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "Тільки читання"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "Налаштувати"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "Налаштувати значення полів"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "показати"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "Заголовок"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "Текст (в одну лінію)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "Текст (декілька ліній)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "Число"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "URL"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "Випадаючий список"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "Так/Ні"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "Дата"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "Дата і час"
diff --git a/locales/zh_CN.mo b/locales/zh_CN.mo
index 56d191a9..53d94626 100644
Binary files a/locales/zh_CN.mo and b/locales/zh_CN.mo differ
diff --git a/locales/zh_CN.po b/locales/zh_CN.po
index da598d23..e223227f 100644
--- a/locales/zh_CN.po
+++ b/locales/zh_CN.po
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: GLPI Plugin - Fields\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-07-03 18:53+0000\n"
-"PO-Revision-Date: 2019-05-02 10:39+0000\n"
+"POT-Creation-Date: 2020-10-27 14:42+0000\n"
+"PO-Revision-Date: 2020-10-27 14:43+0000\n"
"Last-Translator: Cédric Anne\n"
"Language-Team: Chinese (China) (http://www.transifex.com/teclib/glpi-plugin-plugin-fields/language/zh_CN/)\n"
"MIME-Version: 1.0\n"
@@ -31,7 +31,7 @@ msgid "MySQL tables uninstallation"
msgstr "卸载MySQL数据表"
#: front/container.form.php:35 front/container.php:4 inc/menu.class.php:6
-#: setup.php:177
+#: setup.php:187
msgid "Additionnal fields"
msgstr "附加字段"
@@ -39,11 +39,11 @@ msgstr "附加字段"
msgid "Updating generated dropdown files"
msgstr "更新生成下拉文件"
-#: inc/labeltranslation.class.php:139
+#: inc/labeltranslation.class.php:147
msgid "Language"
msgstr "语言"
-#: inc/labeltranslation.class.php:140
+#: inc/labeltranslation.class.php:148
msgid "Label"
msgstr "标签"
@@ -51,63 +51,73 @@ msgstr "标签"
msgid "Regenerate container files"
msgstr "生成容器文件"
-#: inc/container.class.php:91
+#: inc/container.class.php:17 inc/container.class.php:589
+msgid "Export to YAML"
+msgstr ""
+
+#: inc/container.class.php:93
msgid "Fix container names"
msgstr ""
-#: inc/container.class.php:172
+#: inc/container.class.php:181
msgid "Updating generated containers files"
msgstr "刷新生成容器文件"
-#: inc/container.class.php:368
+#: inc/container.class.php:377
msgid "You cannot add block without associated element type"
msgstr "您不能添加没有关联元素类型的块"
-#: inc/container.class.php:385
+#: inc/container.class.php:394
msgid ""
"You cannot add several blocks with type 'Insertion in the form' on same "
"object"
msgstr "不能在同一个对象上添加几个带有'表单中插入'类型的块"
-#: inc/container.class.php:400
+#: inc/container.class.php:409
msgid ""
"You cannot add several blocks with type 'Insertion in the form of a specific"
" tab' on same object tab"
msgstr "不能在同一个对象选项卡上以特定选项卡的形式使用“表单中插入特殊标签”类型添加几个块"
-#: inc/container.class.php:417
+#: inc/container.class.php:425
+msgid ""
+"Container name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/container.class.php:439
msgid "You cannot add several blocs with identical name on same object"
msgstr "不能在同一对象上添加名称相同的多个块"
-#: inc/container.class.php:560
+#: inc/container.class.php:582
msgid "Block"
msgstr "区域"
-#: inc/container.class.php:636
+#: inc/container.class.php:661
msgid "Tab"
msgstr "标签"
-#: inc/container.class.php:842
+#: inc/container.class.php:876
msgid "Add tab"
msgstr "添加标签"
-#: inc/container.class.php:843
+#: inc/container.class.php:877
msgid "Insertion in the form (before save button)"
msgstr "在窗体中插入(保存按钮前)"
-#: inc/container.class.php:844
+#: inc/container.class.php:878
msgid "Insertion in the form of a specific tab (before save button)"
msgstr "以特定选项卡的形式插入(保存按钮之前)"
-#: inc/container.class.php:1206
+#: inc/container.class.php:1240
msgid "Some mandatory fields are empty"
msgstr "一些强制字段是空的。"
-#: inc/container.class.php:1211
+#: inc/container.class.php:1245
msgid "Some numeric fields contains non numeric values"
msgstr "一些数值字段包含非数值"
-#: inc/container.class.php:1216
+#: inc/container.class.php:1250
msgid "Some URL fields contains invalid links"
msgstr "有些URL字段包含无效链接"
@@ -119,66 +129,72 @@ msgstr ""
msgid "Field"
msgstr "字段"
-#: inc/field.class.php:253
+#: inc/field.class.php:90 inc/field.class.php:115
+msgid ""
+"Field name is too long for database (digits in name are replaced by "
+"characters, try to remove them)"
+msgstr ""
+
+#: inc/field.class.php:272
msgid "Fields"
msgstr "字段"
-#: inc/field.class.php:307
+#: inc/field.class.php:326
msgid "Add a new field"
msgstr "添加新字段"
-#: inc/field.class.php:311
+#: inc/field.class.php:330
msgid "No field for this block"
msgstr "此区域无字段"
-#: inc/field.class.php:323 inc/field.class.php:436
+#: inc/field.class.php:342 inc/field.class.php:455
msgid "Read only"
msgstr "只读"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure"
msgstr "设置"
-#: inc/field.class.php:413
+#: inc/field.class.php:432
msgid "Configure fields values"
msgstr "设置字段值"
-#: inc/field.class.php:732
+#: inc/field.class.php:751
msgid "show"
msgstr "显示"
-#: inc/field.class.php:878
+#: inc/field.class.php:897
msgid "Header"
msgstr "头部"
-#: inc/field.class.php:879
+#: inc/field.class.php:898
msgid "Text (single line)"
msgstr "文本(单行)"
-#: inc/field.class.php:880
+#: inc/field.class.php:899
msgid "Text (multiples lines)"
msgstr "文本(多行)"
-#: inc/field.class.php:881
+#: inc/field.class.php:900
msgid "Number"
msgstr "整数"
-#: inc/field.class.php:882
+#: inc/field.class.php:901
msgid "URL"
msgstr "网址"
-#: inc/field.class.php:883
+#: inc/field.class.php:902
msgid "Dropdown"
msgstr "拖动"
-#: inc/field.class.php:884
+#: inc/field.class.php:903
msgid "Yes/No"
msgstr "是/否"
-#: inc/field.class.php:885
+#: inc/field.class.php:904
msgid "Date"
msgstr "日期"
-#: inc/field.class.php:886
+#: inc/field.class.php:905
msgid "Date & time"
msgstr "时间&日期"
diff --git a/plugin.xml b/plugin.xml
index 02572cac..55c4bd6b 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -97,6 +97,11 @@ Il existe un [script de migration](https://github.com/pluginsGLPI/customfields/b
Johan Cwiklinski
+
+ 1.12.0
+ ~9.5.0
+ https://github.com/pluginsGLPI/fields/releases/download/1.12.0/glpi-fields-1.12.0.tar.bz2
+
1.11.0
~9.5.0
diff --git a/setup.php b/setup.php
index f6d42b74..295c4cbe 100644
--- a/setup.php
+++ b/setup.php
@@ -26,7 +26,7 @@
--------------------------------------------------------------------------
*/
-define ('PLUGIN_FIELDS_VERSION', '1.11.0');
+define ('PLUGIN_FIELDS_VERSION', '1.12.0');
// Minimal GLPI version, inclusive
define("PLUGIN_FIELDS_MIN_GLPI", "9.5");
@@ -61,6 +61,8 @@
mkdir(PLUGINFIELDS_FRONT_PATH);
}
+use Symfony\Component\Yaml\Yaml;
+
/**
* Init hooks of the plugin.
* REQUIRED
@@ -74,6 +76,9 @@ function plugin_init_fields() {
// manage autoload of plugin custom classes
include_once(PLUGINFIELDS_DIR . "/inc/autoload.php");
+
+ // manage autoload of vendor classes
+ include_once(PLUGINFIELDS_DIR . "/vendor/autoload.php");
$pluginfields_autoloader = new PluginFieldsAutoloader([PLUGINFIELDS_CLASS_PATH]);
$pluginfields_autoloader->register();
@@ -98,6 +103,11 @@ function plugin_init_fields() {
}
}
+ if ($plugin->isActivated('fusioninventory')) {
+ $PLUGIN_HOOKS['fusioninventory_inventory']['fields']
+ = ['PluginFieldsInventory', 'updateInventory'];
+ }
+
// complete rule engine
$PLUGIN_HOOKS['use_rules']['fields'] = ['PluginFusioninventoryTaskpostactionRule'];
$PLUGIN_HOOKS['rule_matched']['fields'] = 'plugin_fields_rule_matched';
@@ -239,3 +249,110 @@ function plugin_fields_checkFiles($force = false) {
}
}
}
+
+function plugin_fields_exportBlockAsYaml($container_id = null) {
+ global $DB;
+
+ $plugin = new Plugin();
+ $yaml_conf = [
+ 'container' => [],
+ ];
+
+ if (isset($_SESSION['glpiactiveentities'])
+ && $plugin->isInstalled('fields')
+ && $plugin->isActivated('fields')
+ && Session::getLoginUserID()) {
+
+ if ($DB->tableExists(PluginFieldsContainer::getTable())) {
+ $where = [];
+ $where["is_active"] = true;
+ if ($container_id != null) {
+ $where["id"] = $container_id;
+ }
+ $container_obj = new PluginFieldsContainer();
+ $containers = $container_obj->find($where);
+
+ foreach ($containers as $container) {
+ $itemtypes = (strlen($container['itemtypes']) > 0)
+ ? json_decode($container['itemtypes'], true)
+ : [];
+
+ foreach ($itemtypes as $itemtype) {
+ $fields_obj = new PluginFieldsField();
+ // to get translation
+ $container["itemtype"] = PluginFieldsContainer::getType();
+ $yaml_conf['container'][$container['id']."-".$itemtype] = [
+ "id" => (int) $container['id'],
+ "name" => PluginFieldsLabelTranslation::getLabelFor($container),
+ "itemtype" => $itemtype,
+ "type" => $container['type'],
+ "subtype" => $container['subtype'],
+ "fields" => [],
+ ];
+ $fields = $fields_obj->find(["plugin_fields_containers_id" => $container['id'],
+ "is_active" => true,
+ "is_readonly" => false]);
+ if (count($fields)) {
+ foreach ($fields as $field) {
+ $tmp_field = [];
+ $tmp_field['id'] = (int) $field['id'];
+
+ //to get translation
+ $field["itemtype"] = PluginFieldsField::getType();
+ $tmp_field['label'] = PluginFieldsLabelTranslation::getLabelFor($field);
+ $tmp_field['xml_node'] = strtoupper($field['name']);
+ $tmp_field['type'] = $field['type'];
+ $tmp_field['ranking'] = $field['ranking'];
+ $tmp_field['default_value'] = $field['default_value'];
+ $tmp_field['mandatory'] = $field['mandatory'];
+ $tmp_field['possible_value'] = "";
+
+ switch ($field['type']) {
+ case 'dropdown':
+ $obj = new $itemtype;
+ $obj->getEmpty();
+
+ $dropdown_itemtype = PluginFieldsDropdown::getClassname($field['name']);
+ $tmp_field['xml_node'] = strtoupper(getForeignKeyFieldForItemType($dropdown_itemtype));
+
+ $dropdown_obj = new $dropdown_itemtype();
+ $dropdown_datas = $dropdown_obj->find();
+ $datas = [];
+ foreach ($dropdown_datas as $key => $value) {
+ $items = [];
+ $items['id'] = (int)$value['id'];
+ $items['value'] = $value['name'];
+ $datas[] = $items;
+ }
+ $tmp_field['possible_value'] = $datas;
+ break;
+ case 'yesno':
+ $datas = [];
+ $datas["0"]['id'] = 0;
+ $datas["0"]['value'] = __('No');
+ $datas["1"]['id'] = 1;
+ $datas["1"]['value'] = __('Yes');
+ $tmp_field['possible_value'] = $datas;
+ break;
+ case 'dropdownuser':
+ $datas = Dropdown::getDropdownUsers(['is_active' => 1,'is_deleted' => 0], false);
+ $tmp_field['possible_value'] = $datas['results'];
+ break;
+ }
+ $yaml_conf['container'][$container['id']."-".$itemtype]["fields"][] = $tmp_field;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ if (count($yaml_conf)) {
+ $dump = Yaml::dump($yaml_conf, 10);
+ $filename = GLPI_TMP_DIR."/fields_conf.yaml";
+ file_put_contents($filename, $dump);
+ return true;
+ }
+
+ return false;
+}