diff --git a/.composer-require-checker.config.json b/.composer-require-checker.config.json index d34c43e..aa3fe6d 100644 --- a/.composer-require-checker.config.json +++ b/.composer-require-checker.config.json @@ -4,9 +4,9 @@ "ctype", "date", "fileinfo", "filter", "iconv", "json", "pcre", "reflection", "session", "simplexml", "spl", "xml", - "curl", "gd", "intl", "mbstring", "mysqli", "zlib", "pdo", "pgsql", "gettext", "tidy", + "curl", "gd", "intl", "mbstring", "mysqli", "zlib", "pdo", "pgsql", "gettext", - "exif", "pcntl", "zip" + "exif", "pcntl" ], "symbol-whitelist": [ "// PHP symbols", @@ -40,11 +40,15 @@ "GALETTE_TEMPIMAGES_PATH", "GALETTE_THEME", "GALETTE_THEMES_PATH", - "GALETTE_THEME_DIR", - "GALETTE_TPL_SUBDIR", "GALETTE_VERSION", "GALETTE_X_FORWARDED_FOR_INDEX", "_CURRENT_THEME_PATH", + "GALETTE_URI", + "GALETTE_MYSQL_MIN", + "GALETTE_MARIADB_MIN", + "GALETTE_PGSQL_MIN", + "GALETTE_DISPLAY_VERSION", + "GALETTE_PHP_MIN", "_T", "__", "_Tn", @@ -87,7 +91,16 @@ "DI\\autowire", "DI\\Container", "DI\\ContainerBuilder", - "DI\\Bridge\\Slim\\App" + "DI\\Bridge\\Slim\\App", + + "// Should not error (not used) but...", + "mt_rand", + "rand", + "random_int", + + + "// Not detected, do not know why.", + "Psr\\Http\\Server\\RequestHandlerInterface" ], "scan-files": [ "*.php", diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 28cefd7..1bfd615 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] + php-versions: [ '8.1', '8.3' ] coverage: [none] fail-fast: false @@ -30,47 +30,49 @@ jobs: tools: composer coverage: ${{ matrix.coverage }} - - name: Checkout plugin - uses: actions/checkout@v2 - - name: Checkout Galette core - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: galette/galette path: galette-core fetch-depth: 1 ref: develop + - name: Checkout plugin + uses: actions/checkout@v3 + with: + path: galette-core/galette/plugins/plugin-objectslend + - name: Get composer cache directory id: composer-cache run: | - mv composer.json.checker composer.json - echo "::set-output name=dir::$(composer config cache-files-dir)" - if: ${{ matrix.php-versions!= '7.2' && matrix.php-versions!= '7.3' }} + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-composer- - if: ${{ matrix.php-versions!= '7.2' && matrix.php-versions!= '7.3' }} - name: Install dependencies run: | + cd galette-core/galette composer install --ignore-platform-reqs - if: ${{ matrix.php-versions!= '7.2' && matrix.php-versions!= '7.3' }} - - - name: Install CS only - run: | - composer require squizlabs/php_codesniffer - if: ${{ matrix.php-versions== '7.2' || matrix.php-versions== '7.3' }} - name: CS run: | - vendor/bin/phpcs -n -p --standard=galette-core/phpcs-rules.xml lib/ ./*.php + cd galette-core/galette/plugins/plugin-objectslend + ../../vendor/bin/phpcs -n -p --standard=../../../phpcs-rules.xml lib/ ./*.php - name: Check missing symbols run: | - vendor/bin/composer-require-checker check --config-file=.composer-require-checker.config.json - if: ${{ matrix.php-versions!= '7.2' && matrix.php-versions!= '7.3' }} + cd galette-core/galette/plugins/plugin-objectslend + composer require maglnet/composer-require-checker -W + vendor/bin/composer-require-checker check --config-file=.composer-require-checker.config.json ../../composer.json + + - name: PHPStan checks + run: | + cd galette-core/galette/plugins/plugin-objectslend + ../../vendor/bin/phpstan analyze --ansi --memory-limit=2G --no-interaction --no-progress + if: matrix.php-versions == '8.1' diff --git a/.gitignore b/.gitignore index 5173613..5cc068d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vimfiles* *.vimentry quick_gen_project_* - +dist/ +tempcache/ diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 13a07f0..31e1e5c 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -14,7 +14,7 @@ build: analysis: environment: php: - version: 7.4 + version: 8.1 project_setup: override: @@ -22,9 +22,6 @@ build: tests: override: - php-scrutinizer-run - - - command: phpcs-run - use_website_config: true - js-scrutinizer-run cache: diff --git a/_define.php b/_define.php index 068ec77..13dc9b9 100644 --- a/_define.php +++ b/_define.php @@ -8,9 +8,9 @@ * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017-2021 The Galette Team + * Copyright © 2017-2023 The Galette Team * - * This file is part of Galette (http://galette.tuxfamily.org). + * This file is part of Galette (https://galette.eu). * * ObjectsLend is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,24 +31,22 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2021 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version - * @link http://galette.tuxfamily.org + * @link https://galette.eu */ $this->register( 'Galette Objects Lend', //Name 'Manage rent/lend of object', //Short description 'Mélissa Djebel, Johan Cwiklinski', //Author - '1.2.0', //Version - '0.9.6', //Galette version compatibility + '2.0.0', //Version + '1.0.0', //Galette version compatibility 'objectslend', //routing name and translation domain - '2021-11-29', //Date + '2023-12-07', //Date [ 'objectslend_preferences' => 'admin', 'store_objectlend_preferences' => 'admin', - 'objectslend_adminimages' => 'staff', - 'objectslend_adminimages_action' => 'staff', 'objectslend_category_add' => 'staff', 'objectslend_category_edit' => 'staff', 'objectslend_category_action_add' => 'staff', @@ -67,6 +65,7 @@ 'objectslend_doremove_status' => 'admin', 'objectslend_object_add' => 'staff', 'objectslend_object_edit' => 'staff', + 'objectslend_object_updatestatus' => 'staff', 'objectslend_object_action_add' => 'staff', 'objectslend_object_action_edit' => 'staff', 'objectslend_object_clone' => 'staff', @@ -81,6 +80,6 @@ 'objectslend_show_object_lend' => 'staff', 'objectslend_object_take' => 'member', 'objectslend_object_dotake' => 'member', - 'objectslend_object_doreturn' => 'staff' + 'objectslend_object_doreturn' => 'member' ] ); diff --git a/_routes.php b/_routes.php index 9dbc1ed..f279c02 100644 --- a/_routes.php +++ b/_routes.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2017-2020 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @version SVN: $Id$ * @link http://galette.tuxfamily.org @@ -63,186 +63,192 @@ //Constants and classes from plugin require_once $module['root'] . '/_config.inc.php'; -$this->get( +$app->get( '/preferences', [MainController::class, 'preferences'] )->setName('objectslend_preferences')->add($authenticate); -$this->post( +$app->post( '/preferences', [MainController::class, 'storePreferences'] )->setName('store_objectlend_preferences')->add($authenticate); -$this->get( +$app->get( '/category/add', [CategoriesController::class, 'add'] )->setName('objectslend_category_add')->add($authenticate); -$this->get( +$app->get( '/category/edit/{id:\d+}', [CategoriesController::class, 'edit'] )->setName('objectslend_category_edit')->add($authenticate); -$this->post( +$app->post( '/category/add', [CategoriesController::class, 'doAdd'] )->setName('objectslend_category_action_add')->add($authenticate); -$this->post( +$app->post( '/category/edit/{id:\d+}', [CategoriesController::class, 'doEdit'] )->setName('objectslend_category_action_edit')->add($authenticate); -$this->get( +$app->get( '/{type:category|object}/{mode:photo|thumbnail}[/{id:\d+}]', [ImagesController::class, 'lendPicture'] )->setName('objectslend_photo'); -$this->get( +$app->get( '/categories[/{option:page|order}/{value:\d+}]', [CategoriesController::class, 'list'] )->setName('objectslend_categories')->add($authenticate); //categories list filtering -$this->post( +$app->post( '/categories/filter', [CategoriesController::class, 'filter'] )->setName('objectslend_filter_categories')->add($authenticate); -$this->get( +$app->get( '/category/remove/{id:\d+}', [CategoriesController::class, 'confirmDelete'] )->setName('objectslend_remove_category')->add($authenticate); -$this->post( +$app->post( '/category/remove/{id:\d+}', [CategoriesController::class, 'delete'] )->setName('objectslend_doremove_category')->add($authenticate); -$this->get( +$app->get( '/status/add', [StatusController::class, 'add'] )->setName('objectslend_status_add')->add($authenticate); -$this->get( +$app->get( '/status/edit/{id:\d+}', [StatusController::class, 'edit'] )->setName('objectslend_status_edit')->add($authenticate); -$this->post( +$app->post( '/status/add', [StatusController::class, 'doAdd'] )->setName('objectslend_status_action_add')->add($authenticate); -$this->post( +$app->post( '/status/edit/{id:\d+}', [StatusController::class, 'doEdit'] )->setName('objectslend_status_action_edit')->add($authenticate); -$this->get( +$app->get( '/statuses[/{option:page|order}/{value:\d+}]', [StatusController::class, 'list'] )->setName('objectslend_statuses')->add($authenticate); //status list filtering -$this->post( +$app->post( '/statuses/filter', [StatusController::class, 'filter'] )->setName('objectslend_filter_statuses')->add($authenticate); -$this->get( +$app->get( '/status/remove/{id:\d+}', [StatusController::class, 'confirmDelete'] )->setName('objectslend_remove_status')->add($authenticate); -$this->post( +$app->post( '/status/remove/{id:\d+}', [StatusController::class, 'delete'] )->setName('objectslend_doremove_status')->add($authenticate); -$this->get( +$app->get( '/object/add', [ObjectsController::class, 'add'] )->setName('objectslend_object_add')->add($authenticate); -$this->get( +$app->get( '/object/edit/{id:\d+}', [ObjectsController::class, 'edit'] )->setName('objectslend_object_edit')->add($authenticate); -$this->get( +$app->post( + '/object/{id:\d+}/updatestatus', + [ObjectsController::class, 'doUpdateStatus'] +)->setName('objectslend_object_updatestatus')->add($authenticate); + + +$app->get( '/object/clone/{id:\d+}', [ObjectsController::class, 'doClone'] )->setName('objectslend_object_clone')->add($authenticate); -$this->post( +$app->post( '/object/add', - [ObjectsController::class, 'add'] + [ObjectsController::class, 'doAdd'] )->setName('objectslend_object_action_add')->add($authenticate); -$this->post( +$app->post( '/object/edit/{id:\d+}', [ObjectsController::class, 'doEdit'] )->setName('objectslend_object_action_edit')->add($authenticate); -$this->get( +$app->get( '/objects[/{option:page|order|category}/{value:\d+}]', [ObjectsController::class, 'list'] )->setName('objectslend_objects')->add($authenticate); //objects list filtering -$this->post( +$app->post( '/objects/filter', [ObjectsController::class, 'filter'] )->setName('objectslend_filter_objects')->add($authenticate); -$this->get( +$app->get( '/object/remove/{id:\d+}', [ObjectsController::class, 'confirmDelete'] )->setName('objectslend_remove_object')->add($authenticate); -$this->post( +$app->post( '/object/remove[/{id:\d+}]', [ObjectsController::class, 'delete'] )->setName('objectslend_doremove_object')->add($authenticate); //Batch actions on objects list -$this->post( +$app->post( '/objects/batch', [ObjectsController::class, 'handleBatch'] )->setName('objectslend_batch-objectslist')->add($authenticate); -$this->get( +$app->get( '/objects/remove', [ObjectsController::class, 'confirmDelete'] )->setName('objectslend_remove_objects')->add($authenticate); -$this->get( +$app->get( '/objects/print', [PdfController::class, 'printObjects'] )->setName('objectslend_objects_print')->add($authenticate); -$this->get( +$app->get( '/object/print/{id:\d+}', [PdfController::class, 'printObject'] )->setName('objectslend_object_print')->add($authenticate); -$this->get( +$app->get( '/object/show/{id:\d+}', [ObjectsController::class, 'show'] )->setName('objectslend_show_object_lend')->add($authenticate); -$this->get( +$app->get( '/object/{action:take|return}/{id:\d+}', [ObjectsController::class, 'lend'] )->setName('objectslend_object_take')->add($authenticate); -$this->post( +$app->post( '/object/take/{id:\d+}', [ObjectsController::class, 'doTake'] )->setName('objectslend_object_dotake')->add($authenticate); -$this->post( +$app->post( '/object/return/{id:\d+}', [ObjectsController::class, 'doReturn'] )->setName('objectslend_object_doreturn')->add($authenticate); diff --git a/_smarties.php b/_smarties.php deleted file mode 100644 index 77c0f46..0000000 --- a/_smarties.php +++ /dev/null @@ -1,44 +0,0 @@ -. - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017 The Galette Team - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version - * @version 0.7 - * @link http://galette.tuxfamily.org - * @since Available since 0.7 - */ - -$_tpl_assignments = array( - 'lend_tpl_dir' => '__plugin_templates_dir__', - 'lend_dir' => '__plugin_dir__' -); diff --git a/bin/twig-cache b/bin/twig-cache new file mode 100755 index 0000000..73c9a6e --- /dev/null +++ b/bin/twig-cache @@ -0,0 +1,108 @@ +#!/bin/php +isDir() && !$fpath->isLink()) ? rmdir($fpath->getPathname()) : unlink($fpath->getPathname()); + } + + rmdir($path); + return true; + } + return false; +} + +/** + * Return a custom Twig cache handler. + * This handler is useful to be able to preserve filenames of compiled files. + * + * @param string $directory + * + * @return CacheInterface + */ +function getTwigCacheHandler(string $directory): CacheInterface +{ + return new class($directory) extends FilesystemCache { + + private string $directory; + + public function __construct(string $directory, int $options = 0) + { + $this->directory = rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; + parent::__construct($directory, $options); + } + + public function generateKey(string $name, string $className): string + { + return $this->directory . $name; + } + }; +} + +$directory = sprintf('%s/../templates/default', __DIR__); +$cache_dir = sprintf('%s/../tempcache', __DIR__); +$cache = getTwigCacheHandler($cache_dir); +if (file_exists($cache_dir)) { + rmdir_recursive($cache_dir); +} +mkdir($cache_dir); + +$iterator = new RecursiveIteratorIterator( + new RecursiveDirectoryIterator($directory), + RecursiveIteratorIterator::LEAVES_ONLY +); + +$loader = new FilesystemLoader($directory); +$twig = new Environment( + $loader, + [ + 'cache' => $cache, + 'auto_reload' => true, + ] +); + +$twig_functions = [ + '__', + '_T', + '_Tn', + '_Tx', + '_Tnx', + 'url_for', + 'memberName', + 'callstatic', + 'is_current_url', + 'get_class', + 'base_path', + 'file_exists' +]; + +foreach ($twig_functions as $function) { + $twig->addFunction(new TwigFunction($function, $function)); +} + +/** @var SplFileInfo $file */ +foreach ($iterator as $file) { + if ($file->isFile()) { + $twig->load(str_replace($directory . '/', '', $file)); + } +} diff --git a/composer.json.checker b/composer.json.checker index 46875e4..7a5131f 100644 --- a/composer.json.checker +++ b/composer.json.checker @@ -6,10 +6,9 @@ } }, "require": { - "php": ">=7.3", + "php": ">=7.4", "slim/slim": "^3.0", "monolog/monolog": "^2.1", - "mathmarques/smarty-view": "^1.1", "laminas/laminas-db": "^2.11", "laminas/laminas-stdlib": "^3.3", "analog/analog": "^1.0", @@ -17,21 +16,24 @@ "tecnickcom/tcpdf": "^6.3", "akrabat/rka-slim-session-middleware": "^2.0", "laminas/laminas-i18n": "^2.11", - "laminas/laminas-cache": "^2.10", - "soundasleep/html2text": "^1.1", - "aneek/slim-event-dispatcher": "^1.0", + "soundasleep/html2text": "^2.0", "slim/flash": "^0.4.0", - "league/event": "^2.1", - "smarty/smarty": "^3.1", + "league/event": "^3.0", "psr/http-message": "^1.0", "psr/container": "^1.0", "maglnet/composer-require-checker": "^2.1", "squizlabs/php_codesniffer": "^3.5", + "friendsoftwig/twigcs": "^6.0", "php-di/slim-bridge": "2.0.0", "doctrine/annotations": "^1.8", - "laminas/laminas-servicemanager": "3.7", + "laminas/laminas-servicemanager": "^3.17", "symfony/polyfill-php80": "^1.23", "ezyang/htmlpurifier": "^4.13", - "slim/csrf": "0.8.3" + "slim/csrf": "0.8.3", + "twig/twig": "^3.3", + "slim/twig-view": "^2" + }, + "config": { + "allow-plugins": false } } diff --git a/lang/Makefile b/lang/Makefile index 92e8367..ad8449e 100755 --- a/lang/Makefile +++ b/lang/Makefile @@ -3,10 +3,13 @@ LANGUAGES = `find ./ -name "objectslend_*.po" -print | sed 's|^\./objectslend_\( DOMAINS = objectslend PHP_SOURCES = $(shell find ../ -maxdepth 1 -name \*.php) \ $(shell find ../lib/GaletteObjectsLend/ -name \*.php) \ - $(shell find ../templates -name \*.tpl) + $(shell find ../tempcache -name \*.twig) all : extract mo +twig : + ../bin/twig-cache + po : @echo "Generating PO files:" @for l in ${LANGUAGES}; do \ @@ -38,12 +41,9 @@ mo : done \ done -extract : ${PHP_SOURCES} Makefile - xgettext ${PHP_SOURCES} --keyword=_T:1,2t --keyword=__:1,2t --keyword=_Tn:1,2,4t --keyword=_Tx:1c,2,3t --keyword=_Tnx:1c,2,3,5t -L PHP --from-code=UTF-8 --add-comments=TRANS --force-po -o objectslend_php.pot; - ../../../vendor/bin/smarty-xgettext --domain objectslend -o objectslend_tpl.pot ../templates/default/; \ - msgcat -o objectslend.pot --use-first objectslend_php.pot objectslend_tpl.pot; \ - rm objectslend_php.pot objectslend_tpl.pot; \ +extract : twig ${PHP_SOURCES} Makefile + xgettext ${PHP_SOURCES} --keyword=_T:1,2t --keyword=__:1,2t --keyword=_Tn:1,2,4t --keyword=_Tx:1c,2,3t --keyword=_Tnx:1c,2,3,5t -L PHP --from-code=UTF-8 --add-comments=TRANS --force-po -o objectslend.pot; echo "Generating en_US:" @for d in ${DOMAINS}; do \ - LANG=C msgen $$d.pot -o $${d}_en_US.po; \ + LANG=C msginit --no-translator -i $$d.pot --locale=en_US.utf8 -o $${d}_en_US.po; \ done diff --git a/lang/ar.utf8/LC_MESSAGES/objectslend.mo b/lang/ar.utf8/LC_MESSAGES/objectslend.mo index dbce36e..dfbf425 100644 Binary files a/lang/ar.utf8/LC_MESSAGES/objectslend.mo and b/lang/ar.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/ca.utf8/LC_MESSAGES/objectslend.mo b/lang/ca.utf8/LC_MESSAGES/objectslend.mo index 02d076f..0596e0c 100644 Binary files a/lang/ca.utf8/LC_MESSAGES/objectslend.mo and b/lang/ca.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/de_DE.utf8/LC_MESSAGES/objectslend.mo b/lang/de_DE.utf8/LC_MESSAGES/objectslend.mo index a3134cc..213dc2b 100644 Binary files a/lang/de_DE.utf8/LC_MESSAGES/objectslend.mo and b/lang/de_DE.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/en_US/LC_MESSAGES/objectslend.mo b/lang/en_US/LC_MESSAGES/objectslend.mo index 694a975..c6316a7 100644 Binary files a/lang/en_US/LC_MESSAGES/objectslend.mo and b/lang/en_US/LC_MESSAGES/objectslend.mo differ diff --git a/lang/es.utf8/LC_MESSAGES/objectslend.mo b/lang/es.utf8/LC_MESSAGES/objectslend.mo index e4d0f28..acbafaa 100644 Binary files a/lang/es.utf8/LC_MESSAGES/objectslend.mo and b/lang/es.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/fr_FR.utf8/LC_MESSAGES/objectslend.mo b/lang/fr_FR.utf8/LC_MESSAGES/objectslend.mo index 59e14f5..c353ec4 100644 Binary files a/lang/fr_FR.utf8/LC_MESSAGES/objectslend.mo and b/lang/fr_FR.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/it_IT.utf8/LC_MESSAGES/objectslend.mo b/lang/it_IT.utf8/LC_MESSAGES/objectslend.mo index 6f3a3cd..ed5ed1d 100644 Binary files a/lang/it_IT.utf8/LC_MESSAGES/objectslend.mo and b/lang/it_IT.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/objectslend.pot b/lang/objectslend.pot index 7688d6e..3138488 100644 --- a/lang/objectslend.pot +++ b/lang/objectslend.pot @@ -8,120 +8,133 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -154,798 +167,772 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." -msgstr "" - -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" -msgstr "" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" diff --git a/lang/objectslend_ar.utf8.po b/lang/objectslend_ar.utf8.po index 5fd8bfa..3ab6e20 100644 --- a/lang/objectslend_ar.utf8.po +++ b/lang/objectslend_ar.utf8.po @@ -1,12 +1,13 @@ # Johan Cwiklinski , 2020. -# ButterflyOfFire , 2020, 2021. +# ButterflyOfFire , 2020, 2021, 2022. +# ButterflyOfFire , 2023. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: 2021-10-24 14:00+0000\n" -"Last-Translator: ButterflyOfFire \n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-10-19 19:38+0000\n" +"Last-Translator: ButterflyOfFire \n" "Language-Team: Arabic \n" "Language: ar\n" @@ -15,113 +16,125 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" -"X-Generator: Weblate 4.9-dev\n" +"X-Generator: Weblate 5.1\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" -msgstr "" +msgstr "فشل الحذف" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -154,798 +167,785 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "الإسم" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "الوصف" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "الصفة" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" -msgstr "" +msgstr "الملصقات" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" -msgstr "" +msgstr "نشط" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" -msgstr "" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "صورة:" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" -msgstr "" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "غير نَشِط" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" -msgstr "الإسم:" - -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" +msgstr[4] "" +msgstr[5] "" + +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" -msgstr "الحالة:" - -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" -msgstr "تعليقات:" - -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:171 -msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +#: ../tempcache/preferences.html.twig:134 +msgid "" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" -msgstr "" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "الحالة:" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" +msgstr "الإسم:" -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:186 -msgid "By" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" -msgstr "الحالة" - -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "غير نَشِط" - -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" -msgstr "" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" +msgstr "تعليقات:" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" -msgstr "صورة:" - -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "" +#~ msgid "Delete image" +#~ msgstr "حذف الصورة" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" -msgstr "نوع السداد:" +#~ msgid "status" +#~ msgstr "الحالة" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "" +#~ msgid "Payment type:" +#~ msgstr "نوع السداد:" diff --git a/lang/objectslend_br.utf8.po b/lang/objectslend_br.utf8.po index 5a1f1b6..1690bed 100644 --- a/lang/objectslend_br.utf8.po +++ b/lang/objectslend_br.utf8.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" "PO-Revision-Date: 2021-05-01 19:32+0000\n" "Last-Translator: Egareg JAOUEN \n" "Language-Team: Breton 99)) ? 2 : ((n != 0 && n % 1000000 == 0) ? 3 : 4)));\n" "X-Generator: Weblate 4.7-dev\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -156,798 +168,775 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Dibaboù" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Statud" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Dibaboù" - -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +msgstr[3] "" +msgstr[4] "" + +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." -msgstr "" - -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" -msgstr "" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" diff --git a/lang/objectslend_ca.utf8.po b/lang/objectslend_ca.utf8.po index d17d950..aeaba25 100644 --- a/lang/objectslend_ca.utf8.po +++ b/lang/objectslend_ca.utf8.po @@ -1,131 +1,156 @@ +# Sineline , 2022. +# Arnau Isern , 2022. +# Johan Cwiklinski , 2022, 2023. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-11-22 10:44+0000\n" +"Last-Translator: Johan Cwiklinski \n" +"Language-Team: Catalan \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Translate Toolkit 3.0.0\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.2\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" -msgstr "" +msgstr "Llista de categories" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" -msgstr "" +msgstr "Editar categoria" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" -msgstr "" +msgstr "Nova categoria" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" -msgstr "" +msgstr "Ha fallat la supressió" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." +msgstr "Hi ha ocorregut un error mentre s'emmagatzemava la categoria." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" -msgstr "" +msgstr "La categoria ha sigut guardada" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" -msgstr "" +msgstr "Esborrar categoria%1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" -msgstr "" +msgstr "Llista d'objectes" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" -msgstr "" +msgstr "Editar objecte" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" +msgstr "Nou objecte" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" -msgstr "" +msgstr "Alguna cosa ha anat malament guardant l'objecte :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" -msgstr "" +msgstr "L'objecte s'ha guardat" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +#, fuzzy +#| msgid "Category has been saved" +msgid "Status has been updated" +msgstr "La categoria ha sigut guardada" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." -msgstr "" +msgstr "Duplicat amb èxit des de #%id. Ara ho pots editar." -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" -msgstr "" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" -msgstr "" +msgstr "Demanar prestat un objecte" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to borrow objects!" +msgstr "No tens dret a emportar-te objectes!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" -msgstr "" +msgstr "%objecte actualment no està disponible" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to return objects!" +msgstr "No tens dret a emportar-te objectes!" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" -msgstr "" +msgstr "Acabes d'agafar prestat %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" -msgstr "" +msgstr "%object ha sigut tornat :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" -msgstr "" +msgstr "Eliminar objecte %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" -msgstr "" +#, fuzzy +#| msgid "Please add at least one status \"object borrowed\"!" +msgid "Please add at last one status \"in stock\"!" +msgstr "Si us plau afegeix com a mínim un estat \"objecte prestat\"!" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 msgid "Please add at least one status \"object borrowed\"!" -msgstr "" +msgstr "Si us plau afegeix com a mínim un estat \"objecte prestat\"!" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 msgid "Status list" -msgstr "" +msgstr "Llista de estats" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 #, php-format @@ -149,798 +174,784 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" -msgstr "" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Imatge:" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" -msgstr "" +#: ../tempcache/objects_list.html.twig:868 +#, fuzzy +#| msgid "An error occured cloning object :(" +msgid "An error occurred loading history display :(" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" -msgstr "" +#: ../tempcache/objects_list.html.twig:921 +#, fuzzy +#| msgid "An error occured cloning object :(" +msgid "An error occurred loading 'Take away' display :(" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" -msgstr "" +#: ../tempcache/objects_list.html.twig:968 +#, fuzzy +#| msgid "An error occured cloning object :(" +msgid "An error occurred loading 'Give back' display :(" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, fuzzy, php-format +#| msgid "Edit category" +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "Editar categoria" +msgstr[1] "Editar categoria" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." -msgstr "" - -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" -msgstr "" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" +msgstr "Demanar prestat un objecte" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "" +#: ../tempcache/take_object.html.twig:503 +#, fuzzy +#| msgid "New object" +msgid "Return object" +msgstr "Nou objecte" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "" +#~ msgid "Object has been successfully stored!" +#~ msgstr "L'objecte s'ha guardat amb èxit!" diff --git a/lang/objectslend_de_DE.utf8.po b/lang/objectslend_de_DE.utf8.po index e9cf4d7..1923f1b 100644 --- a/lang/objectslend_de_DE.utf8.po +++ b/lang/objectslend_de_DE.utf8.po @@ -1,13 +1,14 @@ # Johan Cwiklinski , 2020. # Stefanie Schreiner , 2020. # Ricardo Santos , 2021. +# klausellus-wallace , 2023. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: 2021-05-01 19:32+0000\n" -"Last-Translator: Ricardo Santos \n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-03-02 13:38+0000\n" +"Last-Translator: klausellus-wallace \n" "Language-Team: German \n" "Language: de_DE\n" @@ -15,113 +16,125 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.7-dev\n" +"X-Generator: Weblate 4.16.2-dev\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "Löschen fehlgeschlagen" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -154,798 +167,784 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Einstellungen" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "Name" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "Beschreibung" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Status" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "Mitglied" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" -msgstr "" +msgstr "Adresslabel" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "Aktive" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" -msgstr "" +msgstr "Ort" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "Anfang" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "Ende" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Bild:" -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 -msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" -msgstr "Beitragstyp:" - -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" -msgstr "" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "Inaktiv" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" -msgstr "" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Anfangsdatum" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" -msgstr "" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Enddatum" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/headers.html.twig:43 +msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/status_list.html.twig:86 +msgid "Add a status" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/headers.tpl:14 -msgid "Click to view fullsize image" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/menu.tpl:19 -msgid "Add an object" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/menu.tpl:25 -msgid "Add a status" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Einstellungen" - -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" -msgstr "Name:" - -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" -msgstr "Beschreibung:" - -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" -msgstr "Status:" - -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" -msgstr "" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" +msgstr "Beitragstyp:" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" -msgstr "Kommentare:" - -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/take_object.tpl:171 -msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" -msgstr "Anfangsdatum" - -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" -msgstr "Enddatum" - -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" -msgstr "Bild löschen" - -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" -msgstr "Duplizieren" - -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" -msgstr "" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Status:" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" +msgstr "Name:" -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" +msgstr "Beschreibung:" -#: ../templates/default/objects_list.tpl:186 -msgid "By" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" -msgstr "" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" +msgstr "Duplizieren" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" -msgstr "Status" - -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "Inaktiv" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" +msgstr "Kommentare:" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" -msgstr "Bild:" - -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" -msgstr "Bild" +#~ msgid "Delete image" +#~ msgstr "Bild löschen" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "" +#~ msgid "status" +#~ msgstr "Status" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" -msgstr "Zahlunsgart:" +#~ msgid "Picture" +#~ msgstr "Bild" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "" +#~ msgid "Payment type:" +#~ msgstr "Zahlunsgart:" diff --git a/lang/objectslend_en_US.po b/lang/objectslend_en_US.po index 3a0ded5..dcca625 100644 --- a/lang/objectslend_en_US.po +++ b/lang/objectslend_en_US.po @@ -1,128 +1,140 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# English translations for PACKAGE package. +# Copyright (C) 2023 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. +# Automatically generated, 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-12-06 08:20+0100\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: en_US\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "Categories list" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "Edit category" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "New category" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "Delete failed" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." -msgstr "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." +msgstr "An error occurred while storing the category." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "Category has been saved" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "Remove category %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "Objects list" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "Rents list for %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "Edit object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "New object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "Object has been successfully stored!" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "Something went wrong saving object :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "Object has been saved" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "Status has been updated" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "Successfully cloned from #%id.
You can now edit it." -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "An error occured cloning object :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "Borrow an object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" -msgstr "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "Return a borrowed object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" +msgstr "You do not have rights to borrow objects!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "%object is currently not available" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "You do not have rights to return objects!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "You have just borrowed %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "%object has been returned :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "Remove object %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "You are about to remove %count objects." #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" -msgstr "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" +msgstr "Please add at last one status \"in stock\"!" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 msgid "Please add at least one status \"object borrowed\"!" @@ -154,220 +166,487 @@ msgstr "Status has been saved" msgid "Remove status %1$s" msgstr "Remove status %1$s" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "ObjectsLend preferences" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "Preferences have been successfully stored!" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "Objects lend" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "Borrow status" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "Object categories" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Preferences" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "objects_cards" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "Printed on %date" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "Name" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "Description" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "Serial" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "Price" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "Borrow price" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "Dimensions" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "Weight" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Status" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "Since" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "Member" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "Return" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "Category: %category" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "Total:" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "Borrowed" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "Available" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "object_card" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "Object card" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "Labels" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "Category" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "Serial number" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "Price per rental day" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "Cm" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "Kg" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "Active" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "Location" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "History of object loans" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "Begin" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "End" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "In stock" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "Comments" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "Status has not been added :(" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "Unable to store preferences :(" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "Rent has not been added" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "Y-m-d H:i" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "No category" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "Object has not been added :(" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "Name/description" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "Id" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "Is active" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Picture:" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +msgstr "Category photo" + +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" +msgstr "No object selected" + +#: ../tempcache/objects_list.html.twig:57 +msgid "" +"Please make sure to select at least one object from the list to perform this " +"action." +msgstr "" +"Please make sure to select at least one object from the list to perform this " +"action." + +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" +msgstr "Print objects list" + +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" +msgstr "Add an object" + +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" +msgstr "By" + +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 msgid "Active:" msgstr "Active:" -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "categories" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" +msgstr "Categories" -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "category" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" +msgstr "Object photo" -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" +msgstr "(per day)" + +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" +msgstr "(at once)" + +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" +msgstr "Object is active" + +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" +msgstr "Object is inactive" + +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "Inactive" + +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" +msgstr "Duplicate object" + +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" +msgstr "Show object lends" + +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" +msgstr "Object card in PDF" + +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" +msgstr "Remove %object from database" + +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" +msgstr "Take away" + +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" +msgstr "Give back" + +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" +msgstr "No object has been found" + +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" +msgstr "History of object" + +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" +msgstr "An error occurred loading history display :(" + +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" +msgstr "Take objects" + +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" +msgstr "An error occurred loading 'Take away' display :(" + +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" +msgstr "Give back objects" + +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" +msgstr "An error occurred loading 'Give back' display :(" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Begin date" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "End date" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +msgstr "No lend found" + +#: ../tempcache/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "Click to view fullsize image" + +#: ../tempcache/status_list.html.twig:86 +msgid "Add a status" +msgstr "Add a status" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" +msgstr "Stock" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" +msgstr "Days for rent" + +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" +msgstr "In stock:" + +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" +msgstr "Not in stock" + +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" +msgstr "%days days" + +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" +msgstr "Edit %status" + +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" +msgstr "Remove %status from database" + +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" +msgstr "No status has been found" + +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "%count category" +msgstr[1] "%count categories" + +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" +msgstr "Add a category" + +#: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" msgstr "Edit \"%category\"" -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 +#: ../tempcache/categories_list.html.twig:325 #, php-format msgid "Remove \"%category\"" msgstr "Remove \"%category\"" -#: ../templates/default/preferences.tpl:6 +#: ../tempcache/preferences.html.twig:57 msgid "Plugin preferences" msgstr "Plugin preferences" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" +msgstr "Images related" + +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" +msgstr "Display preferences" + +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" +msgstr "Members can borrow:" + +#: ../tempcache/preferences.html.twig:74 msgid "" "Allow a member (not staff neither admin) to borrow an object. If set to " "'No', only admin and staff members can access the 'Take object' page" @@ -375,12 +654,11 @@ msgstr "" "Allow a member (not staff neither admin) to borrow an object. If set to " "'No', only admin and staff members can access the 'Take object' page" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" -msgstr "Members can borrow:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" +msgstr "Generate contribution:" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/preferences.html.twig:76 msgid "" "Automatically generate a contribution for the member of the amount of the " "rental price of the object" @@ -388,27 +666,23 @@ msgstr "" "Automatically generate a contribution for the member of the amount of the " "rental price of the object" -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "Generate contribution:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" +msgstr "Choose a contribution type" -#: ../templates/default/preferences.tpl:22 +#: ../tempcache/preferences.html.twig:127 msgid "Contribution type:" msgstr "Contribution type:" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" -msgstr "Choose a contribution type" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" +msgstr "Contribution text:" -#: ../templates/default/preferences.tpl:32 +#: ../tempcache/preferences.html.twig:134 msgid "Comment text to add on generated contribution" msgstr "Comment text to add on generated contribution" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" -msgstr "Contribution text:" - -#: ../templates/default/preferences.tpl:33 +#: ../tempcache/preferences.html.twig:134 msgid "" "Comment text to add on generated contribution. Automatically replaced values " "(put into curly brackets):
- NAME: Name
- DESCRIPTION: " @@ -420,35 +694,31 @@ msgstr "" "Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " "RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" -msgstr "Images related" - -#: ../templates/default/preferences.tpl:41 +#: ../tempcache/preferences.html.twig:148 msgid "Max thumb height (in px)" msgstr "Max thumb height (in px)" -#: ../templates/default/preferences.tpl:45 +#: ../tempcache/preferences.html.twig:154 msgid "Max thumb width (in px)" msgstr "Max thumb width (in px)" -#: ../templates/default/preferences.tpl:49 +#: ../tempcache/preferences.html.twig:159 msgid "Images in lists:" msgstr "Images in lists:" -#: ../templates/default/preferences.tpl:50 +#: ../tempcache/preferences.html.twig:159 msgid "Display images in objects and categories lists" msgstr "Display images in objects and categories lists" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" -msgstr "Show fullsize image or just thumbs" - -#: ../templates/default/preferences.tpl:55 +#: ../tempcache/preferences.html.twig:161 msgid "Enable fullsize:" msgstr "Enable fullsize:" -#: ../templates/default/preferences.tpl:56 +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" +msgstr "Show fullsize image or just thumbs" + +#: ../tempcache/preferences.html.twig:161 msgid "" "Will permit to see fullsize image clicking on thumbnails.
If disabled, " "only thumbnails will be displayed, but full images are still kept." @@ -456,210 +726,201 @@ msgstr "" "Will permit to see fullsize image clicking on thumbnails.
If disabled, " "only thumbnails will be displayed, but full images are still kept." -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" -msgstr "Display preferences" - -#: ../templates/default/preferences.tpl:64 +#: ../tempcache/preferences.html.twig:196 msgid "View category:" msgstr "View category:" -#: ../templates/default/preferences.tpl:69 +#: ../tempcache/preferences.html.twig:198 msgid "View forecast return date:" msgstr "View forecast return date:" -#: ../templates/default/preferences.tpl:74 +#: ../tempcache/preferences.html.twig:200 msgid "View description" msgstr "View description" -#: ../templates/default/preferences.tpl:79 +#: ../tempcache/preferences.html.twig:202 msgid "View dimensions:" msgstr "View dimensions:" -#: ../templates/default/preferences.tpl:84 +#: ../tempcache/preferences.html.twig:204 msgid "View borrow price:" msgstr "View borrow price:" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" -msgstr "View the objects buy price sum on the list under the category" - -#: ../templates/default/preferences.tpl:89 +#: ../tempcache/preferences.html.twig:206 msgid "View price sum:" msgstr "View price sum:" -#: ../templates/default/preferences.tpl:95 +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" +msgstr "View the objects buy price sum on the list under the category" + +#: ../tempcache/preferences.html.twig:208 msgid "View buy price:" msgstr "View buy price:" -#: ../templates/default/preferences.tpl:100 +#: ../tempcache/preferences.html.twig:210 msgid "View serial number:" msgstr "View serial number:" -#: ../templates/default/preferences.tpl:105 +#: ../tempcache/preferences.html.twig:212 msgid "View weight" msgstr "View weight" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" -msgstr "Backup categories pictures" - -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" -msgstr "Backup objects pictures" - -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" -msgstr "Restore objects pictures from database" - -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" -msgstr "Restore categories pictures from database" - -#: ../templates/default/headers.tpl:14 -msgid "Click to view fullsize image" -msgstr "Click to view fullsize image" - -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "Objects lend" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "Add an object" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "Borrow status" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Status:" -#: ../templates/default/menu.tpl:25 -msgid "Add a status" -msgstr "Add a status" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "Is object in stock or borrowed" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "Object categories" +#: ../tempcache/status_edit.html.twig:75 +msgid "" +"Check if the object is available to be borrowed;
uncheck if object is " +"already borrowed and should be given back" +msgstr "" +"Check if the object is available to be borrowed;
uncheck if object is " +"already borrowed and should be given back" -#: ../templates/default/menu.tpl:31 -msgid "Add a category" -msgstr "Add a category" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "Number of days to rent per default" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Preferences" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "used to compute return date" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "Object" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" -msgstr "Object photo" - -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Name:" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Description:" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" +msgstr "--- Select a category ---" + +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" +msgstr "Category:" + +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "Serial number:" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "Price:" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "Borrow price:" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" -msgstr "(per day)" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" +msgstr "Price per rental day:" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" -msgstr "(at once)" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" +msgstr "The price applies on each rental day if checked, only once otherwise" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "Dimensions:" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "Weight:" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" -msgstr "Member:" - -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" -msgstr "Status:" - -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "--- Select a status ---" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" -msgstr "%days days" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" +msgstr "Where is the object?" + +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" +msgstr "Object's photo" + +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" +msgstr "Duplicate" + +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" +msgstr "Print object" -#: ../templates/default/take_object.tpl:124 +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" +msgstr "History" + +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" +msgstr "Change status" + +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Member:" + +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" +msgstr "Borrow information" + +#: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "Expected return:" -#: ../templates/default/take_object.tpl:149 +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" +msgstr "Return information" + +#: ../tempcache/take_object.html.twig:442 msgid "Time:" msgstr "Time:" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" +msgstr "From %begindate to %enddate" + +#: ../tempcache/take_object.html.twig:452 msgid "Comments:" msgstr "Comments:" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 +#: ../tempcache/take_object.html.twig:455 msgid "remaining characters" msgstr "remaining characters" -#: ../templates/default/take_object.tpl:167 +#: ../tempcache/take_object.html.twig:473 msgid "I have read and I agree with terms and conditions" msgstr "I have read and I agree with terms and conditions" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 +#: ../tempcache/take_object.html.twig:480 msgid "Show terms and conditions" msgstr "Show terms and conditions" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/take_object.html.twig:487 msgid "" "The items offered for rent are in good condition and verification rental " "contradictory to their status is at the time of withdrawal. No claims will " @@ -691,289 +952,14 @@ msgstr "" "other cases not listed above and at the discretion of the seller, the " "deposit check may also be collected in whole or party." -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "Take away" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" -msgstr "Return back" - -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." -msgstr "You must agree with terms and conditions in order to take." - -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" -msgstr "Begin date" - -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" -msgstr "End date" - -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" -msgstr "No lend found" - -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" -msgstr "Category:" - -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" -msgstr "--- Select a category ---" - -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" -msgstr "The price applies on each rental day if checked, only once otherwise" - -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" -msgstr "Price per rental day:" - -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" -msgstr "Where is the object?" - -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" -msgstr "in stock" - -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" -msgstr "Object's photo" - -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" -msgstr "Delete image" - -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" -msgstr "Duplicate" - -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" -msgstr "Print object" - -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" -msgstr "Back to list" - -#: ../templates/default/objects_edit.tpl:110 -msgid "History" -msgstr "History" - -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" -msgstr "Change status" - -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" -msgstr "No member" - -#: ../templates/default/status_edit.tpl:16 -msgid "Is object in stock or borrowed" -msgstr "Is object in stock or borrowed" - -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "In stock:" - -#: ../templates/default/status_edit.tpl:19 -msgid "" -"Check if the object is available to be borrowed;
uncheck if object is " -"already borrowed and should be given back" -msgstr "" -"Check if the object is available to be borrowed;
uncheck if object is " -"already borrowed and should be given back" - -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 -msgid "Number of days to rent per default" -msgstr "Number of days to rent per default" - -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "Days for rent" - -#: ../templates/default/status_edit.tpl:34 -msgid "used to compute return date" -msgstr "used to compute return date" - -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "objects" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "object" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "Categories" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "By" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "Object is active" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" -msgstr "Object is inactive" - -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" -msgstr "Take object away" - -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" -msgstr "Give object back" - -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" -msgstr "Give back" - -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" -msgstr "Edit the object" - -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" -msgstr "Duplicate object" - -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" -msgstr "Show object lends" - -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" -msgstr "Object card in PDF" - -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" -msgstr "Remove %object from database" - -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" -msgstr "No object has been found" - -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" -msgstr "Print objects list" - -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" -msgstr "No object selected" - -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." -msgstr "" -"Please make sure to select at least one object from the list to perform this " -"action." - -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" -msgstr "History of object" - -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" -msgstr "An error occured loading history display :(" - -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" -msgstr "Take objects" - -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" -msgstr "An error occured loading 'Take away' display :(" - -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" -msgstr "Give back objects" - -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" -msgstr "An error occured loading 'Give back' display :(" - -#: ../templates/default/status_list.tpl:25 -msgid "status" -msgstr "status" - -#: ../templates/default/status_list.tpl:77 -msgid "Stock" -msgstr "Stock" - -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "Inactive" - -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" -msgstr "Not in stock" - -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" -msgstr "Edit %status" - -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 -#, php-format -msgid "Remove %status from database" -msgstr "Remove %status from database" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" -msgstr "No status has been found" - -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" -msgstr "Is active" - -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" -msgstr "Picture:" - -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" -msgstr "Category photo" - -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" -msgstr "Objects" - -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" -msgstr "Picture" - -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" +msgstr "Borrow object" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" -msgstr "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" +msgstr "Return object" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." +msgstr "You must agree with terms and conditions in order to borrow." diff --git a/lang/objectslend_es.utf8.po b/lang/objectslend_es.utf8.po index 70d49b4..1839f4d 100644 --- a/lang/objectslend_es.utf8.po +++ b/lang/objectslend_es.utf8.po @@ -1,16 +1,18 @@ -# Johan Cwiklinski , 2020. +# Johan Cwiklinski , 2020, 2022, 2023. # Berto Te , 2021. # Eunice Soria , 2021. # Toni Martínez , 2021. # Alonso Arteaga , 2021. # noelia , 2021. +# Cow , 2022. +# gallegonovato , 2022, 2023. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: 2021-08-22 22:34+0000\n" -"Last-Translator: noelia \n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-11-22 10:44+0000\n" +"Last-Translator: Johan Cwiklinski \n" "Language-Team: Spanish \n" "Language: es\n" @@ -18,641 +20,924 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.8.1-dev\n" +"X-Generator: Weblate 5.2\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" -msgstr "" +msgstr "Lista de las categorías" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" -msgstr "" +msgstr "Editar categoría" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" -msgstr "" +msgstr "Crear categoría" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" -msgstr "Falló la eliminación" +msgstr "Eliminación errónea" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." +msgstr "Ocurrió un error al almacenar la categoría." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" -msgstr "" +msgstr "La categoría ha sido guardada" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" -msgstr "" +msgstr "Eliminar categoría %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" -msgstr "" +msgstr "Índice de objetos" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" -msgstr "" +msgstr "Listado de rentas para %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" -msgstr "" +msgstr "Editar objeto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" +msgstr "Crear objeto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" -msgstr "" +msgstr "Algo fue mal al guardar objeto :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" -msgstr "" +msgstr "El objeto ha sido guardado" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +#, fuzzy +#| msgid "Status has been saved" +msgid "Status has been updated" +msgstr "El estado ha sido guardado" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." -msgstr "" +msgstr "Clonado correcto desde nº %id.
Ahora puede editarlo." -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" -msgstr "" +msgstr "Ha ocurrido un error al clonar objeto :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" -msgstr "" +msgstr "Alquilar un objeto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "Devolver un objeto prestado" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" +msgstr "¡No tienes derecho a tomar objetos prestados!" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" -msgstr "" +msgstr "%objet no está disponible actualmente" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +#, fuzzy +#| msgid "You do not have rights to borrow objects!" +msgid "You do not have rights to return objects!" +msgstr "¡No tienes derecho a tomar objetos prestados!" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" -msgstr "" +msgstr "Ha alquilado %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" -msgstr "" +msgstr "%object ha sido devuelto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" -msgstr "" +msgstr "Quita objeto %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." -msgstr "" +msgstr "Va a quitar %count objetos." #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" -msgstr "" +msgid "Please add at last one status \"in stock\"!" +msgstr "¡ Agregue al final un estado «en almacenaje» !" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 msgid "Please add at least one status \"object borrowed\"!" -msgstr "" +msgstr "¡ Añada un estado «objeto alquilado» !" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 msgid "Status list" -msgstr "" +msgstr "Índice de estado" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 #, php-format msgid "Edit status %status" -msgstr "" +msgstr "Editar estado %status" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 msgid "New status" -msgstr "" +msgstr "Estado nuevo" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 msgid "An error occured while storing the status." -msgstr "" +msgstr "Ha ocurrido un error mientras almacenada el estado." #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 msgid "Status has been saved" -msgstr "" +msgstr "El estado ha sido guardado" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 #, php-format msgid "Remove status %1$s" -msgstr "" +msgstr "Eliminar estado %1$s" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" -msgstr "" +msgstr "Preferencias de ObjectLend" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" -msgstr "" +msgstr "¡ Las preferencias han sigo almacenadas correctamente !" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "Lente de objetos" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "Estado alquilado" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "Categorías de objeto" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Preferencias" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#, fuzzy +#| msgid "object_card" +msgid "objects_cards" +msgstr "objeto_tarjeta" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" -msgstr "" +msgstr "Escrito el %date" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "Nombre" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "Descripción" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" -msgstr "" +msgstr "Serie" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" -msgstr "" +msgstr "Precio" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" -msgstr "" +msgstr "Precio de alquiler" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" -msgstr "" +msgstr "Dimensiones" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" -msgstr "" +msgstr "Ponderación" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Estado" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" -msgstr "" +msgstr "Desde" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" -msgstr "" +msgstr "Miembro" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" -msgstr "" +msgstr "Devolución" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" -msgstr "" +msgstr "Categoría: %category" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" -msgstr "" +msgstr "Total:" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" -msgstr "" +msgstr "Alquilado" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" -msgstr "" +msgstr "Disponible" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" -msgstr "" +msgstr "objeto_tarjeta" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" -msgstr "" +msgstr "Tarjeta objeto" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" -msgstr "" +msgstr "Etiquetas" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" -msgstr "" +msgstr "Categoría" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" -msgstr "" +msgstr "Nº de serie" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" -msgstr "" +msgstr "Precio por día beneficiario" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" -msgstr "" +msgstr "Cm" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" -msgstr "" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +msgstr "Kg" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" -msgstr "Activo" +msgstr "Activa" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" -msgstr "" +msgstr "Lugar" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" -msgstr "" +msgstr "Histórico de objeto alquilado" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" -msgstr "" +msgstr "Comienzo" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" -msgstr "Fin" +msgstr "Final" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" -msgstr "" +msgstr "Almacenado" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" -msgstr "" +msgstr "Comentarios" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" -msgstr "" +msgstr "Estado que no ha sido añadido :(" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" -msgstr "" +msgstr "Imposible almacenar preferencias :(" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" -msgstr "" +msgstr "La renta no ha sido añadida" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" -msgstr "" +msgstr "Y-m-d H:i" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" -msgstr "" +msgstr "Ninguna categoría" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" -msgstr "" +msgstr "El objeto no ha sido agregado :(" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" -msgstr "" +msgstr "Nombre/descripción" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" +msgstr "Id" + +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "Está activo" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Foto:" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +msgstr "Categoría de foto" + +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" +msgstr "Ningún objeto seleccionado" + +#: ../tempcache/objects_list.html.twig:57 +msgid "" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" +"Asegúrese seleccionar al menos un objetos desde el índice para realizar esta " +"operación." + +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" +msgstr "Índice de objetos escritos" + +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" +msgstr "Añade un objeto" + +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" +msgstr "Por" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 msgid "Active:" -msgstr "" +msgstr "Activo:" -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" +msgstr "Categorías" -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" +msgstr "Objeto de foto" + +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" +msgstr "(por día)" -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" +msgstr "(una vez)" + +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" +msgstr "Objeto está activo" + +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" +msgstr "Objeto no está activo" + +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "Inactiva" + +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" +msgstr "Duplicar objeto" + +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" +msgstr "Mostrar objeto prestado" + +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" +msgstr "Tarjeta de objeto en *.pdf" + +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" +msgstr "Quitar %object desde BdD" + +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" +msgstr "Lárgate" + +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" +msgstr "Devolver" + +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" +msgstr "No se ha encontrado ningún objeto" + +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" +msgstr "Historial de objeto" + +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" +msgstr "Ha ocurrido un error al cargar la pantalla histórica :(" + +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" +msgstr "Coger objetos" + +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" +msgstr "Ha ocurrido un error al cargar la pantalla «Apartar» :(" + +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" +msgstr "Devolver objetos" + +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" +msgstr "Ha ocurrido un error al cargar la pantalla «Devolver» :(" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Fecha de inicio" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Fecha de finalización" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +msgstr "Ningún préstamo encontrado" + +#: ../tempcache/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "Pulse para ver imagen a tamaño completo" + +#: ../tempcache/status_list.html.twig:86 +msgid "Add a status" +msgstr "Añade un estado" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" +msgstr "Mercancía" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" +msgstr "Días para alquilar" + +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" +msgstr "Almacenado:" + +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" +msgstr "No dentro del almacenaje" + +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" +msgstr "%days días" + +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" +msgstr "Editar %status" + +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" +msgstr "Quitar estado %status desde BdD" + +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" +msgstr "No ha sido encontrado ningún estado" + +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "Categoría %count" +msgstr[1] "Categorías de %count" + +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" +msgstr "Añadir una categoría" + +#: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" -msgstr "" +msgstr "Editar «%categoría»" -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 +#: ../tempcache/categories_list.html.twig:325 #, php-format msgid "Remove \"%category\"" -msgstr "" +msgstr "Eliminar «%category»" -#: ../templates/default/preferences.tpl:6 +#: ../tempcache/preferences.html.twig:57 msgid "Plugin preferences" -msgstr "" +msgstr "Preferencias de complemento" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" +msgstr "Imágenes relacionadas" + +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" +msgstr "Preferencias de pantalla" + +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" +msgstr "Miembros pueden alquilar:" + +#: ../tempcache/preferences.html.twig:74 msgid "" "Allow a member (not staff neither admin) to borrow an object. If set to " "'No', only admin and staff members can access the 'Take object' page" msgstr "" +"Permite un miembro (no el personal ni administración) alquilar un objeto. Si " +"fija a «No», solamente los miembros admin y staff pueden acceder a la página " +"«Tomar objeto»" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" -msgstr "" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" +msgstr "Generar contribución:" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/preferences.html.twig:76 msgid "" "Automatically generate a contribution for the member of the amount of the " "rental price of the object" msgstr "" +"Genera automáticamente una contribución para el miembro de la cantidad del " +"precio de renta del objeto" -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" +msgstr "Elija un tipo de contribuidor" -#: ../templates/default/preferences.tpl:22 +#: ../tempcache/preferences.html.twig:127 msgid "Contribution type:" -msgstr "Tipo de Contribuidor:" +msgstr "Tipo de contribuidor:" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" -msgstr "" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" +msgstr "Texto de contribución:" -#: ../templates/default/preferences.tpl:32 +#: ../tempcache/preferences.html.twig:134 msgid "Comment text to add on generated contribution" -msgstr "" +msgstr "Texto de comentario para añadir en la contribución generada" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" -msgstr "" - -#: ../templates/default/preferences.tpl:33 +#: ../tempcache/preferences.html.twig:134 msgid "" "Comment text to add on generated contribution. Automatically replaced values " "(put into curly brackets):
- NAME: Name
- DESCRIPTION: " "Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " "RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" +"Texto de comentario para añadir en la contribución generada. Automáticamente " +"sustituyó valores (puesto entre corchetes):
- NAME: Nombre
- " +"DESCRIPTION: Descripción
-SERIAL_NUMBER: Número serial
- PRICE: " +"Precio
- RENT_PRICE: Precio alquiler
- WEIGHT: Ponderación
- " +"DIMENSION: Dimensiones" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" -msgstr "" - -#: ../templates/default/preferences.tpl:41 +#: ../tempcache/preferences.html.twig:148 msgid "Max thumb height (in px)" -msgstr "" +msgstr "Altura máx. de huella (en píxel)" -#: ../templates/default/preferences.tpl:45 +#: ../tempcache/preferences.html.twig:154 msgid "Max thumb width (in px)" -msgstr "" +msgstr "Anchura máx. de huella (en píxel)" -#: ../templates/default/preferences.tpl:49 +#: ../tempcache/preferences.html.twig:159 msgid "Images in lists:" -msgstr "" +msgstr "Imágenes en listados:" -#: ../templates/default/preferences.tpl:50 +#: ../tempcache/preferences.html.twig:159 msgid "Display images in objects and categories lists" -msgstr "" - -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" -msgstr "" +msgstr "Representa imágenes en índices de objetos y categorías" -#: ../templates/default/preferences.tpl:55 +#: ../tempcache/preferences.html.twig:161 msgid "Enable fullsize:" -msgstr "" +msgstr "Activa tamaño completo:" -#: ../templates/default/preferences.tpl:56 +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" +msgstr "Muestra imagen en tamaño completo a tan solo en huellas" + +#: ../tempcache/preferences.html.twig:161 msgid "" "Will permit to see fullsize image clicking on thumbnails.
If disabled, " "only thumbnails will be displayed, but full images are still kept." msgstr "" +"Permitirá ver imagen en pantalla completa pulsando en huellas.
Si " +"deshabilitó, solamente huelllas serán representadas, pero las imágenes " +"completas aún están conservadas." -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" -msgstr "" - -#: ../templates/default/preferences.tpl:64 +#: ../tempcache/preferences.html.twig:196 msgid "View category:" -msgstr "" +msgstr "Categoría de vista:" -#: ../templates/default/preferences.tpl:69 +#: ../tempcache/preferences.html.twig:198 msgid "View forecast return date:" -msgstr "" +msgstr "Revisión de vista devuelta en fecha:" -#: ../templates/default/preferences.tpl:74 +#: ../tempcache/preferences.html.twig:200 msgid "View description" -msgstr "" +msgstr "Descripción de vista" -#: ../templates/default/preferences.tpl:79 +#: ../tempcache/preferences.html.twig:202 msgid "View dimensions:" -msgstr "" +msgstr "Dimensiones de vista:" -#: ../templates/default/preferences.tpl:84 +#: ../tempcache/preferences.html.twig:204 msgid "View borrow price:" -msgstr "" - -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" -msgstr "" +msgstr "Vista de precio alquilado:" -#: ../templates/default/preferences.tpl:89 +#: ../tempcache/preferences.html.twig:206 msgid "View price sum:" +msgstr "Vea el sumatorio de precio:" + +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" +"Vea los objetos sumados del precio comprados en el índice bajo la categoría" -#: ../templates/default/preferences.tpl:95 +#: ../tempcache/preferences.html.twig:208 msgid "View buy price:" -msgstr "" +msgstr "Vea el precio comprado:" -#: ../templates/default/preferences.tpl:100 +#: ../tempcache/preferences.html.twig:210 msgid "View serial number:" -msgstr "" +msgstr "Vea el número de serie:" -#: ../templates/default/preferences.tpl:105 +#: ../tempcache/preferences.html.twig:212 msgid "View weight" -msgstr "" - -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" -msgstr "" - -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" -msgstr "" - -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" -msgstr "" +msgstr "Ver ponderación" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" -msgstr "" - -#: ../templates/default/headers.tpl:14 -msgid "Click to view fullsize image" -msgstr "" - -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Estado:" -#: ../templates/default/menu.tpl:25 -msgid "Add a status" -msgstr "" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "Este objeto está almacenado o alquilado" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" +#: ../tempcache/status_edit.html.twig:75 +msgid "" +"Check if the object is available to be borrowed;
uncheck if object is " +"already borrowed and should be given back" msgstr "" +"Marque si el objeto está disponible para ser alquilado;
desmarque si el " +"objeto ya está alquilado y debería ser devuelto" -#: ../templates/default/menu.tpl:31 -msgid "Add a category" -msgstr "" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "Número de días para alquilar por defecto" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Preferencias" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "utilizado para calcular la fecha de devolución" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 msgid "Object" -msgstr "" - -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" -msgstr "" +msgstr "Objeto" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 msgid "Name:" -msgstr "" +msgstr "Nombre:" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Descripción:" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" +msgstr "--- Seleccionar una categoría ---" + +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" +msgstr "Categoría:" + +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 msgid "Serial number:" -msgstr "" +msgstr "Número serial:" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 msgid "Price:" -msgstr "" +msgstr "Precio:" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" -msgstr "" +msgstr "Precio alquilado:" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" -msgstr "" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" +msgstr "Precio por día alquilado:" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" +"El precio se aplica en cada día rentado si se marcó, solamente uno en otro " +"caso" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" -msgstr "" +msgstr "Dimensiones:" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 msgid "Weight:" -msgstr "" +msgstr "Ponderación:" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" -msgstr "" +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" +msgstr "--- Seleccione un estado ---" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" -msgstr "" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" +msgstr "¿Dónde está el objeto?" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" -msgstr "" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" +msgstr "Foto de objeto" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" -msgstr "" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" +msgstr "Duplicar" + +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" +msgstr "Imprimir objeto" -#: ../templates/default/take_object.tpl:124 +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" +msgstr "Historial" + +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" +msgstr "Cambiar estado" + +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Miembro:" + +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" +msgstr "Pedir prestada la información" + +#: ../tempcache/take_object.html.twig:380 msgid "Expected return:" -msgstr "" +msgstr "Devolución esperada:" + +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" +msgstr "Información de retorno" -#: ../templates/default/take_object.tpl:149 +#: ../tempcache/take_object.html.twig:442 msgid "Time:" -msgstr "" +msgstr "Hora:" + +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" +msgstr "De %begindate a %enddate" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 +#: ../tempcache/take_object.html.twig:452 msgid "Comments:" msgstr "Comentarios:" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 +#: ../tempcache/take_object.html.twig:455 msgid "remaining characters" -msgstr "" +msgstr "caracteres remanentes" -#: ../templates/default/take_object.tpl:167 +#: ../tempcache/take_object.html.twig:473 msgid "I have read and I agree with terms and conditions" -msgstr "" +msgstr "He leído y esto de acuerdo con los términos y condiciones" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 +#: ../tempcache/take_object.html.twig:480 msgid "Show terms and conditions" -msgstr "" +msgstr "Muestra los términos y condiciones" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/take_object.html.twig:487 msgid "" "The items offered for rent are in good condition and verification rental " "contradictory to their status is at the time of withdrawal. No claims will " @@ -669,286 +954,97 @@ msgid "" "other cases not listed above and at the discretion of the seller, the " "deposit check may also be collected in whole or party." msgstr "" +"Los artículos ofrecidos para alquiler están en buenas condiciones y la " +"verificación de alquiler contradictorio a su estado es en el momento de la " +"retirada. No se aceptarán reclamos después de la liberación del objeto. " +"Escribir por la tienda una lista de reservas no exime al cliente de " +"comprobar su desistimiento. El pago del alquiler da derecho al comprador a " +"hacer un uso normal del objeto prestado. Si el objeto se entrega en estado " +"degradado, el vendedor se reserva el derecho de cobrar la totalidad o parte " +"del depósito de garantía. En caso de deterioro de la propiedad alquilada más " +"allá del objeto estándar, se requerirá una contribución financiera para la " +"limpieza adicional causada. En caso de daños, pérdida o robo del inmueble " +"alquilado, el depósito no se reembolsará automáticamente a la sociedad en " +"concepto de daños y perjuicios, de conformidad con el artículo 1152 del " +"Código Civil y sin necesidad de ningún otro trámite judicial o " +"extrajudicial. En algunos otros casos no enumerados anteriormente y a " +"discreción del vendedor, el cheque de depósito también puede cobrarse en su " +"totalidad o en parte." -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" +msgstr "Alquilar un objeto" -#: ../templates/default/take_object.tpl:176 -msgid "Return back" -msgstr "" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" +msgstr "Devuelve el objeto" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." -msgstr "" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." +msgstr "Debe aceptar los términos y condiciones para obtener un préstamo." -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" -msgstr "Fecha de inicio" +#~ msgid "Edit the object" +#~ msgstr "Edita el objeto" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" -msgstr "Fecha de finalización" +#~ msgid "Object has been successfully stored!" +#~ msgstr "¡ El objeto ha sido almacenado correctamente !" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" -msgstr "" +#~ msgid "categories" +#~ msgstr "categorías" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" -msgstr "" +#~ msgid "category" +#~ msgstr "categoría" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" -msgstr "" +#~ msgid "Backup categories pictures" +#~ msgstr "Respaldar cuadros de categorías" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" -msgstr "" +#~ msgid "Backup objects pictures" +#~ msgstr "Respaldar pinturas de objetos" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" -msgstr "" +#~ msgid "Restore objects pictures from database" +#~ msgstr "Restaurar pinturas de objetos desde BdD" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" -msgstr "" +#~ msgid "Restore categories pictures from database" +#~ msgstr "Restaurar categorías de pinturas desde BdD" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" -msgstr "" +#~ msgid "in stock" +#~ msgstr "en almacén" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" -msgstr "" +#~ msgid "Delete image" +#~ msgstr "Borrar imagen" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" -msgstr "" +#~ msgid "Back to list" +#~ msgstr "Volver al índice" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" -msgstr "" +#~ msgid "No member" +#~ msgstr "Ningún miembro" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" -msgstr "" +#~ msgid "objects" +#~ msgstr "objetos" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" -msgstr "" +#~ msgid "object" +#~ msgstr "objeto" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" -msgstr "" +#~ msgid "Take object away" +#~ msgstr "Llevar objeto" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" -msgstr "" - -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" -msgstr "" - -#: ../templates/default/status_edit.tpl:16 -msgid "Is object in stock or borrowed" -msgstr "" - -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 -msgid "" -"Check if the object is available to be borrowed;
uncheck if object is " -"already borrowed and should be given back" -msgstr "" - -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 -msgid "Number of days to rent per default" -msgstr "" - -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 -msgid "used to compute return date" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" -msgstr "" +#~ msgid "Give object back" +#~ msgstr "Devolver objeto" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" -msgstr "" - -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" -msgstr "" +#~ msgid "status" +#~ msgstr "estado" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" -msgstr "" +#~ msgid "Objects" +#~ msgstr "Objetos" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" -msgstr "" +#~ msgid "Picture" +#~ msgstr "Foto" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" -msgstr "" +#~ msgid "--- Select a member ---" +#~ msgstr "--- Seleccione un miembro ---" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" -msgstr "" - -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" -msgstr "" - -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" -msgstr "" - -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" -msgstr "" - -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" -msgstr "" +#~ msgid "Payment type:" +#~ msgstr "Tipo de remuneración:" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" -msgstr "" - -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." -msgstr "" - -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" -msgstr "" - -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" -msgstr "" - -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" -msgstr "" - -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" -msgstr "" - -#: ../templates/default/status_list.tpl:25 -msgid "status" -msgstr "Estado" - -#: ../templates/default/status_list.tpl:77 -msgid "Stock" -msgstr "" - -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "Inactivo" - -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" -msgstr "" - -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" -msgstr "" - -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 -#, php-format -msgid "Remove %status from database" -msgstr "" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" -msgstr "" - -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" -msgstr "" - -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" -msgstr "Foto:" - -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" -msgstr "" - -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" -msgstr "" - -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" -msgstr "" - -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "" - -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" -msgstr "Tipo de pago:" - -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "" +#~ msgid "--- Select a payment type ---" +#~ msgstr "--- Seleccione un tipo de remuneración ---" diff --git a/lang/objectslend_fr_FR.utf8.po b/lang/objectslend_fr_FR.utf8.po index a7c1ab0..6d2efd8 100644 --- a/lang/objectslend_fr_FR.utf8.po +++ b/lang/objectslend_fr_FR.utf8.po @@ -1,10 +1,10 @@ -# Johan Cwiklinski , 2020, 2021. +# Johan Cwiklinski , 2020, 2021, 2022, 2023. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: translations@galette.eu\n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: 2021-11-21 21:09+0000\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-12-06 07:26+0000\n" "Last-Translator: Johan Cwiklinski \n" "Language-Team: French \n" @@ -13,114 +13,126 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 4.10-dev\n" +"X-Generator: Weblate 5.3-dev\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "Liste des catégories" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "Modifier la catégorie" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "Nouvelle catégorie" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "La suppression a échoué" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "Une erreur est survenue à l'enregistrement de la catégorie." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "La catégorie a été enregistrée" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "Supprimer la catégorie %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "Liste des objets" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "Liste des locations pour %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "Modifier l'objet" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "Nouvel objet" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "L'objet a été sauvegardé avec succès !" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" "Quelque chose n'a pas fonctionné lors de l'enregistrement de l'objet :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "L'objet a été enregistré" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "Le status a été mis à jour" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "Clôné avec succès depuis #%id.
Vous pouvez mainenant le modifier." -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "Une erreur est survenue au clonage de l'objet :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "Emprunter un objet" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "Retourner un objet emprunté" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "Vous n'avez pas le droit d'emprunter des objets !" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "%object est actuellement indisponible" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "Vous n'avez pas le droit de retourner des objets !" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "Vous venez d'emprunter %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "%object a été retourné :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "Supprimer l'objet %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "Vous allez supprimer %count objets." #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "Veuillez ajouter au moins un statut « en stock » !" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -153,220 +165,487 @@ msgstr "Le status a été enregistré" msgid "Remove status %1$s" msgstr "Supprimer le statut %1$s" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "Préférences ObjectsLend" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" -msgstr "Les préférences ont été sauvegardées avec succès !" +msgstr "Les préférences ont été sauvegardées avec succès !" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "Prêt d'objets" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "Statuts de location" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "Catégories d'objets" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Préférences" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "fiches_objets" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "Imprimé le %date" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "Nom" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "Description" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "Num. série" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "Prix" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" -msgstr "Prix loccation" +msgstr "Prix location" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "Dimensions" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "Poids" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Statut" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "Depuis" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "Adhérent" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "Retour" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "Catégorie : %category" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "Total :" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "Emprunté" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "Disponible" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "fiche_objet" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "Fiche de l'objet" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "Étiquettes" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "Catégorie" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "Numéro de série" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "Prix par jour de location" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "Cm" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "Kg" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "Actif" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "Emplacement" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "Historique des emprunts de l'objet" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "Début" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "Fin" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "En stock" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "Commentaires" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "Le status n'a pas été enregistré :(" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "Impossible d'enregistrer les préférences :(" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "La location n'a pas été enregistrée :(" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "d/m/Y H:i" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "Aucune catégorie" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "L'objet n'a pas été ajouté :(" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "Nom/description" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "Id" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "Est actif" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Image :" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +msgstr "Photo de catégorie" + +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" +msgstr "Aucun objet sélectionné" + +#: ../tempcache/objects_list.html.twig:57 +msgid "" +"Please make sure to select at least one object from the list to perform this " +"action." +msgstr "Veuillez sélectionner au moins un objet pour effectuer cette action." + +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" +msgstr "Imprimer la liste des objets" + +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" +msgstr "Ajouter un objet" + +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" +msgstr "Par" + +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 msgid "Active:" -msgstr "Actif :" +msgstr "Actif :" + +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" +msgstr "Catégories" + +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" +msgstr "Photo de l'objet" + +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" +msgstr "(par jour)" + +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" +msgstr "(en une seule fois)" + +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" +msgstr "L'objet est actif" + +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" +msgstr "L'objet est inactif" + +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "Inactif" + +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" +msgstr "Dupliquer l'objet" -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "catégories" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" +msgstr "Afficher les prêts d'objets" -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "catégorie" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" +msgstr "Fiche de l'objet en PDF" -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" +msgstr "Supprimer %object de la base" + +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" +msgstr "Emprunter" + +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" +msgstr "Retour" + +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" +msgstr "Aucun objet trouvé" + +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" +msgstr "Historique de l'objet" + +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" +msgstr "Une erreur est survenue à l'affichage de l'historique :(" + +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" +msgstr "Emprunter les objets" + +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" +msgstr "" +"Une erreur est survenue à l'affichage de la fonctionnalité d'emprunt :(" + +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" +msgstr "Retourner des objets" + +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" +msgstr "" +"Une erreur est survenue à l'affichage de la fonctionnalité de retour :(" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Date de début" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Date de fin" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +msgstr "Aucune location trouvée" + +#: ../tempcache/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "Cliquer pour voir l'image en pleine taille" + +#: ../tempcache/status_list.html.twig:86 +msgid "Add a status" +msgstr "Ajouter un statut" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" +msgstr "Stock" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" +msgstr "Jours de location" + +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" +msgstr "En stock :" + +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" +msgstr "Pas en stock" + +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" +msgstr "%days jours" + +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" +msgstr "Modifier %status" + +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" +msgstr "Supprimer %status de la base" + +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" +msgstr "Aucun statut trouvé" + +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "%count catégorie" +msgstr[1] "%count catégories" + +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" +msgstr "Ajouter une catégorie" + +#: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" msgstr "Modifier « %category »" -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 +#: ../tempcache/categories_list.html.twig:325 #, php-format msgid "Remove \"%category\"" msgstr "Supprimer « %category »" -#: ../templates/default/preferences.tpl:6 +#: ../tempcache/preferences.html.twig:57 msgid "Plugin preferences" msgstr "Préférences du plugin" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" +msgstr "Relatif aux images" + +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" +msgstr "Préférences d'affichage" + +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" +msgstr "Les adhérents peuvent emprunter :" + +#: ../tempcache/preferences.html.twig:74 msgid "" "Allow a member (not staff neither admin) to borrow an object. If set to " "'No', only admin and staff members can access the 'Take object' page" @@ -375,12 +654,11 @@ msgstr "" "administrateurs) à emprunter un objet. Si à 'Non', seuls les administrateurs " "ou membres du staff pourront accéder à la page 'Emprunt d'objet'" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" -msgstr "Les adhérents peuvent emprunter :" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" +msgstr "Générer une contribution :" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/preferences.html.twig:76 msgid "" "Automatically generate a contribution for the member of the amount of the " "rental price of the object" @@ -388,27 +666,23 @@ msgstr "" "Générer automatiquement une contribution pour l'adhérent du montant de la " "location de cet objet" -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "Générer une contribution :" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" +msgstr "Choisissez un type de contribution" -#: ../templates/default/preferences.tpl:22 +#: ../tempcache/preferences.html.twig:127 msgid "Contribution type:" msgstr "Type de contribution :" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" -msgstr "Choisissez un type de contribution" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" +msgstr "Texte contributions :" -#: ../templates/default/preferences.tpl:32 +#: ../tempcache/preferences.html.twig:134 msgid "Comment text to add on generated contribution" msgstr "Texte de commentaire à ajouter aux contributions générées" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" -msgstr "Texte contributions :" - -#: ../templates/default/preferences.tpl:33 +#: ../tempcache/preferences.html.twig:134 msgid "" "Comment text to add on generated contribution. Automatically replaced values " "(put into curly brackets):
- NAME: Name
- DESCRIPTION: " @@ -416,40 +690,36 @@ msgid "" "RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" "Texte de commentaire à ajouter sur les contributions générées. Valeur " -"remplacées automatiquement (mettre entre accolades)  ; :
- NAME : " -"Nom
- DESCRIPTION : Description
- SERIAL_NUMBER : Numéro de série
- PRICE : Prix
- RENT_PRICE : Prix d'emprunt
- WEIGHT : Poids
- " -"DIMENSION : Dimensions" +"remplacées automatiquement (mettre entre accolades) :
- NAME : Nom
- " +"DESCRIPTION : Description
- SERIAL_NUMBER : Numéro de série
- PRICE : " +"Prix
- RENT_PRICE : Prix d'emprunt
- WEIGHT : Poids
- DIMENSION : " +"Dimensions" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" -msgstr "Relatif aux images" - -#: ../templates/default/preferences.tpl:41 +#: ../tempcache/preferences.html.twig:148 msgid "Max thumb height (in px)" msgstr "Taille maxi miniature (en px)" -#: ../templates/default/preferences.tpl:45 +#: ../tempcache/preferences.html.twig:154 msgid "Max thumb width (in px)" msgstr "Taille max. minitaure (en px)" -#: ../templates/default/preferences.tpl:49 +#: ../tempcache/preferences.html.twig:159 msgid "Images in lists:" -msgstr "Images dans les listes :" +msgstr "Images dans les listes :" -#: ../templates/default/preferences.tpl:50 +#: ../tempcache/preferences.html.twig:159 msgid "Display images in objects and categories lists" msgstr "Afficher les images dans les listes des objets et des catégories" -#: ../templates/default/preferences.tpl:55 +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" +msgstr "Activer la pleine taille :" + +#: ../tempcache/preferences.html.twig:161 msgid "Show fullsize image or just thumbs" msgstr "Afficher les images en pleine taille ou sous forme de miniatures" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" -msgstr "Activer la pleine taille :" - -#: ../templates/default/preferences.tpl:56 +#: ../tempcache/preferences.html.twig:161 msgid "" "Will permit to see fullsize image clicking on thumbnails.
If disabled, " "only thumbnails will be displayed, but full images are still kept." @@ -458,211 +728,204 @@ msgstr "" "inactif, seules les miniatures seront affichées, mais les images d'origines " "sont conservées." -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" -msgstr "Préférences d'affichage" - -#: ../templates/default/preferences.tpl:64 +#: ../tempcache/preferences.html.twig:196 msgid "View category:" -msgstr "Voir la catégorie :" +msgstr "Voir la catégorie :" -#: ../templates/default/preferences.tpl:69 +#: ../tempcache/preferences.html.twig:198 msgid "View forecast return date:" -msgstr "Voir la date de retour prévue :" +msgstr "Voir la date de retour prévue :" -#: ../templates/default/preferences.tpl:74 +#: ../tempcache/preferences.html.twig:200 msgid "View description" msgstr "Voir la description" -#: ../templates/default/preferences.tpl:79 +#: ../tempcache/preferences.html.twig:202 msgid "View dimensions:" -msgstr "Voir les dimensions :" +msgstr "Voir les dimensions :" -#: ../templates/default/preferences.tpl:84 +#: ../tempcache/preferences.html.twig:204 msgid "View borrow price:" -msgstr "Voir le prix loc. :" +msgstr "Voir le prix loc. :" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" +msgstr "Voir la somme des prix :" + +#: ../tempcache/preferences.html.twig:206 msgid "View the objects buy price sum on the list under the category" msgstr "" "Voir la somme des prix d'achat des objets sur la liste sous la catégorie" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" -msgstr "Voir la somme des prix :" - -#: ../templates/default/preferences.tpl:95 +#: ../tempcache/preferences.html.twig:208 msgid "View buy price:" -msgstr "Voir le prix d'achat :" +msgstr "Voir le prix d'achat :" -#: ../templates/default/preferences.tpl:100 +#: ../tempcache/preferences.html.twig:210 msgid "View serial number:" -msgstr "Voir le numéro de série :" +msgstr "Voir le numéro de série :" -#: ../templates/default/preferences.tpl:105 +#: ../tempcache/preferences.html.twig:212 msgid "View weight" msgstr "Voir le poids" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" -msgstr "Sauvegarde des images des catégories" - -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" -msgstr "Sauvegarde des images des objets" - -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" -msgstr "Restaurer les images des objets depuis la base" - -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" -msgstr "Restaurer les images des catégories depuis la base" - -#: ../templates/default/headers.tpl:14 -msgid "Click to view fullsize image" -msgstr "Cliquer pour voir l'image en pleine taille" - -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "Prêt d'objets" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "Ajouter un objet" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "Statuts de location" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Statut :" -#: ../templates/default/menu.tpl:25 -msgid "Add a status" -msgstr "Ajouter un statut" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "L'objet est-il disponible ou sorti" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "Catégories d'objets" +#: ../tempcache/status_edit.html.twig:75 +msgid "" +"Check if the object is available to be borrowed;
uncheck if object is " +"already borrowed and should be given back" +msgstr "" +"Cocher si l'objet est disponible,
décocher si l'objet est déjà loué et " +"doit être retourné" -#: ../templates/default/menu.tpl:31 -msgid "Add a category" -msgstr "Ajouter une catégorie" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "Nombre de jours de location par défaut" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Préférences" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "utilisé pour calculer la date de retour" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "Objet" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" -msgstr "Photo de l'objet" - -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Nom :" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Description :" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" +msgstr "--- Choisissez une catégorie ---" + +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" +msgstr "Catégorie :" + +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 msgid "Serial number:" -msgstr "Numéro de série :" +msgstr "Numéro de série :" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 msgid "Price:" -msgstr "Prix :" +msgstr "Prix :" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "Prix location :" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" -msgstr "(par jour)" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" +msgstr "Prix par jour de location :" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" -msgstr "(en une seule fois)" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" +msgstr "" +"Le prix s'applique pour chaque jour de location si coché, et une seule fois " +"sinon" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "Dimensions :" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "Poids :" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" -msgstr "Adhérent :" - -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" -msgstr "Statut :" - -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "--- Choisissez un status ---" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" -msgstr "%days jours" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" +msgstr "Où se trouve l'objet ?" + +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" +msgstr "Photo de l'objet" + +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" +msgstr "Dupliquer" + +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" +msgstr "Imprimer l'objet" + +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" +msgstr "Historique" + +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" +msgstr "Modifier le status" + +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Adhérent :" + +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" +msgstr "Informations de location" -#: ../templates/default/take_object.tpl:124 +#: ../tempcache/take_object.html.twig:380 msgid "Expected return:" -msgstr "Retour escompté :" +msgstr "Retour escompté :" -#: ../templates/default/take_object.tpl:149 +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" +msgstr "Informations de retour" + +#: ../tempcache/take_object.html.twig:442 msgid "Time:" -msgstr "Durée :" +msgstr "Durée :" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" +msgstr "De %begindate à %enddate" + +#: ../tempcache/take_object.html.twig:452 msgid "Comments:" msgstr "Commentaires :" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 +#: ../tempcache/take_object.html.twig:455 msgid "remaining characters" msgstr "caractères restants" -#: ../templates/default/take_object.tpl:167 +#: ../tempcache/take_object.html.twig:473 msgid "I have read and I agree with terms and conditions" msgstr "J'ai lu et j'accepte les conditions générales" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 +#: ../tempcache/take_object.html.twig:480 msgid "Show terms and conditions" msgstr "Afficher les conditions générales" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/take_object.html.twig:487 msgid "" "The items offered for rent are in good condition and verification rental " "contradictory to their status is at the time of withdrawal. No claims will " @@ -697,294 +960,83 @@ msgstr "" "du vendeur, le chèque de caution peut également être encaissé en tout ou " "partie." -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "Emprunter" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" +msgstr "Emprunter un objet" -#: ../templates/default/take_object.tpl:176 -msgid "Return back" -msgstr "Retour arrière" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" +msgstr "Retour d'objet" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "Vous devez accepter les conditions générales pour emprunter." -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" -msgstr "Date de début" - -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" -msgstr "Date de fin" - -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" -msgstr "Aucune location trouvée" - -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" -msgstr "Catégorie :" - -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" -msgstr "--- Choisissez une catégorie ---" +#~ msgid "Edit the object" +#~ msgstr "Modifier l'objet" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" -msgstr "" -"Le prix s'applique pour chaque jour de location si coché, et une seule fois " -"sinon" +#~ msgid "Object has been successfully stored!" +#~ msgstr "L'objet a été sauvegardé avec succès !" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" -msgstr "Prix par jour de location :" +#~ msgid "categories" +#~ msgstr "catégories" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" -msgstr "Où se trouve l'objet ?" +#~ msgid "category" +#~ msgstr "catégorie" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" -msgstr "en stock" +#~ msgid "Backup categories pictures" +#~ msgstr "Sauvegarde des images des catégories" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" -msgstr "Photo de l'objet" +#~ msgid "Backup objects pictures" +#~ msgstr "Sauvegarde des images des objets" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" -msgstr "Supprimer l’image" +#~ msgid "Restore objects pictures from database" +#~ msgstr "Restaurer les images des objets depuis la base" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" -msgstr "Dupliquer" +#~ msgid "Restore categories pictures from database" +#~ msgstr "Restaurer les images des catégories depuis la base" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" -msgstr "Imprimer l'objet" +#~ msgid "in stock" +#~ msgstr "en stock" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" -msgstr "Retour à la liste" +#~ msgid "Delete image" +#~ msgstr "Supprimer l’image" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" -msgstr "Historique" +#~ msgid "Back to list" +#~ msgstr "Retour à la liste" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" -msgstr "Modifier le status" +#~ msgid "No member" +#~ msgstr "Aucun adhérent" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" -msgstr "Aucun adhérent" +#~ msgid "objects" +#~ msgstr "objets" -#: ../templates/default/status_edit.tpl:16 -msgid "Is object in stock or borrowed" -msgstr "L'objet est-il disponible ou sorti" +#~ msgid "object" +#~ msgstr "objet" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "En stock :" - -#: ../templates/default/status_edit.tpl:19 -msgid "" -"Check if the object is available to be borrowed;
uncheck if object is " -"already borrowed and should be given back" -msgstr "" -"Cocher si l'objet est disponible,
décocher si l'objet est déjà loué et " -"doit être retourné" - -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 -msgid "Number of days to rent per default" -msgstr "Nombre de jours de location par défaut" - -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "Jours de location" - -#: ../templates/default/status_edit.tpl:34 -msgid "used to compute return date" -msgstr "utilisé pour calculer la date de retour" - -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "objets" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "objet" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "Catégories" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "Par" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "L'objet est actif" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" -msgstr "L'objet est inactif" - -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" -msgstr "Emprunter l'objet" - -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" -msgstr "Retourner un objet" - -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" -msgstr "Retour" - -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" -msgstr "Modifier l'objet" - -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" -msgstr "Dupliquer l'objet" - -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" -msgstr "Afficher les prêts d'objets" - -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" -msgstr "Fiche de l'objet en PDF" - -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" -msgstr "Supprimer %object de la base" - -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" -msgstr "Aucun objet trouvé" - -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" -msgstr "Imprimer la liste des objets" - -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" -msgstr "Aucun objet sélectionné" - -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." -msgstr "Veuillez sélectionner au moins un objet pour effectuer cette action." - -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" -msgstr "Historique de l'objet" - -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" -msgstr "Une erreur est survenue à l'affichage de l'historique :(" - -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" -msgstr "Emprunter les objets" - -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" -msgstr "" -"Une erreur est survenue à l'affichage de la fonctionnalité d'emprunt :(" - -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" -msgstr "Retourner des objets" - -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" -msgstr "" -"Une erreur est survenue à l'affichage de la fonctionnalité de retour :(" - -#: ../templates/default/status_list.tpl:25 -msgid "status" -msgstr "statut" - -#: ../templates/default/status_list.tpl:77 -msgid "Stock" -msgstr "Stock" - -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "Inactif" - -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" -msgstr "Pas en stock" - -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" -msgstr "Modifier %status" - -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 -#, php-format -msgid "Remove %status from database" -msgstr "Supprimer %status de la base" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" -msgstr "Aucun statut trouvé" - -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" -msgstr "Est actif" +#~ msgid "Take object away" +#~ msgstr "Emprunter l'objet" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" -msgstr "Image :" +#~ msgid "Give object back" +#~ msgstr "Retourner un objet" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" -msgstr "Photo de catégorie" +#~ msgid "status" +#~ msgstr "statut" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" -msgstr "Objets" +#~ msgid "Objects" +#~ msgstr "Objets" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" -msgstr "Image" +#~ msgid "Picture" +#~ msgstr "Image" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "--- Choisissez un adhérent ---" +#~ msgid "--- Select a member ---" +#~ msgstr "--- Choisissez un adhérent ---" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" -msgstr "Type de paiement :" +#~ msgid "Payment type:" +#~ msgstr "Type de paiement :" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "--- Choisissez un type de paiement ---" +#~ msgid "--- Select a payment type ---" +#~ msgstr "--- Choisissez un type de paiement ---" #~ msgid "Take out" #~ msgstr "Emprunter" diff --git a/lang/objectslend_it_IT.utf8.po b/lang/objectslend_it_IT.utf8.po index 05bbb7a..34154a9 100644 --- a/lang/objectslend_it_IT.utf8.po +++ b/lang/objectslend_it_IT.utf8.po @@ -1,13 +1,14 @@ # Johan Cwiklinski , 2020. # Luca De Filippo , 2020. # Alessandro Mandelli , 2021. +# Giacomo Alessandroni , 2021. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: 2021-03-20 10:18+0000\n" -"Last-Translator: Alessandro Mandelli \n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2021-12-20 22:53+0000\n" +"Last-Translator: Giacomo Alessandroni \n" "Language-Team: Italian \n" "Language: it_IT\n" @@ -15,113 +16,125 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.5.2-dev\n" +"X-Generator: Weblate 4.10\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "Rimozione fallita" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -154,800 +167,778 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "Prestiti oggetti" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Preferenze" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#, fuzzy +#| msgid "Objects lend" +msgid "objects_cards" +msgstr "Prestiti oggetti" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "Nome" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Stato" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 #, fuzzy #| msgid "Objects lend" msgid "Object card" msgstr "Prestiti oggetti" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" -msgstr "" +msgstr "Etichetta" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "Attivo" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" -msgstr "" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Foto:" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" -msgstr "" +#: ../tempcache/objects_list.html.twig:57 +#, fuzzy +#| msgid "Objects lend" +msgid "No object selected" +msgstr "Prestiti oggetti" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" -msgstr "" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "Inattivo" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "Prestiti oggetti" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Preferenze" - -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" -msgstr "Descrizione:" - -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:171 -msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +#: ../tempcache/preferences.html.twig:134 +msgid "" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" -msgstr "" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" +msgstr "Descrizione:" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "Inattivo" - -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" -msgstr "Foto:" - -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" diff --git a/lang/objectslend_nb_NO.utf8.po b/lang/objectslend_nb_NO.utf8.po index 6e6efd6..0294b9e 100644 --- a/lang/objectslend_nb_NO.utf8.po +++ b/lang/objectslend_nb_NO.utf8.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -12,111 +12,123 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 3.0.0\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -149,798 +161,772 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." -msgstr "" - -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" -msgstr "" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" diff --git a/lang/objectslend_oc.utf8.po b/lang/objectslend_oc.utf8.po index d9398ad..f62a742 100644 --- a/lang/objectslend_oc.utf8.po +++ b/lang/objectslend_oc.utf8.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" "PO-Revision-Date: 2020-06-30 21:03+0000\n" "Last-Translator: Quentin PAGÈS \n" "Language-Team: Occitan 1;\n" "X-Generator: Weblate 4.2-dev\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -153,798 +165,781 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Preferéncias" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "Nom" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "Descripcion" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Estat" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "Membre" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "Actiu" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "Començament" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "Fin" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" -msgstr "" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "Inactiu" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" -msgstr "" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Data de fin" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" +#: ../tempcache/status_list.html.twig:86 +msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:19 -msgid "Add an object" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/menu.tpl:25 -msgid "Add a status" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Preferéncias" - -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" -msgstr "Nom:" - -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" -msgstr "Descripcion :" - -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" -msgstr "Estatut:" - -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" -msgstr "Data de fin" - -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" -msgstr "Suprimir imatge" - -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" -msgstr "" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Estatut:" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" +msgstr "Nom:" -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" +msgstr "Descripcion :" -#: ../templates/default/objects_list.tpl:186 -msgid "By" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" -msgstr "estatut" - -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "Inactiu" - -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" -msgstr "Imatge" +#~ msgid "Delete image" +#~ msgstr "Suprimir imatge" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "" +#~ msgid "status" +#~ msgstr "estatut" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" -msgstr "" - -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "" +#~ msgid "Picture" +#~ msgstr "Imatge" diff --git a/lang/objectslend_ota.utf8.po b/lang/objectslend_ota.utf8.po index f070ebd..2329177 100644 --- a/lang/objectslend_ota.utf8.po +++ b/lang/objectslend_ota.utf8.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -12,111 +12,123 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 3.3.6\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -149,798 +161,772 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." -msgstr "" - -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" -msgstr "" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" diff --git a/lang/objectslend_ru.utf8.po b/lang/objectslend_ru.utf8.po new file mode 100644 index 0000000..68ffc9c --- /dev/null +++ b/lang/objectslend_ru.utf8.po @@ -0,0 +1,949 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Evgeniy Khramov , 2022. +# Johan Cwiklinski , 2023. +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-11-22 10:44+0000\n" +"Last-Translator: Johan Cwiklinski \n" +"Language-Team: Russian \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 5.2\n" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 +msgid "Categories list" +msgstr "Список категорий" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 +msgid "Edit category" +msgstr "Изменить категорию" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 +msgid "New category" +msgstr "Новая категория" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 +msgid "Delete failed" +msgstr "Удалить не удалось" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." +msgstr "При сохранении категории произошла ошибка." + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 +msgid "Category has been saved" +msgstr "Категория сохранена" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 +#, php-format +msgid "Remove category %1$s" +msgstr "Удалить категорию %1$s" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 +msgid "Objects list" +msgstr "Список объектов" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 +#, php-format +msgid "Rents list for %object" +msgstr "Список арендной платы для объекта %object" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" +msgstr "Редактирование объекта" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 +msgid "New object" +msgstr "Новый объект" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 +msgid "Something went wrong saving object :(" +msgstr "Что-то пошло не так при сохранении объекта :(" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 +msgid "Object has been saved" +msgstr "Объект сохранен" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +#, fuzzy +#| msgid "Category has been saved" +msgid "Status has been updated" +msgstr "Категория сохранена" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 +msgid "Successfully cloned from #%id.
You can now edit it." +msgstr "Успешно клонировано из #%id.
Теперь вы можете редактировать его." + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 +msgid "An error occured cloning object :(" +msgstr "Произошла ошибка при клонировании объекта :(" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 +msgid "Borrow an object" +msgstr "Заимствование объекта" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "Вернуть заимствованный объект" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to borrow objects!" +msgstr "У вас нет прав на изъятие предметов!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 +#, php-format +msgid "%object is currently not available" +msgstr "%object в настоящее время недоступен" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to return objects!" +msgstr "У вас нет прав на изъятие предметов!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 +#, php-format +msgid "You have just borrowed %object :)" +msgstr "Вы только что заимствовали %object :)" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 +#, php-format +msgid "%object has been returned :)" +msgstr "%object был возвращен :)" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 +#, php-format +msgid "Remove object %1$s" +msgstr "Удалить объект %1$s" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 +#, php-format +msgid "You are about to remove %count objects." +msgstr "Вы собираетесь удалить объекты %count." + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 +msgid "Please add at last one status \"in stock\"!" +msgstr "Пожалуйста, добавьте последний статус \"на складе\"!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "Пожалуйста, добавьте хотя бы один статус \"объект позаимствован\"!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 +msgid "Status list" +msgstr "Список статусов" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 +#, php-format +msgid "Edit status %status" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 +msgid "New status" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 +msgid "An error occured while storing the status." +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 +msgid "Status has been saved" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 +#, php-format +msgid "Remove status %1$s" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 +msgid "ObjectsLend preferences" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 +msgid "Preferences have been successfully stored!" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Предпочтения" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 +#, php-format +msgid "Printed on %date" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +msgid "Name" +msgstr "Имя" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 +msgid "Description" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 +msgid "Status" +msgstr "Статус" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +msgid "Member" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Return" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 +#, php-format +msgid "Category: %category" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 +msgid "Total:" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 +msgid "Borrowed" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 +msgid "Available" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 +msgid "object_card" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 +msgid "Object card" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 +msgid "Labels" +msgstr "Метки" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 +msgid "Serial number" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 +msgid "Price per rental day" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +msgid "Active" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +msgid "Location" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 +msgid "History of object loans" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 +msgid "Begin" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +msgid "End" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 +msgid "In stock" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 +msgid "Comments" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 +msgid "Status has not been added :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +msgid "Unable to store preferences :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +msgid "Rent has not been added" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +msgid "Y-m-d H:i" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 +msgid "Object has not been added :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +msgid "Name/description" +msgstr "" + +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" +msgstr "" + +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +msgstr "" + +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" +msgstr "" + +#: ../tempcache/objects_list.html.twig:57 +msgid "" +"Please make sure to select at least one object from the list to perform this " +"action." +msgstr "" + +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" +msgstr "" + +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" +msgstr "" + +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" +msgstr "" + +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" +msgstr "" + +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" +msgstr "" + +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" +msgstr "" + +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" +msgstr "" + +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" +msgstr "" + +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" +msgstr "" + +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" +msgstr "" + +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "" + +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" +msgstr "" + +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" +msgstr "" + +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" +msgstr "" + +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" +msgstr "" + +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" +msgstr "" + +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" +msgstr "" + +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" +msgstr "" + +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" +msgstr "" + +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" +msgstr "" + +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" +msgstr "" + +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" +msgstr "" + +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" +msgstr "" + +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" +msgstr "" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +msgstr "" + +#: ../tempcache/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "" + +#: ../tempcache/status_list.html.twig:86 +msgid "Add a status" +msgstr "" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" +msgstr "" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" +msgstr "" + +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" +msgstr "" + +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" +msgstr "" + +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" +msgstr "" + +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" +msgstr "" + +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" +msgstr "" + +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" +msgstr "" + +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" + +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" +msgstr "" + +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" +msgstr "" + +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" +msgstr "" + +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" +msgstr "" + +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" +msgstr "" + +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" +msgstr "" + +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" +msgstr "" + +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" +msgstr "" + +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" +msgstr "" + +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" +msgstr "" + +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" +msgstr "" + +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" +msgstr "" + +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" +msgstr "" + +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" +msgstr "" + +#: ../tempcache/preferences.html.twig:134 +msgid "" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +msgstr "" + +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" +msgstr "" + +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" +msgstr "" + +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" +msgstr "" + +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" +msgstr "" + +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" +msgstr "" + +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" +msgstr "" + +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." +msgstr "" + +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" +msgstr "" + +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" +msgstr "" + +#: ../tempcache/preferences.html.twig:200 +msgid "View description" +msgstr "" + +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" +msgstr "" + +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" +msgstr "" + +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" +msgstr "" + +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" +msgstr "" + +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" +msgstr "" + +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" +msgstr "" + +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" +msgstr "" + +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "" + +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "" + +#: ../tempcache/status_edit.html.twig:75 +msgid "" +"Check if the object is available to be borrowed;
uncheck if object is " +"already borrowed and should be given back" +msgstr "" + +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "" + +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" +msgstr "" + +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" +msgstr "" + +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" +msgstr "" + +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" +msgstr "" + +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" +msgstr "" + +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" +msgstr "" + +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" +msgstr "" + +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" +msgstr "" + +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" +msgstr "" + +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." +msgstr "" + +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" +msgstr "" + +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" +msgstr "" + +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." +msgstr "" + +#~ msgid "Object has been successfully stored!" +#~ msgstr "Объект успешно сохранен!" diff --git a/lang/objectslend_si.utf8.po b/lang/objectslend_si.utf8.po index e4e4dc3..2028ac3 100644 --- a/lang/objectslend_si.utf8.po +++ b/lang/objectslend_si.utf8.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -12,111 +12,123 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 3.3.6\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -149,798 +161,772 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." -msgstr "" - -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" -msgstr "" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" diff --git a/lang/objectslend_tr.utf8.po b/lang/objectslend_tr.utf8.po index 3b93385..f035561 100644 --- a/lang/objectslend_tr.utf8.po +++ b/lang/objectslend_tr.utf8.po @@ -3,7 +3,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" "PO-Revision-Date: 2021-08-29 12:34+0000\n" "Last-Translator: Ahmet Aylin Öztürk \n" "Language-Team: Turkish You can now edit it." msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" +msgid "Please add at last one status \"in stock\"!" msgstr "" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 @@ -152,798 +164,772 @@ msgstr "" msgid "Remove status %1$s" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 -msgid "Active:" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "" - -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "" - -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, php-format -msgid "Edit \"%category\"" -msgstr "" - -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, php-format -msgid "Remove \"%category\"" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" msgstr "" -#: ../templates/default/preferences.tpl:6 -msgid "Plugin preferences" +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" msgstr "" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 -msgid "" -"Allow a member (not staff neither admin) to borrow an object. If set to " -"'No', only admin and staff members can access the 'Take object' page" +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" msgstr "" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" msgstr "" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/objects_list.html.twig:57 msgid "" -"Automatically generate a contribution for the member of the amount of the " -"rental price of the object" -msgstr "" - -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "" - -#: ../templates/default/preferences.tpl:22 -msgid "Contribution type:" +"Please make sure to select at least one object from the list to perform this " +"action." msgstr "" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Comment text to add on generated contribution" +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" msgstr "" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" msgstr "" -#: ../templates/default/preferences.tpl:33 -msgid "" -"Comment text to add on generated contribution. Automatically replaced values " -"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " -"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " -"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 +msgid "Active:" msgstr "" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" msgstr "" -#: ../templates/default/preferences.tpl:41 -msgid "Max thumb height (in px)" +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" msgstr "" -#: ../templates/default/preferences.tpl:45 -msgid "Max thumb width (in px)" +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" msgstr "" -#: ../templates/default/preferences.tpl:49 -msgid "Images in lists:" +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" msgstr "" -#: ../templates/default/preferences.tpl:50 -msgid "Display images in objects and categories lists" +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" msgstr "" -#: ../templates/default/preferences.tpl:55 -msgid "Enable fullsize:" +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" msgstr "" -#: ../templates/default/preferences.tpl:56 -msgid "" -"Will permit to see fullsize image clicking on thumbnails.
If disabled, " -"only thumbnails will be displayed, but full images are still kept." +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" msgstr "" -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" msgstr "" -#: ../templates/default/preferences.tpl:64 -msgid "View category:" +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" msgstr "" -#: ../templates/default/preferences.tpl:69 -msgid "View forecast return date:" +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" msgstr "" -#: ../templates/default/preferences.tpl:74 -msgid "View description" +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" msgstr "" -#: ../templates/default/preferences.tpl:79 -msgid "View dimensions:" +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" msgstr "" -#: ../templates/default/preferences.tpl:84 -msgid "View borrow price:" +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" msgstr "" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" msgstr "" -#: ../templates/default/preferences.tpl:89 -msgid "View price sum:" +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" msgstr "" -#: ../templates/default/preferences.tpl:95 -msgid "View buy price:" +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" msgstr "" -#: ../templates/default/preferences.tpl:100 -msgid "View serial number:" +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" msgstr "" -#: ../templates/default/preferences.tpl:105 -msgid "View weight" +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" msgstr "" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" msgstr "" -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" msgstr "" -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" msgstr "" -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" msgstr "" -#: ../templates/default/headers.tpl:14 +#: ../tempcache/headers.html.twig:43 msgid "Click to view fullsize image" msgstr "" -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "" - -#: ../templates/default/menu.tpl:25 +#: ../tempcache/status_list.html.twig:86 msgid "Add a status" msgstr "" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "" - -#: ../templates/default/menu.tpl:31 -msgid "Add a category" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" msgstr "" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" msgstr "" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 -msgid "Object" +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" msgstr "" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" msgstr "" -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 -msgid "Name:" +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" msgstr "" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 -msgid "Description:" +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" msgstr "" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 -msgid "Serial number:" +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" msgstr "" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 -msgid "Price:" +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" msgstr "" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 -msgid "Borrow price:" -msgstr "" +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "" +msgstr[1] "" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" msgstr "" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" +#: ../tempcache/categories_list.html.twig:315 +#, php-format +msgid "Edit \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 -msgid "Dimensions:" +#: ../tempcache/categories_list.html.twig:325 +#, php-format +msgid "Remove \"%category\"" msgstr "" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 -msgid "Weight:" +#: ../tempcache/preferences.html.twig:57 +msgid "Plugin preferences" msgstr "" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" msgstr "" -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" msgstr "" -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 -msgid "--- Select a status ---" +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" msgstr "" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" +#: ../tempcache/preferences.html.twig:74 +msgid "" +"Allow a member (not staff neither admin) to borrow an object. If set to " +"'No', only admin and staff members can access the 'Take object' page" msgstr "" -#: ../templates/default/take_object.tpl:124 -msgid "Expected return:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" msgstr "" -#: ../templates/default/take_object.tpl:149 -msgid "Time:" +#: ../tempcache/preferences.html.twig:76 +msgid "" +"Automatically generate a contribution for the member of the amount of the " +"rental price of the object" msgstr "" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 -msgid "Comments:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" msgstr "" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 -msgid "remaining characters" +#: ../tempcache/preferences.html.twig:127 +msgid "Contribution type:" msgstr "" -#: ../templates/default/take_object.tpl:167 -msgid "I have read and I agree with terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" msgstr "" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 -msgid "Show terms and conditions" +#: ../tempcache/preferences.html.twig:134 +msgid "Comment text to add on generated contribution" msgstr "" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/preferences.html.twig:134 msgid "" -"The items offered for rent are in good condition and verification rental " -"contradictory to their status is at the time of withdrawal. No claims will " -"be accepted after the release of the object. Writing by the store a list of " -"reservation does not exempt the customer checking his retrait. The payment " -"of rent entitles the purchaser to make normal use of the loaned object. If " -"the object is rendered in a degraded state, the seller reserves the right to " -"collect all or part of the security deposit. In case of deterioration of the " -"rented beyond the standard object, a financial contribution will be required " -"for additional cleaning caused. In case of damage, loss or theft of the " -"rented property, the deposit will not be refunded automatically to 'the " -"company as damages pursuant to Article 1152 of the Civil Code and without " -"that it need for any other judicial or extra-judicial formality. In some " -"other cases not listed above and at the discretion of the seller, the " -"deposit check may also be collected in whole or party." -msgstr "" - -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "" - -#: ../templates/default/take_object.tpl:176 -msgid "Return back" +"Comment text to add on generated contribution. Automatically replaced values " +"(put into curly brackets):
- NAME: Name
- DESCRIPTION: " +"Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- " +"RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" msgstr "" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/preferences.html.twig:148 +msgid "Max thumb height (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" +#: ../tempcache/preferences.html.twig:154 +msgid "Max thumb width (in px)" msgstr "" -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" +#: ../tempcache/preferences.html.twig:159 +msgid "Images in lists:" msgstr "" -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" +#: ../tempcache/preferences.html.twig:159 +msgid "Display images in objects and categories lists" msgstr "" -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" +#: ../tempcache/preferences.html.twig:161 +msgid "Enable fullsize:" msgstr "" -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" msgstr "" -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" +#: ../tempcache/preferences.html.twig:161 +msgid "" +"Will permit to see fullsize image clicking on thumbnails.
If disabled, " +"only thumbnails will be displayed, but full images are still kept." msgstr "" -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" +#: ../tempcache/preferences.html.twig:196 +msgid "View category:" msgstr "" -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" +#: ../tempcache/preferences.html.twig:198 +msgid "View forecast return date:" msgstr "" -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" +#: ../tempcache/preferences.html.twig:200 +msgid "View description" msgstr "" -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" +#: ../tempcache/preferences.html.twig:202 +msgid "View dimensions:" msgstr "" -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" +#: ../tempcache/preferences.html.twig:204 +msgid "View borrow price:" msgstr "" -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" +#: ../tempcache/preferences.html.twig:206 +msgid "View price sum:" msgstr "" -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" msgstr "" -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" +#: ../tempcache/preferences.html.twig:208 +msgid "View buy price:" msgstr "" -#: ../templates/default/objects_edit.tpl:110 -msgid "History" +#: ../tempcache/preferences.html.twig:210 +msgid "View serial number:" msgstr "" -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" +#: ../tempcache/preferences.html.twig:212 +msgid "View weight" msgstr "" -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../templates/default/status_edit.tpl:16 +#: ../tempcache/status_edit.html.twig:74 msgid "Is object in stock or borrowed" msgstr "" -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "" - -#: ../templates/default/status_edit.tpl:19 +#: ../tempcache/status_edit.html.twig:75 msgid "" "Check if the object is available to be borrowed;
uncheck if object is " "already borrowed and should be given back" msgstr "" -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "Number of days to rent per default" msgstr "" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "" - -#: ../templates/default/status_edit.tpl:34 +#: ../tempcache/status_edit.html.twig:87 msgid "used to compute return date" msgstr "" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "" - -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "" - -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "" - -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +msgid "Object" msgstr "" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +msgid "Name:" msgstr "" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" msgstr "" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" msgstr "" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" msgstr "" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" msgstr "" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" msgstr "" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" msgstr "" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" msgstr "" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" msgstr "" -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" msgstr "" -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" msgstr "" -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" msgstr "" -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" msgstr "" -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" msgstr "" -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" msgstr "" -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" msgstr "" -#: ../templates/default/status_list.tpl:25 -msgid "status" +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" msgstr "" -#: ../templates/default/status_list.tpl:77 -msgid "Stock" +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" msgstr "" -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" +#: ../tempcache/take_object.html.twig:380 +msgid "Expected return:" msgstr "" -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" msgstr "" -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" +#: ../tempcache/take_object.html.twig:442 +msgid "Time:" msgstr "" -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 +#: ../tempcache/take_object.html.twig:446 #, php-format -msgid "Remove %status from database" -msgstr "" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" +msgid "From %begindate to %enddate" msgstr "" -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" +#: ../tempcache/take_object.html.twig:452 +msgid "Comments:" msgstr "" -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" +#: ../tempcache/take_object.html.twig:455 +msgid "remaining characters" msgstr "" -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" +#: ../tempcache/take_object.html.twig:473 +msgid "I have read and I agree with terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" +#: ../tempcache/take_object.html.twig:480 +msgid "Show terms and conditions" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" +#: ../tempcache/take_object.html.twig:487 +msgid "" +"The items offered for rent are in good condition and verification rental " +"contradictory to their status is at the time of withdrawal. No claims will " +"be accepted after the release of the object. Writing by the store a list of " +"reservation does not exempt the customer checking his retrait. The payment " +"of rent entitles the purchaser to make normal use of the loaned object. If " +"the object is rendered in a degraded state, the seller reserves the right to " +"collect all or part of the security deposit. In case of deterioration of the " +"rented beyond the standard object, a financial contribution will be required " +"for additional cleaning caused. In case of damage, loss or theft of the " +"rented property, the deposit will not be refunded automatically to 'the " +"company as damages pursuant to Article 1152 of the Civil Code and without " +"that it need for any other judicial or extra-judicial formality. In some " +"other cases not listed above and at the discretion of the seller, the " +"deposit check may also be collected in whole or party." msgstr "" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" msgstr "" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" +#: ../tempcache/take_object.html.twig:558 +msgid "You must agree with terms and conditions in order to borrow." msgstr "" diff --git a/lang/objectslend_uk.utf8.po b/lang/objectslend_uk.utf8.po index 4eea62a..c9b76a3 100644 --- a/lang/objectslend_uk.utf8.po +++ b/lang/objectslend_uk.utf8.po @@ -1,133 +1,153 @@ -# Johan Cwiklinski , 2020. +# Johan Cwiklinski , 2020, 2022, 2023. # Tymofij Lytvynenko , 2021. # Tymofii Lytvynenko , 2021. +# Ostap , 2022. +# Artem , 2022. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-11-21 22:05+0100\n" -"PO-Revision-Date: 2021-10-27 07:29+0000\n" -"Last-Translator: Tymofii Lytvynenko \n" +"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"PO-Revision-Date: 2023-11-22 10:44+0000\n" +"Last-Translator: Johan Cwiklinski \n" "Language-Team: Ukrainian \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 4.9-dev\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 5.2\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:143 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 msgid "Categories list" msgstr "Список категорій" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:224 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 msgid "Edit category" msgstr "Редагувати категорію" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:226 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 msgid "New category" msgstr "Нова категорія" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:290 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:478 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 msgid "Delete failed" msgstr "Не вдалося видалити" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:298 -msgid "An error occured while storing the category." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +msgid "An error occurred while storing the category." msgstr "Під час зберігання категорії сталася помилка." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:321 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 msgid "Category has been saved" msgstr "Категорію збережено" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:374 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 #, php-format msgid "Remove category %1$s" msgstr "Вилучити категорію %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:166 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:99 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:101 -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:119 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:167 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:75 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:106 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:108 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:126 msgid "Objects list" msgstr "Список об'єктів" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:253 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 #, php-format msgid "Rents list for %object" msgstr "Список орендаторів %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:346 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "Редагувати об'єкт" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:348 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 msgid "New object" msgstr "Новий об'єкт" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:432 -msgid "Object has been successfully stored!" -msgstr "Об'єкт успішно збережено!" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:486 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 msgid "Something went wrong saving object :(" msgstr "Під час збереження об’єкта щось пішло не так :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:512 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 msgid "Object has been saved" msgstr "Об'єкт збережено" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:543 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +#, fuzzy +#| msgid "Status has been saved" +msgid "Status has been updated" +msgstr "Стан збережено" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "Успішно клоновано з #%id.
Тепер можна редагувати." -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:549 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 msgid "An error occured cloning object :(" msgstr "Під час клонування об'єкта сталася помилка :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:579 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 msgid "Borrow an object" msgstr "Позичити об'єкт" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:621 -msgid "You do not have rights to take objects!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +msgid "Return a borrowed object" +msgstr "Повернути позичений об'єкт" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to borrow objects!" msgstr "Ви не маєте прав брати об'єкти!" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:657 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 #, php-format msgid "%object is currently not available" msgstr "Об'єкт %object зараз недоступний" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:785 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to return objects!" +msgstr "Ви не маєте прав брати об'єкти!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 #, php-format msgid "You have just borrowed %object :)" msgstr "Ви щойно позичили %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:843 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 #, php-format msgid "%object has been returned :)" msgstr "%object повернено :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:929 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 #, php-format msgid "Remove object %1$s" msgstr "Вилучити об'єкт %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:938 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 #, php-format msgid "You are about to remove %count objects." msgstr "Ви ось-ось видалите %count об'єктів." #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add add at last one status \"in stock\"!" -msgstr "" +msgid "Please add at last one status \"in stock\"!" +msgstr "Будь ласка, додайте хоча б один стан \"в наявності\"!" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 msgid "Please add at least one status \"object borrowed\"!" -msgstr "" +msgstr "Будь ласка, додайте хоча б один статус \"об'єкт позичено\"!" #: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 msgid "Status list" @@ -155,224 +175,490 @@ msgstr "Стан збережено" msgid "Remove status %1$s" msgstr "Вилучити стан %1$s" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:88 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 msgid "ObjectsLend preferences" msgstr "Налаштування ObjectsLend" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:120 +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 msgid "Preferences have been successfully stored!" msgstr "Налаштування успішно збережено!" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:128 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Objects lend" +msgstr "Objects lend" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +msgid "Borrow status" +msgstr "Стан позики" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +msgid "Object categories" +msgstr "Категорії об'єктів" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +msgid "Preferences" +msgstr "Налаштування" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#, fuzzy +#| msgid "object_card" +msgid "objects_cards" +msgstr "картка_об'єкта" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 #, php-format msgid "Printed on %date" msgstr "Надруковано %date" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:175 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:157 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 msgid "Name" msgstr "Ім'я" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:176 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:159 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 msgid "Description" msgstr "Опис" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 msgid "Serial" msgstr "Серійний номер" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 msgid "Price" msgstr "Ціна" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:179 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 msgid "Borrow price" msgstr "Ціна позики" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:272 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" msgstr "Габарити" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 msgid "Weight" msgstr "Вага" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:359 msgid "Status" msgstr "Стан" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 msgid "Since" msgstr "З" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:191 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 msgid "Member" msgstr "Член" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:185 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Return" msgstr "Повернути" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 #, php-format msgid "Category: %category" msgstr "Категорія: %category" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:255 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 msgid "Total:" msgstr "Всього:" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:262 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 msgid "Borrowed" msgstr "Позичено" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:264 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 msgid "Available" msgstr "Доступно" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:79 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 msgid "object_card" -msgstr "object_card" +msgstr "картка_об'єкта" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:91 -#, fuzzy -#| msgid "object_card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 msgid "Object card" -msgstr "object_card" +msgstr "Картка об’єкта" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:93 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 msgid "Labels" -msgstr "" +msgstr "Мітки" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 +#: ../tempcache/category_edit.html.twig:62 msgid "Category" msgstr "Категорія" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 msgid "Serial number" msgstr "Серійний номер" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:177 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 msgid "Price per rental day" msgstr "Ціна за день оренди" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:183 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:171 msgid "Cm" msgstr "См" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:186 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:201 msgid "Kg" msgstr "Кг" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:187 +#: ../tempcache/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:322 +#: ../tempcache/status_list.html.twig:329 +#: ../tempcache/status_list.html.twig:333 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 msgid "Active" msgstr "Діяльний" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 msgid "Location" msgstr "Місцеперебування" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:211 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 msgid "History of object loans" msgstr "Історія позик об'єктів" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 msgid "Begin" msgstr "Початок" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:214 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 msgid "End" msgstr "Кінець" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:215 +#: ../tempcache/objects_list.html.twig:654 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_edit.html.twig:341 msgid "In stock" msgstr "В наявності" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:218 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_edit.html.twig:364 msgid "Comments" msgstr "Коментарі" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:161 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 msgid "Status has not been added :(" msgstr "Стан не додано :(" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:271 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 msgid "Unable to store preferences :(" msgstr "Не вдалося зберегти налаштування :(" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:186 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 msgid "Rent has not been added" msgstr "Оренда не додана" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:350 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 msgid "Y-m-d H:i" msgstr "Y-m-d H:i" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:260 +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 +#: ../tempcache/categories_list.html.twig:369 msgid "No category" msgstr "Немає категорії" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:348 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 msgid "Object has not been added :(" msgstr "Об'єкт не додано :(" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:266 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 msgid "Name/description" msgstr "Назва/опис" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:268 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../tempcache/list_lent_object.html.twig:66 msgid "Id" msgstr "ID" -#: ../templates/default/categories_list.tpl:7 -#: ../templates/default/objects_edit.tpl:57 -#: ../templates/default/status_edit.tpl:25 -#: ../templates/default/objects_list.tpl:14 -#: ../templates/default/status_list.tpl:7 +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "Діє" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Зображення:" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +msgstr "Світлина категорії" + +#: ../tempcache/objects_list.html.twig:57 +msgid "No object selected" +msgstr "Не вибрано жодного об’єкта" + +#: ../tempcache/objects_list.html.twig:57 +msgid "" +"Please make sure to select at least one object from the list to perform this " +"action." +msgstr "" +"Для виконання цієї дії обов'язково виберіть хоча б один об'єкт зі списку." + +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" +msgstr "Друк списку об'єктів" + +#: ../tempcache/objects_list.html.twig:100 +msgid "Add an object" +msgstr "Додати об’єкт" + +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:675 +msgid "By" +msgstr "Автор" + +#: ../tempcache/objects_list.html.twig:286 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/objects_edit.html.twig:151 msgid "Active:" msgstr "Діяльний:" -#: ../templates/default/categories_list.tpl:18 -msgid "categories" -msgstr "категорії" +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" +msgstr "Категорії" + +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" +msgstr "Світлина об'єкта" + +#: ../tempcache/objects_list.html.twig:600 +#: ../tempcache/take_object.html.twig:250 +msgid "(per day)" +msgstr "(на добу)" + +#: ../tempcache/objects_list.html.twig:606 +#: ../tempcache/take_object.html.twig:256 +msgid "(at once)" +msgstr "(одразу)" + +#: ../tempcache/objects_list.html.twig:723 +msgid "Object is active" +msgstr "Об'єкт діяльний" + +#: ../tempcache/objects_list.html.twig:725 +msgid "Object is inactive" +msgstr "Об'єкт бездіяльний" + +#: ../tempcache/objects_list.html.twig:734 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +msgid "Inactive" +msgstr "Незадіяний" -#: ../templates/default/categories_list.tpl:18 -msgid "category" -msgstr "категорія" +#: ../tempcache/objects_list.html.twig:748 +msgid "Duplicate object" +msgstr "Подвоїти об'єкт" -#: ../templates/default/categories_list.tpl:86 -#: ../templates/default/categories_list.tpl:89 -#, fuzzy, php-format -#| msgid "Edit category" +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" +msgstr "Показати позичання об'єкта" + +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" +msgstr "Картка об’єкта в PDF" + +#: ../tempcache/objects_list.html.twig:751 +#, php-format +msgid "Remove %object from database" +msgstr "Вилучити %object із бази даних" + +#: ../tempcache/objects_list.html.twig:767 +msgid "Take away" +msgstr "Забрати" + +#: ../tempcache/objects_list.html.twig:778 +msgid "Give back" +msgstr "Повернути назад" + +#: ../tempcache/objects_list.html.twig:821 +msgid "No object has been found" +msgstr "Об'єкт не знайдено" + +#: ../tempcache/objects_list.html.twig:862 +msgid "History of object" +msgstr "Історія об'єкта" + +#: ../tempcache/objects_list.html.twig:868 +msgid "An error occurred loading history display :(" +msgstr "Під час завантаження відображення історії сталася помилки :(" + +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" +msgstr "Взяти об'єкти" + +#: ../tempcache/objects_list.html.twig:921 +msgid "An error occurred loading 'Take away' display :(" +msgstr "Під час завантаження відображення \"Забрати\" сталася помилка :(" + +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" +msgstr "Повернути назад об'єкти" + +#: ../tempcache/objects_list.html.twig:968 +msgid "An error occurred loading 'Give back' display :(" +msgstr "" +"Під час завантаження відображення \"Повернути назад\" сталася помилка :(" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Дата початку" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Дата завершення" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +msgstr "Позику не знайдено" + +#: ../tempcache/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "Клацніть, щоб переглянути повне зображення" + +#: ../tempcache/status_list.html.twig:86 +msgid "Add a status" +msgstr "Додати стан" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 +msgid "Stock" +msgstr "В наявності" + +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 +#: ../tempcache/status_edit.html.twig:87 +msgid "Days for rent" +msgstr "Дні оренди" + +#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +msgid "In stock:" +msgstr "В наявності:" + +#: ../tempcache/status_list.html.twig:368 +#: ../tempcache/status_list.html.twig:372 +msgid "Not in stock" +msgstr "Немає в наявності" + +#: ../tempcache/status_list.html.twig:387 +#: ../tempcache/take_object.html.twig:354 +#, php-format +msgid "%days days" +msgstr "%days днів" + +#: ../tempcache/status_list.html.twig:400 +#, php-format +msgid "Edit %status" +msgstr "Редагувати %status" + +#: ../tempcache/status_list.html.twig:402 +#, php-format +msgid "Remove %status from database" +msgstr "Вилучити стан %status з бази даних" + +#: ../tempcache/status_list.html.twig:438 +msgid "No status has been found" +msgstr "Стан не знайдено" + +#: ../tempcache/categories_list.html.twig:62 +#, php-format +msgid "%count category" +msgid_plural "%count categories" +msgstr[0] "%count категорія" +msgstr[1] "%count категорії" +msgstr[2] "%count категорій" + +#: ../tempcache/categories_list.html.twig:86 +msgid "Add a category" +msgstr "Додати категорію" + +#: ../tempcache/categories_list.html.twig:315 +#, php-format msgid "Edit \"%category\"" -msgstr "Редагувати категорію" +msgstr "Редагувати \"%category\"" -#: ../templates/default/categories_list.tpl:95 -#: ../templates/default/categories_list.tpl:98 -#, fuzzy, php-format -#| msgid "Remove category %1$s" +#: ../tempcache/categories_list.html.twig:325 +#, php-format msgid "Remove \"%category\"" -msgstr "Вилучити категорію %1$s" +msgstr "Вилучити \"%category\"" -#: ../templates/default/preferences.tpl:6 +#: ../tempcache/preferences.html.twig:57 msgid "Plugin preferences" msgstr "Налаштування розширення" -#: ../templates/default/preferences.tpl:8 -#: ../templates/default/preferences.tpl:9 +#: ../tempcache/preferences.html.twig:61 +msgid "Images related" +msgstr "Пов'язані зображення" + +#: ../tempcache/preferences.html.twig:65 +msgid "Display preferences" +msgstr "Налаштування відображення" + +#: ../tempcache/preferences.html.twig:74 +msgid "Members can borrow:" +msgstr "Члени можуть позичити:" + +#: ../tempcache/preferences.html.twig:74 msgid "" "Allow a member (not staff neither admin) to borrow an object. If set to " "'No', only admin and staff members can access the 'Take object' page" @@ -381,38 +667,33 @@ msgstr "" "Якщо встановлено значення \"Ні\", тільки адміністратори та співробітники " "можуть отримати доступ до сторінки \"Взяти об'єкт\"" -#: ../templates/default/preferences.tpl:8 -msgid "Members can borrow:" -msgstr "Члени можуть позичити:" +#: ../tempcache/preferences.html.twig:76 +msgid "Generate contribution:" +msgstr "Утворити внесок:" -#: ../templates/default/preferences.tpl:15 -#: ../templates/default/preferences.tpl:16 +#: ../tempcache/preferences.html.twig:76 msgid "" "Automatically generate a contribution for the member of the amount of the " "rental price of the object" msgstr "Самоутворення внеску для члена в розмірі вартості оренди об'єкта" -#: ../templates/default/preferences.tpl:15 -msgid "Generate contribution:" -msgstr "Утворити внесок:" +#: ../tempcache/preferences.html.twig:105 +msgid "Choose a contribution type" +msgstr "Виберіть тип внеску" -#: ../templates/default/preferences.tpl:22 +#: ../tempcache/preferences.html.twig:127 msgid "Contribution type:" msgstr "Тип внеску:" -#: ../templates/default/preferences.tpl:24 -msgid "Choose a contribution type" -msgstr "Виберіть тип внеску" +#: ../tempcache/preferences.html.twig:134 +msgid "Contribution text:" +msgstr "Текст внеску:" -#: ../templates/default/preferences.tpl:32 +#: ../tempcache/preferences.html.twig:134 msgid "Comment text to add on generated contribution" msgstr "Текст коментаря, який потрібно додати до створеного внеску" -#: ../templates/default/preferences.tpl:32 -msgid "Contribution text:" -msgstr "Текст внеску:" - -#: ../templates/default/preferences.tpl:33 +#: ../tempcache/preferences.html.twig:134 msgid "" "Comment text to add on generated contribution. Automatically replaced values " "(put into curly brackets):
- NAME: Name
- DESCRIPTION: " @@ -424,35 +705,31 @@ msgstr "" "Опис
- SERIAL_NUMBER: Серійний номер
- PRICE: Ціна
- RENT_PRICE: " "Ціна позики
- WEIGHT: Вага
- DIMENSION: Габарити" -#: ../templates/default/preferences.tpl:39 -msgid "Images related" -msgstr "Пов'язані зображення" - -#: ../templates/default/preferences.tpl:41 +#: ../tempcache/preferences.html.twig:148 msgid "Max thumb height (in px)" msgstr "Максимальна висота ескізу (в пікселях)" -#: ../templates/default/preferences.tpl:45 +#: ../tempcache/preferences.html.twig:154 msgid "Max thumb width (in px)" msgstr "Максимальна ширина ескізу (в пікселях)" -#: ../templates/default/preferences.tpl:49 +#: ../tempcache/preferences.html.twig:159 msgid "Images in lists:" msgstr "Зображення у списках:" -#: ../templates/default/preferences.tpl:50 +#: ../tempcache/preferences.html.twig:159 msgid "Display images in objects and categories lists" msgstr "Показ зображень у списках об’єктів та категорій" -#: ../templates/default/preferences.tpl:55 -msgid "Show fullsize image or just thumbs" -msgstr "Показувати повнорозмірне чи ескізне зображення" - -#: ../templates/default/preferences.tpl:55 +#: ../tempcache/preferences.html.twig:161 msgid "Enable fullsize:" msgstr "Увімкнути повний розмір:" -#: ../templates/default/preferences.tpl:56 +#: ../tempcache/preferences.html.twig:161 +msgid "Show fullsize image or just thumbs" +msgstr "Показувати повнорозмірне чи ескізне зображення" + +#: ../tempcache/preferences.html.twig:161 msgid "" "Will permit to see fullsize image clicking on thumbnails.
If disabled, " "only thumbnails will be displayed, but full images are still kept." @@ -461,210 +738,203 @@ msgstr "" "Якщо вимкнено, показуватимуться лише ескізи, але повні зображення будуть " "зберігатися." -#: ../templates/default/preferences.tpl:62 -msgid "Display preferences" -msgstr "Налаштування відображення" - -#: ../templates/default/preferences.tpl:64 +#: ../tempcache/preferences.html.twig:196 msgid "View category:" msgstr "Показ категорії:" -#: ../templates/default/preferences.tpl:69 +#: ../tempcache/preferences.html.twig:198 msgid "View forecast return date:" msgstr "Показ приблизної дати повернення:" -#: ../templates/default/preferences.tpl:74 +#: ../tempcache/preferences.html.twig:200 msgid "View description" msgstr "Показ опису:" -#: ../templates/default/preferences.tpl:79 +#: ../tempcache/preferences.html.twig:202 msgid "View dimensions:" msgstr "Показ габаритів:" -#: ../templates/default/preferences.tpl:84 +#: ../tempcache/preferences.html.twig:204 msgid "View borrow price:" msgstr "Показ ціни позики:" -#: ../templates/default/preferences.tpl:89 -#: ../templates/default/preferences.tpl:90 -msgid "View the objects buy price sum on the list under the category" -msgstr "Показ суми цін на покупку об’єктів у списку під категорією" - -#: ../templates/default/preferences.tpl:89 +#: ../tempcache/preferences.html.twig:206 msgid "View price sum:" msgstr "Показ суми ціни:" -#: ../templates/default/preferences.tpl:95 +#: ../tempcache/preferences.html.twig:206 +msgid "View the objects buy price sum on the list under the category" +msgstr "Показ суми цін на покупку об’єктів у списку під категорією" + +#: ../tempcache/preferences.html.twig:208 msgid "View buy price:" msgstr "Показ ціни придбання:" -#: ../templates/default/preferences.tpl:100 +#: ../tempcache/preferences.html.twig:210 msgid "View serial number:" msgstr "Показ серійного номера:" -#: ../templates/default/preferences.tpl:105 +#: ../tempcache/preferences.html.twig:212 msgid "View weight" msgstr "Показ ваги" -#: ../templates/default/admin_picture.tpl:7 -msgid "Backup categories pictures" -msgstr "Резервне копіювання зображень категорій" - -#: ../templates/default/admin_picture.tpl:11 -msgid "Backup objects pictures" -msgstr "Резервне копіювання зображень об'єктів" - -#: ../templates/default/admin_picture.tpl:15 -msgid "Restore objects pictures from database" -msgstr "Відновлення зображень об'єктів із бази даних" - -#: ../templates/default/admin_picture.tpl:19 -msgid "Restore categories pictures from database" -msgstr "Відновлення зображень категорій із бази даних" - -#: ../templates/default/headers.tpl:14 -msgid "Click to view fullsize image" -msgstr "Клацніть, щоб переглянути повне зображення" - -#: ../templates/default/menu.tpl:3 -msgid "Objects lend" -msgstr "Objects lend" - -#: ../templates/default/menu.tpl:19 -msgid "Add an object" -msgstr "Додати об’єкт" - -#: ../templates/default/menu.tpl:22 -msgid "Borrow status" -msgstr "Стан позики" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Стан:" -#: ../templates/default/menu.tpl:25 -msgid "Add a status" -msgstr "Додати стан" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "Є об'єктом на складі або позиченим" -#: ../templates/default/menu.tpl:28 -msgid "Object categories" -msgstr "Категорії об'єктів" +#: ../tempcache/status_edit.html.twig:75 +msgid "" +"Check if the object is available to be borrowed;
uncheck if object is " +"already borrowed and should be given back" +msgstr "" +"Перевірте, чи доступний об'єкт для позичення;
зніміть прапорець, якщо " +"об'єкт вже позичений і повинен бути повернений." -#: ../templates/default/menu.tpl:31 -msgid "Add a category" -msgstr "Додати категорію" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "Типова кількість днів оренди" -#: ../templates/default/menu.tpl:34 -msgid "Preferences" -msgstr "Налаштування" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "використовується для обчислення дати повернення" -#: ../templates/default/take_object.tpl:12 -#: ../templates/default/objects_edit.tpl:7 +#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "Об'єкт" -#: ../templates/default/take_object.tpl:20 -#: ../templates/default/objects_edit.tpl:80 -#: ../templates/default/objects_list.tpl:235 -#: ../templates/default/take_more_objects_away.tpl:53 -msgid "Object photo" -msgstr "Світлина об'єкта" - -#: ../templates/default/take_object.tpl:21 -#: ../templates/default/objects_edit.tpl:9 +#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Ім'я:" -#: ../templates/default/take_object.tpl:28 -#: ../templates/default/objects_edit.tpl:13 +#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Опис:" -#: ../templates/default/take_object.tpl:36 -#: ../templates/default/objects_edit.tpl:31 +#: ../tempcache/objects_edit.html.twig:83 +msgid "--- Select a category ---" +msgstr "--- Виберіть категорію ---" + +#: ../tempcache/objects_edit.html.twig:104 +msgid "Category:" +msgstr "Категорія:" + +#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "Серійний номер:" -#: ../templates/default/take_object.tpl:44 -#: ../templates/default/objects_edit.tpl:35 +#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "Ціна:" -#: ../templates/default/take_object.tpl:51 -#: ../templates/default/objects_edit.tpl:39 +#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "Ціна позики:" -#: ../templates/default/take_object.tpl:60 -#: ../templates/default/objects_list.tpl:258 -msgid "(per day)" -msgstr "(на добу)" +#: ../tempcache/objects_edit.html.twig:133 +msgid "Price per rental day:" +msgstr "Ціна за день оренди:" -#: ../templates/default/take_object.tpl:62 -#: ../templates/default/objects_list.tpl:260 -msgid "(at once)" -msgstr "(одразу)" +#: ../tempcache/objects_edit.html.twig:133 +msgid "The price applies on each rental day if checked, only once otherwise" +msgstr "" +"Ціна застосовується в кожен день оренди, якщо зазначено, в іншому випадку " +"тільки один раз" -#: ../templates/default/take_object.tpl:69 -#: ../templates/default/objects_edit.tpl:49 +#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "Габарити:" -#: ../templates/default/take_object.tpl:81 -#: ../templates/default/objects_edit.tpl:53 +#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "Вага:" -#: ../templates/default/take_object.tpl:94 -#: ../templates/default/take_more_objects_away.tpl:95 -msgid "Member:" -msgstr "Член:" - -#: ../templates/default/take_object.tpl:108 -#: ../templates/default/take_object.tpl:138 -#: ../templates/default/status_edit.tpl:10 -#: ../templates/default/take_more_objects_away.tpl:106 -#: ../templates/default/take_more_objects_away.tpl:135 -msgid "Status:" -msgstr "Стан:" - -#: ../templates/default/take_object.tpl:110 -#: ../templates/default/take_object.tpl:140 -#: ../templates/default/take_more_objects_away.tpl:108 -#: ../templates/default/take_more_objects_away.tpl:137 +#: ../tempcache/objects_edit.html.twig:161 +#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "--- Виберіть стан ---" -#: ../templates/default/take_object.tpl:115 -#: ../templates/default/status_list.tpl:139 -#, php-format -msgid "%days days" -msgstr "%days днів" +#: ../tempcache/objects_edit.html.twig:181 +msgid "Where is the object?" +msgstr "Де знаходиться об'єкт?" + +#: ../tempcache/objects_edit.html.twig:194 +#: ../tempcache/objects_edit.html.twig:218 +msgid "Object's photo" +msgstr "Світлина об'єкта" + +#: ../tempcache/objects_edit.html.twig:264 +msgid "Duplicate" +msgstr "Подвоїти" + +#: ../tempcache/objects_edit.html.twig:273 +msgid "Print object" +msgstr "Друк об'єкта" + +#: ../tempcache/objects_edit.html.twig:298 +msgid "History" +msgstr "Історія" -#: ../templates/default/take_object.tpl:124 +#: ../tempcache/objects_edit.html.twig:321 +#: ../tempcache/objects_edit.html.twig:408 +msgid "Change status" +msgstr "Змінити стан" + +#: ../tempcache/objects_edit.html.twig:370 +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Член:" + +#: ../tempcache/take_object.html.twig:275 +msgid "Borrow information" +msgstr "Відомості про позику" + +#: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "Очікуване повернення:" -#: ../templates/default/take_object.tpl:149 +#: ../tempcache/take_object.html.twig:408 +msgid "Return information" +msgstr "Відомості про повернення" + +#: ../tempcache/take_object.html.twig:442 msgid "Time:" msgstr "Час:" -#: ../templates/default/take_object.tpl:155 -#: ../templates/default/take_more_objects_away.tpl:146 +#: ../tempcache/take_object.html.twig:446 +#, php-format +msgid "From %begindate to %enddate" +msgstr "З %begindate до %enddate" + +#: ../tempcache/take_object.html.twig:452 msgid "Comments:" msgstr "Коментарі:" -#: ../templates/default/take_object.tpl:158 -#: ../templates/default/take_more_objects_away.tpl:149 +#: ../tempcache/take_object.html.twig:455 msgid "remaining characters" msgstr "інші символи" -#: ../templates/default/take_object.tpl:167 +#: ../tempcache/take_object.html.twig:473 msgid "I have read and I agree with terms and conditions" msgstr "Я прочитав і погоджуюсь з умовами" -#: ../templates/default/take_object.tpl:168 -#: ../templates/default/take_object.tpl:170 +#: ../tempcache/take_object.html.twig:480 msgid "Show terms and conditions" msgstr "Показати терміни та умови використання" -#: ../templates/default/take_object.tpl:171 +#: ../tempcache/take_object.html.twig:487 msgid "" "The items offered for rent are in good condition and verification rental " "contradictory to their status is at the time of withdrawal. No claims will " @@ -691,301 +961,92 @@ msgstr "" "стану орендованого об'єкта понад стандартного, потрібен фінансовий внесок за " "додаткове очищення тощо.\n" "Згідно зі статтею 590 Цивільного кодексу України:\n" -"\"1. Заставодержатель набуває право звернення стягнення на предмет застави в " +"\"1. Заставоутримувач набуває право звернення стягнення на предмет застави в " "разі, коли зобов'язання не буде виконано у встановлений строк (термін), якщо " "інше не встановлено договором або законом.\n" -"2. Заставодержатель набуває право звернення стягнення на предмет застави в " +"2. Заставоутримувач набуває право звернення стягнення на предмет застави в " "разі, коли зобов'язання не буде виконано у встановлений строк (термін), якщо " "інше не встановлено договором або законом.\"." -#: ../templates/default/take_object.tpl:176 -#: ../templates/default/objects_list.tpl:312 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Take away" -msgstr "Забрати" +#: ../tempcache/take_object.html.twig:501 +msgid "Borrow object" +msgstr "Позичити об'єкт" -#: ../templates/default/take_object.tpl:176 -msgid "Return back" -msgstr "Повернути назад" +#: ../tempcache/take_object.html.twig:503 +msgid "Return object" +msgstr "Повернути об'єкт" -#: ../templates/default/take_object.tpl:213 -msgid "You must agree with terms and conditions in order to take." +#: ../tempcache/take_object.html.twig:558 +#, fuzzy +#| msgid "You must agree with terms and conditions in order to take." +msgid "You must agree with terms and conditions in order to borrow." msgstr "Ви повинні погодитися з умовами для того, щоб узяти." -#: ../templates/default/list_lent_object.tpl:15 -msgid "Begin date" -msgstr "Дата початку" - -#: ../templates/default/list_lent_object.tpl:16 -msgid "End date" -msgstr "Дата завершення" - -#: ../templates/default/list_lent_object.tpl:37 -msgid "No lend found" -msgstr "Позику не знайдено" - -#: ../templates/default/objects_edit.tpl:18 -msgid "Category:" -msgstr "Категорія:" - -#: ../templates/default/objects_edit.tpl:20 -msgid "--- Select a category ---" -msgstr "--- Виберіть категорію ---" - -#: ../templates/default/objects_edit.tpl:43 -msgid "The price applies on each rental day if checked, only once otherwise" -msgstr "" -"Ціна застосовується в кожен день оренди, якщо зазначено, в іншому випадку " -"тільки один раз" - -#: ../templates/default/objects_edit.tpl:44 -msgid "Price per rental day:" -msgstr "Ціна за день оренди:" - -#: ../templates/default/objects_edit.tpl:62 -msgid "Where is the object?" -msgstr "Де знаходиться об'єкт?" - -#: ../templates/default/objects_edit.tpl:65 -msgid "in stock" -msgstr "в наявності" - -#: ../templates/default/objects_edit.tpl:72 -msgid "Object's photo" -msgstr "Світлина об'єкта" - -#: ../templates/default/objects_edit.tpl:83 -#: ../templates/default/category_edit.tpl:33 -msgid "Delete image" -msgstr "Видалити зображення" - -#: ../templates/default/objects_edit.tpl:94 -msgid "Duplicate" -msgstr "Подвоїти" - -#: ../templates/default/objects_edit.tpl:97 -msgid "Print object" -msgstr "Друк об'єкта" - -#: ../templates/default/objects_edit.tpl:102 -#: ../templates/default/status_edit.tpl:47 -#: ../templates/default/category_edit.tpl:47 -msgid "Back to list" -msgstr "Повернутися до списку" - -#: ../templates/default/objects_edit.tpl:110 -msgid "History" -msgstr "Історія" - -#: ../templates/default/objects_edit.tpl:115 -#: ../templates/default/objects_edit.tpl:141 -msgid "Change status" -msgstr "Змінити стан" - -#: ../templates/default/objects_edit.tpl:132 -msgid "No member" -msgstr "Немає члена" - -#: ../templates/default/status_edit.tpl:16 -msgid "Is object in stock or borrowed" -msgstr "Є об'єктом на складі або позиченим" - -#: ../templates/default/status_edit.tpl:17 -#: ../templates/default/status_list.tpl:14 -msgid "In stock:" -msgstr "В наявності:" - -#: ../templates/default/status_edit.tpl:19 -msgid "" -"Check if the object is available to be borrowed;
uncheck if object is " -"already borrowed and should be given back" -msgstr "" -"Перевірте, чи доступний об'єкт для позичення;
зніміть прапорець, якщо " -"об'єкт вже позичений і повинен бути повернений." - -#: ../templates/default/status_edit.tpl:31 -#: ../templates/default/status_edit.tpl:34 -msgid "Number of days to rent per default" -msgstr "Типова кількість днів оренди" +#~ msgid "Edit the object" +#~ msgstr "Редагувати цей об'єкт" -#: ../templates/default/status_edit.tpl:32 -#: ../templates/default/status_list.tpl:89 -msgid "Days for rent" -msgstr "Дні оренди" +#~ msgid "Object has been successfully stored!" +#~ msgstr "Об'єкт успішно збережено!" -#: ../templates/default/status_edit.tpl:34 -msgid "used to compute return date" -msgstr "використовується для обчислення дати повернення" +#~ msgid "categories" +#~ msgstr "категорії" -#: ../templates/default/objects_list.tpl:26 -msgid "objects" -msgstr "об'єктів" +#~ msgid "category" +#~ msgstr "категорія" -#: ../templates/default/objects_list.tpl:26 -msgid "object" -msgstr "об'єкт" +#~ msgid "Backup categories pictures" +#~ msgstr "Резервне копіювання зображень категорій" -#: ../templates/default/objects_list.tpl:45 -msgid "Categories" -msgstr "Категорії" +#~ msgid "Backup objects pictures" +#~ msgstr "Резервне копіювання зображень об'єктів" -#: ../templates/default/objects_list.tpl:186 -msgid "By" -msgstr "Автор" - -#: ../templates/default/objects_list.tpl:299 -msgid "Object is active" -msgstr "Об'єкт діяльний" +#~ msgid "Restore objects pictures from database" +#~ msgstr "Відновлення зображень об'єктів із бази даних" -#: ../templates/default/objects_list.tpl:299 -msgid "Object is inactive" -msgstr "Об'єкт бездіяльний" +#~ msgid "Restore categories pictures from database" +#~ msgstr "Відновлення зображень категорій із бази даних" -#: ../templates/default/objects_list.tpl:309 -msgid "Take object away" -msgstr "Забрати об'єкт" +#~ msgid "in stock" +#~ msgstr "в наявності" -#: ../templates/default/objects_list.tpl:319 -msgid "Give object back" -msgstr "Повернути об'єкт назад" +#~ msgid "Delete image" +#~ msgstr "Видалити зображення" -#: ../templates/default/objects_list.tpl:322 -#: ../templates/default/take_more_objects_away.tpl:156 -msgid "Give back" -msgstr "Повернути назад" +#~ msgid "Back to list" +#~ msgstr "Повернутися до списку" -#: ../templates/default/objects_list.tpl:330 -#: ../templates/default/objects_list.tpl:333 -msgid "Edit the object" -msgstr "Редагувати цей об'єкт" +#~ msgid "No member" +#~ msgstr "Немає члена" -#: ../templates/default/objects_list.tpl:338 -#: ../templates/default/objects_list.tpl:341 -msgid "Duplicate object" -msgstr "Подвоїти об'єкт" +#~ msgid "objects" +#~ msgstr "об'єктів" -#: ../templates/default/objects_list.tpl:347 -msgid "Show object lends" -msgstr "Показати позичання об'єкта" +#~ msgid "object" +#~ msgstr "об'єкт" -#: ../templates/default/objects_list.tpl:352 -#: ../templates/default/objects_list.tpl:355 -msgid "Object card in PDF" -msgstr "Картка об’єкта в PDF" +#~ msgid "Take object away" +#~ msgstr "Забрати об'єкт" -#: ../templates/default/objects_list.tpl:360 -#: ../templates/default/objects_list.tpl:363 -#, php-format -msgid "Remove %object from database" -msgstr "Вилучити %object із бази даних" +#~ msgid "Give object back" +#~ msgstr "Повернути об'єкт назад" -#: ../templates/default/objects_list.tpl:371 -msgid "No object has been found" -msgstr "Об'єкт не знайдено" - -#: ../templates/default/objects_list.tpl:384 -msgid "Print objects list" -msgstr "Друк списку об'єктів" - -#: ../templates/default/objects_list.tpl:441 -msgid "No object selected" -msgstr "Не вибрано жодного об’єкта" - -#: ../templates/default/objects_list.tpl:441 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." -msgstr "" -"Для виконання цієї дії обов'язково виберіть хоча б один об'єкт зі списку." - -#: ../templates/default/objects_list.tpl:488 -msgid "History of object" -msgstr "Історія об'єкта" - -#: ../templates/default/objects_list.tpl:500 -msgid "An error occured loading history display :(" -msgstr "Під час завантаження відображення історії сталася помилки :(" - -#: ../templates/default/objects_list.tpl:520 -msgid "Take objects" -msgstr "Взяти об'єкти" - -#: ../templates/default/objects_list.tpl:548 -msgid "An error occured loading 'Take away' display :(" -msgstr "Під час завантаження відображення \"Забрати\" сталася помилка :(" - -#: ../templates/default/objects_list.tpl:566 -msgid "Give back objects" -msgstr "Повернути назад об'єкти" - -#: ../templates/default/objects_list.tpl:594 -msgid "An error occured loading 'Give back' display :(" -msgstr "" -"Під час завантаження відображення \"Повернути назад\" сталася помилка :(" - -#: ../templates/default/status_list.tpl:25 -msgid "status" -msgstr "стан" - -#: ../templates/default/status_list.tpl:77 -msgid "Stock" -msgstr "В наявності" - -#: ../templates/default/status_list.tpl:125 -msgid "Inactive" -msgstr "Незадіяний" - -#: ../templates/default/status_list.tpl:134 -msgid "Not in stock" -msgstr "Немає в наявності" - -#: ../templates/default/status_list.tpl:148 -#: ../templates/default/status_list.tpl:151 -#, php-format -msgid "Edit %status" -msgstr "Редагувати %status" - -#: ../templates/default/status_list.tpl:156 -#: ../templates/default/status_list.tpl:159 -#, php-format -msgid "Remove %status from database" -msgstr "Вилучити стан %status з бази даних" - -#: ../templates/default/status_list.tpl:164 -msgid "No status has been found" -msgstr "Стан не знайдено" - -#: ../templates/default/category_edit.tpl:16 -msgid "Is active" -msgstr "Діє" - -#: ../templates/default/category_edit.tpl:26 -msgid "Picture:" -msgstr "Зображення:" - -#: ../templates/default/category_edit.tpl:31 -msgid "Category photo" -msgstr "Світлина категорії" +#~ msgid "status" +#~ msgstr "стан" -#: ../templates/default/take_more_objects_away.tpl:4 -msgid "Objects" -msgstr "Об'єкти" +#~ msgid "Objects" +#~ msgstr "Об'єкти" -#: ../templates/default/take_more_objects_away.tpl:10 -msgid "Picture" -msgstr "Зображення" +#~ msgid "Picture" +#~ msgstr "Зображення" -#: ../templates/default/take_more_objects_away.tpl:97 -msgid "--- Select a member ---" -msgstr "--- Виберіть члена ---" +#~ msgid "--- Select a member ---" +#~ msgstr "--- Виберіть члена ---" -#: ../templates/default/take_more_objects_away.tpl:118 -msgid "Payment type:" -msgstr "Вид оплати:" +#~ msgid "Payment type:" +#~ msgstr "Вид оплати:" -#: ../templates/default/take_more_objects_away.tpl:120 -msgid "--- Select a payment type ---" -msgstr "--- Виберіть тип платежу ---" +#~ msgid "--- Select a payment type ---" +#~ msgstr "--- Виберіть тип платежу ---" #~ msgid "Take out" #~ msgstr "Вийняти" diff --git a/lang/oc.utf8/LC_MESSAGES/objectslend.mo b/lang/oc.utf8/LC_MESSAGES/objectslend.mo index 3bbc260..55aa9ed 100644 Binary files a/lang/oc.utf8/LC_MESSAGES/objectslend.mo and b/lang/oc.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/ru.utf8/LC_MESSAGES/objectslend.mo b/lang/ru.utf8/LC_MESSAGES/objectslend.mo new file mode 100644 index 0000000..8f237b6 Binary files /dev/null and b/lang/ru.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/uk.utf8/LC_MESSAGES/objectslend.mo b/lang/uk.utf8/LC_MESSAGES/objectslend.mo index 428f3ab..28cafcd 100644 Binary files a/lang/uk.utf8/LC_MESSAGES/objectslend.mo and b/lang/uk.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php b/lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php index 7ac9dc2..1ae8fb1 100644 --- a/lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php +++ b/lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2021 The Galette Team + * Copyright © 2021-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2021-05-09 @@ -37,13 +37,14 @@ namespace GaletteObjectsLend\Controllers\Crud; use Analog\Analog; +use DI\Attribute\Inject; use GaletteObjectsLend\Filters\CategoriesList; use GaletteObjectsLend\Repository\Categories; use GaletteObjectsLend\Entity\LendCategory; use GaletteObjectsLend\Entity\Preferences; use Galette\Controllers\Crud\AbstractPluginController; -use Slim\Http\Request; -use Slim\Http\Response; +use Slim\Psr7\Request; +use Slim\Psr7\Response; /** * Categories controller @@ -52,7 +53,7 @@ * @name CategoriesController * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2021-05-09 @@ -61,9 +62,9 @@ class CategoriesController extends AbstractPluginController { /** - * @Inject("Plugin Galette Objects Lend") - * @var integer + * @var array */ + #[Inject("Plugin Galette Objects Lend")] protected $module_info; // CRUD - Create @@ -132,13 +133,13 @@ public function list(Request $request, Response $response, $option = null, $valu $this->session->objectslend_filter_categories = $filters; //assign pagination variables to the template and add pagination links - $filters->setSmartyPagination($this->router, $this->view->getSmarty(), false); + $filters->setViewPagination($this->routeparser, $this->view, false); $lendsprefs = new Preferences($this->zdb); // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']categories_list.tpl', + $this->getTemplate('categories_list'), array( 'page_title' => _T("Categories list", "objectslend"), 'require_dialog' => true, @@ -195,7 +196,7 @@ public function filter(Request $request, Response $response): Response return $response ->withStatus(301) - ->withHeader('Location', $this->router->pathFor('objectslend_categories')); + ->withHeader('Location', $this->routeparser->urlFor('objectslend_categories')); } // /CRUD - Read @@ -238,7 +239,7 @@ public function edit(Request $request, Response $response, int $id = null, $acti // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']category_edit.tpl', + $this->getTemplate('category_edit'), $params ); return $response; @@ -261,7 +262,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac $error_detected = []; $category->name = $post['name']; - $category->is_active = $post['is_active'] == 'true'; + $category->is_active = $post['is_active'] == true; if ($category->store()) { // picture upload if (isset($_FILES['picture'])) { @@ -295,7 +296,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac } } } else { - $error_detected[] = _T("An error occured while storing the category.", "objectslend"); + $error_detected[] = _T("An error occurred while storing the category.", "objectslend"); } $args = ($id === null ? [] : ['id' => $id]); @@ -312,7 +313,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_category', $args) + $this->routeparser->urlFor('objectslend_category_' . $action, $args) ); } else { //redirect to categories list @@ -325,7 +326,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_categories', $args) + $this->routeparser->urlFor('objectslend_categories', $args) ); } } @@ -342,7 +343,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac */ public function redirectUri(array $args): string { - return $this->router->pathFor('objectslend_categories'); + return $this->routeparser->urlFor('objectslend_categories'); } /** @@ -354,7 +355,7 @@ public function redirectUri(array $args): string */ public function formUri(array $args): string { - return $this->router->pathFor( + return $this->routeparser->urlFor( 'objectslend_doremove_category', $args ); diff --git a/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php b/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php index ec1617e..d0bb825 100644 --- a/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php +++ b/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2021 The Galette Team + * Copyright © 2021-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2021-05-12 @@ -37,6 +37,7 @@ namespace GaletteObjectsLend\Controllers\Crud; use Analog\Analog; +use DI\Attribute\Inject; use GaletteObjectsLend\Filters\CategoriesList; use GaletteObjectsLend\Filters\ObjectsList; use GaletteObjectsLend\Filters\StatusList; @@ -52,8 +53,8 @@ use Galette\Entity\Contribution; use Galette\Entity\ContributionsTypes; use Galette\Repository\Members; -use Slim\Http\Request; -use Slim\Http\Response; +use Slim\Psr7\Request; +use Slim\Psr7\Response; /** * Objects controller @@ -62,7 +63,7 @@ * @name ObjectsController * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2021-05-12 @@ -71,9 +72,9 @@ class ObjectsController extends AbstractPluginController { /** - * @Inject("Plugin Galette Objects Lend") - * @var integer + * @var array */ + #[Inject("Plugin Galette Objects Lend")] protected $module_info; // CRUD - Create @@ -149,8 +150,8 @@ public function list(Request $request, Response $response, $option = null, $valu $this->session->objectslend_filter_objects = $filters; //assign pagination variables to the template and add pagination links - $filters->setViewCommonsFilters($lendsprefs, $this->view->getSmarty()); - $filters->setSmartyPagination($this->router, $this->view->getSmarty(), false); + $filters->setViewCommonsFilters($lendsprefs, $this->view); + $filters->setViewPagination($this->routeparser, $this->view, false); $cat_filters = new CategoriesList(); $cat_filters->active_filter = Categories::ACTIVE_CATEGORIES; //retrieve only active categories @@ -161,7 +162,7 @@ public function list(Request $request, Response $response, $option = null, $valu // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']objects_list.tpl', + $this->getTemplate('objects_list'), array( 'page_title' => _T("Objects list", "objectslend"), 'require_dialog' => true, @@ -221,7 +222,7 @@ public function filter(Request $request, Response $response): Response return $response ->withStatus(301) - ->withHeader('Location', $this->router->pathFor('objectslend_objects')); + ->withHeader('Location', $this->routeparser->urlFor('objectslend_objects')); } /** @@ -254,13 +255,13 @@ public function show(Request $request, Response $response, int $id): Response 'object' => $object, 'rents' => $object->rents, 'time' => time(), - 'ajax' => $request->isXhr() + 'ajax' => $request->getHeaderLine('X-Requested-With') === 'XMLHttpRequest' ]; // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']list_lent_object.tpl', + $this->getTemplate('list_lent_object'), $params ); return $response; @@ -278,26 +279,26 @@ public function handleBatch(Request $request, Response $response): Response { $post = $request->getParsedBody(); - if (isset($post['object_ids'])) { + if (isset($post['entries_sel'])) { if (isset($this->session->objectslend_filter_objects)) { $filters = $this->session->objectslend_filter_objects; } else { $filters = new ObjectsList(); } - $filters->selected = $post['object_ids']; + $filters->selected = $post['entries_sel']; $this->session->objectslend_filter_objects = $filters; if (isset($post['delete'])) { return $response ->withStatus(301) - ->withHeader('Location', $this->router->pathFor('objectslend_remove_objects')); + ->withHeader('Location', $this->routeparser->urlFor('objectslend_remove_objects')); } if (isset($post['print_list'])) { return $response ->withStatus(301) - ->withHeader('Location', $this->router->pathFor('objectslend_objects_print')); + ->withHeader('Location', $this->routeparser->urlFor('objectslend_objects_print')); } $this->flash->addMessage( @@ -313,7 +314,7 @@ public function handleBatch(Request $request, Response $response): Response return $response ->withStatus(301) - ->withHeader('Location', $this->router->pathFor('objectslend_objects')); + ->withHeader('Location', $this->routeparser->urlFor('objectslend_objects')); } // /CRUD - Read @@ -367,7 +368,7 @@ public function edit(Request $request, Response $response, int $id = null, $acti // members $m = new Members(); - $members = $m->getSelectizedMembers( + $members = $m->getDropdownMembers( $this->zdb, $this->login, ($this->login->isSuperadmin() ? null : $this->login->id) @@ -385,7 +386,7 @@ public function edit(Request $request, Response $response, int $id = null, $acti // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']objects_edit.tpl', + $this->getTemplate('objects_edit'), $params ); return $response; @@ -415,43 +416,30 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac $object->serial_number = $post['serial']; if ($post['price'] != '') { //FIXME: better currency format handler - $object->price = str_replace(' ', '', str_replace(',', '.', $post['price'])); + $object->price = (float)str_replace(' ', '', str_replace(',', '.', $post['price'])); } if ($post['rent_price'] != '') { //FIXME: better currency format handler - $object->rent_price = str_replace(' ', '', str_replace(',', '.', $post['rent_price'])); + $object->rent_price = (float)str_replace(' ', '', str_replace(',', '.', $post['rent_price'])); + } + if (isset($post['price_per_day'])) { + $object->price_per_day = $post['price_per_day'] == 'true'; } - $object->price_per_day = $post['price_per_day'] == 'true'; $object->dimension = $post['dimension']; if ($post['weight'] != '') { //FIXME: better format handler - $object->weight = str_replace(' ', '', str_replace(',', '.', $post['weight'])); + $object->weight = (int)str_replace(' ', '', str_replace(',', '.', $post['weight'])); } - $object->is_active = $post['is_active'] == 'true'; + $object->is_active = ($post['is_active'] ?? false) == true; if ($object->store()) { - $success_detected[] = _T("Object has been successfully stored!", "objectslend"); if (isset($post['1st_status'])) { $rent = new LendRent(); - $rent->object_id = $object->object_id; + $rent->object_id = $object->getId(); $rent->status_id = $post['1st_status']; $rent->store(); } - $object_id = $object->object_id; - - // Change status - if (isset($post['status'])) { - LendRent::closeAllRentsForObject(intval($object_id), $post['new_comment']); - - $rent = new LendRent(); - $rent->object_id = $object_id; - $rent->status_id = $post['new_status']; - if (filter_input(INPUT_POST, 'new_adh') != 'null') { - $rent->adherent_id = $post['new_adh']; - } - $rent->store(); - } // picture upload if (isset($_FILES['picture'])) { if ($_FILES['picture']['error'] === UPLOAD_ERR_OK) { @@ -501,7 +489,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor( + $this->routeparser->urlFor( 'objectslend_object_' . $action, $args ) @@ -517,17 +505,57 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_objects') + $this->routeparser->urlFor('objectslend_objects') ); } } /** - * Clone action + * Update status action * * @param Request $request PSR Request * @param Response $response PSR Response * @param null|int $id Object id for edit + * @param string $action Either add or edit + * + * @return Response + */ + public function doUpdateStatus(Request $request, Response $response, int $id = null, $action = 'edit'): Response + { + $post = $request->getParsedBody(); + + $object = new LendObject($this->zdb, $this->plugins, $id); + + LendRent::closeAllRentsForObject($object->getId(), $post['new_comment']); + + $rent = new LendRent(); + $rent->object_id = $object->getId(); + $rent->status_id = $post['new_status']; + if (filter_input(INPUT_POST, 'new_adh') != 'null') { + $rent->adherent_id = $post['new_adh']; + } + $rent->store(); + + //redirect to objects form + $this->flash->addMessage( + 'success_detected', + _T("Status has been updated", "objectslend") + ); + + return $response + ->withStatus(301) + ->withHeader( + 'Location', + $this->routeparser->urlFor('objectslend_object_edit', ['id' => $object->getId()]) + ); + } + + /** + * Clone action + * + * @param Request $request PSR Request + * @param Response $response PSR Response + * @param int $id Object id for edit * * @return Response */ @@ -555,7 +583,7 @@ public function doClone(Request $request, Response $response, int $id): Response ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor( + $this->routeparser->urlFor( 'objectslend_object_edit', ['id' => $object->object_id] ) @@ -577,14 +605,18 @@ public function lend(Request $request, Response $response, string $action, int $ $lendsprefs = new Preferences($this->zdb); $params = [ - 'page_title' => _T("Borrow an object", "objectslend"), + 'page_title' => ($action == 'take' ? + _T("Borrow an object", "objectslend") : + _T("Return a borrowed object", "objectslend") + + ), 'time' => time(), 'statuses' => ($action == 'take' ? LendStatus::getActiveTakeAwayStatuses($this->zdb) : LendStatus::getActiveStockStatuses($this->zdb)), 'lendsprefs' => $lendsprefs->getpreferences(), 'olendsprefs' => $lendsprefs, - 'ajax' => $request->isXhr(), + 'ajax' => $request->getHeaderLine('X-Requested-With') === 'XMLHttpRequest', 'takeorgive' => $action, 'adh_selected' => ($this->login->isSuperadmin() ? null : $this->login->id), 'contribution' => new Contribution($this->zdb, $this->login) @@ -593,7 +625,8 @@ public function lend(Request $request, Response $response, string $action, int $ $deps = [ 'rents' => true, - 'last_rent' => true + 'last_rent' => true, + 'member' => true ]; $object = new LendObject( $this->zdb, @@ -611,7 +644,7 @@ public function lend(Request $request, Response $response, string $action, int $ && !($this->login->isAdmin() || $this->login->isStaff()) ) { Analog::log( - 'Trying to take an object without appropriate rights! (Object ' . + 'Trying to borrow an object without appropriate rights! (Object ' . $id . ', user ' . $this->login->login . ')', Analog::WARNING ); @@ -619,20 +652,20 @@ public function lend(Request $request, Response $response, string $action, int $ //redirect to objects list $this->flash->addMessage( 'error_detected', - _T("You do not have rights to take objects!", "objectslend") + _T("You do not have rights to borrow objects!", "objectslend") ); return $response ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_objects') + $this->routeparser->urlFor('objectslend_objects') ); } // members $m = new Members(); - $members = $m->getSelectizedMembers( + $members = $m->getDropdownMembers( $this->zdb, $this->login, ($this->login->isSuperadmin() ? null : $this->login->id) @@ -647,7 +680,7 @@ public function lend(Request $request, Response $response, string $action, int $ $params['members']['list'] = $members; } $params['require_calendar'] = true; - $param['rent_price'] = str_replace(array( ',', ' '), array( '.', ''), $object->rent_price); //FIXME :/ + $params['rent_price'] = str_replace(array( ',', ' '), array( '.', ''), $object->rent_price); //FIXME :/ if ($last_rent !== null && !$last_rent->in_stock) { //redirect to objects list @@ -664,19 +697,43 @@ public function lend(Request $request, Response $response, string $action, int $ ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_objects') + $this->routeparser->urlFor('objectslend_objects') ); } $date_forecast = new \DateTime(); $date_forecast->add(new \DateInterval('P1D')); $params['date_forecast'] = $date_forecast->format(__('Y-m-d')); + } else { + if ( + !$lendsprefs->{Preferences::PARAM_ENABLE_MEMBER_RENT_OBJECT} + || !($this->login->isAdmin() || $this->login->isStaff() || $this->login->id == $object->getIdAdh()) + ) { + Analog::log( + 'Trying to return an object without appropriate rights! (Object ' . + $id . ', user ' . $this->login->login . ')', + Analog::WARNING + ); + + //redirect to objects list + $this->flash->addMessage( + 'error_detected', + _T("You do not have rights to return objects!", "objectslend") + ); + + return $response + ->withStatus(301) + ->withHeader( + 'Location', + $this->routeparser->urlFor('objectslend_objects') + ); + } } // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']take_object.tpl', + $this->getTemplate('take_object'), $params ); return $response; @@ -698,6 +755,30 @@ public function doTake(Request $request, Response $response, int $id): Response $object_id = $id; + if ( + !$lendsprefs->{Preferences::PARAM_ENABLE_MEMBER_RENT_OBJECT} + && !($this->login->isAdmin() || $this->login->isStaff()) + ) { + Analog::log( + 'Trying to borrow an object without appropriate rights! (Object ' . + $id . ', user ' . $this->login->login . ')', + Analog::WARNING + ); + + //redirect to objects list + $this->flash->addMessage( + 'error_detected', + _T("You do not have rights to borrow objects!", "objectslend") + ); + + return $response + ->withStatus(301) + ->withHeader( + 'Location', + $this->routeparser->urlFor('objectslend_objects') + ); + } + // close olds object rents LendRent::closeAllRentsForObject($object_id, ''); @@ -707,7 +788,7 @@ public function doTake(Request $request, Response $response, int $id): Response $rent->status_id = $post['status']; $rent->date_forecast = $post['expected_return']; - if ($post[Adherent::PK] && ($this->login->isAdmin() || $this->login->isStaff())) { + if ($post[Adherent::PK] ?? null && ($this->login->isAdmin() || $this->login->isStaff())) { $rent->adherent_id = $post[Adherent::PK]; } else { $rent->adherent_id = $this->login->id; @@ -757,14 +838,22 @@ public function doTake(Request $request, Response $response, int $id): Response $values = array( 'montant_cotis' => $rentprice, ContributionsTypes::PK => $lendsprefs->{Preferences::PARAM_GENERATED_CONTRIBUTION_TYPE_ID}, - 'date_enreg' => date(_T("Y-m-d")), - 'date_debut_cotis' => date(_T("Y-m-d")), + 'date_enreg' => date("Y-m-d"), + 'date_debut_cotis' => date("Y-m-d"), 'type_paiement_cotis' => $post['payment_type'], 'info_cotis' => $info, Adherent::PK => $rent->adherent_id ); $contrib->check($values, array(), array()); - $created = $contrib->store(); + try { + $created = $contrib->store(); + } catch (\OverflowException $e) { + $created = false; + Analog::log( + $e->getMessage(), + Analog::ERROR + ); + } if ($created) { $this->flash->addMessage( 'success_detected', @@ -788,10 +877,11 @@ public function doTake(Request $request, Response $response, int $id): Response ) ); - if ($request->isXhr() || $post['mode'] == 'ajax') { - return $response->withJson( + if ($request->getHeaderLine('X-Requested-With') === 'XMLHttpRequest' || $post['mode'] == 'ajax') { + return $this->withJson( + $response, [ - 'success' => $success + 'success' => 'true' ] ); } else { @@ -800,7 +890,7 @@ public function doTake(Request $request, Response $response, int $id): Response ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_objects') + $this->routeparser->urlFor('objectslend_objects') ); } } @@ -821,6 +911,44 @@ public function doReturn(Request $request, Response $response, int $id): Respons $object_id = $id; + $deps = [ + 'rents' => true, + 'last_rent' => true, + 'member' => true + ]; + + //retrieve object information + $object = new LendObject( + $this->zdb, + $this->plugins, + $object_id, + $deps + ); + + if ( + !$lendsprefs->{Preferences::PARAM_ENABLE_MEMBER_RENT_OBJECT} + || !($this->login->isAdmin() || $this->login->isStaff() || $this->login->id == $object->getIdAdh()) + ) { + Analog::log( + 'Trying to return an object without appropriate rights! (Object ' . + $id . ', user ' . $this->login->login . ')', + Analog::WARNING + ); + + //redirect to objects list + $this->flash->addMessage( + 'error_detected', + _T("You do not have rights to return objects!", "objectslend") + ); + + return $response + ->withStatus(301) + ->withHeader( + 'Location', + $this->routeparser->urlFor('objectslend_objects') + ); + } + // close olds object rents LendRent::closeAllRentsForObject($object_id, ''); @@ -830,13 +958,6 @@ public function doReturn(Request $request, Response $response, int $id): Respons $rent->status_id = $post['status']; $rent->store(); - //retrieve object information - $object = new LendObject( - $this->zdb, - $this->plugins, - $object_id - ); - $this->flash->addMessage( 'success_detected', str_replace( @@ -846,10 +967,11 @@ public function doReturn(Request $request, Response $response, int $id): Respons ) ); - if ($request->isXhr() || $post['mode'] == 'ajax') { - return $response->withJson( + if ($request->getHeaderLine('X-Requested-With') === 'XMLHttpRequest' || $post['mode'] == 'ajax') { + return $this->withJson( + $response, [ - 'success' => $success + 'success' => 'true' ] ); } else { @@ -858,7 +980,7 @@ public function doReturn(Request $request, Response $response, int $id): Respons ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_objects') + $this->routeparser->urlFor('objectslend_objects') ); } } @@ -875,7 +997,7 @@ public function doReturn(Request $request, Response $response, int $id): Respons */ public function redirectUri(array $args): string { - return $this->router->pathFor('objectslend_objects'); + return $this->routeparser->urlFor('objectslend_objects'); } /** @@ -887,7 +1009,7 @@ public function redirectUri(array $args): string */ public function formUri(array $args): string { - return $this->router->pathFor( + return $this->routeparser->urlFor( 'objectslend_doremove_object', $args ); @@ -966,7 +1088,11 @@ protected function doDelete(array $args, array $post): bool $ids = $post['id']; } - return $objects->removeObjects($ids); + $result = $objects->removeObjects($ids); + if ($result) { + unset($this->session->objectslend_filter_objects); + } + return $result; } // /CRUD - Delete diff --git a/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php b/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php index b5dc391..bd6f122 100644 --- a/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php +++ b/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2021 The Galette Team + * Copyright © 2021-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2021-05-12 @@ -36,14 +36,14 @@ namespace GaletteObjectsLend\Controllers\Crud; -use Analog\Analog; +use DI\Attribute\Inject; use GaletteObjectsLend\Filters\StatusList; use GaletteObjectsLend\Repository\Status; use GaletteObjectsLend\Entity\LendStatus; use GaletteObjectsLend\Entity\Preferences; use Galette\Controllers\Crud\AbstractPluginController; -use Slim\Http\Request; -use Slim\Http\Response; +use Slim\Psr7\Request; +use Slim\Psr7\Response; /** * Status controller @@ -52,7 +52,7 @@ * @name CategoriesController * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2021-05-09 @@ -61,9 +61,9 @@ class StatusController extends AbstractPluginController { /** - * @Inject("Plugin Galette Objects Lend") - * @var integer + * @var array */ + #[Inject("Plugin Galette Objects Lend")] protected $module_info; // CRUD - Create @@ -132,7 +132,7 @@ public function list(Request $request, Response $response, $option = null, $valu if (count(LendStatus::getActiveStockStatuses($this->zdb)) == 0) { $this->flash->addMessage( 'error_detected', - _T("Please add add at last one status \"in stock\"!", "objectslend") + _T("Please add at last one status \"in stock\"!", "objectslend") ); } if (count(LendStatus::getActiveTakeAwayStatuses($this->zdb)) == 0) { @@ -145,13 +145,13 @@ public function list(Request $request, Response $response, $option = null, $valu $this->session->objectslend_filter_statuses = $filters; //assign pagination variables to the template and add pagination links - $filters->setSmartyPagination($this->router, $this->view->getSmarty(), false); + $filters->setViewPagination($this->routeparser, $this->view, false); $lendsprefs = new Preferences($this->zdb); // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']status_list.tpl', + $this->getTemplate('status_list'), array( 'page_title' => _T("Status list", "objectslend"), 'require_dialog' => true, @@ -215,7 +215,7 @@ public function filter(Request $request, Response $response): Response return $response ->withStatus(301) - ->withHeader('Location', $this->router->pathFor('objectslend_statuses')); + ->withHeader('Location', $this->routeparser->urlFor('objectslend_statuses')); } // /CRUD - Read @@ -259,7 +259,7 @@ public function edit(Request $request, Response $response, int $id = null, $acti // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']status_edit.tpl', + $this->getTemplate('status_edit'), $params ); return $response; @@ -304,7 +304,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor( + $this->routeparser->urlFor( 'objectslend_status_' . $action, $args ) @@ -320,7 +320,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_statuses') + $this->routeparser->urlFor('objectslend_statuses') ); } } @@ -337,7 +337,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac */ public function redirectUri(array $args): string { - return $this->router->pathFor('objectslend_statuses'); + return $this->routeparser->urlFor('objectslend_statuses'); } /** @@ -349,7 +349,7 @@ public function redirectUri(array $args): string */ public function formUri(array $args): string { - return $this->router->pathFor( + return $this->routeparser->urlFor( 'objectslend_doremove_status', $args ); diff --git a/lib/GaletteObjectsLend/Controllers/ImagesController.php b/lib/GaletteObjectsLend/Controllers/ImagesController.php index 9cd7d7c..cb23a9c 100644 --- a/lib/GaletteObjectsLend/Controllers/ImagesController.php +++ b/lib/GaletteObjectsLend/Controllers/ImagesController.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2021 The Galette Team + * Copyright © 2021-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package Galette * * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -36,11 +36,8 @@ use Galette\Controllers\ImagesController as GImagesController; use GaletteObjectsLend\Entity\Preferences; -use Slim\Http\Request; -use Slim\Http\Response; -use Galette\Core\Picture; -use Galette\Entity\Adherent; -use Analog\Analog; +use Slim\Psr7\Request; +use Slim\Psr7\Response; /** * Galette objects lend images controller @@ -49,7 +46,7 @@ * @name ImageController * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ diff --git a/lib/GaletteObjectsLend/Controllers/MainController.php b/lib/GaletteObjectsLend/Controllers/MainController.php index 5bf773f..e1c9621 100644 --- a/lib/GaletteObjectsLend/Controllers/MainController.php +++ b/lib/GaletteObjectsLend/Controllers/MainController.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2021 The Galette Team + * Copyright © 2021-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,20 +28,18 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ namespace GaletteObjectsLend\Controllers; +use DI\Attribute\Inject; use Galette\Controllers\AbstractPluginController; use Galette\Entity\ContributionsTypes; use GaletteObjectsLend\Entity\Preferences; -use Slim\Http\Request; -use Slim\Http\Response; -use Galette\Core\Picture; -use Galette\Entity\Adherent; -use Analog\Analog; +use Slim\Psr7\Request; +use Slim\Psr7\Response; /** * Galette objects lend main controller @@ -50,7 +48,7 @@ * @name MainController * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -58,13 +56,11 @@ class MainController extends AbstractPluginController { /** - * @Inject("Plugin Galette Objects Lend") - * @var integer + * @var array */ + #[Inject("Plugin Galette Objects Lend")] protected $module_info; - private $lendsprefs; - /** * Objects lends preferences * @@ -93,7 +89,7 @@ public function preferences(Request $request, Response $response): Response // display page $this->view->render( $response, - 'file:[' . $this->getModuleRoute() . ']preferences.tpl', + $this->getTemplate('preferences'), $params ); return $response; @@ -133,7 +129,7 @@ public function storePreferences(Request $request, Response $response): Response ->withStatus(301) ->withHeader( 'Location', - $this->router->pathFor('objectslend_preferences') + $this->routeparser->urlFor('objectslend_preferences') ); } } diff --git a/lib/GaletteObjectsLend/Controllers/PdfController.php b/lib/GaletteObjectsLend/Controllers/PdfController.php index cfbf983..fdbf1b7 100644 --- a/lib/GaletteObjectsLend/Controllers/PdfController.php +++ b/lib/GaletteObjectsLend/Controllers/PdfController.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2021 The Galette Team + * Copyright © 2021-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -24,11 +24,11 @@ * You should have received a copy of the GNU General Public License * along with Galette. If not, see . * - * @category Entity + * @category Controllers * @package Galette * * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -41,26 +41,23 @@ use GaletteObjectsLend\Repository\Objects; use GaletteObjectsLend\IO\PdfObject; use GaletteObjectsLend\IO\PdfObjects; -use Slim\Http\Request; -use Slim\Http\Response; -use Analog\Analog; +use Slim\Psr7\Request; +use Slim\Psr7\Response; /** * Galette objects lend PDF controller * * @category Controllers - * @name ImageController + * @name PdfController * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2021 The Galette Team + * @copyright 2021-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ class PdfController extends GPdfController { - private $lendsprefs; - /** * Object lends print object * @@ -123,7 +120,8 @@ public function printObjects(Request $request, Response $response): Response $this->preferences, $lendsprefs, $filters, - $this->login + $this->login, + $this->plugins ); $pdf->drawList($list); diff --git a/lib/GaletteObjectsLend/Entity/CategoryPicture.php b/lib/GaletteObjectsLend/Entity/CategoryPicture.php index 5cf43d3..8422694 100644 --- a/lib/GaletteObjectsLend/Entity/CategoryPicture.php +++ b/lib/GaletteObjectsLend/Entity/CategoryPicture.php @@ -8,7 +8,7 @@ * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -50,7 +50,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -62,10 +62,10 @@ class CategoryPicture extends Picture /** * Default constructor. * - * @param Plugins $plugins Plugins - * @param int $objectid Object id + * @param Plugins $plugins Plugins + * @param mixed|null $objectid Object id */ - public function __construct(Plugins $plugins, $objectid = '') + public function __construct(Plugins $plugins, $objectid = null) { $this->store_path = GALETTE_PHOTOS_PATH . 'objectslend/categories/'; parent::__construct($plugins, $objectid); diff --git a/lib/GaletteObjectsLend/Entity/LendCategory.php b/lib/GaletteObjectsLend/Entity/LendCategory.php index b90d60e..1a05281 100644 --- a/lib/GaletteObjectsLend/Entity/LendCategory.php +++ b/lib/GaletteObjectsLend/Entity/LendCategory.php @@ -4,12 +4,12 @@ /** * Public Class LendCategory - * Store informations about a lend category + * Store information about a lend category * * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -32,7 +32,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -40,10 +40,10 @@ namespace GaletteObjectsLend\Entity; use Analog\Analog; +use ArrayObject; use Galette\Core\Db; use Galette\Core\Plugins; use Laminas\Db\Sql\Predicate; -use GaletteObjectsLend\Entity\CategoryPicture; /** * Categories manageemnt @@ -54,9 +54,14 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu + * + * @property bool $is_active + * @property string $name + * @property int $category_id + * @property CategoryPicture $picture */ class LendCategory { @@ -136,7 +141,7 @@ public function __construct(Db $zdb, Plugins $plugins, $args = null, $deps = nul /** * Populate object from a resultset row * - * @param ResultSet $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ @@ -251,7 +256,7 @@ public function delete() /** * Get category name * - * @param boolea $count Whether to display count along with name (defaults to true) + * @param bool $count Whether to display count along with name (defaults to true) * * @return string */ @@ -269,15 +274,16 @@ public function getName($count = true) /** * Global getter method * - * @param string $name name of the property we want to retrive + * @param string $name name of the property we want to retrieve * - * @return false|object the called property + * @return mixed the called property */ public function __get($name) { switch ($name) { case 'objects_price_sum': return number_format($this->$name, 2, ',', ''); + case 'is_active': default: return $this->$name; } @@ -295,4 +301,66 @@ public function __set($name, $value) { $this->$name = $value; } + + /** + * Get object ID + * + * @return int + */ + public function getId(): int + { + return (int)$this->category_id; + } + + /** + * Is object active + * + * @return bool + */ + public function isActive(): bool + { + return (bool)$this->is_active; + } + + /** + * Get picture + * + * @return CategoryPicture + */ + public function getPicture(): CategoryPicture + { + return $this->picture; + } + + /** + * Get sum + * + * @return float + */ + public function getSum(): float + { + return $this->objects_price_sum; + } + + /** + * Get objects count + * + * @return int + */ + public function getObjectsNb(): int + { + return $this->objects_nb; + } + + /** + * Generic isset function + * + * @param $name Property name + * + * @return bool + */ + public function __isset($name) + { + return property_exists($this, $name); + } } diff --git a/lib/GaletteObjectsLend/Entity/LendObject.php b/lib/GaletteObjectsLend/Entity/LendObject.php index 653c7db..8cc0faa 100644 --- a/lib/GaletteObjectsLend/Entity/LendObject.php +++ b/lib/GaletteObjectsLend/Entity/LendObject.php @@ -4,12 +4,12 @@ /** * Public Class LendObject - * Store informations about an object to lend + * Store information about an object to lend * * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -32,7 +32,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2018 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -40,7 +40,7 @@ namespace GaletteObjectsLend\Entity; use Analog\Analog; -use Laminas\Db\Sql\Predicate; +use ArrayObject; use Galette\Core\Db; use Galette\Core\Plugins; use Galette\Entity\Adherent; @@ -56,9 +56,29 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu + * + * @property ?int $object_id + * @property ObjectPicture $picture + * @property string $name + * @property string $description + * @property string $serial_number + * @property float $price + * @property float $rent_price + * @property float $value_rent_price + * @property bool $price_per_day + * @property string $dimension + * @property float $weight + * @property bool $is_active + * @property string $cat_name + * @property string $status_text + * @property string $date_begin + * @property Adherent $member + * @property string $date_forecast + * @property array $rents + * @property int $category_id */ class LendObject { @@ -133,7 +153,7 @@ class LendObject * Default constructor * * @param Db $zdb Database instance - * @param Plugins $plugins Pluginsugins instance + * @param Plugins $plugins Plugins instance * @param int|object $args Maybe null, an RS object or an id from database * @param array $deps Dependencies configuration, see LendOb::$deps */ @@ -223,7 +243,7 @@ public function __construct(Db $zdb, Plugins $plugins, $args = null, $deps = nul /** * Populate object from a resultset row * - * @param ResultSet $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ @@ -244,7 +264,7 @@ private function loadFromRS($r) } else { $this->cat_active = false; } - if (property_exists($r, 'cat_name') && trim($r->cat_name) != '') { + if (property_exists($r, 'cat_name') && $r->cat_name) { $this->cat_name = $r->cat_name; } $this->category_id = $r->category_id; @@ -344,6 +364,10 @@ public function store() } else { $this->object_id = $this->zdb->driver->getLastGeneratedValue(); } + + if ($this->deps['picture'] === true) { + $this->picture = new ObjectPicture($this->plugins, (int)$this->object_id); + } } else { throw new \Exception(_T("Object has not been added :(", "objectslend")); } @@ -420,7 +444,7 @@ public static function getStatusForObject($object) */ public static function getMoreObjectsByIds($ids) { - global $zdb; + global $zdb, $plugins; $myids = array(); foreach ($ids as $id) { @@ -437,7 +461,7 @@ public static function getMoreObjectsByIds($ids) $rows = $zdb->execute($select); foreach ($rows as $r) { - $o = new self($r); + $o = new self($zdb, $plugins, $r); self::getStatusForObject($o); @@ -451,44 +475,23 @@ public static function getMoreObjectsByIds($ids) $e->getTraceAsString(), Analog::ERROR ); - return false; + throw $e; } } /** * Global getter method * - * @param string $name name of the property we want to retrive + * @param string $name name of the property we want to retrieve * - * @return false|object the called property + * @return mixed the called property */ public function __get($name) { switch ($name) { - case 'date_begin_ihm': - if ($this->date_begin == '' || $this->date_begin == null) { - return ''; - } - $dtb = new \DateTime($this->date_begin); - return $dtb->format('j M Y'); - case 'date_begin_short': - if ($this->date_begin == '' || $this->date_begin == null) { - return ''; - } - $dtb = new \DateTime($this->date_begin); - return $dtb->format('d/m/Y'); - case 'date_forecast_ihm': - if ($this->date_forecast == '' || $this->date_forecast == null) { - return ''; - } - $dtb = new \DateTime($this->date_forecast); - return $dtb->format('j M Y'); - case 'date_forecast_short': - if ($this->date_forecast == '' || $this->date_forecast == null) { - return ''; - } - $dtb = new \DateTime($this->date_forecast); - return $dtb->format('d/m/Y'); + case 'date_begin': + case 'date_forecast': + return $this->getDateField($name); case 'price': case 'rent_price': return number_format($this->$name, 2, ',', ' '); @@ -541,7 +544,7 @@ public function getCurrency() /** * Get current rent * - * @return LendRent + * @return LendRent|void */ public function getCurrentRent() { @@ -602,7 +605,7 @@ private function getHighlighted(ObjectsList $filters, $field) return $this->$field; } - $untokenized = trim($filters->filter_str, '%'); + $untokenized = trim($filters->filter_str ?? '', '%'); mb_internal_encoding('UTF-8'); return preg_replace( '/(' . $untokenized . ')/iu', @@ -677,7 +680,7 @@ public function delete() $this->zdb->connection->commit(); return true; } catch (\Exception $e) { - $zdb->connection->rollBack(); + $this->zdb->connection->rollBack(); Analog::log( 'Something went wrong :\'( | ' . $e->getMessage() . "\n" . $e->getTraceAsString(), @@ -700,4 +703,186 @@ public function clone() $this->picture = new ObjectPicture($this->plugins); return $this->store(); } + + /** + * Get ID + * + * @return int + */ + public function getId(): int + { + return (int)$this->object_id; + } + + /** + * Get name + * + * @return string + */ + public function getName(): string + { + return $this->name; + } + + /** + * Get picture + * + * @return ObjectPicture + */ + public function getPicture(): ObjectPicture + { + return $this->picture; + } + + /** + * Get price + * + * @return float + */ + public function getPrice(): float + { + return $this->price; + } + + /** + * Get rent price + * + * @return float + */ + public function getRentPrice(): float + { + return $this->rent_price; + } + + /** + * Is a price per day + * + * @return bool + */ + public function isPricePerDay(): bool + { + return $this->price_per_day; + } + + /** + * Get weight + * + * @return float + */ + public function getWeight(): float + { + return $this->weight; + } + + /** + * Get textual status + * + * @return mixed + */ + public function getStatusText() + { + return $this->status_text; + } + + /** + * Is in stock + * + * @return bool + */ + public function inStock(): bool + { + return $this->in_stock; + } + + /** + * Get localized begin date + * + * @return string + * @throws \Exception + */ + public function getDateBegin(): string + { + return $this->getDateField('date_begin'); + } + + /** + * Get localized forecast date + * + * @return string + * @throws \Exception + */ + public function getDateForecast(): string + { + return $this->getDateField('date_forecast'); + } + + /** + * Get member ID + * + * @return mixed + */ + public function getIdAdh() + { + return $this->id_adh; + } + + /** + * Get rent ID + * + * @return mixed + */ + public function getRentId() + { + return $this->rent_id; + } + + /** + * Get category ID + * + * @return mixed + */ + public function getCategoryId() + { + return $this->category_id; + } + + /** + * Get serial number + * + * @return string + */ + public function getSerialNumber() + { + return $this->serial_number; + } + + /** + * Get localized date field + * + * @param string $name Field name + * + * @return string + * @throws \Exception + */ + protected function getDateField($name): string + { + $date = $this->$name; + if ($date == '' || $date == null) { + return ''; + } + $datetime = new \DateTime($date); + return $datetime->format(_T('Y-m-d')); + } + + /** + * Generic isset function + * + * @param $name Property name + * + * @return bool + */ + public function __isset($name) + { + return property_exists($this, $name); + } } diff --git a/lib/GaletteObjectsLend/Entity/LendPDF.php b/lib/GaletteObjectsLend/Entity/LendPDF.php index 6efba04..d8767e3 100644 --- a/lib/GaletteObjectsLend/Entity/LendPDF.php +++ b/lib/GaletteObjectsLend/Entity/LendPDF.php @@ -9,7 +9,7 @@ * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -32,7 +32,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -40,6 +40,7 @@ namespace GaletteObjectsLend\Entity; use Galette\Core\Preferences as CorePreferences; +use Galette\Entity\PdfModel; /** * PDF creation @@ -50,7 +51,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -59,8 +60,8 @@ class LendPDF extends \Galette\IO\Pdf /** * Main constructor, set creator and author * - * @param Preferences $prefs Preferences - * @param PdfModel $model Related model + * @param CorePreferences $prefs Preferences + * @param PdfModel $model Related model */ public function __construct(CorePreferences $prefs, $model = null) { diff --git a/lib/GaletteObjectsLend/Entity/LendRent.php b/lib/GaletteObjectsLend/Entity/LendRent.php index e5b76c7..328fd43 100644 --- a/lib/GaletteObjectsLend/Entity/LendRent.php +++ b/lib/GaletteObjectsLend/Entity/LendRent.php @@ -4,12 +4,12 @@ /** * Public Class LendRent - * Store all informations about rent status and time of an object + * Store all information about rent status and time of an object * * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017-2020 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -32,7 +32,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @Copyright 2017-2020 The Galette Team + * @Copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -40,6 +40,7 @@ namespace GaletteObjectsLend\Entity; use Analog\Analog; +use ArrayObject; use Galette\Entity\Adherent; use Galette\Repository\Members; @@ -52,13 +53,27 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu + * + * @property integer $rent_id + * @property integer $object_id + * @property ?string $date_begin + * @property ?string $date_forecast + * @property ?string $date_end + * @property integer $status_id + * @property ?integer $adherent_id + * @property string $comments + * @property bool $in_stock + * @property string $status_text + * @property string $nom_adh + * @property string $prenom_adh + * @property string $pseudo_adh + * @property string $email_adh */ class LendRent { - public const TABLE = 'rents'; public const PK = 'rent_id'; @@ -90,9 +105,9 @@ class LendRent private $email_adh = ''; /** - * Construit un nouvel historique d'emprunt à partir de la BDD (à partir de son ID) ou vierge + * Default constructor * - * @param int|object $args Peut être null, un ID ou une ligne de la BDD + * @param mixed|null $args Either an int with rent id, null, or a resultset row */ public function __construct($args = null) { @@ -124,7 +139,7 @@ public function __construct($args = null) /** * Populate object from a resultset row * - * @param ResultSet $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ @@ -141,9 +156,9 @@ private function loadFromRS($r) } /** - * Enregistre l'élément en cours que ce soit en insert ou update + * Store current element * - * @return bool False si l'enregistrement a échoué, true si aucune erreur + * @return bool */ public function store() { @@ -212,7 +227,7 @@ public function store() * @param boolean $only_last Only retrieve last rent (for list display) * @param string $order Order clause, defaults to 'date_begin DESC' * - * @return LendRent[] Tableau d'objects emprunts + * @return array */ public static function getRentsForObjectId($object_id, $only_last = false, $order = 'date_begin desc') { @@ -260,7 +275,7 @@ public static function getRentsForObjectId($object_id, $only_last = false, $orde $e->getTraceAsString(), Analog::ERROR ); - return false; + throw $e; } } @@ -278,10 +293,12 @@ public static function closeAllRentsForObject($object_id, $comments) try { $select = $zdb->select(LEND_PREFIX . self::TABLE) - ->where(array( - 'object_id' => $object_id, - 'date_end' => null - )); + ->where( + array( + 'object_id' => $object_id, + 'date_end' => null + ) + ); $rows = $zdb->execute($select); foreach ($rows as $r) { @@ -303,15 +320,15 @@ public static function closeAllRentsForObject($object_id, $comments) } /** - * Renvoi une liste de tous les adhérents actifs triés par nom + * Get active members sorted by name * - * @return \Galette\Entity\Adherent[] Tableau des adhérents actifs triés par nom + * @return array */ public static function getAllActivesAdherents() { try { $filters = new \Galette\Filters\MembersList(); - $filters->account_status_filter = Members::ACTIVE_ACCOUNT; + $filters->filter_account = Members::ACTIVE_ACCOUNT; $members = new Members($filters); $adherents = $members->getMembersList( true, @@ -329,16 +346,16 @@ public static function getAllActivesAdherents() $e->getTraceAsString(), Analog::ERROR ); - return false; + throw $e; } } /** * Global getter method * - * @param string $name name of the property we want to retrive + * @param string $name name of the property we want to retrieve * - * @return false|object the called property + * @return mixed the called property */ public function __get($name) { @@ -350,7 +367,6 @@ public function __get($name) return $dt->format(_T('Y-m-d H:i', 'objectslend')); } return ''; - case 'date_begin_short': case 'date_forecast': if ($this->$name != '') { $dt = new \DateTime($this->$name); @@ -381,7 +397,6 @@ public function __set($name, $value) } break; case 'date_forecast': - case 'date_begin_short': case 'date_begin': case 'date_end': $fmt = "Y-m-d"; @@ -398,9 +413,9 @@ public function __set($name, $value) if ($d === false) { throw new \Exception('Incorrect format'); } - $this->$prop = $d->format($fmt); + $this->$name = $d->format($fmt); } - $this->$prop = $d->format($tfmt); + $this->$name = $d->format($fmt); } catch (\Exception $e) { $this->$name = null; Analog::log( @@ -414,4 +429,16 @@ public function __set($name, $value) break; } } + + /** + * Generic isset function + * + * @param $name Property name + * + * @return bool + */ + public function __isset($name) + { + return property_exists($this, $name); + } } diff --git a/lib/GaletteObjectsLend/Entity/LendStatus.php b/lib/GaletteObjectsLend/Entity/LendStatus.php index b81d6d6..2707ecb 100644 --- a/lib/GaletteObjectsLend/Entity/LendStatus.php +++ b/lib/GaletteObjectsLend/Entity/LendStatus.php @@ -4,12 +4,12 @@ /** * Public Class LendStatus - * Store informations about a lend status + * Store information about a lend status * * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017-2021 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -32,7 +32,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @Copyright 2017-2021 The Galette Team + * @Copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -40,6 +40,7 @@ namespace GaletteObjectsLend\Entity; use Analog\Analog; +use ArrayObject; use Galette\Core\Db; /** @@ -51,13 +52,18 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2021 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu + * + * @property integer $status_id + * @property string $status_text + * @property boolean $in_stock + * @property boolean $is_active + * @property integer $rent_day_number */ class LendStatus { - public const TABLE = 'status'; public const PK = 'status_id'; @@ -109,7 +115,7 @@ public function __construct(Db $zdb, $args = null) /** * Populate object from a resultset row * - * @param ResultSet $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ @@ -123,9 +129,9 @@ private function loadFromRS($r) } /** - * Enregistre l'élément en cours que ce soit en insert ou update + * Store current element * - * @return bool False si l'enregistrement a échoué, true si aucune erreur + * @return bool */ public function store() { @@ -178,11 +184,11 @@ public function store() } /** - * Renvoi tous les statuts actifs triés par nom + * Get all active statuses sorted by name * * @param Db $zdb Database instance * - * @return LendStatus[] La liste des statuts actifs triés + * @return array */ public static function getActiveStatuses(Db $zdb) { @@ -203,16 +209,16 @@ public static function getActiveStatuses(Db $zdb) $e->getTraceAsString(), Analog::ERROR ); - return false; + throw $e; } } /** - * Renvoi tous les statuts actifs considéré comme empruntés triés par nom + * Get all borrowed active statuses sorted by * * @param Db $zdb Database instance * - * @return LendStatus[] La liste des statuts actifs triés + * @return array */ public static function getActiveTakeAwayStatuses(Db $zdb) { @@ -233,7 +239,7 @@ public static function getActiveTakeAwayStatuses(Db $zdb) $e->getTraceAsString(), Analog::ERROR ); - return false; + throw $e; } } @@ -308,4 +314,16 @@ public function __set($name, $value) { $this->$name = $value; } + + /** + * Generic isset function + * + * @param $name Property name + * + * @return bool + */ + public function __isset($name) + { + return property_exists($this, $name); + } } diff --git a/lib/GaletteObjectsLend/Entity/ObjectPicture.php b/lib/GaletteObjectsLend/Entity/ObjectPicture.php index a8387ac..53ffdfe 100644 --- a/lib/GaletteObjectsLend/Entity/ObjectPicture.php +++ b/lib/GaletteObjectsLend/Entity/ObjectPicture.php @@ -8,7 +8,7 @@ * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -31,7 +31,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu * @since Available since 0.7 @@ -51,7 +51,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -63,10 +63,10 @@ class ObjectPicture extends Picture /** * Default constructor. * - * @param Plugins $plugins Plugins - * @param int $objectid Object id + * @param Plugins $plugins Plugins + * @param mixed|null $objectid Object id */ - public function __construct(Plugins $plugins, $objectid = '') + public function __construct(Plugins $plugins, $objectid = null) { $this->store_path = GALETTE_PHOTOS_PATH . 'objectslend/objects/'; parent::__construct($plugins, $objectid); diff --git a/lib/GaletteObjectsLend/Entity/Picture.php b/lib/GaletteObjectsLend/Entity/Picture.php index 213df4b..522b245 100644 --- a/lib/GaletteObjectsLend/Entity/Picture.php +++ b/lib/GaletteObjectsLend/Entity/Picture.php @@ -8,7 +8,7 @@ * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017-2018 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -31,7 +31,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -40,6 +40,8 @@ use Analog\Analog; use Galette\Core\Plugins; +use Slim\Psr7\Response; +use Slim\Psr7\Stream; /** * Picture handling @@ -50,14 +52,12 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ class Picture extends \Galette\Core\Picture { - protected $tbl_prefix = LEND_PREFIX; - protected $max_width = 800; protected $max_height = 800; @@ -67,16 +67,17 @@ class Picture extends \Galette\Core\Picture protected $thumb_optimal_height; protected $thumb_optimal_width; - protected $plugins; + protected Plugins $plugins; /** * Default constructor. * - * @param Plugins $plugins Plugins - * @param int $objectid Object id + * @param Plugins $plugins Plugins + * @param mixed|null $objectid Object id */ - public function __construct(Plugins $plugins, $objectid = '') + public function __construct(Plugins $plugins, $objectid = null) { + $this->tbl_prefix = LEND_PREFIX; $this->plugins = $plugins; if (!file_exists($this->store_path)) { @@ -103,7 +104,7 @@ public function __construct(Plugins $plugins, $objectid = '') } /** - * Gets the default picture to show, anyways + * Gets the default picture to show, anyway * * @see Logo::getDefaultPicture() * @@ -113,7 +114,7 @@ protected function getDefaultPicture() { $this->file_path = realpath( $this->plugins->getTemplatesPathFromName('Galette Objects Lend') . - '/../../webroot/images/default.png' + '/../../webroot/images/1f5bc.png' ); $this->format = 'png'; $this->mime = 'image/png'; @@ -123,12 +124,12 @@ protected function getDefaultPicture() /** * Display a thumbnail image, create it if necessary * - * @param Response $response Reponse + * @param Response $response Response * @param Preferences $prefs Preferences instance * - * @return void + * @return Response */ - public function displayThumb(\Slim\Http\Response $response, Preferences $prefs) + public function displayThumb(Response $response, Preferences $prefs) { $this->setThumbSizes($prefs); $response = $response->withHeader('Content-Type', $this->mime) @@ -141,7 +142,7 @@ public function displayThumb(\Slim\Http\Response $response, Preferences $prefs) fwrite($stream, file_get_contents($this->getThumbPath())); rewind($stream); - return $response->withBody(new \Slim\Http\Stream($stream)); + return $response->withBody(new Stream($stream)); } /** @@ -153,7 +154,7 @@ public function displayThumb(\Slim\Http\Response $response, Preferences $prefs) * @param string $dest the destination image. * If null, we'll use the source image. Defaults to null * - * @return void + * @return void|false */ private function createThumb($source, $ext, $dest = null) { @@ -209,9 +210,9 @@ private function createThumb($source, $ext, $dest = null) // calculate image size according to ratio if ($cur_width > $cur_height) { - $h = $w / $ratio; + $h = (int)($w / $ratio); } else { - $w = $h * $ratio; + $w = (int)($h * $ratio); } $thumb = imagecreatetruecolor($w, $h); @@ -272,12 +273,13 @@ public function delete($transaction = true) /** * Stores an image on the disk and in the database * - * @param object $file the uploaded file - * @param bool $ajax not used + * @param object $file the uploaded file + * @param bool $ajax not used + * @param array $cropping not used * * @return true|false result of the storage process */ - public function store($file, $ajax = false) + public function store($file, $ajax = false, $cropping = null) { $ext = strlen(pathinfo($this->file_path, PATHINFO_EXTENSION)) + 1; $filename = substr($this->file_path, 0, strlen($this->file_path) - strlen($ext)); @@ -351,8 +353,8 @@ public function getThumbPath() $filename .= '_th.' . $ext; } else { $this->getDefaultPicture(); - $filename = $this->file_path; $infos = pathinfo($this->file_path); + $filename = $this->store_path . '/' . $infos['filename'] . '_th' . '.' . $infos['extension']; } return $filename; } @@ -402,8 +404,8 @@ private function setThumbSizes(Preferences $prefs) } list($width, $height) = getimagesize($thumb); - $this->thumb_optimal_height = $height; - $this->thumb_optimal_width = $width; + $this->thumb_optimal_height = (int)$height; + $this->thumb_optimal_width = (int)$width; } /** @@ -418,7 +420,7 @@ public function getOptimalThumbHeight(Preferences $prefs) if (!$this->thumb_optimal_height) { $this->setThumbSizes($prefs); } - return round($this->thumb_optimal_height); + return (int)round($this->thumb_optimal_height, 1); } /** @@ -433,7 +435,7 @@ public function getOptimalThumbWidth(Preferences $prefs) if (!$this->thumb_optimal_width) { $this->setThumbSizes($prefs); } - return round($this->thumb_optimal_width); + return (int)round($this->thumb_optimal_width, 1); } /** diff --git a/lib/GaletteObjectsLend/Entity/Preferences.php b/lib/GaletteObjectsLend/Entity/Preferences.php index f4913a2..be20d49 100644 --- a/lib/GaletteObjectsLend/Entity/Preferences.php +++ b/lib/GaletteObjectsLend/Entity/Preferences.php @@ -9,7 +9,7 @@ * PHP version 5 * * Copyright © 2013-2016 Mélissa Djebel - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -32,7 +32,7 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @Copyright 2017-2020 The Galette Team + * @Copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu */ @@ -40,6 +40,7 @@ namespace GaletteObjectsLend\Entity; use Analog\Analog; +use Galette\Core\Db; use Laminas\Db\Sql\Predicate; /** @@ -51,17 +52,33 @@ * @author Mélissa Djebel * @author Johan Cwiklinski * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link https://galette.eu + * + * @property bool $ENABLE_MEMBER_RENT_OBJECT + * @property bool $AUTO_GENERATE_CONTRIBUTION + * @property int $GENERATED_CONTRIBUTION_TYPE_ID + * @property string $GENERATED_CONTRIB_INFO_TEXT + * @property bool $VIEW_CATEGORY + * @property bool $VIEW_SERIAL + * @property bool $VIEW_THUMBNAIL + * @property bool $VIEW_DESCRIPTION + * @property bool $VIEW_PRICE + * @property bool $VIEW_DIMENSION + * @property bool $VIEW_WEIGHT + * @property bool $VIEW_LEND_PRICE + * @property bool $VIEW_DATE_FORECAST + * @property bool $VIEW_LIST_PRICE_SUM + * @property int $THUMB_MAX_WIDTH + * @property int $THUMB_MAX_HEIGHT */ class Preferences { - public const TABLE = 'parameters'; public const PK = 'code'; - private $zdb; + private Db $zdb; private $prefs; /** @@ -168,7 +185,7 @@ class Preferences * * @return void */ - public function __construct($zdb, $load = true) + public function __construct(Db $zdb, $load = true) { $this->zdb = $zdb; if ($load) { diff --git a/lib/GaletteObjectsLend/Filters/CategoriesList.php b/lib/GaletteObjectsLend/Filters/CategoriesList.php index b09db1a..bab7d56 100644 --- a/lib/GaletteObjectsLend/Filters/CategoriesList.php +++ b/lib/GaletteObjectsLend/Filters/CategoriesList.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package Galette * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @version SVN: $Id$ * @link http://galette.tuxfamily.org @@ -40,6 +40,7 @@ use Analog\Analog; use Galette\Core\Pagination; use GaletteObjectsLend\Repository\Categories; +use Laminas\Db\Sql\Select; /** * Categories list filters and paginator @@ -49,9 +50,15 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org + * + * @property ?string $filter_str + * @property ?int $active_filter + * @property ?bool $not_empty + * @property ?ObjectsList $objects_filters + * @property string $query */ class CategoriesList extends Pagination @@ -107,9 +114,9 @@ public function reinit() /** * Global getter method * - * @param string $name name of the property we want to retrive + * @param string $name name of the property we want to retrieve * - * @return object the called property + * @return mixed the called property */ public function __get($name) { @@ -126,7 +133,7 @@ public function __get($name) return $this->$name; } else { Analog::log( - '[CategoriesList] Unable to get proprety `' . $name . '`', + '[CategoriesList] Unable to get property `' . $name . '`', Analog::WARNING ); } @@ -137,7 +144,7 @@ public function __get($name) * Global setter method * * @param string $name name of the property we want to assign a value to - * @param object $value a relevant value for the property + * @param mixed $value a relevant value for the property * * @return void */ @@ -168,8 +175,8 @@ public function __set($name, $value) default: Analog::log( '[CategoriesList] Value for active filter should be either ' . - Categories::ACTIVE . ' or ' . - Categories::INACTIVE . ' (' . $value . ' given)', + Categories::ALL_CATEGORIES . ', ' . Categories::ACTIVE_CATEGORIES . ' or ' . + Categories::INACTIVE_CATEGORIES . ' (' . $value . ' given)', Analog::WARNING ); break; @@ -190,11 +197,11 @@ public function __set($name, $value) * * @param Select $select Original select * - * @return + * @return void */ public function setLimit($select) { - return $this->setLimits($select); + $this->setLimits($select); } /** diff --git a/lib/GaletteObjectsLend/Filters/ObjectsList.php b/lib/GaletteObjectsLend/Filters/ObjectsList.php index 500a5a8..727afaa 100644 --- a/lib/GaletteObjectsLend/Filters/ObjectsList.php +++ b/lib/GaletteObjectsLend/Filters/ObjectsList.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package Galette * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @version SVN: $Id$ * @link http://galette.tuxfamily.org @@ -40,6 +40,7 @@ use Analog\Analog; use Galette\Core\Pagination; use GaletteObjectsLend\Repository\Objects; +use Laminas\Db\Sql\Select; /** * Objects list filters and paginator @@ -49,9 +50,16 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org + * + * @property ?string $filter_str + * @property ?int $category_filter + * @property ?int $active_filter + * @property ?int $field_filter + * @property array $selected + * @property string $query */ class ObjectsList extends Pagination @@ -107,16 +115,31 @@ public function reinit() $this->selected = array(); } + /** + * Default isset + * + * @param string $name Property name + * + * @return object|void + */ + public function __isset($name) + { + if (in_array($name, $this->objectslist_fields)) { + return true; + } + + return parent::__isset($name); + } + /** * Global getter method * - * @param string $name name of the property we want to retrive + * @param string $name name of the property we want to retrieve * - * @return object the called property + * @return mixed the called property */ public function __get($name) { - Analog::log( '[ObectsList] Getting property `' . $name . '`', Analog::DEBUG @@ -129,7 +152,7 @@ public function __get($name) return $this->$name; } else { Analog::log( - '[ObjectsList] Unable to get proprety `' . $name . '`', + '[ObjectsList] Unable to get property `' . $name . '`', Analog::WARNING ); } @@ -140,7 +163,7 @@ public function __get($name) * Global setter method * * @param string $name name of the property we want to assign a value to - * @param object $value a relevant value for the property + * @param mixed $value a relevant value for the property * * @return void */ @@ -193,8 +216,8 @@ public function __set($name, $value) default: Analog::log( '[ObjectsList] Value for active filter should be either ' . - Objects::ACTIVE . ' or ' . - Objects::INACTIVE . ' (' . $value . ' given)', + Objects::ACTIVE_OBJECTS . ', ' . Objects::ACTIVE_OBJECTS . ' or ' . + Objects::INACTIVE_OBJECTS . ' (' . $value . ' given)', Analog::WARNING ); break; @@ -229,11 +252,11 @@ public function __set($name, $value) * * @param Select $select Original select * - * @return + * @return void */ public function setLimit($select) { - return $this->setLimits($select); + $this->setLimits($select); } /** @@ -252,12 +275,12 @@ public function setCounter($c) /** * Set commons filters for templates * - * @param LendsPreferences $prefs Preferences instance - * @param Smarty $view Smarty template reference + * @param \GaletteObjectsLend\Entity\Preferences $prefs Preferences instance + * @param mixed $view Template reference * * @return void */ - public function setViewCommonsFilters($prefs, \Smarty $view) + public function setViewCommonsFilters($prefs, $view) { $prefs = $prefs->getPreferences(); @@ -272,9 +295,6 @@ public function setViewCommonsFilters($prefs, \Smarty $view) $options[Objects::FILTER_DIM] = _T("Dimensions", "objectslend"); } - $view->assign( - 'field_filter_options', - $options - ); + $view->getEnvironment()->addGlobal('field_filter_options', $options); } } diff --git a/lib/GaletteObjectsLend/Filters/StatusList.php b/lib/GaletteObjectsLend/Filters/StatusList.php index fd4885f..85255bf 100644 --- a/lib/GaletteObjectsLend/Filters/StatusList.php +++ b/lib/GaletteObjectsLend/Filters/StatusList.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package Galette * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @version SVN: $Id$ * @link http://galette.tuxfamily.org @@ -49,9 +49,14 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2018 The Galette Team + * @copyright 2018-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org + * + * @property ?string $filter_str + * @property ?int $active_filter + * @property ?int $stock_filter + * @property string $query */ class StatusList extends Pagination @@ -96,9 +101,9 @@ public function reinit() /** * Global getter method * - * @param string $name name of the property we want to retrive + * @param string $name name of the property we want to retrieve * - * @return object the called property + * @return mixed the called property */ public function __get($name) { @@ -115,7 +120,7 @@ public function __get($name) return $this->$name; } else { Analog::log( - '[StatusList] Unable to get proprety `' . $name . '`', + '[StatusList] Unable to get property `' . $name . '`', Analog::WARNING ); } @@ -126,7 +131,7 @@ public function __get($name) * Global setter method * * @param string $name name of the property we want to assign a value to - * @param object $value a relevant value for the property + * @param mixed $value a relevant value for the property * * @return void */ diff --git a/lib/GaletteObjectsLend/IO/PdfObject.php b/lib/GaletteObjectsLend/IO/PdfObject.php index b5aa71c..3abd94f 100644 --- a/lib/GaletteObjectsLend/IO/PdfObject.php +++ b/lib/GaletteObjectsLend/IO/PdfObject.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2018 The Galette Team + * Copyright © 2018-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2018 The Galette Team + * @copyright 2018-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -53,14 +53,13 @@ * @name PdfObject * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2018 The Galette Team + * @copyright 2018-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ class PdfObject extends Pdf { private $zdb; - private $prefs; private $lprefs; /** @@ -104,7 +103,7 @@ private function init() /** * Draw listed object cards * - * @param LendObject[] $objects Object list + * @param array $objects Object list * * @return void */ @@ -159,7 +158,7 @@ public function drawCard(LendObject $object) $this->addCell(_T("Description", "objectslend"), $object->description, $wpic); } if ($this->lprefs->{LPreferences::PARAM_VIEW_CATEGORY}) { - $this->addCell(_T("Category", "objectslend"), $object->cat_name, $wpic); + $this->addCell(_T("Category", "objectslend"), $object->cat_name ?? '', $wpic); } if ($this->lprefs->{LPreferences::PARAM_VIEW_SERIAL}) { $this->addCell(_T("Serial number", "objectslend"), $object->serial_number, $wpic); @@ -186,11 +185,11 @@ public function drawCard(LendObject $object) $this->addCell(_T("Weight", "objectslend"), $object->weight . ' ' . _T('Kg', 'objectslend'), $wpic); } $this->addCell(_T("Active", "objectslend"), $object->is_active ? 'X' : '', $wpic); - $this->addCell(_T("Location", "objectslend"), $object->status_text, $wpic); - $this->addCell(_T("Since", "objectslend"), $object->date_begin_ihm, $wpic); + $this->addCell(_T("Location", "objectslend"), $object->status_text ?? '', $wpic); + $this->addCell(_T("Since", "objectslend"), $object->date_begin, $wpic); $this->addCell(_T("Member", "objectslend"), $object->member->sname, $wpic); if ($this->lprefs->{LPreferences::PARAM_VIEW_DATE_FORECAST}) { - $this->addCell(_T("Return", "objectslend"), $object->date_forecast_ihm, $wpic); + $this->addCell(_T("Return", "objectslend"), $object->date_forecast, $wpic); } if ($this->GetY() < $hpic) { @@ -240,7 +239,7 @@ public function drawCard(LendObject $object) * * @return void */ - private function addCell($title, $value, $width) + private function addCell(string $title, string $value, int $width) { if ($width > 0) { $this->Cell($width, 0, ''); diff --git a/lib/GaletteObjectsLend/IO/PdfObjects.php b/lib/GaletteObjectsLend/IO/PdfObjects.php index a045538..a7a2f10 100644 --- a/lib/GaletteObjectsLend/IO/PdfObjects.php +++ b/lib/GaletteObjectsLend/IO/PdfObjects.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2018 The Galette Team + * Copyright © 2018-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2018 The Galette Team + * @copyright 2018-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -36,6 +36,7 @@ namespace GaletteObjectsLend\IO; use Galette\Core\Db; +use Galette\Core\Plugins; use Galette\IO\Pdf; use Galette\Core\Preferences; use Galette\Core\Login; @@ -51,7 +52,7 @@ * @name PDFObjects * @package GaletteObjectsLend * @author Johan Cwiklinski - * @copyright 2018 The Galette Team + * @copyright 2018-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -59,10 +60,11 @@ class PdfObjects extends Pdf { public const LIST_FONT = self::FONT_SIZE - 2; - private $zdb; + private Db $zdb; private $lendsprefs; private $filters; - private $login; + private Login $login; + private Plugins $plugins; /** * Main constructor, set creator and author @@ -72,19 +74,24 @@ class PdfObjects extends Pdf * @param LendPreferences $lendsprefs Plugin preferences * @param ObjectsList $filters Current filters * @param Login $login Login instance + * @param Plugins $plugins Plugins instance */ public function __construct( Db $zdb, Preferences $prefs, LendPreferences $lendsprefs, ObjectsList $filters, - Login $login + Login $login, + Plugins $plugins ) { parent::__construct($prefs); + //TRANS: this is a filename + $this->filename = _T('objects_cards', 'objectslend') . '.pdf'; $this->zdb = $zdb; $this->lendsprefs = $lendsprefs; $this->filters = $filters; $this->login = $login; + $this->plugins = $plugins; $this->init(); } @@ -142,7 +149,7 @@ public function Header() /** * Draw objects list * - * @param LendObject[] $objects List of objects + * @param array $objects List of objects * * @return void */ @@ -153,10 +160,6 @@ public function drawList($objects) $this->Ln(10); //for Header - if ($this->filters->category_filter > 0) { - $category = new LendCategory((int)$filters->category_filter); - } - // Header $this->SetFillColor(255, 255, 255); @@ -236,9 +239,9 @@ public function drawList($objects) $this->Cell($w_dimension, 0, $this->cut($object->dimension, $w_dimension), 'B', 0, 'L', $fill); $this->Cell($w_weight, 0, $this->cut($object->weight, $w_weight), 'B', 0, 'R', $fill); $this->Cell($w_status, 0, $this->cut($object->status_text, $w_status), 'B', 0, 'L', $fill); - $this->Cell($w_date, 0, $this->cut($object->date_begin_short, $w_date), 'B', 0, 'L', $fill); + $this->Cell($w_date, 0, $this->cut($object->date_begin, $w_date), 'B', 0, 'L', $fill); $this->Cell($w_adherent, 0, $this->cut($object->nom_adh . ' ' . $object->prenom_adh, $w_adherent), 'B', 0, 'L', $fill); - $this->Cell($w_date, 0, $this->cut($object->date_forecast_short, $w_date), 'B', 1, 'L', $fill); + $this->Cell($w_date, 0, $this->cut($object->date_forecast, $w_date), 'B', 1, 'L', $fill); if ($this->login->isAdmin() || $this->login->isStaff()) { $sum_price += (float)str_replace(array(',', ' '), array('.', ''), $object->price); @@ -262,7 +265,5 @@ public function drawList($objects) $this->Cell(0, 0, _T("Borrowed", "objectslend"), 0, 1); $this->Cell($w_price, 0, '', true); $this->Cell(0, 0, _T("Available", "objectslend"), 0, 1); - - $current_category = $object->category_id; } } diff --git a/lib/GaletteObjectsLend/PluginGaletteObjectslend.php b/lib/GaletteObjectsLend/PluginGaletteObjectslend.php new file mode 100644 index 0000000..375ccfa --- /dev/null +++ b/lib/GaletteObjectsLend/PluginGaletteObjectslend.php @@ -0,0 +1,173 @@ +. + * + * @category Plugins + * @package GaletteObjectsLend + * + * @author Johan Cwiklinski + * @copyright 2022-2023 The Galette Team + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version + * @version SVN: $Id$ + * @link http://galette.tuxfamily.org + * @since Available since 2.0.0dev - 2022-05-29 + */ + +namespace GaletteObjectsLend; + +use Galette\Core\Login; +use Galette\Entity\Adherent; +use Galette\Core\GalettePlugin; + +/** + * Plugin Galette Objects Lend + * + * @category Plugins + * @name PluginObjectsLend + * @package GaletteObjectsLend + * @author Johan Cwiklinski + * @copyright 2022-2023 The Galette Team + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version + * @link http://galette.tuxfamily.org + * @since Available since 2.0.0dev - 2022-05-29 + */ + +class PluginGaletteObjectslend extends GalettePlugin +{ + /** + * Extra menus entries + * + * @return array|array[] + */ + public static function getMenusContents(): array + { + /** @var Login $login */ + global $login; + $menus = []; + + $menus['galetteplugin_objectslends'] = [ + 'title' => _T("Objects lend", "objectslend"), + 'icon' => 'briefcase', + 'items' => [ + [ + 'label' => _T("Objects list", "objectslend"), + 'route' => [ + 'name' => 'objectslend_objects', + 'aliases' => [ + 'objectslend_object_add', + 'objectslend_object_edit', + 'objectslend_show_object_lend', + 'objectslend_object_take' + ] + ] + ], + ] + ]; + + if ($login->isAdmin() || $login->isStaff()) { + $menus['galetteplugin_objectslends']['items'] = array_merge( + $menus['galetteplugin_objectslends']['items'], + [ + [ + 'label' => _T("Borrow status", "objectslend"), + 'route' => [ + 'name' => 'objectslend_statuses', + 'aliases' => ['objectslend_status_add', 'objectslend_status_edit'] + ] + ], + [ + 'label' => _T("Object categories", "objectslend"), + 'route' => [ + 'name' => 'objectslend_categories', + 'aliases' => ['objectslend_category_add', 'objectslend_category_edit'] + ] + ], + [ + 'label' => _T("Preferences", "objectslend"), + 'route' => [ + 'name' => 'objectslend_preferences' + ] + ] + ] + ); + } + + return $menus; + } + + /** + * Extra public menus entries + * + * @return array|array[] + */ + public static function getPublicMenusItemsList(): array + { + return []; + } + + /** + * Get dashboards contents + * + * @return array|array[] + */ + public static function getDashboardsContents(): array + { + return []; + } + + /** + * Get actions contents + * + * @param Adherent $member Member instance + * + * @return array|array[] + */ + public static function getListActionsContents(Adherent $member): array + { + return []; + } + + /** + * Get detailed actions contents + * + * @param Adherent $member Member instance + * + * @return array|array[] + */ + public static function getDetailedActionsContents(Adherent $member): array + { + return static::getListActionsContents($member); + } + + /** + * Get batch actions contents + * + * @return array|array[] + */ + public static function getBatchActionsContents(): array + { + return []; + } +} diff --git a/lib/GaletteObjectsLend/Repository/Categories.php b/lib/GaletteObjectsLend/Repository/Categories.php index ac8fc07..b0f9a3f 100644 --- a/lib/GaletteObjectsLend/Repository/Categories.php +++ b/lib/GaletteObjectsLend/Repository/Categories.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2017 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package Galette * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2017-02-10 @@ -36,6 +36,7 @@ namespace GaletteObjectsLend\Repository; +use ArrayObject; use Galette\Entity\DynamicFields; use Analog\Analog; use Galette\Core\Db; @@ -49,6 +50,7 @@ use GaletteObjectsLend\Entity\LendObject; use Galette\Core\Login; use Galette\Core\Plugins; +use Laminas\Db\Sql\Select; /** * Categories list @@ -58,7 +60,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -78,7 +80,10 @@ class Categories private $filters = false; private $count = null; private $errors = array(); - private $plugins; + + private Db $zdb; + private Plugins $plugins; + private Login $login; /** * Default constructor @@ -103,7 +108,7 @@ public function __construct(Db $zdb, Login $login, Plugins $plugins, CategoriesL /** - * Get members list + * Get categories list * * @param boolean $as_cat return the results as an array of * Categories object. @@ -113,7 +118,7 @@ public function __construct(Db $zdb, Login $login, Plugins $plugins, CategoriesL * @param boolean $count true if we want to count members * @param boolean $limit true if we want records pagination * - * @return LendObject[]|ResultSet + * @return array|ArrayObject */ public function getCategoriesList( $as_cat = false, @@ -146,6 +151,7 @@ public function getCategoriesList( 'Cannot list categories | ' . $e->getMessage(), Analog::WARNING ); + throw $e; } } @@ -158,7 +164,7 @@ public function getCategoriesList( * an array. If null, all fields will be * returned * - * @return LendCategory[]|ResultSet + * @return array|ArrayObject */ public function getList($as_cat = false, $fields = null) { @@ -220,12 +226,12 @@ private function buildSelect($fields, $count = false) 'Cannot build SELECT clause for categories | ' . $e->getMessage(), Analog::WARNING ); - return false; + throw $e; } } /** - * Count members from the query + * Count categories from the query * * @param Select $select Original select * @@ -264,6 +270,7 @@ private function proceedCount($select) $results = $this->zdb->execute($countSelect); + //@phpstan-ignore-next-line $this->count = $results->current()->count; if (isset($this->filters) && $this->count > 0) { $this->filters->setCounter($this->count); @@ -273,7 +280,7 @@ private function proceedCount($select) 'Cannot count categories | ' . $e->getMessage(), Analog::WARNING ); - return false; + throw $e; } } @@ -281,9 +288,9 @@ private function proceedCount($select) * Builds the order clause * * @param array $fields Fields list to ensure ORDER clause - * references selected fields. Optionnal. + * references selected fields. Optional. * - * @return string SQL ORDER clause + * @return array SQL ORDER clauses */ private function buildOrderClause($fields = null) { @@ -351,17 +358,18 @@ private function buildWhereClause($select) __METHOD__ . ' | ' . $e->getMessage(), Analog::WARNING ); + throw $e; } } /** - * Is field allowed to order? it shoulsd be present in + * Is field allowed to order? it should be present in * provided fields list (those that are SELECT'ed). * * @param string $field_name Field name to order by * @param array $fields SELECTE'ed fields * - * @return boolean + * @return bool */ private function canOrderBy($field_name, $fields) { diff --git a/lib/GaletteObjectsLend/Repository/Objects.php b/lib/GaletteObjectsLend/Repository/Objects.php index 62189dc..0899772 100644 --- a/lib/GaletteObjectsLend/Repository/Objects.php +++ b/lib/GaletteObjectsLend/Repository/Objects.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2017-2018 The Galette Team + * Copyright © 2017-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package Galette * * @author Johan Cwiklinski - * @copyright 2017 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2017-02-10 @@ -36,12 +36,13 @@ namespace GaletteObjectsLend\Repository; +use ArrayObject; use Galette\Entity\DynamicFields; use Analog\Analog; use Galette\Core\Db; +use Laminas\Db\ResultSet\ResultSet; use Laminas\Db\Sql\Expression; use Galette\Entity\Adherent; -use Galette\Repository\Repository; use GaletteObjectsLend\Filters\ObjectsList; use GaletteObjectsLend\Entity\Preferences; use GaletteObjectsLend\Entity\LendObject; @@ -49,6 +50,7 @@ use GaletteObjectsLend\Entity\LendRent; use GaletteObjectsLend\Entity\LendStatus; use Galette\Core\Plugins; +use Laminas\Db\Sql\Select; /** * Objects list @@ -58,7 +60,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2017-2018 The Galette Team + * @copyright 2017-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -86,11 +88,13 @@ class Objects public const ORDERBY_FDATE = 7; public const ORDERBY_MEMBER = 8; + private Db $zdb; + private $filters = false; private $count = null; private $errors = array(); - private $prefs; - private $plugins; + private Preferences $prefs; + private Plugins $plugins; /** * Default constructor @@ -125,7 +129,7 @@ public function __construct(Db $zdb, Plugins $plugins, Preferences $lprefs, Obje * @param boolean $limit true if we want records pagination * @param boolean $all_rents true to load rents along with objects * - * @return LendObject[]|ResultSet + * @return array|ArrayObject */ public function getObjectsList( $as_objects = false, @@ -172,32 +176,40 @@ public function getObjectsList( * * @param array $ids Objects identifiers to delete * - * @return boolean + * @return bool */ public function removeObjects(array $ids) { try { $this->zdb->connection->beginTransaction(); + $update = $this->zdb->update(LEND_PREFIX . self::TABLE); + $update->set(['rent_id' => null]); + $update->where->in( + self::PK, + $ids + ); + $this->zdb->execute($update); + $delete = $this->zdb->delete(LEND_PREFIX . LendRent::TABLE); $delete->where->in( self::PK, $ids ); - $result = $this->zdb->execute($delete); + $this->zdb->execute($delete); $delete = $this->zdb->delete(LEND_PREFIX . self::TABLE); $delete->where->in( self::PK, $ids ); - $result = $this->zdb->execute($delete); + $this->zdb->execute($delete); $this->zdb->connection->commit(); return true; } catch (\Exception $e) { $this->zdb->connection->rollBack(); - if ($e->getCode() == 23000) { + if ($this->zdb->isForeignKeyException($e)) { Analog::log( 'Object mays still have existing dependencies in the ' . 'database.' . @@ -222,7 +234,7 @@ public function removeObjects(array $ids) * * @param array $ids List of objects id to disable * - * @return boolean + * @return ResultSet */ public function disableObjects(array $ids) { @@ -232,7 +244,7 @@ public function disableObjects(array $ids) self::PK, $ids ); - $result = $this->zdb->execute($update); + $results = $this->zdb->execute($update); return $results; } @@ -245,7 +257,7 @@ public function disableObjects(array $ids) * an array. If null, all fields will be * returned * - * @return LendObject[]|ResultSet + * @return array|ArrayObject */ public function getList($as_objects = false, $fields = null) { @@ -323,7 +335,7 @@ private function buildSelect($fields, $count = false) 'Cannot build SELECT clause for objects | ' . $e->getMessage(), Analog::WARNING ); - return false; + throw $e; } } @@ -378,7 +390,7 @@ private function proceedCount($select) 'Cannot count objects | ' . $e->getMessage(), Analog::WARNING ); - return false; + throw $e; } } @@ -388,7 +400,7 @@ private function proceedCount($select) * @param array $fields Fields list to ensure ORDER clause * references selected fields. Optionnal. * - * @return string[] SQL ORDER clause + * @return array SQL ORDER clauses */ private function buildOrderClause($fields = null) { @@ -450,7 +462,7 @@ private function buildOrderClause($fields = null) * * @param Select $select Original select * - * @return string SQL WHERE clause + * @return void */ public function buildWhereClause($select) { @@ -526,11 +538,12 @@ public function buildWhereClause($select) __METHOD__ . ' | ' . $e->getMessage(), Analog::WARNING ); + throw $e; } } /** - * Is field allowed to order? it shoulsd be present in + * Is field allowed to order? it should be present in * provided fields list (those that are SELECT'ed). * * @param string $field_name Field name to order by diff --git a/lib/GaletteObjectsLend/Repository/Status.php b/lib/GaletteObjectsLend/Repository/Status.php index fa6d97b..6aaaec1 100644 --- a/lib/GaletteObjectsLend/Repository/Status.php +++ b/lib/GaletteObjectsLend/Repository/Status.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright © 2018 The Galette Team + * Copyright © 2018-2023 The Galette Team * * This file is part of Galette (http://galette.tuxfamily.org). * @@ -28,7 +28,7 @@ * @package Galette * * @author Johan Cwiklinski - * @copyright 2018 The Galette Team + * @copyright 2018-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org * @since 2018-01-07 @@ -36,6 +36,7 @@ namespace GaletteObjectsLend\Repository; +use ArrayObject; use Galette\Entity\DynamicFields; use Analog\Analog; use Galette\Core\Db; @@ -48,6 +49,7 @@ use GaletteObjectsLend\Entity\LendRent; use GaletteObjectsLend\Entity\LendStatus; use Galette\Core\Login; +use Laminas\Db\Sql\Select; /** * Status list @@ -57,7 +59,7 @@ * @package GaletteObjectsLend * * @author Johan Cwiklinski - * @copyright 2018 The Galette Team + * @copyright 2018-2023 The Galette Team * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version * @link http://galette.tuxfamily.org */ @@ -82,6 +84,9 @@ class Status public const ORDERBY_STOCK = 3; public const ORDERBY_RENTDAYS = 4; + private Db $zdb; + private Login $login; + private $filters = false; private $count = null; private $errors = array(); @@ -117,7 +122,7 @@ public function __construct(Db $zdb, Login $login, StatusList $filters = null) * @param boolean $count true if we want to count members * @param boolean $limit true if we want records pagination * - * @return LendStatus[]|ResultSet + * @return array|ArrayObject */ public function getStatusList( $as_stt = false, @@ -150,6 +155,7 @@ public function getStatusList( 'Cannot list categories | ' . $e->getMessage(), Analog::WARNING ); + throw $e; } } @@ -162,7 +168,7 @@ public function getStatusList( * an array. If null, all fields will be * returned * - * @return LendStatus[]|ResultSet + * @return LendStatus[]|ArrayObject */ public function getList($as_stt = false, $fields = null) { @@ -209,7 +215,7 @@ private function buildSelect($fields, $photos, $count = false) 'Cannot build SELECT clause for objectslend status | ' . $e->getMessage(), Analog::WARNING ); - return false; + throw $e; } } @@ -242,6 +248,7 @@ private function proceedCount($select) $results = $this->zdb->execute($countSelect); + //@phpstan-ignore-next-line $this->count = $results->current()->count; if (isset($this->filters) && $this->count > 0) { $this->filters->setCounter($this->count); @@ -251,7 +258,7 @@ private function proceedCount($select) 'Cannot count objectslend status | ' . $e->getMessage(), Analog::WARNING ); - return false; + throw $e; } } @@ -259,9 +266,9 @@ private function proceedCount($select) * Builds the order clause * * @param array $fields Fields list to ensure ORDER clause - * references selected fields. Optionnal. + * references selected fields. Optional. * - * @return string SQL ORDER clause + * @return array SQL ORDER clauses */ private function buildOrderClause($fields = null) { @@ -302,7 +309,7 @@ private function buildOrderClause($fields = null) * * @param Select $select Original select * - * @return string SQL WHERE clause + * @return void */ private function buildWhereClause($select) { diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..c518327 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,17 @@ +parameters: + parallel: + maximumNumberOfProcesses: 2 + level: 3 + paths: + - lib/ + scanFiles: + - _config.inc.php + - ../../config/paths.inc.php + - ../../config/config.inc.php.dist + - ../../config/galette_tcpdf_config.php + scanDirectories: + - ../../includes/ + - ../../lib/ + ignoreErrors: + - '/Cannot access property .* on .*ArrayObject.*/' + - '/Access to an undefined property ArrayObject.*/' diff --git a/templates/default/admin_picture.tpl b/templates/default/admin_picture.tpl deleted file mode 100644 index 8eb2097..0000000 --- a/templates/default/admin_picture.tpl +++ /dev/null @@ -1,24 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} -
-
- - - - - {include file="forms_types/csrf.tpl"} -
-
-{/block} diff --git a/templates/default/categories_list.html.twig b/templates/default/categories_list.html.twig new file mode 100644 index 0000000..4efb1c2 --- /dev/null +++ b/templates/default/categories_list.html.twig @@ -0,0 +1,144 @@ +{% extends 'elements/list.html.twig' %} +{% import "macros.twig" as macros %} + +{% set nb = nb_categories %} + +{% set form = { + 'order': { + 'name': 'objectslend_categories' + } +} %} + +{% block infoline %} + {% set infoline = { + 'label': _Tn("%count category", "%count categories", nb, "events")|replace({"%count": nb}), + } %} + {{ parent() }} +{% endblock %} + +{% block infoline_actions %} + + + {{ _T("Add a category", "objectslend") }} + +{% endblock %} + +{% block header %} + {% set columns = [ + {'label': '#'}, + {'label': _T("Name", "objectslend"), order: constant('GaletteObjectsLend\\Repository\\Categories::ORDERBY_NAME')}, + {'label': _T("Active", "objectslend")}, + ] %} + {{ parent() }} +{% endblock %} + +{% block search %} +
+
+
+
+ + +
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ + +
+
+
+ {% include "components/forms/csrf.html.twig" %} +
+{% endblock %} + +{% block body %} + {% for categ in categories %} + + + {{ categ.category_id }} + + + {% if olendsprefs.imagesInLists() %} + + {% endif %} + {{ categ.name }} + + + + {% if categ.is_active %}{{ _T("Active", "objectslend") }}{% else %}{{ _T("Inactive", "objectslend") }}{% endif %} + + {% if login.isAdmin() or login.isStaff() %} + + {% set actions = [ + { + 'label': _T("Edit \"%category\"", "objectslend")|replace({"%category": categ.name}), + 'route': { + 'name': 'objectslend_category_edit', + 'args': {'id': categ.category_id} + }, + 'icon': 'edit' + } + ] %} + + {% if login.isAdmin() %} + {% set actions = actions|merge([ + { + 'label': _T("Remove \"%category\"", "events")|replace({"%category": categ.name}), + 'route': { + 'name': 'objectslend_remove_category', + 'args': {'id': categ.category_id} + }, + 'icon': 'trash red', + 'extra_class': 'delete' + } + ]) %} + {% endif %} + + {% for action in actions %} + {{ macros.drawListAction(action.label, action.route, action.icon, action.extra_class|default('')) }} + {% endfor %} + + {% endif %} + + {% else %} + + {{ _T("No category", "objectslend") }} + + {% endfor %} + +{% endblock %} diff --git a/templates/default/categories_list.tpl b/templates/default/categories_list.tpl deleted file mode 100644 index 83cbb56..0000000 --- a/templates/default/categories_list.tpl +++ /dev/null @@ -1,122 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} -
-
- -   - {_T string="Active:" domain="objectslend"} - active_filter eq constant('GaletteObjectsLend\Repository\Categories::ALL_CATEGORIES')} checked="checked"{/if}> - - active_filter eq constant('GaletteObjectsLend\Repository\Categories::ACTIVE_CATEGORIES')} checked="checked"{/if}> - - active_filter eq constant('GaletteObjectsLend\Repository\Categories::INACTIVE_CATEGORIES')} checked="checked"{/if}> - - - -
-
- {$nb_categories} {if $nb_categories != 1}{_T string="categories" domain="objectslend"}{else}{_T string="category" domain="objectslend"}{/if} -
- - - - {include file="forms_types/csrf.tpl"} -
-
-
- - - - - - - - - - - - - - - - {foreach from=$categories item=categ} - - - - - {if $login->isAdmin() || $login->isStaff()} - - {/if} - - {foreachelse} - - - - {/foreach} - -
  - "order", "value" => "GaletteObjectsLend\Repository\Categories::ORDERBY_NAME"|constant]}"> - {_T string="Name" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Categories::ORDERBY_NAME')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\CategoriesList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - {_T string="Active"} - - {_T string="Actions"} -
- {_T string="Pages:"}
-
    {$pagination}
-
- {$categ->category_id} - - {if $olendsprefs->imagesInLists()} - "category", "mode" => "thumbnail", "id" => $categ->category_id]}" - class="picture" - width="{$categ->picture->getOptimalThumbWidth($olendsprefs)}" - height="{$categ->picture->getOptimalThumbHeight($olendsprefs)}" - alt=""/> - {/if} - {$categ->name} - - - {_T string="Active"} - - $categ->category_id]}" - title="{_T string="Edit \"%category\"" pattern="/%category/" domain="objectslend" replace=$categ->name}" - > - - {_T string="Edit \"%category\"" pattern="/%category/" domain="objectslend" replace=$categ->name} - - {if $login->isAdmin()} - $categ->category_id]}" - title="{_T string="Remove \"%category\"" domain="objectslend" pattern="/%category/" replace=$categ->name}" - > - - {_T string="Remove \"%category\"" domain="objectslend" pattern="/%category/" replace=$categ->name} - - {/if} -
{_T string="No category" domain="objectslend"}
-{/block} - -{block name="javascripts"} - -{/block} diff --git a/templates/default/category_edit.html.twig b/templates/default/category_edit.html.twig new file mode 100644 index 0000000..977613a --- /dev/null +++ b/templates/default/category_edit.html.twig @@ -0,0 +1,55 @@ +{% extends "page.html.twig" %} + +{% block content %} +
+
+
+ + {{ _T("Category", "objectslend") }} +
+
+ {% include "components/forms/text.html.twig" with { + id: 'name', + value: category.name, + label: _T("Name", "objectslend"), + required: true + } %} + + {% include "components/forms/checkbox.html.twig" with { + id: 'is_active', + value: 1, + label: _T("Is active", "objectslend"), + checked: category.is_active + } %} + +
+ + {{ _T( +
+ {% if category.picture.hasPicture() %} + {% include "components/forms/checkbox.html.twig" with { + id: 'del_photo', + value: 1, + label: _T("Delete image"), + required: false + } %} + {% endif %} + +
+
+
+ +
+ + + {% include "components/forms/csrf.html.twig" %} +
+
+{% endblock %} diff --git a/templates/default/category_edit.tpl b/templates/default/category_edit.tpl deleted file mode 100644 index ee01df2..0000000 --- a/templates/default/category_edit.tpl +++ /dev/null @@ -1,52 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} -
$category->category_id]}{else}{path_for name="objectslend_category_action_add"}{/if}" method="post" enctype="multipart/form-data"> - -
-
- {_T string="Category" domain="objectslend"} -
-

- {_T string="Name" domain="objectslend"} - -

-
-
-

- - is_active} checked="checked"{/if}> -

-
-
-

-

-
-
-

- {_T string="Picture:" domain="objectslend"} - "category", "mode" => "thumbnail", "id" => $category->category_id]}{else}{path_for name="objectslend_photo" data=["type" => "category", "mode" => "thumbnail"]}{/if}?rand={$time}" - class="picture" - width="{$category->picture->getOptimalThumbWidth($olendsprefs)}" - height="{$category->picture->getOptimalThumbHeight($olendsprefs)}" - alt="{_T string="Category photo" domain="objectslend"}"/>
- {if $category->picture->hasPicture()} -
- {/if} - - -

-
-
-
-
- - - {_T string="Back to list" domain="objectslend"} - - {include file="forms_types/csrf.tpl"} -
-
-{/block} diff --git a/templates/default/headers.html.twig b/templates/default/headers.html.twig new file mode 100644 index 0000000..0e45173 --- /dev/null +++ b/templates/default/headers.html.twig @@ -0,0 +1,27 @@ +{% if olendsprefs is defined and olendsprefs.showFullsize() %} + +{% endif %} + diff --git a/templates/default/headers.tpl b/templates/default/headers.tpl deleted file mode 100644 index 408b35a..0000000 --- a/templates/default/headers.tpl +++ /dev/null @@ -1,22 +0,0 @@ - $module_id, "path" => "galette_lend.css"]}" media="screen"/> -{if isset($olendsprefs) && $olendsprefs->showFullsize()} - $module_id, "path" => "featherlight-1.7.0/featherlight.min.css"]}" media="screen"/> - - -{/if} - diff --git a/templates/default/list_lent_object.html.twig b/templates/default/list_lent_object.html.twig new file mode 100644 index 0000000..47aabd5 --- /dev/null +++ b/templates/default/list_lent_object.html.twig @@ -0,0 +1,43 @@ +{% extends 'elements/list.html.twig' %} + +{% set nb = rents|length %} +{% set no_action = true %} +{% set is_paginated = false %} + +{% block infoline %} +{% endblock %} + +{% block header %} + {% set columns = [ + {'label': _T("Id", "objectslend")}, + {'label': _T("Status", "objectslend")}, + {'label': _T("Begin date", "objectslend")}, + {'label': _T("End date", "objectslend")}, + {'label': _T("Return", "objectslend")}, + {'label': _T("Name", "objectslend")}, + {'label': _T("Comments", "objectslend")}, + ] %} + + {{ parent() }} +{% endblock %} + +{% block body %} + {% set dformat = _T("Y-m-d") %} + {% for rent in rents %} + + {{ rent.rent_id }} + {{ rent.status_text }}{% if rent.in_stock %} ({{ _T("In stock", "objectslend") }}){% endif %} + {{ rent.date_begin }} + {{ rent.date_forecast }} + {{ rent.date_end }} + + {{ rent.nom_adh }} {{ rent.prenom_adh }} + + {{ rent.comments }} + + {% else %} + + {{ _T("No lend found", "objectslend") }} + + {% endfor %} +{% endblock %} diff --git a/templates/default/list_lent_object.tpl b/templates/default/list_lent_object.tpl deleted file mode 100644 index 78d1ca7..0000000 --- a/templates/default/list_lent_object.tpl +++ /dev/null @@ -1,52 +0,0 @@ -{if $ajax} - {assign var="extend" value="ajax.tpl"} -{else} - {assign var="extend" value="page.tpl"} -{/if} -{extends file=$extend} -{block name="content"} - {assign var=dformat value={_T string="Y-m-d"}} -
- - - - - - - - - - - - - - {foreach from=$rents item=rent name=rentlist} - - - - - - - - - - {foreachelse} - - - - {/foreach} - -
{_T string="Id" domain="objectslend"}{_T string="Status" domain="objectslend"}{_T string="Begin date" domain="objectslend"}{_T string="End date" domain="objectslend"}{_T string="Return" domain="objectslend"}{_T string="Name" domain="objectslend"}{_T string="Comments" domain="objectslend"}
{$rent->rent_id}{$rent->status_text}{if $rent->in_stock} ({_T string="In stock" domain="objectslend"}){/if}{$rent->date_begin|date_format:$dformat}{$rent->date_forecast|date_format:$dformat}{$rent->date_end|date_format:$dformat} - {$rent->nom_adh} {$rent->prenom_adh} - {$rent->comments}
{_T string="No lend found" domain="objectslend"}
-
-{if !$ajax} - -{/if} -{/block} diff --git a/templates/default/menu.tpl b/templates/default/menu.tpl deleted file mode 100644 index a62a6a7..0000000 --- a/templates/default/menu.tpl +++ /dev/null @@ -1,38 +0,0 @@ -{if $login->isLogged()} -

- {_T string="Objects lend" domain="objectslend"} -

- -{/if} diff --git a/templates/default/objects_edit.html.twig b/templates/default/objects_edit.html.twig new file mode 100644 index 0000000..e627df0 --- /dev/null +++ b/templates/default/objects_edit.html.twig @@ -0,0 +1,220 @@ +{% extends 'page.html.twig' %} + +{% block content %} +
+
+
+ + {{ _T("Object", "objectslend") }} +
+
+ {% include "components/forms/text.html.twig" with { + id: 'name', + value: object.name, + label: _T("Name:", "objectslend"), + required: true + } %} + + {% include "components/forms/text.html.twig" with { + id: 'description', + value: object.description, + label: _T("Description:", "objectslend") + } %} + + {% if lendsprefs.VIEW_CATEGORY %} + {% set category_list_values = {(0): _T("--- Select a category ---", "objectslend")} %} + {% for categ in categories %} + {% set category_list_values = category_list_values + {(categ.getId()): categ.getName()} %} + {% endfor %} + + {% include "components/forms/select.html.twig" with { + id: 'category_id', + value: object.getCategoryId(), + values: category_list_values, + label: _T("Category:", "objectslend") + } %} + + {% endif %} + + {% include "components/forms/text.html.twig" with { + id: 'serial', + value: object.getSerialNumber(), + label: _T("Serial number:", "objectslend") + } %} + + {% include "components/forms/text.html.twig" with { + id: 'price', + value: object.price, + label: _T("Price:", "objectslend"), + rightlabel: object.getCurrency() + } %} + + {% include "components/forms/text.html.twig" with { + id: 'rent_price', + value: object.rent_price, + label: _T("Borrow price:", "objectslend"), + rightlabel: object.getCurrency() + } %} + + {% include "components/forms/checkbox.html.twig" with { + id: 'price_per_day', + value: 1, + label: _T("Price per rental day:", "objectslend"), + tip: _T("The price applies on each rental day if checked, only once otherwise", "objectslend"), + checked: object.price_per_day + } %} + + {% include "components/forms/text.html.twig" with { + id: 'dimension', + value: object.dimension, + label: _T("Dimensions:", "objectslend"), + rightlabel: _T("Cm", "objectslend") + } %} + + {% include "components/forms/text.html.twig" with { + id: 'weight', + value: object.weight, + label: _T("Weight:", "objectslend"), + rightlabel: _T("Kg", "objectslend") + } %} + + {% include "components/forms/checkbox.html.twig" with { + id: 'is_active', + value: 1, + label: _T("Active:", "objectslend"), + checked: object.is_active + } %} + + + {% if not object.object_id %} + {% set state_list_values = {(0): _T("--- Select a status ---", "objectslend")} %} + {% for sta in statuses %} + {% set state_list_values = state_list_values + {(sta.status_id): sta.status_text} %} + {% endfor %} + + {% include "components/forms/select.html.twig" with { + id: '1st_status', + value: '', + values: state_list_values, + label: _T("Where is the object?", "objectslend") + } %} + {% endif %} +
+
+ +
+
+ + {{ _T("Object's photo", "objectslend") }} +
+
+ {{ _T( +
+ {% if object.picture.hasPicture() %} + {% include "components/forms/checkbox.html.twig" with { + id: 'del_picture', + value: 1, + label: _T("Delete image"), + required: false + } %} + {% endif %} +
+ + +
+
+
+ +
+ + {%if object.object_id != '' %} + + {{ _T("Duplicate", "objectslend") }} + + + {{ _T("Print object", "objectslend") }} + + {% endif %} + +
+ {% include "components/forms/csrf.html.twig" %} +
+ + {% if object.getId() %} +
+
+ + {{ _T("History", "objectslend") }} +
+
+ {% include "@PluginGaletteObjectslend/list_lent_object.html.twig" with {rents: object.rents, mode: 'ajax'} %} +
+
+ + {# FIXME: should not be here, create a specific page. #} +
+
+
+
+ + {{ _T("Change status", "objectslend") }} +
+
+ {% set state_list_values = {(-1): _T("--- Select a status ---", "objectslend")} %} + {% for sta in statuses %} + {% set text = sta.status_text %} + {% if sta.in_stock %} + {% set text = text ~ ' (' ~ _T("In stock", "objectslend") ~ ')' %} + {% endif %} + {% set state_list_values = state_list_values + {(sta.status_id): text} %} + {% endfor %} + + {% include "components/forms/select.html.twig" with { + id: 'new_status', + value: '', + values: state_list_values, + label: _T("Status", "objectslend") + } %} + + {% include "components/forms/text.html.twig" with { + id: 'new_comment', + value: '', + label: _T("Comments", "objectslend"), + size: 100, + maxlength: 200 + } %} + +
+ + +
+ +
+
+ +
+ +
+ + {% include "components/forms/csrf.html.twig" %} +
+
+ {% endif %} +{% endblock %} diff --git a/templates/default/objects_edit.tpl b/templates/default/objects_edit.tpl deleted file mode 100644 index 0bf10d2..0000000 --- a/templates/default/objects_edit.tpl +++ /dev/null @@ -1,147 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} -
$object->object_id]}{else}{path_for name="objectslend_object_action_add"}{/if}" method="post" enctype="multipart/form-data"> - -
-
- {_T string="Object" domain="objectslend"} -

- - -

-

- - -

- {if $lendsprefs.VIEW_CATEGORY} -

- - -

- {/if} -

- - -

-

- - -

-

- {_T string="Borrow price:" domain="objectslend"} -  {$object->getCurrency()} -

-

- - price_per_day} checked="checked"{/if}> -

-

- -  {_T string="Cm"} -

-

- -  {_T string="Kg"} -

-

- - is_active} checked="checked"{/if}> -

- {if !$object->object_id} -

- - -

- {/if} -
-
- {_T string="Object's photo" domain="objectslend"} -

-

{_T string="The file must be smaller than 2 Mb and its name should not contains whitespace!"}
- "object", "mode" => "thumbnail", "id" => $object->object_id]}{else}{path_for name="objectslend_photo" data=["type" => "object", "mode" => "thumbnail"]}{/if}?rand={$time}" - class="picture" - width="{$object->picture->getOptimalThumbWidth($olendsprefs)}" - height="{$object->picture->getOptimalThumbHeight($olendsprefs)}" - alt="{_T string="Object photo" domain="objectslend"}" - />
- -
- -

-
-
- -
- -{if $object->object_id} -

{_T string="History" domain="objectslend"}

- {include file="list_lent_object.tpl" rents=$object->rents ajax=true} -{* FIXME: should not be here, create a specific page. *} -
$object->object_id]}{else}{path_for name="objectslend_object_action_add"}{/if}" method="post" class="cssform"> -
- {_T string="Change status" domain="objectslend"} -

- - - -

-

- - -

-

- - -

-
-
- - {include file="forms_types/csrf.tpl"} -
-
-{/if} -{/block} diff --git a/templates/default/objects_list.html.twig b/templates/default/objects_list.html.twig new file mode 100644 index 0000000..568c396 --- /dev/null +++ b/templates/default/objects_list.html.twig @@ -0,0 +1,534 @@ +{% extends 'elements/list.html.twig' %} +{% import "macros.twig" as macros %} + +{% set nb = nb_objects %} + +{% set form = { + 'order': { + 'name': "objectslend_objects" + }, + 'route': { + 'name': 'objectslend_batch-objectslist' + } +} %} + +{% block infoline %} + {% set infoline = { + 'label': _Tn("%count entry", "%count entries", nb)|replace({"%count": nb}), + 'route': { + 'name': 'objectslend_filter_objects' + } + } %} + {{ parent() }} +{% endblock %} + +{% block infoline_actions %} + {% if login.isAdmin() or login.isStaff() %} + + + {{ _T("Add an object", "objectslend") }} + + {% endif %} +{% endblock %} + +{% block header %} + {% set columns = [] %} + + {% if login.isAdmin() or login.isStaff() %} + {% set columns = columns|merge([ + {'label': '#'}, + ]) %} + {% endif %} + + {% if olendsprefs.imagesInLists() %} + {% set columns = columns|merge([ + {'label': _T("Picture")}, + ]) %} + {% endif %} + + {% set columns = columns|merge([ + {'label': _T("Name", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_NAME")}, + ]) %} + + {% if lendsprefs.VIEW_SERIAL %} + {% set columns = columns|merge([ + {'label': _T("Serial", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_SERIAL")}, + ]) %} + {% endif %} + + {% if lendsprefs.VIEW_PRICE %} + {% set columns = columns|merge([ + {'label': _T("Price", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_PRICE")}, + ]) %} + {% endif %} + + {% if lendsprefs.VIEW_LEND_PRICE %} + {% set columns = columns|merge([ + {'label': _T("Borrow price", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_RENTPRICE")}, + ]) %} + {% endif %} + + {% if lendsprefs.VIEW_DIMENSION %} + {% set columns = columns|merge([ + {'label': _T("Dimensions", "objectslend")}, + ]) %} + {% endif %} + + {% if lendsprefs.VIEW_WEIGHT %} + {% set columns = columns|merge([ + {'label': _T("Weight", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_WEIGHT")}, + ]) %} + {% endif %} + + {% set columns = columns|merge([ + {'label': _T("Status", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_STATUS")}, + {'label': _T("Since", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_BDATE")}, + {'label': _T("By", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_MEMBER")}, + ]) %} + + {% if lendsprefs.VIEW_DATE_FORECAST %} + {% set columns = columns|merge([ + {'label': _T("Return", "objectslend"), 'order': constant("GaletteObjectsLend\\Repository\\Objects::ORDERBY_FDATE")}, + ]) %} + {% endif %} + + {% if login.isAdmin() or login.isStaff() %} + {% set columns = columns|merge([ + {'label': _T("Active", "objectslend")}, + ]) %} + {% endif %} + + {{ parent() }} +{% endblock %} + +{% block search %} +
+
+
+
+ + +
+
+ + +
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ + +
+
+
+ {% include "components/forms/csrf.html.twig" %} +
+ + {% if lendsprefs.VIEW_CATEGORY and categories|length > 0 %} +
+
+ + {{ _T("Categories", "objectslend") }} +
+ +
+ {% endif %} +{% endblock %} + +{% block body %} + {% for object in objects %} + + {% if login.isAdmin() or login.isStaff() %} + + + + {% endif %} + {% if olendsprefs.imagesInLists() %} + + {{ _T( + + {% endif %} + + {{ object.displayName(filters)|raw }} + {% if lendsprefs.VIEW_DESCRIPTION %} +
{{ object.displayDescription(filters)|raw }} + {% endif %} + + {% if lendsprefs.VIEW_SERIAL %} + + {{ object.displaySerial(filters)|raw }} + + {% endif %} + {% if lendsprefs.VIEW_PRICE %} + + {{ object.getPrice() }}€ + + {% endif %} + {% if lendsprefs.VIEW_LEND_PRICE %} + + {{ object.getRentPrice() }}€
+ {% if object.isPricePerDay() %} + {{ _T("(per day)", "objectslend") }} + {% else %} + {{ _T("(at once)", "objectslend") }} + {% endif %} + + {% endif %} + {% if lendsprefs.VIEW_DIMENSION %} + + {{ object.displayDimension(filters)|raw }} + + {% endif %} + {% if lendsprefs.VIEW_WEIGHT %} + + {{ object.weight }} + + {% endif %} + + {% if object.getStatusText() %} + {{ object.getStatusText() }}{% if object.inStock() %} ({{ _T("In stock", "objectslend") }}){% endif %} + {% else %}-{% endif %} + + + {{ object.getDateBegin() }} + + + {% if object.getIdAdh() %} + {{ memberName({'id': object.getIdAdh()}) }} + {% else %}-{% endif %} + + {% if lendsprefs.VIEW_DATE_FORECAST %} + + {{ object.getDateForecast() }} + + {% endif %} + + + + {% if object.isActive() %}{{ _T("Active", "objectslend") }}{% else %}{{ _T("Inactive", "objectslend") }}{% endif %} + + + {% set actions = [] %} + {% if login.isAdmin() or login.isStaff() %} + {% set actions = [ + { + 'label': _T("Edit object", "objectslend"), + 'route': { + 'name': 'objectslend_object_edit', + 'args': {'id': object.getId()} + }, + 'icon': 'edit' + }, + { + 'label': _T("Duplicate object", "objectslend"), + 'route': { + 'name': 'objectslend_object_clone', + 'args': {'id': object.getId()} + }, + 'icon': 'clone grey' + }, + { + 'label': _T("Show object lends", "objectslend"), + 'extra_class': 'object_hist', + 'route': { + 'name': 'objectslend_show_object_lend', + 'args': {'id': object.getId()} + }, + 'icon': 'history grey' + }, + { + 'label': _T("Object card in PDF", "objectslend"), + 'route': { + 'name': 'objectslend_object_print', + 'args': {'id': object.getId()} + }, + 'icon': 'file pdf grey' + }, + { + 'label': _T("Remove %object from database", "objectslend")|replace({ '%object': object.getName() }), + 'route': { + 'name': 'objectslend_remove_object', + 'args': {'id': object.getId()} + }, + 'icon': 'trash red', + 'extra_class': 'delete' + } + ] %} + {% endif %} + + {% if not object.getRentId() or object.inStock() %} + {% if lendsprefs.ENABLE_MEMBER_RENT_OBJECT or login.isAdmin() or login.isStaff() %} + {% set actions = [ + { + 'label': _T("Take away", "objectslend"), + 'route': { + 'name': 'objectslend_object_take', + 'args': { + 'action': 'take', + 'id': object.getId() + } + }, + 'icon': 'shopping basket grey' + } + ]|merge(actions) %} + {% endif %} + {% elseif login.isAdmin() or login.isStaff() or login.id == object.getIdAdh() %} + {% set actions = [ + { + 'label': _T("Give back", "objectslend"), + 'route': { + 'name': 'objectslend_object_take', + 'args': { + 'action': 'return', + 'id': object.getId() + } + }, + 'icon': 'share orange' + } + ]|merge(actions) %} + {% endif %} + + {% for action in actions %} + {{ macros.drawListAction(action.label, action.route, action.icon, action.extra_class ?? '') }} + {% endfor %} + + + {% else %} + {# FIXME: calculate colspan #} + + {{ _T("No object has been found", "objectslend") }} + + {% endfor %} +{% endblock %} + +{% if nb_objects > 0 %} + {% if login.isAdmin() or login.isStaff() %} + {% set batch = { + 'route': { + 'name': 'objectslend_batch-objectslist' + }, + 'modal': { + 'title': _T("No object selected", "objectslend"), + 'content': _T("Please make sure to select at least one object from the list to perform this action.", "objectslend") + } + } %} + + {% set batch_actions = [ + { + 'name': 'print_list__directdownload', + 'label': _T("Print objects list", "objectslend"), + 'icon': 'file pdf' + }, + { + 'name': 'delete', + 'label': _T("Delete"), + 'icon': 'red trash' + } + ] %} + {% endif %} +{% endif %} + +{% block javascripts %} + {{ parent() }} + +{% endblock %} diff --git a/templates/default/objects_list.tpl b/templates/default/objects_list.tpl deleted file mode 100644 index 028c5f7..0000000 --- a/templates/default/objects_list.tpl +++ /dev/null @@ -1,613 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} - {assign var=dformat value={_T string="Y-m-d"}} -
-
-
- -   - - - {if $login->isAdmin() or $login->isStaff()} - {_T string="Active:" domain="objectslend"} - active_filter eq constant('GaletteObjectsLend\Repository\Objects::ALL_OBJECTS')} checked="checked"{/if}> - - active_filter eq constant('GaletteObjectsLend\Repository\Objects::ACTIVE_OBJECTS')} checked="checked"{/if}> - - active_filter eq constant('GaletteObjectsLend\Repository\Objects::INACTIVE_OBJECTS')} checked="checked"{/if}> - - {/if} - - -
-
- {$nb_objects} {if $nb_objects gt 1}{_T string="objects" domain="objectslend"}{else}{_T string="object" domain="objectslend"}{/if} -
- - - - {include file="forms_types/csrf.tpl"} -
-
-
- - {if $lendsprefs.VIEW_CATEGORY and $categories|@count gt 0} -
-
- {_T string="Categories" domain="objectslend"} -
-
- "category", "value" => 0]}"{if $filters->category_filter eq null} class="active"{/if}> - "category", "mode" => "thumbnail", "id" => 0]}" - alt=""/> -
- {_T string="All"} -
- {foreach from=$categories item=categ} - {if $categ->is_active || $categ->category_id eq -1} - "category", "value" => $categ->category_id]}"{if $filters->category_filter eq $categ->category_id} class="active"{/if}> - "category", "mode" => "thumbnail", "id" => $categ->category_id]}" - width="{$categ->picture->getOptimalThumbWidth($olendsprefs)}" - height="{$categ->picture->getOptimalThumbHeight($olendsprefs)}" - alt=""/> -
- {$categ->getName()} - {if $lendsprefs.VIEW_LIST_PRICE_SUM && $lendsprefs.VIEW_PRICE && ($login->isAdmin() || $login->isStaff())} - · - {$categ->objects_price_sum} € - {/if} -
- {/if} - {/foreach} - -
-
- {/if} - -
- - - - {if $login->isAdmin() || $login->isStaff()} - - {/if} - {if $olendsprefs->imagesInLists()} - - {/if} - - {if $lendsprefs.VIEW_SERIAL} - - {/if} - {if $lendsprefs.VIEW_PRICE} - - {/if} - {if $lendsprefs.VIEW_LEND_PRICE} - - {/if} - {if $lendsprefs.VIEW_DIMENSION} - - {/if} - {if $lendsprefs.VIEW_WEIGHT} - - {/if} - - - - {if $lendsprefs.VIEW_DATE_FORECAST} - - {/if} - {if $login->isAdmin() || $login->isStaff()} - - {/if} - - - - - {foreach from=$objects item=object} - - {if $login->isAdmin() || $login->isStaff()} - - {/if} - {if $olendsprefs->imagesInLists()} - - {/if} - - {if $lendsprefs.VIEW_SERIAL} - - {/if} - {if $lendsprefs.VIEW_PRICE} - - {/if} - {if $lendsprefs.VIEW_LEND_PRICE} - - {/if} - {if $lendsprefs.VIEW_DIMENSION} - - {/if} - {if $lendsprefs.VIEW_WEIGHT} - - {/if} - - - - {if $lendsprefs.VIEW_DATE_FORECAST} - - {/if} - - - {/if} - - {foreachelse} - {* FIXME: calculate colspan *} - - - - {/foreach} - -{if $nb_objects != 0} - - - - - - - - -{/if} -
# - {_T string="Picture"} - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_NAME"|constant]}"> - {_T string="Name" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_NAME')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_SERIAL"|constant]}"> - {_T string="Serial" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_SERIAL')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_PRICE"|constant]}"> - {_T string="Price" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_PRICE')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_RENTPRICE"|constant]}"> - {_T string="Borrow price" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_RENTPRICE')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - {_T string="Dimensions" domain="objectslend"} - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_WEIGHT"|constant]}"> - {_T string="Weight" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_WEIGHT')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS"|constant]}"> - {_T string="Status" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_BDATE"|constant]}"> - {_T string="Since" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_BDATE')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_MEMBER"|constant]}"> - {_T string="By" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_MEMBER')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Objects::ORDERBY_FDATE"|constant]}"> - {_T string="Return" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Objects::ORDERBY_FDATE')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - - {_T string="Active" domain="objectslend"} - - {_T string="Actions"} -
- - - "object", "mode" => "thumbnail", "id" => $object->object_id]}" - class="picture" - width="{$object->picture->getOptimalThumbWidth($olendsprefs)}" - height="{$object->picture->getOptimalThumbHeight($olendsprefs)}" - alt="{_T string="Object photo" domain="objectslend"}"/> - - {$object->displayName($filters)} - {if $lendsprefs.VIEW_DESCRIPTION} -
{$object->displayDescription($filters)} - {/if} -
- {$object->displaySerial($filters)} - - {$object->price}€ - - {$object->rent_price}€
- {if $object->price_per_day} - {_T string="(per day)" domain="objectslend"} - {else} - {_T string="(at once)" domain="objectslend"} - {/if} -
- {$object->displayDimension($filters)} - - {$object->weight} - - {if $object->status_text} - {$object->status_text}{if $object->in_stock} ({_T string="In stock" domain="objectslend"}){/if} - {else}-{/if} - - {if $object->date_begin} - {$object->date_begin|date_format:$dformat} - {else}-{/if} - - {if $object->id_adh} - $object->id_adh]}">{memberName id=$object->id_adh} - {else}-{/if} - - {if $object->date_forecast} - {$object->date_forecast|date_format:$dformat} - {else}-{/if} - - - - {_T string="Active" domain="objectslend"} - - {if !$object->rent_id or $object->in_stock} - {if $lendsprefs.ENABLE_MEMBER_RENT_OBJECT || $login->isAdmin() || $login->isStaff()} - "take", "id" => $object->object_id]}" - title="{_T string="Take object away" domain="objectslend"}" - > - - {_T string="Take away" domain="objectslend"} - - {/if} - {elseif $login->isAdmin() || $login->isStaff() || $login->id == $object->id_adh} - "return", "id" => $object->object_id]}" - title="{_T string="Give object back" domain="objectslend"}" - > - - {_T string="Give back" domain="objectslend"} - - {/if} - - {if $login->isAdmin() || $login->isStaff()} - $object->object_id]}" - title="{_T string="Edit the object" domain="objectslend"}" - > - - {_T string="Edit the object" domain="objectslend"} - - $object->object_id]}" - title="{_T string="Duplicate object" domain="objectslend"}" - > - - {_T string="Duplicate object" domain="objectslend"} - - $object->object_id]}" - > - - {_T string="Show object lends" domain="objectslend"} - - $object->object_id]}" - title="{_T string="Object card in PDF" domain="objectslend"}" - > - - {_T string="Object card in PDF" domain="objectslend"} - - $object->object_id]}" - title="{_T string="Remove %object from database" domain="objectslend" pattern="/%object/" replace=$object->name}" - > - - {_T string="Remove %object from database" domain="objectslend" pattern="/%object/" replace=$object->name} - -
{_T string="No object has been found" domain="objectslend"}
- {_T string="Pages:"}
-
    {$pagination}
- {include file="forms_types/csrf.tpl"} -
-
-
-{/block} - -{block name="javascripts"} - -{/block} diff --git a/templates/default/preferences.html.twig b/templates/default/preferences.html.twig new file mode 100644 index 0000000..59e07f5 --- /dev/null +++ b/templates/default/preferences.html.twig @@ -0,0 +1,304 @@ +{% extends 'page.html.twig' %} + +{% macro yesno_checkbox(label, name, tip, yes, no) %} +
+
+ +
+
+ + +
+
+
+
+ + +
+
+
+
+{% endmacro %} + +{% block content %} +
+ + +
+
+
+ {% set yesno_boxes = [ + { + label: _T("Members can borrow:", "objectslend"), + name: 'ENABLE_MEMBER_RENT_OBJECT', + tip: _T("Allow a member (not staff neither admin) to borrow an object. If set to 'No', only admin and staff members can access the 'Take object' page", "objectslend"), + yes: { + name: 'yes_memberborrow', + checked: lendsprefs.ENABLE_MEMBER_RENT_OBJECT == '1' + }, + no: { + name: 'no_memberborrow', + checked: lendsprefs.ENABLE_MEMBER_RENT_OBJECT == '0' + } + }, + { + label: _T("Generate contribution:", "objectslend"), + name: 'AUTO_GENERATE_CONTRIBUTION', + tip: _T("Automatically generate a contribution for the member of the amount of the rental price of the object", "objectslend"), + yes: { + name: 'yes_contrib', + checked: lendsprefs.AUTO_GENERATE_CONTRIBUTION == '1' + }, + no: { + name: 'no_contrib', + checked: lendsprefs.AUTO_GENERATE_CONTRIBUTION == '0' + } + } + ] %} + + {% for yesno_box in yesno_boxes %} + {{ _self.yesno_checkbox( + yesno_box.label, + yesno_box.name, + yesno_box.tip, + yesno_box.yes, + yesno_box.no + ) }} + {% endfor %} + + {% set ctype_list_values = {(0): _T("Choose a contribution type", "objectslend")} %} + {% for id, ctype in ctypes %} + {% set ctype_list_values = ctype_list_values + {(id): ctype} %} + {% endfor %} + + {# TODO: hide this one if AUTO_GENERATE_CONTRIBUTION is off #} + {% include "components/forms/select.html.twig" with { + id: 'contribution_type', + name: 'GENERATED_CONTRIBUTION_TYPE_ID', + value: lendsprefs.GENERATED_CONTRIBUTION_TYPE_ID, + values: ctype_list_values, + label: _T("Contribution type:", "objectslend"), + required: lendsprefs.AUTO_GENERATE_CONTRIBUTION == '1' + } %} + + {% include "components/forms/text.html.twig" with { + id: 'contrib_text', + name: 'GENERATED_CONTRIB_INFO_TEXT', + value: lendsprefs.GENERATED_CONTRIB_INFO_TEXT, + label: _T("Contribution text:", "objectslend"), + title: _T("Comment text to add on generated contribution", "objectslend"), + tip_html: _T("Comment text to add on generated contribution. Automatically replaced values (put into curly brackets):
- NAME: Name
- DESCRIPTION: Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions", "objectslend"), + required: lendsprefs.AUTO_GENERATE_CONTRIBUTION == '1', + component_class: 'field' + } %} + +
+
+
+ +
+
+
+ {% include "components/forms/number.html.twig" with { + id: 'max_thumb_height', + name: 'THUMB_MAX_HEIGHT', + value: lendsprefs.THUMB_MAX_HEIGHT, + label: _T("Max thumb height (in px)", "objectslend"), + } %} + + {% include "components/forms/number.html.twig" with { + id: 'max_thumb_width', + name: 'THUMB_MAX_WIDTH', + value: lendsprefs.THUMB_MAX_WIDTH, + label: _T("Max thumb width (in px)", "objectslend"), + } %} + + {% set yesno_boxes = [ + { + label: _T("Images in lists:", "objectslend"), + name: 'VIEW_THUMBNAIL', + title: _T("Display images in objects and categories lists", "objectslend"), + tip: _T("Display images in objects and categories lists", "objectslend"), + yes: { + name: 'yes_view_thumb', + checked: lendsprefs.VIEW_THUMBNAIL == '1' + }, + no: { + name: 'no_view_thumb', + checked: lendsprefs.VIEW_THUMBNAIL == '0' + } + }, + { + label: _T("Enable fullsize:", "objectslend"), + name: 'VIEW_FULLSIZE', + title: _T("Show fullsize image or just thumbs", "objectslend"), + tip: _T("Will permit to see fullsize image clicking on thumbnails.
If disabled, only thumbnails will be displayed, but full images are still kept.", "objectslend"), + yes: { + name: 'yes_view_fullsize', + checked: lendsprefs.VIEW_FULLSIZE == '1' + }, + no: { + name: 'no_view_fullsize', + checked: lendsprefs.VIEW_FULLSIZE == '0' + } + } + ] %} + + {% for yesno_box in yesno_boxes %} + {{ _self.yesno_checkbox( + yesno_box.label, + yesno_box.name, + yesno_box.tip, + yesno_box.yes, + yesno_box.no + ) }} + {% endfor %} +
+
+
+ +
+
+
+ {% set yesno_boxes = [ + { + label: _T("View category:", "objectslend"), + name: 'VIEW_CATEGORY', + yes: { + name: 'yes_view_category', + checked: lendsprefs.VIEW_CATEGORY == '1' + }, + no: { + name: 'no_view_category', + checked: lendsprefs.VIEW_CATEGORY == '0' + } + }, + { + label: _T("View forecast return date:", "objectslend"), + name: 'VIEW_DATE_FORECAST', + yes: { + name: 'yes_view_dateforecast', + checked: lendsprefs.VIEW_DATE_FORECAST == '1' + }, + no: { + name: 'no_view_dateforecats', + checked: lendsprefs.VIEW_DATE_FORECAST == '0' + } + }, + { + label: _T("View description", "objectslend"), + name: 'VIEW_DESCRIPTION', + yes: { + name: 'yes_view_description', + checked: lendsprefs.VIEW_DESCRIPTION == '1' + }, + no: { + name: 'no_view_description', + checked: lendsprefs.VIEW_DESCRIPTION == '0' + } + }, + { + label: _T("View dimensions:", "objectslend"), + name: 'VIEW_DIMENSION', + yes: { + name: 'yes_view_dimension', + checked: lendsprefs.VIEW_DIMENSION == '1' + }, + no: { + name: 'no_view_dimension', + checked: lendsprefs.VIEW_DIMENSION == '0' + } + }, + { + label: _T("View borrow price:", "objectslend"), + name: 'VIEW_LEND_PRICE', + yes: { + name: 'yes_view_lendprice', + checked: lendsprefs.VIEW_LEND_PRICE == '1' + }, + no: { + name: 'no_view_lendprice', + checked: lendsprefs.VIEW_LEND_PRICE == '0' + } + }, + { + label: _T("View price sum:", "objectslend"), + name: 'VIEW_LIST_PRICE_SUM', + tip: _T("View the objects buy price sum on the list under the category", "objectslend"), + yes: { + name: 'yes_view_pricesum', + checked: lendsprefs.VIEW_LIST_PRICE_SUM == '1' + }, + no: { + name: 'no_view_pricesum', + checked: lendsprefs.VIEW_LIST_PRICE_SUM == '0' + } + }, + { + label: _T("View buy price:", "objectslend"), + name: 'VIEW_PRICE', + yes: { + name: 'yes_view_price', + checked: lendsprefs.VIEW_PRICE == '1' + }, + no: { + name: 'no_view_price', + checked: lendsprefs.VIEW_PRICE == '0' + } + }, + { + label: _T("View serial number:", "objectslend"), + name: 'VIEW_SERIAL', + yes: { + name: 'yes_view_serial', + checked: lendsprefs.VIEW_SERIAL == '1' + }, + no: { + name: 'no_view_serial', + checked: lendsprefs.VIEW_SERIAL == '0' + } + }, + { + label: _T("View weight", "objectslend"), + name: 'VIEW_WEIGHT', + yes: { + name: 'yes_view_weight', + checked: lendsprefs.VIEW_WEIGHT == '1' + }, + no: { + name: 'no_view_weight', + checked: lendsprefs.VIEW_WEIGHT == '0' + } + }, + + ] %} + + {% for yesno_box in yesno_boxes %} + {{ _self.yesno_checkbox( + yesno_box.label, + yesno_box.name, + yesno_box.tip ?? null, + yesno_box.yes, + yesno_box.no + ) }} + {% endfor %} +
+
+
+ +
+ +
+ {% include "components/forms/csrf.html.twig" %} +
+{% endblock %} diff --git a/templates/default/preferences.tpl b/templates/default/preferences.tpl deleted file mode 100644 index 223a537..0000000 --- a/templates/default/preferences.tpl +++ /dev/null @@ -1,119 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} -
-
-
- {_T string="Plugin preferences" domain="objectslend"} -

- {_T string="Members can borrow:" domain="objectslend"} - {_T string="Allow a member (not staff neither admin) to borrow an object. If set to 'No', only admin and staff members can access the 'Take object' page" domain="objectslend"} - - -

- {* TODO: hide this one if ENABLE_MEMBER_RENT_OBJECT is off *} -

- {_T string="Generate contribution:" domain="objectslend"} - {_T string="Automatically generate a contribution for the member of the amount of the rental price of the object" domain="objectslend"} - - -

- {* TODO: hide this one if AUTO_GENERATE_CONTRIBUTION is off *} -

- - -

- {* TODO: hide this one if AUTO_GENERATE_CONTRIBUTION is off *} -

- - {_T string="Comment text to add on generated contribution. Automatically replaced values (put into curly brackets):
- NAME: Name
- DESCRIPTION: Description
- SERIAL_NUMBER: Serial number
- PRICE: Price
- RENT_PRICE: Borrow price
- WEIGHT: Weight
- DIMENSION: Dimensions" domain="objectslend"}
- -

- -
-
- {_T string="Images related" domain="objectslend"} -

- - -

-

- - -

-

- {_T string="Images in lists:" domain="objectslend"} - {_T string="Display images in objects and categories lists" domain="objectslend"} - - -

-

- {_T string="Enable fullsize:" domain="objectslend"} - {_T string="Will permit to see fullsize image clicking on thumbnails.
If disabled, only thumbnails will be displayed, but full images are still kept." domain="objectslend"}
- - -

-
-
- {_T string="Display preferences" domain="objectslend"} -

- {_T string="View category:" domain="objectslend"} - - -

-

- {_T string="View forecast return date:" domain="objectslend"} - - -

-

- {_T string="View description" domain="objectslend"} - - -

-

- {_T string="View dimensions:" domain="objectslend"} - - -

-

- {_T string="View borrow price:" domain="objectslend"} - - -

-

- {_T string="View price sum:" domain="objectslend"} - {_T string="View the objects buy price sum on the list under the category" domain="objectslend"} - - -

-

- {_T string="View buy price:" domain="objectslend"} - - -

-

- {_T string="View serial number:" domain="objectslend"} - - -

-

- {_T string="View weight" domain="objectslend"} - - -

-
-
-
- - {include file="forms_types/csrf.tpl"} -
-
-{/block} diff --git a/templates/default/status_edit.html.twig b/templates/default/status_edit.html.twig new file mode 100644 index 0000000..f329f9f --- /dev/null +++ b/templates/default/status_edit.html.twig @@ -0,0 +1,54 @@ +{% extends 'page.html.twig' %} + +{% block content %} +
+
+
+ + {{ _T("Status", "objectslend") }} +
+
+ {% include "components/forms/text.html.twig" with { + id: 'text', + component_class: 'inline field', + value: status.status_text, + label: _T("Status:", "objectslend"), + required: true + } %} + + {% include "components/forms/checkbox.html.twig" with { + id: 'in_stock', + value: 1, + label: _T("In stock:", "objectslend"), + title: _T("Is object in stock or borrowed", "objectslend"), + checked: status.in_stock, + tip: _T("Check if the object is available to be borrowed;
uncheck if object is already borrowed and should be given back", "objectslend") + } %} + + {% include "components/forms/checkbox.html.twig" with { + id: 'is_active', + value: 1, + label: _T("Active:", "objectslend"), + checked: status.is_active + } %} + + {% include "components/forms/number.html.twig" with { + id: 'rent_day_number', + component_class: 'inline field', + value: status.rent_day_number, + label: _T("Days for rent", "objectslend"), + title: _T("Number of days to rent per default", "objectslend"), + tip: _T("Number of days to rent per default", "objectslend") ~ ' - ' ~ _T("used to compute return date", "objectslend") + } %} +
+
+ +
+ + + {% include "components/forms/csrf.html.twig" %} +
+
+{% endblock %} diff --git a/templates/default/status_edit.tpl b/templates/default/status_edit.tpl deleted file mode 100644 index 5b1f83a..0000000 --- a/templates/default/status_edit.tpl +++ /dev/null @@ -1,52 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} -
$status->status_id]}{else}{path_for name="objectslend_status_action_add"}{/if}" method="post"> - -
-
- {_T string="Status" domain="objectslend"} -
-

- {_T string="Status:" domain="objectslend"} - -

-
-
-

- - {_T string="Check if the object is available to be borrowed;
uncheck if object is already borrowed and should be given back" domain="objectslend"}
- in_stock} checked="checked"{/if}> -

-
-
-

- - is_active} checked="checked"{/if}> -

-
-
-

- - {_T string="Number of days to rent per default" domain="objectslend"}
{_T string="used to compute return date" domain="objectslend"}
- -

-
-
-
-
- - - - {_T string="Back to list" domain="objectslend"} - - {include file="forms_types/csrf.tpl"} -
-
-{/block} diff --git a/templates/default/status_list.html.twig b/templates/default/status_list.html.twig new file mode 100644 index 0000000..ea5189d --- /dev/null +++ b/templates/default/status_list.html.twig @@ -0,0 +1,178 @@ +{% extends 'elements/list.html.twig' %} + +{% set nb = nb_status %} + +{% set form = { + 'order': { + 'name': "objectslend_statuses" + } +} %} + +{% import "macros.twig" as macros %} + +{% block infoline %} + {% set infoline = { + 'label': _Tn("%count status", "%count statuses", nb)|replace({"%count": nb}), + 'route': { + 'name': 'objectslend_filter_statuses' + } + } %} + {{ parent() }} +{% endblock %} + +{% block infoline_actions %} + + + {{ _T("Add a status", "objectslend") }} + +{% endblock %} + +{% block header %} + {% set columns = [ + {'label': '#', order: constant('GaletteObjectsLend\\Repository\\Status::ORDERBY_ID')}, + {'label': _T("Status", "objectslend"), order: constant('GaletteObjectsLend\\Repository\\Status::ORDERBY_NAME')}, + {'label': _T("Active", "objectslend"), order: constant('GaletteObjectsLend\\Repository\\Status::ORDERBY_ACTIVE')}, + {'label': _T("Stock", "objectslend"), order: constant('GaletteObjectsLend\\Repository\\Status::ORDERBY_STOCK')}, + {'label': _T("Days for rent", "objectslend"), order: constant('GaletteObjectsLend\\Repository\\Status::ORDERBY_RENTDAYS')} + ] %} + + {{ parent() }} +{% endblock %} + +{% block search %} +
+
+
+
+ + +
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ + +
+
+
+ {% include "components/forms/csrf.html.twig" %} +
+{% endblock %} + +{% block body %} + {% for status in statuses %} + + + {{ status.status_id }} + + + {{ status.status_text }} + + + {% if status.is_active %} + + {{ _T("Active", "objectslend") }} + {% else %} + + {{ _T("Inactive", "objectslend") }} + {% endif %} + + + {% if status.in_stock %} + + {{ _T("In stock", "objectslend") }} + {% else %} + + {{ _T("Not in stock", "objectslend") }} + {% endif %} + + + {% if status.rent_day_number %} + {{ _T("%days days", "objectslend")|replace({'%days': status.rent_day_number}) }} + {% else %} + - + {% endif %} + + + {% set actions = [ + { + 'label': _T("Edit %status", "objectslend")|replace({'%status': status.status_text}), + 'route': { + 'name': 'objectslend_status_edit', + 'args': {'id': status.status_id} + }, + 'icon': 'edit' + }, + { + 'label': _T("Remove %status from database", "objectslend")|replace({ '%status': status.status_text }), + 'route': { + 'name': 'objectslend_remove_status', + 'args': {'id': status.status_id} + }, + 'icon': 'trash red', + 'extra_class': 'delete' + } + ] %} + + {% for action in actions %} + {{ macros.drawListAction(action.label, action.route, action.icon, action.extra_class ?? '') }} + {% endfor %} + + + {% else %} + {{ _T("No status has been found", "objectslend") }} + {% endfor %} +{% endblock %} diff --git a/templates/default/status_list.tpl b/templates/default/status_list.tpl deleted file mode 100644 index b058294..0000000 --- a/templates/default/status_list.tpl +++ /dev/null @@ -1,179 +0,0 @@ -{extends file="page.tpl"} -{block name="content"} -
-
- -   - {_T string="Active:" domain="objectslend"} - active_filter eq constant('GaletteObjectsLend\Repository\Status::ALL')} checked="checked"{/if}> - - active_filter eq constant('GaletteObjectsLend\Repository\Status::ACTIVE')} checked="checked"{/if}> - - active_filter eq constant('GaletteObjectsLend\Repository\Status::INACTIVE')} checked="checked"{/if}> - - {_T string="In stock:" domain="objectslend"} - stock_filter eq constant('GaletteObjectsLend\Repository\Status::DC_STOCK')} checked="checked"{/if}> - - stock_filter eq constant('GaletteObjectsLend\Repository\Status::IN_STOCK')} checked="checked"{/if}> - - stock_filter eq constant('GaletteObjectsLend\Repository\Status::OUT_STOCK')} checked="checked"{/if}> - - - -
-
- {$nb_status} {_T string="status" domain="objectslend"} -
- - - - {include file="forms_types/csrf.tpl"} -
-
-
- - - - - - - - - - - - - - - - - - {foreach from=$statuses item=status} - - - - - - - - - {foreachelse} - - {/foreach} - -
- "order", "value" => "GaletteObjectsLend\Repository\Status::ORDERBY_ID"|constant]}"> - # - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Status::ORDERBY_ID')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\StatusList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Status::ORDERBY_NAME"|constant]}"> - {_T string="Status" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Status::ORDERBY_NAME')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\StatusList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Status::ORDERBY_ACTIVE"|constant]}"> - {_T string="Active" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Status::ORDERBY_ACTIVE')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\StatusList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Status::ORDERBY_STOCK"|constant]}"> - {_T string="Stock" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Status::ORDERBY_STOCK')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\StatusList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - - "order", "value" => "GaletteObjectsLend\Repository\Status::ORDERBY_RENTDAYS"|constant]}"> - {_T string="Days for rent" domain="objectslend"} - {if $filters->orderby eq constant('GaletteObjectsLend\Repository\Status::ORDERBY_RENTDAYS')} - {if $filters->ordered eq constant('GaletteObjectsLend\Filters\StatusList::ORDER_ASC')} - - {else} - - {/if} - {/if} - - {_T string="Actions"}
- {_T string="Pages:"}
-
    {$pagination}
-
- {$status->status_id} - - {$status->status_text} - - {if $status->is_active} - - {_T string="Active" domain="objectslend"} - {else} - - {_T string="Inactive" domain="objectslend"} - {/if} - - {if $status->in_stock} - - {_T string="In stock" domain="objectslend"} - {else} - - {_T string="Not in stock" domain="objectslend"} - {/if} - - {if $status->rent_day_number} - {_T string="%days days" domain="objectslend" pattern="/%days/" replace=$status->rent_day_number} - {else} - - - {/if} - - $status->status_id]}" - title="{_T string="Edit %status" domain="objectslend" pattern="/%status/" replace=$status->status_text}" - > - - {_T string="Edit %status" domain="objectslend" pattern="/%status/" replace=$status->status_text} - - $status->status_id]}" - title="{_T string="Remove %status from database" domain="objectslend" pattern="/%status/" replace=$status->status_text}" - > - - {_T string="Remove %status from database" domain="objectslend" pattern="/%status/" replace=$status->status_text} - -
{_T string="No status has been found" domain="objectslend"}
-{/block} - -{block name="javascripts"} - -{/block} diff --git a/templates/default/take_more_objects_away.tpl b/templates/default/take_more_objects_away.tpl index 360baac..8b0cd83 100644 --- a/templates/default/take_more_objects_away.tpl +++ b/templates/default/take_more_objects_away.tpl @@ -46,7 +46,7 @@ {if $olendsprefs->imagesInLists()} - "object", "mode" => "thumbnail", "id" => $object->object_id]}{else}{path_for name="objectslend_photo" data=["type" => "object", "mode" => "thumbnail"]}{/if}?rand={$time}" + "object", "mode" => "thumbnail", "id" => $object->object_id]}{else}{url_for name="objectslend_photo" data=["type" => "object", "mode" => "thumbnail"]}{/if}?rand={$time}" class="picture" width="{$objt->picture->getOptimalThumbWidth($olendsprefs)}" height="{$objt->picture->getOptimalThumbHeight($olendsprefs)}" diff --git a/templates/default/take_object.html.twig b/templates/default/take_object.html.twig new file mode 100644 index 0000000..8dd2984 --- /dev/null +++ b/templates/default/take_object.html.twig @@ -0,0 +1,331 @@ +{% extends 'page.html.twig' %} + +{% block content %} +
+
+
+ + {{ _T("Object", "objectslend") }} +
+
+
+ + {{ object.name }} + {{ _T( +
+ + {% if lendsprefs.VIEW_DESCRIPTION %} +
+ + {{ object.description }} +
+ {% endif %} + + {% if lendsprefs.VIEW_SERIAL %} +
+ + {{ object.serial_number }} +
+ {% endif %} + + {% if lendsprefs.VIEW_PRICE %} +
+ + {{ object.price }} {{ object.currency }} +
+ {% endif %} + + {% if lendsprefs.VIEW_DIMENSION %} +
+ + {% if object.dimension != '' %} + {{ object.dimension }} {{ _T("Cm", "objectslend") }} + {% else %} + - + {% endif %} +
+ {% endif %} + + {% if lendsprefs.VIEW_WEIGHT %} +
+ + {% if object.weight != '' %} + {{ object.weight }} {{ _T("Kg", "objectslend") }} + {% else %} + - + {% endif %} +
+ {% endif %} + +
+ + {% if takeorgive == 'take' and (login.isAdmin() or login.isStaff()) %} + {{ object.currency }} + {% else %} + + {{ object.rent_price }} {{ object.currency }} + {% endif %} + + {% if object.isPricePerDay() %} + {{ _T("(per day)", "objectslend") }} + {% else %} + {{ _T("(at once)", "objectslend") }} + {% endif %} +
+ +
+
+ + {% if takeorgive == 'take' %} +
+
+ + {{ _T("Borrow information", "objectslend") }} +
+
+ {% if login.isAdmin() or login.isStaff() %} +
+ +
+ + + + +
{% if adh_selected == 0 %}{{ _T("Search for name or ID and pick member") }}{% endif %}
+ +
+
+ {% endif %} + +
+ {% set state_list_values = {(-1): _T("--- Select a status ---", "objectslend")} %} + {% for sta in statuses %} + {% set text = sta.status_text %} + {% if sta.rent_day_number != '' %} + {% set text = text ~ ' (' ~ _T("%days days", "objectslend")|replace({'%days': sta.rent_day_number}) ~ ')' %} + {% endif %} + {% set state_list_values = state_list_values + {(sta.status_id): text} %} + {% endfor %} + + {% include "components/forms/select.html.twig" with { + id: 'status', + value: '', + values: state_list_values, + label: _T("Status:", "objectslend") + } %} +
+ +
+ {% include "components/forms/date.html.twig" with { + id: 'expected_return', + value: date_forecast, + label: _T("Expected return:", "objectslend") + } %} +
+ + {% if lendsprefs.AUTO_GENERATE_CONTRIBUTION %} +
+ {% include "components/forms/payment_types.html.twig" with { + show_inline: true, + current: contribution.payment_type, + varname: "payment_type" + } %} +
+ {% endif %} +
+
+ {% else %} +
+
+ + {{ _T("Return information", "objectslend") }} +
+
+
+ {% set state_list_values = {(-1): _T("--- Select a status ---", "objectslend")} %} + {% for sta in statuses %} + {% set state_list_values = state_list_values + {(sta.status_id): sta.status_text} %} + {% endfor %} + + {% include "components/forms/select.html.twig" with { + id: 'status', + value: '', + values: state_list_values, + label: _T("Status:", "objectslend") + } %} +
+ +
+ + {{ _T("From %begindate to %enddate", "objectslend")|replace({"%begindate": last_rent.date_begin, "%enddate": "now"|date(_T("Y-m-d"))}) }} +
+
+ {% include "components/forms/textarea.html.twig" with { + id: 'comments', + value: '', + label: _T("Comments:", "objectslend") + } %} + 200 {{ _T("remaining characters", "objectslend") }} +
+
+
+ {% endif %} + + {% if takeorgive == 'take' %} +
+
+ + +
+
+ + +
+
+
+ {{ _T("The items offered for rent are in good condition and verification rental contradictory to their status is at the time of withdrawal. No claims will be accepted after the release of the object. Writing by the store a list of reservation does not exempt the customer checking his retrait. The payment of rent entitles the purchaser to make normal use of the loaned object. If the object is rendered in a degraded state, the seller reserves the right to collect all or part of the security deposit. In case of deterioration of the rented beyond the standard object, a financial contribution will be required for additional cleaning caused. In case of damage, loss or theft of the rented property, the deposit will not be refunded automatically to 'the company as damages pursuant to Article 1152 of the Civil Code and without that it need for any other judicial or extra-judicial formality. In some other cases not listed above and at the discretion of the seller, the deposit check may also be collected in whole or party.", "objectslend") }} +
+
+
+ {% endif %} + +
+ + + {% include "components/forms/csrf.html.twig" %} +
+
+{% endblock %} + +{% block javascripts %} + +{% endblock %} diff --git a/templates/default/take_object.tpl b/templates/default/take_object.tpl deleted file mode 100644 index dd52885..0000000 --- a/templates/default/take_object.tpl +++ /dev/null @@ -1,304 +0,0 @@ -{if $ajax} - {assign var="extend" value='ajax.tpl'} -{else} - {assign var="extend" value='page.tpl'} -{/if} -{extends file=$extend} - -{block name="content"} -
$object->object_id]}{else}{path_for name="objectslend_object_doreturn" data=["id" => $object->object_id]}{/if}" method="post" id="form_take_object"> -
-
- {_T string="Object" domain="objectslend"} -
-

- - "object", "mode" => "thumbnail", "id" => $object->object_id]}{else}{path_for name="objectslend_photo" data=["type" => "object", "mode" => "thumbnail"]}{/if}?rand={$time}" - class="picture fright" - width="{$object->picture->getOptimalThumbWidth($olendsprefs)}" - height="{$object->picture->getOptimalThumbHeight($olendsprefs)}" - alt="{_T string="Object photo" domain="objectslend"}"/> - {_T string="Name:" domain="objectslend"} - {$object->name} -

-
- {if $lendsprefs.VIEW_DESCRIPTION} -
-

- {_T string="Description:" domain="objectslend"} - {$object->description} -

-
- {/if} - {if $lendsprefs.VIEW_SERIAL} -
-

- {_T string="Serial number:" domain="objectslend"} - {$object->serial_number} -

-
- {/if} - {if $lendsprefs.VIEW_PRICE} -
-

- {_T string="Price:" domain="objectslend"} - {$object->price} {$object->currency} -

-
- {/if} -
-

- {_T string="Borrow price:" domain="objectslend"} - {if $takeorgive == 'take' && ($login->isAdmin() || $login->isStaff())} - {$object->currency} - {else} - - {$object->rent_price} {$object->currency} - {/if} - - {if $object->price_per_day} - {_T string="(per day)" domain="objectslend"} - {else} - {_T string="(at once)" domain="objectslend"} - {/if} -

-
- {if $lendsprefs.VIEW_DIMENSION} -
-

- {_T string="Dimensions:" domain="objectslend"} - {if $object->dimension != ''} - {$object->dimension} {_T string="Cm" domain="objectslend"} - {else} - - - {/if} -

-
- {/if} - {if $lendsprefs.VIEW_WEIGHT} -
-

- {_T string="Weight:" domain="objectslend"} - {if $object->weight != ''} - {$object->weight} {_T string="Kg" domain="objectslend"} - {else} - - - {/if} -

-
- {/if} - {if $takeorgive eq 'take'} - {if $login->isAdmin() || $login->isStaff()} -
-

- - -

-
- {/if} -
-

- {_T string="Status:" domain="objectslend"} - -

-
-
-

- {_T string="Expected return:" domain="objectslend"} - -

-
- {if $lendsprefs.AUTO_GENERATE_CONTRIBUTION} -
- {* payment type *} - {assign var="current" value=$contribution->payment_type} - {include file="forms_types/payment_types.tpl" varname="payment_type"} -
- {/if} - {else} -
-

- {_T string="Status:" domain="objectslend"} - -

-
-
-

- {_T string="Time:" domain="objectslend"} - {_T string="From %begindate to %enddate" pattern=["/%begindate/", "/%enddate/"] replace=[$last_rent->date_begin, $smarty.now|date_format:{_T string="Y-m-d"}]} -

-
-
-

- {_T string="Comments:" domain="objectslend"} - -
200 - {_T string="remaining characters" domain="objectslend"} -

-
- {/if} -
-
- {if $takeorgive eq 'take'} -
- - - - - {_T string= -
{_T string="The items offered for rent are in good condition and verification rental contradictory to their status is at the time of withdrawal. No claims will be accepted after the release of the object. Writing by the store a list of reservation does not exempt the customer checking his retrait. The payment of rent entitles the purchaser to make normal use of the loaned object. If the object is rendered in a degraded state, the seller reserves the right to collect all or part of the security deposit. In case of deterioration of the rented beyond the standard object, a financial contribution will be required for additional cleaning caused. In case of damage, loss or theft of the rented property, the deposit will not be refunded automatically to 'the company as damages pursuant to Article 1152 of the Civil Code and without that it need for any other judicial or extra-judicial formality. In some other cases not listed above and at the discretion of the seller, the deposit check may also be collected in whole or party." domain="objectslend"}
-
- {/if} -
- - - {_T string="Cancel"} - {include file="forms_types/csrf.tpl"} -
-
-{/block} - -{block name="javascripts"} - -{/block} diff --git a/webroot/featherlight-1.7.0/LICENSE b/webroot/featherlight-1.7.0/LICENSE deleted file mode 100644 index b4b5d5e..0000000 --- a/webroot/featherlight-1.7.0/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2014 Noel Bossart, http://noelboss.com -MIT Licensed. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/webroot/featherlight-1.7.0/featherlight.min.css b/webroot/featherlight-1.7.0/featherlight.min.css deleted file mode 100644 index 1ad2abb..0000000 --- a/webroot/featherlight-1.7.0/featherlight.min.css +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Featherlight - ultra slim jQuery lightbox - * Version 1.7.0 - http://noelboss.github.io/featherlight/ - * - * Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com) - * MIT Licensed. -**/ -@media all{.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font-family:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000;border:0;padding:0}.featherlight .featherlight-close-icon::-moz-focus-inner{border:0;padding:0}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0;-webkit-overflow-scrolling:touch;overflow-y:scroll}.featherlight iframe{border:0}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:0;margin-right:0;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}} \ No newline at end of file diff --git a/webroot/featherlight-1.7.0/featherlight.min.js b/webroot/featherlight-1.7.0/featherlight.min.js deleted file mode 100644 index b0261ed..0000000 --- a/webroot/featherlight-1.7.0/featherlight.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Featherlight - ultra slim jQuery lightbox - * Version 1.7.0 - http://noelboss.github.io/featherlight/ - * - * Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com) - * MIT Licensed. -**/ -!function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}function c(a,b){var c={};for(var d in a)d in b&&(c[d]=a[d],delete a[d]);return c}function d(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var e=[],f=function(b){return e=a.grep(e,function(a){return a!==b&&a.$instance.closest("body").length>0})},g={allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,name:1,referrerpolicy:1,scrolling:1,sandbox:1,src:1,srcdoc:1,width:1},h={keyup:"onKeyUp",resize:"onResize"},i=function(c){a.each(b.opened().reverse(),function(){return c.isDefaultPrevented()||!1!==this[h[c.type]](c)?void 0:(c.preventDefault(),c.stopPropagation(),!1)})},j=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(h,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,i)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['
','
','",'
'+d.loading+"
","
","
"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(d.close(b),b.preventDefault())}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").not(b).slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var c=this;if(c.$instance.hide().appendTo(c.root),!(b&&b.isDefaultPrevented()||c.beforeOpen(b)===!1)){b&&b.preventDefault();var d=c.getContent();if(d)return e.push(c),j(!0),c.$instance.fadeIn(c.openSpeed),c.beforeContent(b),a.when(d).always(function(a){c.setContent(a),c.afterContent(b)}).then(c.$instance.promise()).done(function(){c.afterOpen(b)})}return c.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,d=a.Deferred();return c.beforeClose(b)===!1?d.reject():(0===f(c).length&&j(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),d.resolve()})),d.promise()},resize:function(a,b){if(a&&b){this.$content.css("width","").css("height","");var c=Math.max(a/(parseInt(this.$content.parent().css("width"),10)-1),b/(parseInt(this.$content.parent().css("height"),10)-1));c>1&&(c=b/Math.floor(b/c),this.$content.css("width",""+a/c+"px").css("height",""+b/c+"px"))}},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return this.persist!==!1?a(b):a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a('');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("
").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var e=new a.Deferred,f=a("