diff --git a/.composer-require-checker.config.json b/.composer-require-checker.config.json index aa3fe6d..8c79953 100644 --- a/.composer-require-checker.config.json +++ b/.composer-require-checker.config.json @@ -15,6 +15,12 @@ "static", "self", "parent", "array", "bool", "callable", "float", "int", "iterable", "object", "string", "void", + "// random native PHP functions", + "// these are moved in random native extension in PHP 8.2, but this extension does not exists in previous PHP versions", + "mt_rand", + "rand", + "random_int", + "// Galette constants (not detected as they are dynamically declared)", "GALETTE_ATTACHMENTS_PATH", "GALETTE_BASE_PATH", @@ -24,14 +30,18 @@ "GALETTE_CARD_ROWS", "GALETTE_CARD_WIDTH", "GALETTE_COMPAT_VERSION", + "GALETTE_SYSCONFIG_PATH", "GALETTE_CONFIG_PATH", "GALETTE_DATA_PATH", "GALETTE_DB_VERSION", + "GALETTE_DOCUMENTS_PATH", + "GALETTE_DOWNLOADS_URI", "GALETTE_EXPORTS_PATH", "GALETTE_FILES_PATH", "GALETTE_IMPORTS_PATH", "GALETTE_LOGS_PATH", "GALETTE_MODE", + "GALETTE_DEBUG", "GALETTE_NIGHTLY", "GALETTE_PHOTOS_PATH", "GALETTE_PLUGINS_PATH", @@ -49,11 +59,7 @@ "GALETTE_PGSQL_MIN", "GALETTE_DISPLAY_VERSION", "GALETTE_PHP_MIN", - "_T", - "__", - "_Tn", - "_Tx", - "_Tnx", + "GALETTE_TESTS", "// Galette db constants (not detected as they are dynamically declared)", "HOST_DB", @@ -68,12 +74,14 @@ "//know but not detected Galette function,", "remove_remarks", - "custom_html_entity_decode", - "get_form_value", - "get_numeric_form_value", "isValidWebUrl", "remove_remarks", "split_sql_file", + "_T", + "__", + "_Tn", + "_Tx", + "_Tnx", "// XHProf PECL extension", "XHProfRuns_Default", @@ -92,12 +100,7 @@ "DI\\Container", "DI\\ContainerBuilder", "DI\\Bridge\\Slim\\App", - - "// Should not error (not used) but...", - "mt_rand", - "rand", - "random_int", - + "DI\\Attribute\\Inject", "// Not detected, do not know why.", "Psr\\Http\\Server\\RequestHandlerInterface" diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 1bfd615..d6e3b3f 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -8,11 +8,20 @@ on: - 'feature/*' - 'hotfix/*' - 'release/*' + tags: + - '*' pull_request: + # Enable manual run + workflow_dispatch: + +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: true jobs: - ubuntu-latest: + lint: runs-on: ubuntu-latest + name: "Lint on PHP ${{ matrix.php-versions }}" strategy: matrix: @@ -20,8 +29,6 @@ jobs: coverage: [none] fail-fast: false - name: PHP ${{ matrix.php-versions }} on ubuntu-latest - steps: - name: PHP uses: shivammathur/setup-php@v2 @@ -31,7 +38,7 @@ jobs: coverage: ${{ matrix.coverage }} - name: Checkout Galette core - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: galette/galette path: galette-core @@ -39,7 +46,7 @@ jobs: ref: develop - name: Checkout plugin - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: galette-core/galette/plugins/plugin-objectslend @@ -49,7 +56,7 @@ jobs: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} @@ -63,16 +70,154 @@ jobs: - name: CS run: | cd galette-core/galette/plugins/plugin-objectslend - ../../vendor/bin/phpcs -n -p --standard=../../../phpcs-rules.xml lib/ ./*.php + ../../vendor/bin/phpcs lib/ ./*.php + + - name: Twig CS + run: | + cd galette-core/galette/plugins/plugin-objectslend + ../../vendor/bin/twigcs templates/default --severity error --display blocking - name: Check missing symbols run: | 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 + if: matrix.php-versions == '8.3' - 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' + + - name: Headers checks + run: | + cd galette-core/galette/plugins/plugin-objectslend + ../../vendor/bin/docheader --docheader=../../../.docheader check lib ./*.php + + unit-tests: + runs-on: ubuntu-latest + + strategy: + matrix: + include: + #always tests higher stable php version with lower db version + #enable coverage on higher stable php version with higher postrgesql version + #lower php version + - { php-version: "8.1", db-image: "mysql:5.7", coverage: none, always: false } + - { php-version: "8.1", db-image: "mysql:8.1", coverage: none, always: false } + - { php-version: "8.1", db-image: "mariadb:10.4", coverage: none, always: false } + - { php-version: "8.1", db-image: "mariadb:11", coverage: none, always: false } + - { php-version: "8.1", db-image: "postgres:11", coverage: none, always: false } + - { php-version: "8.1", db-image: "postgres:16", coverage: none, always: false } + #higher stable php version + - { php-version: "8.3", db-image: "mysql:5.7", coverage: none, always: true } + - { php-version: "8.3", db-image: "mysql:8.1", coverage: none, always: false } + - { php-version: "8.3", db-image: "mariadb:10.4", coverage: none, always: true } + - { php-version: "8.3", db-image: "mariadb:11", coverage: none, always: false } + - { php-version: "8.3", db-image: "postgres:11", coverage: none, always: true } + - { php-version: "8.3", db-image: "postgres:16", coverage: none, always: true } + fail-fast: false + + env: + skip: ${{ matrix.always == false && (github.event_name == 'pull_request' || github.repository != 'galette/galette-objectslend' || !(github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags'))) }} + DB: ${{ matrix.db-image }} + + services: + # Label used to access the service container + db: + # Docker Hub image + image: ${{ matrix.db-image }} + # Provide env variables for both mysql and pgsql + env: + POSTGRES_USER: galette_tests + POSTGRES_PASSWORD: g@l3tte + POSTGRES_DB: galette_tests + MYSQL_USER: galette_tests + MYSQL_PASSWORD: g@l3tte + MYSQL_ROOT_PASSWORD: g@l3tte + MYSQL_DATABASE: galette_tests + # Open network ports for both mysql and pgsql + ports: + - 3306:3306 + - 5432:5432 + # Set health checks to wait until postgres has started + options: >- + --health-cmd="bash -c 'if [[ -n $(command -v pg_isready) ]]; then pg_isready; else if [[ -n $(command -v mysqladmin) ]]; then mysqladmin ping; else mariadb-admin ping; fi fi'" + --health-interval=10s + --health-timeout=5s + --health-retries=10 + + name: PHP ${{ matrix.php-version }} ${{ matrix.db-image }} ${{ (matrix.always == false && (github.event_name == 'pull_request' || github.repository != 'galette/galette' || !(github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags')))) && ' (skipped)' || matrix.coverage == 'xdebug' && ' (with coverage)' || ''}} + + steps: + - name: PHP + if: env.skip != 'true' + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + tools: composer, pecl + coverage: ${{ matrix.coverage }} + extensions: apcu + ini-values: apc.enable_cli=1 + + - name: "Show versions" + if: env.skip != 'true' + run: | + php --version + composer --version + echo "node $(node --version)" + echo "npm $(npm --version)" + docker exec ${{ job.services.db.id }} bash -c "if [[ -n \$(command -v psql) ]]; then psql --version; else if [[ -n \$(command -v mysql) ]]; then mysql --version; else mariadb --version; fi fi" + + - name: Checkout Galette core + if: env.skip != 'true' + uses: actions/checkout@v4 + with: + repository: galette/galette + path: galette-core + fetch-depth: 1 + ref: develop + + - name: Checkout plugin + uses: actions/checkout@v4 + with: + path: galette-core/galette/plugins/plugin-objectslend + + - name: "Restore dependencies cache" + if: env.skip != 'true' + uses: actions/cache@v4 + with: + path: | + ~/.composer/cache/ + ~/.npm/_cacache/ + key: "${{ runner.os }}-galette-${{ matrix.php-version }}-${{ hashFiles('galette/composer.lock', 'package-lock.json') }}" + restore-keys: | + ${{ runner.os }}-galette-${{ matrix.php-version }}- + + - name: Install dependencies + if: env.skip != 'true' + run: | + cd galette-core + bin/install_deps + + - name: Init for PostgreSQL + env: + POSTGRES_HOST: localhost + POSTGRES_PORT: 5432 + run: | + PGPASSWORD=g@l3tte psql -d galette_tests -a -f galette-core/galette/install/scripts/pgsql.sql -U galette_tests -h localhost + PGPASSWORD=g@l3tte psql -d galette_tests -a -f galette-core/galette/plugins/plugin-objectslend/scripts/pgsql.sql -U galette_tests -h localhost + if: env.skip != 'true' && startsWith(matrix.db-image, 'postgres') + + - name: Init for MariaDB + run: | + mysql -e 'create database IF NOT EXISTS galette_tests;' -u galette_tests --password=g@l3tte -h 127.0.0.1 -P 3306 + mysql -e 'use galette_tests; source galette-core/galette/install/scripts/mysql.sql;' -u galette_tests --password=g@l3tte -h 127.0.0.1 -P 3306 + mysql -e 'use galette_tests; source galette-core/galette/plugins/plugin-objectslend/scripts/mysql.sql;' -u galette_tests --password=g@l3tte -h 127.0.0.1 -P 3306 + if: env.skip != 'true' && (startsWith(matrix.db-image, 'mysql') || startsWith(matrix.db-image, 'mariadb')) + + - name: Unit tests + if: env.skip != 'true' + run: | + cd galette-core/galette/plugins/plugin-objectslend + ../../vendor/bin/phpunit --test-suffix=.php --bootstrap tests/TestsBootstrap.php --no-coverage --process-isolation tests/GaletteObjectsLend/ diff --git a/.gitignore b/.gitignore index 5cc068d..55721b9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ quick_gen_project_* dist/ tempcache/ +tests/coverage/ diff --git a/_config.inc.php b/_config.inc.php index 8b61027..d0e40b7 100644 --- a/_config.inc.php +++ b/_config.inc.php @@ -1,41 +1,24 @@ . - * - * @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 */ +declare(strict_types=1); + define('LEND_PREFIX', 'lend_'); diff --git a/_define.php b/_define.php index 13dc9b9..73cea65 100644 --- a/_define.php +++ b/_define.php @@ -1,49 +1,34 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + $this->register( 'Galette Objects Lend', //Name 'Manage rent/lend of object', //Short description 'Mélissa Djebel, Johan Cwiklinski', //Author - '2.0.0', //Version - '1.0.0', //Galette version compatibility + '2.1.0', //Version + '1.1.0', //Galette version compatibility 'objectslend', //routing name and translation domain - '2023-12-07', //Date + '2024-06-08', //Date [ 'objectslend_preferences' => 'admin', 'store_objectlend_preferences' => 'admin', diff --git a/_routes.php b/_routes.php index f279c02..48b9a58 100644 --- a/_routes.php +++ b/_routes.php @@ -1,15 +1,9 @@ . - * - * @category Plugins - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 - * @since 2017-11-19 */ +declare(strict_types=1); + use Analog\Analog; use Galette\Entity\ContributionsTypes; use Galette\Entity\Adherent; diff --git a/bin/release b/bin/release index 0f4efbc..52f3265 100755 --- a/bin/release +++ b/bin/release @@ -6,7 +6,12 @@ from datetime import datetime from termcolor import colored from urllib.parse import urlparse +# on Tuxfamily +ssh_path = 'galette/galette-repository/plugins/' +ssh_host = 'ssh.tuxfamily.org' galette_dl_repo = 'http://download.tuxfamily.org/galette/plugins/' +is_local = False + local_dl_repo = os.path.join( os.path.dirname( os.path.dirname(os.path.abspath(__file__)) @@ -22,6 +27,8 @@ sign = True assume_yes = False nightly = False ssh_key = False +tag_commit = None + def print_err(msg): """ @@ -29,12 +36,14 @@ def print_err(msg): """ print(colored(msg, 'red', attrs=['bold'])) + def get_numeric_version(ver): """ Returns all numeric version """ return re.findall(r'\d+', ver) + def valid_version(ver): """ Check if provided version is valid. @@ -44,6 +53,7 @@ def valid_version(ver): """ return '.'.join(get_numeric_version(ver)) == ver + def incr_version(ver): """ Increment version number @@ -52,6 +62,7 @@ def incr_version(ver): version[-1] = str(int(version[-1]) + 1) return version + def propose_version(): """ Propose new minor and major versions, @@ -63,24 +74,24 @@ def propose_version(): for tagref in tagrefs: tag = tagref.tag if valid_version(tag.tag): - #last minor version is always the last one :) + # last minor version is always the last one :) if tag.tag > last_minor: last_minor = tag.tag - #last major version + # last major version if len(tag.tag) == 5 and tag.tag > last_major: last_major = tag.tag if verbose: print('last minor: %s | last major %s' % (last_minor, last_major)) - #no version provided. propose one + # no version provided. propose one new_minor = None new_major = None if len(last_minor) == 5: - #if the latest is a major version - new_minor = last_minor + ('.1') + # if the latest is a major version + new_minor = last_minor + '.1' else: new_minor = '.'.join(incr_version(last_minor)) @@ -91,19 +102,24 @@ def propose_version(): major: %s """ % (new_minor, new_major)) + def get_latest_version(): """ Look for latest version """ + global tag_commit + last = None for tagref in tagrefs: tag = tagref.tag - if valid_version(tag.tag): - #last minor version is always the last one :) - if last == None or tag.tag > last: - last = tag.tag + if tag is not None and valid_version(tag.tag): + # last minor version is always the last one :) + if last is None or tag.tag > last.tag: + last = tag + + tag_commit = last.hexsha + return last.tag - return last def is_existing_version(ver): """ @@ -135,6 +151,7 @@ def ask_user_confirm(msg): "Invalid input. Please enter 'yes' or 'no' (or 'y' or 'n')." ) + def get_rel_name(buildver): """ Build archive name from command line parameters @@ -157,10 +174,13 @@ def get_rel_name(buildver): return archive_name + def _do_build(ver): """ Proceed build """ + global is_local + exists = False ascexists = False rel_name = get_rel_name(ver) @@ -171,33 +191,40 @@ def _do_build(ver): ) if not force: - #first check if a version + # first check if a version local = False ascLocal = False url = galette_dl_repo + '/' + archive_name urlasc = '%s.asc' % url - parsed = urlparse(url) - ascparsed = urlparse(urlasc) - connection = http.client.HTTPConnection(parsed[1], 80) - connection.request('HEAD', parsed[2]) - response = connection.getresponse() - exists = response.status == 200 + if is_local: + exists = os.path.isfile(url) + else: + parsed = urlparse(url) + + connection = http.client.HTTPConnection(parsed[1], 80) + connection.request('HEAD', parsed[2]) + response = connection.getresponse() + exists = response.status == 200 if not exists: - #also check from local repo + # also check from local repo exists = os.path.exists(galette_archive) if exists: local = True - connection = http.client.HTTPConnection(ascparsed[1], 80) - connection.request('HEAD', ascparsed[2]) - response = connection.getresponse() - ascexists = response.status == 200 + if is_local: + ascexists = os.path.isfile(urlasc) + else: + ascparsed = urlparse(urlasc) + connection = http.client.HTTPConnection(ascparsed[1], 80) + connection.request('HEAD', ascparsed[2]) + response = connection.getresponse() + ascexists = response.status == 200 if not ascexists: - #also check from local repo + # also check from local repo ascexists = os.path.exists( os.path.join( local_dl_repo, @@ -213,7 +240,7 @@ def _do_build(ver): loctxt = '' if local: loctxt = 'locally ' - msg = 'Relase %s already %sexists' % (rel_name, loctxt) + msg = 'Release %s already %sexists' % (rel_name, loctxt) if ascexists: loctxt = '' @@ -257,7 +284,7 @@ def _do_build(ver): typever, galette_archive )) - print('Archive command: %s' % (archive_cmd)) + print('Archive command: %s' % archive_cmd) if commit and extra: print('Archiving GIT commit %s' % commit) @@ -278,33 +305,63 @@ def _do_build(ver): ) if upload: - do_scp(galette_archive) + do_upload(galette_archive) + def do_sign(archive): sign_cmd = 'gpg --detach-sign --armor %s' % archive p1 = subprocess.Popen(sign_cmd, shell=True) p1.communicate() + +def do_upload(galette_archive): + """ + proceed file upload + :param galette_archive: + :return: + """ + global is_local + + if is_local: + do_cp(galette_archive) + else: + do_scp(galette_archive) + + def do_scp(archive): - global ssh_key + global ssh_key, ssh_host, ssh_path - path = 'galette/galette-repository/plugins/' + path = ssh_path if extra: path += 'dev/' if ssh_key: - scp_cmd = 'scp -i %s %s* ssh.tuxfamily.org:%s' % (ssh_key, archive, path) + scp_cmd = 'scp -i %s %s* %s:%s' % (ssh_key, archive, ssh_host, path) else: - scp_cmd = 'scp -r %s* ssh.tuxfamily.org:%s' % (archive, path) + scp_cmd = 'scp -r %s* %s:%s' % (archive, ssh_host, path) print(scp_cmd) p1 = subprocess.Popen(scp_cmd, shell=True) p1.communicate() + +def do_cp(archive): + global galette_dl_repo + + path = galette_dl_repo + if extra: + path = os.path.join(path, 'dev') + + shutil.copyfile( + archive, + os.path.join(path, os.path.basename(archive)) + ) + + def add_libs(rel_name, galette_archive): """ Add external libraries to the archive """ - galette = tarfile.open(galette_archive, 'r|bz2') + galette = tarfile.open(galette_archive, 'r|bz2', format=tarfile.GNU_FORMAT) src_dir = os.path.join(local_dl_repo, 'src') if not os.path.exists(src_dir): os.makedirs(src_dir) @@ -384,7 +441,7 @@ def add_libs(rel_name, galette_archive): ]: os.remove(os.path.join(root, filename)) - galette = tarfile.open(galette_archive, 'w|bz2') + galette = tarfile.open(galette_archive, 'w|bz2', format=tarfile.GNU_FORMAT) for i in os.listdir(src_dir): galette.add( @@ -395,9 +452,10 @@ def add_libs(rel_name, galette_archive): galette.close() shutil.rmtree(src_dir) + def valid_commit(repo, c): """ - Validate commit existance in repository + Validate commit existence in repository """ global commit @@ -424,11 +482,12 @@ def valid_commit(repo, c): except gitdb.exc.BadObject: return False + def main(): """ Main method """ - global verbose, tagrefs, force, extra, assume_yes, nightly, sign, ssh_key + global verbose, tagrefs, force, extra, assume_yes, nightly, sign, ssh_key, repo, ssh_host, ssh_path, galette_dl_repo, is_local parser = argparse.ArgumentParser(description='Release Galette ObjectsLend Plugin') group = parser.add_mutually_exclusive_group() @@ -471,15 +530,36 @@ def main(): help='Build nightly', action="store_true" ) + parser.add_argument( + '-l', + '--local', + help='Use local copy (defined from galette_dl_repo) rather than SSH', + action='store_true' + ) parser.add_argument( '-k', '--ssh-key', help='SSH key to be used for uploading', ) + parser.add_argument( + '-H', + '--ssh-host', + help='SSH host to upload to (default %s)' % ssh_host + ) + parser.add_argument( + '-P', + '--ssh-path', + help='Path on SSH host (default %s)' % ssh_path + ) + parser.add_argument( + '-d', + '--download-url', + help='Download URL (default %s)' % galette_dl_repo + ) parser.add_argument('-f', action='store_true') args = parser.parse_args() - verbose=args.verbose + verbose = args.verbose if verbose: print(args) @@ -492,10 +572,26 @@ def main(): force = ask_user_confirm( 'Are you *REALLY* sure you mean -f when you typed -f? [yes/No] ' ) - assume_yes=args.assume_yes + assume_yes = args.assume_yes + + if args.local: + if not args.download_url: + print_err('download_url is mandatory for local builds!') + sys.exit(1) + is_local = args.local + + else: + if args.ssh_key: + ssh_key = args.ssh_key + + if args.ssh_host: + ssh_host = args.ssh_host + + if args.ssh_path: + ssh_path = args.ssh_path - if args.ssh_key: - ssh_key = args.ssh_key + if args.download_url: + galette_dl_repo = args.download_url build = False buildver = None @@ -527,7 +623,7 @@ def main(): print_err('%s is not a valid version number!' % args.version) sys.exit(1) else: - #check if specified version exists + # check if specified version exists if not is_existing_version(args.version): print_err('%s does not exist!' % args.version) else: diff --git a/lang/ar.utf8/LC_MESSAGES/objectslend.mo b/lang/ar.utf8/LC_MESSAGES/objectslend.mo index dfbf425..4a9ea8b 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 0596e0c..6d6e535 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 213dc2b..776ef43 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 c6316a7..a41c1ed 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 acbafaa..bbad6d1 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 c353ec4..59c0eeb 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 ed5ed1d..b7a36c5 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 3138488..3e0fa45 100644 --- a/lang/objectslend.pot +++ b/lang/objectslend.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,594 +18,445 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\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 "" - -#: ../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 "" - -#: ../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 -msgid "Status has been updated" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 -msgid "Successfully cloned from #%id.
You can now edit it." +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 -msgid "Borrow an object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 -msgid "Return a borrowed object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 -msgid "You do not have rights to borrow objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 -#, php-format -msgid "%object is currently not available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 -msgid "You do not have rights to return objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 -#, php-format -msgid "You have just borrowed %object :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 -#, php-format -msgid "%object has been returned :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 -#, php-format -msgid "You are about to remove %count objects." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add at last one status \"in stock\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 -msgid "Please add at least one status \"object borrowed\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 -msgid "Objects lend" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 -msgid "Borrow status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 -msgid "Object categories" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 -msgid "Preferences" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 #: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 #, 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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" 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" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 -msgid "Unable to store preferences :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 -msgid "Rent has not been added" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 -msgid "Y-m-d H:i" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" msgstr "" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:751 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, 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" +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -619,6 +470,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -755,125 +614,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_ar.utf8.po b/lang/objectslend_ar.utf8.po index 3ab6e20..3543e33 100644 --- a/lang/objectslend_ar.utf8.po +++ b/lang/objectslend_ar.utf8.po @@ -1,12 +1,12 @@ # Johan Cwiklinski , 2020. # ButterflyOfFire , 2020, 2021, 2022. -# ButterflyOfFire , 2023. +# ButterflyOfFire , 2023, 2024. 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-10-19 19:38+0000\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2024-02-06 15:01+0000\n" "Last-Translator: ButterflyOfFire \n" "Language-Team: Arabic \n" @@ -16,596 +16,447 @@ 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 5.1\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 "" - -#: ../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 "" - -#: ../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 -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: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 -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 "" - -#: ../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:966 -#, php-format -msgid "%object has been returned :)" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" -msgstr "" - -#: ../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 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 "" +"X-Generator: Weblate 5.4-dev\n" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 -#, php-format -msgid "Printed on %date" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "الملصقات" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 #: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 msgid "Description" msgstr "الوصف" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../tempcache/objects_list.html.twig:148 -#: ../tempcache/objects_list.html.twig:561 -msgid "Serial" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 #: ../tempcache/objects_list.html.twig:159 #: ../tempcache/objects_list.html.twig:575 msgid "Price" -msgstr "" +msgstr "السعر" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../tempcache/objects_list.html.twig:170 -#: ../tempcache/objects_list.html.twig:589 -msgid "Borrow price" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 #: ../tempcache/objects_list.html.twig:181 #: ../tempcache/objects_list.html.twig:619 msgid "Dimensions" +msgstr "الأحجام" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:184 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 #: ../tempcache/objects_list.html.twig:192 #: ../tempcache/objects_list.html.twig:633 msgid "Weight" +msgstr "الوزن" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" 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/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "نشط" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 #: ../tempcache/objects_list.html.twig:200 #: ../tempcache/objects_list.html.twig:666 msgid "Since" -msgstr "" +msgstr "منذ" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 msgid "Member" -msgstr "" +msgstr "عضو" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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:" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "الصفة" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" -msgstr "الملصقات" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 -msgid "Serial number" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +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/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" +msgstr "طُبِع في %date" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" +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/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" +msgstr "تكلفة الاستعارة" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" +msgstr "الإجمالي:" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 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 :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" -msgstr "صورة:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "قائمة الحالات" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" +msgstr "حالة جديدة" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" +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 "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" +msgstr "تعديل الفئة" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" +msgstr "فئة جديدة" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "فشل الحذف" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" +msgstr "تم حفظ الفئة" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" 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 "غير نَشِط" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" +msgstr "تعديل الشيء" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" +msgstr "شيء جديد" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:751 -#, php-format -msgid "Remove %object from database" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:767 -msgid "Take away" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../tempcache/objects_list.html.twig:778 -msgid "Give back" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:821 -msgid "No object has been found" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" +msgstr "استعارة شيء" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" +msgstr "إعادة شيء مستَعار" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" -msgstr "" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" +msgstr "استعارة أشياء" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" +msgstr "حالة الاستعارة" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" +msgstr "فئات الأشياء" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" +msgstr "الخيارات" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" -msgstr "" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "الحالة:" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -623,6 +474,14 @@ msgstr[5] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "غير نَشِط" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -647,7 +506,7 @@ msgstr "" #: ../tempcache/preferences.html.twig:74 msgid "Members can borrow:" -msgstr "" +msgstr "بإمكان الأعضاء استعارة:" #: ../tempcache/preferences.html.twig:74 msgid "" @@ -667,11 +526,11 @@ msgstr "" #: ../tempcache/preferences.html.twig:105 msgid "Choose a contribution type" -msgstr "" +msgstr "اختيار نوع المساهمة" #: ../tempcache/preferences.html.twig:127 msgid "Contribution type:" -msgstr "" +msgstr "نوع المساهمة:" #: ../tempcache/preferences.html.twig:134 msgid "Contribution text:" @@ -759,125 +618,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "الإسم:" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" -msgstr "" +msgstr "الوصف :" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" @@ -888,7 +887,7 @@ msgstr "" #: ../tempcache/take_object.html.twig:442 msgid "Time:" -msgstr "" +msgstr "المدة:" #: ../tempcache/take_object.html.twig:446 #, php-format @@ -909,7 +908,7 @@ msgstr "" #: ../tempcache/take_object.html.twig:480 msgid "Show terms and conditions" -msgstr "" +msgstr "إظهار الشروط العامة" #: ../tempcache/take_object.html.twig:487 msgid "" @@ -931,7 +930,7 @@ msgstr "" #: ../tempcache/take_object.html.twig:501 msgid "Borrow object" -msgstr "" +msgstr "إقتراض شيء" #: ../tempcache/take_object.html.twig:503 msgid "Return object" @@ -939,7 +938,7 @@ msgstr "" #: ../tempcache/take_object.html.twig:558 msgid "You must agree with terms and conditions in order to borrow." -msgstr "" +msgstr "يجب أن توافق على الشروط العمة من أجل الاقتراض." #~ msgid "Delete image" #~ msgstr "حذف الصورة" diff --git a/lang/objectslend_br.utf8.po b/lang/objectslend_br.utf8.po index 1690bed..8e69026 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: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+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: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 "" - -#: ../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 "" - -#: ../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 -msgid "Status has been updated" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 -msgid "Successfully cloned from #%id.
You can now edit it." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 -msgid "Borrow an object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 -msgid "Return a borrowed object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 -msgid "You do not have rights to borrow objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 -#, php-format -msgid "%object is currently not available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 -msgid "You do not have rights to return objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 -#, php-format -msgid "You have just borrowed %object :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 -#, php-format -msgid "%object has been returned :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 -#, php-format -msgid "You are about to remove %count objects." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add at last one status \"in stock\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 -msgid "Please add at least one status \"object borrowed\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Statud" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 -msgid "Objects lend" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 -msgid "Borrow status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 -msgid "Object categories" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 -msgid "Preferences" -msgstr "Dibaboù" - -#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 #: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 #, 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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 #: ../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 "Statud" - -#: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" msgstr "" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:751 -#, php-format -msgid "Remove %object from database" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../tempcache/objects_list.html.twig:767 -msgid "Take away" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:778 -msgid "Give back" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:821 -msgid "No object has been found" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" -msgstr "" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" +msgstr "Dibaboù" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../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_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../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/categories_list.html.twig:62 @@ -623,6 +474,14 @@ msgstr[4] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -759,125 +618,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_ca.utf8.po b/lang/objectslend_ca.utf8.po index aeaba25..b823111 100644 --- a/lang/objectslend_ca.utf8.po +++ b/lang/objectslend_ca.utf8.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" "PO-Revision-Date: 2023-11-22 10:44+0000\n" "Last-Translator: Johan Cwiklinski \n" "Language-Team: Catalan You can now edit it." -msgstr "Duplicat amb èxit des de #%id. Ara ho pots editar." - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" -msgstr "Hi ha ocorregut un error duplicant l'objecte :(" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 -msgid "Borrow an object" -msgstr "Demanar prestat un objecte" - -#: ../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 "No tens dret a emportar-te objectes!" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 -#, php-format -msgid "%object is currently not available" -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:876 -#, php-format -msgid "You have just borrowed %object :)" -msgstr "Acabes d'agafar prestat %object :)" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 -#, php-format -msgid "%object has been returned :)" -msgstr "%object ha sigut tornat :)" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" -msgstr "Eliminar objecte %1$s" - -#: ../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 -#, 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 "Si us plau afegeix com a mínim un estat \"objecte prestat\"!" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" -msgstr "Llista de estats" - -#: ../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" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 -#, php-format -msgid "Printed on %date" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 #: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../tempcache/objects_list.html.twig:148 -#: ../tempcache/objects_list.html.twig:561 -msgid "Serial" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 -msgid "Serial number" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +msgstr "Llista d'objectes" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../tempcache/objects_edit.html.twig:140 -#: ../tempcache/take_object.html.twig:171 -msgid "Cm" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" 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" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 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 :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +#, 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\"!" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "Si us plau afegeix com a mínim un estat \"objecte prestat\"!" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" -msgstr "Imatge:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "Llista de estats" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" +msgstr "Llista de categories" -#: ../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 "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" +msgstr "Editar categoria" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" +msgstr "Nova categoria" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "Ha fallat la supressió" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." +msgstr "Hi ha ocorregut un error mentre s'emmagatzemava la categoria." -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" +msgstr "La categoria ha sigut guardada" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" +msgstr "Esborrar categoria%1$s" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" 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 "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" +msgstr "Editar objecte" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" +msgstr "Nou objecte" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" +msgstr "Alguna cosa ha anat malament guardant l'objecte :(" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" +msgstr "L'objecte s'ha guardat" -#: ../tempcache/objects_list.html.twig:751 -#, php-format -msgid "Remove %object from database" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +#, fuzzy +#| msgid "Category has been saved" +msgid "Status has been updated" +msgstr "La categoria ha sigut guardada" -#: ../tempcache/objects_list.html.twig:767 -msgid "Take away" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." +msgstr "Duplicat amb èxit des de #%id. Ara ho pots editar." -#: ../tempcache/objects_list.html.twig:778 -msgid "Give back" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" -#: ../tempcache/objects_list.html.twig:821 -msgid "No object has been found" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" +msgstr "Demanar prestat un objecte" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:868 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 #, fuzzy -#| msgid "An error occured cloning object :(" -msgid "An error occurred loading history display :(" -msgstr "Hi ha ocorregut un error duplicant l'objecte :(" +#| 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!" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" +msgstr "%objecte actualment no està disponible" -#: ../tempcache/objects_list.html.twig:921 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 #, fuzzy -#| msgid "An error occured cloning object :(" -msgid "An error occurred loading 'Take away' display :(" -msgstr "Hi ha ocorregut un error duplicant l'objecte :(" +#| 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!" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" +msgstr "Acabes d'agafar prestat %object :)" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" +msgstr "%object ha sigut tornat :)" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" +msgstr "Eliminar objecte %1$s" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." 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 :(" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" +msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -633,6 +478,14 @@ msgstr[1] "Editar categoria" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -769,125 +622,271 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Imatge:" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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 +#, fuzzy +#| msgid "An error occurred cloning object :(" +msgid "An error occurred loading history display :(" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" + +#: ../tempcache/objects_list.html.twig:904 +msgid "Take objects" +msgstr "" + +#: ../tempcache/objects_list.html.twig:921 +#, fuzzy +#| msgid "An error occurred cloning object :(" +msgid "An error occurred loading 'Take away' display :(" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" + +#: ../tempcache/objects_list.html.twig:951 +msgid "Give back objects" +msgstr "" + +#: ../tempcache/objects_list.html.twig:968 +#, fuzzy +#| msgid "An error occurred cloning object :(" +msgid "An error occurred loading 'Give back' display :(" +msgstr "Hi ha ocorregut un error duplicant l'objecte :(" + #: ../tempcache/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_de_DE.utf8.po b/lang/objectslend_de_DE.utf8.po index 1923f1b..bbbfd9f 100644 --- a/lang/objectslend_de_DE.utf8.po +++ b/lang/objectslend_de_DE.utf8.po @@ -2,13 +2,14 @@ # Stefanie Schreiner , 2020. # Ricardo Santos , 2021. # klausellus-wallace , 2023. +# mr cmuc , 2024. 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-03-02 13:38+0000\n" -"Last-Translator: klausellus-wallace \n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2024-04-28 16:25+0000\n" +"Last-Translator: mr cmuc \n" "Language-Team: German \n" "Language: de_DE\n" @@ -16,618 +17,477 @@ 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.16.2-dev\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 "Löschen fehlgeschlagen" - -#: ../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 "" - -#: ../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 "" - -#: ../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 -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: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 -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 "" - -#: ../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:966 -#, php-format -msgid "%object has been returned :)" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" -msgstr "" - -#: ../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 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 "Neuer Status" - -#: ../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 "Einstellungen" +"X-Generator: Weblate 5.5.1\n" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 -#, php-format -msgid "Printed on %date" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Adresslabel" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 #: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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:179 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 msgid "Description" msgstr "Beschreibung" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../tempcache/objects_list.html.twig:148 -#: ../tempcache/objects_list.html.twig:561 -msgid "Serial" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" +msgstr "Kategorie" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 #: ../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 "Status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "Aktive" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "Ort" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 msgid "Member" msgstr "Mitglied" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 -msgid "Total:" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" +msgstr "Anfang" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" +msgstr "Ende" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Status" -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" -msgstr "Adresslabel" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 -msgid "Serial number" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../tempcache/objects_edit.html.twig:140 -#: ../tempcache/take_object.html.twig:171 -msgid "Cm" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" 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 "Aktive" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" -msgstr "Ort" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" +msgstr "Kategorie: %category" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" -msgstr "Anfang" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" -msgstr "Ende" - -#: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" +msgstr "Keine Kategorie" + +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" -msgstr "Bild:" - -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" +msgstr "Neuer Status" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" 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 "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" +msgstr "Kategorie bearbeiten" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" +msgstr "Neue Kategorie" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "Löschen fehlgeschlagen" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." +msgstr "Beim Speichern der Kategorie ist ein Fehler aufgetreten." -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" +msgstr "Die Kategorie wurde gespeichert" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" +msgstr "Kategorie entfernen %1$s" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" +msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:751 -#, php-format -msgid "Remove %object from database" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:767 -msgid "Take away" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../tempcache/objects_list.html.twig:778 -msgid "Give back" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:821 -msgid "No object has been found" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" -msgstr "Anfangsdatum" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" +msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" -msgstr "Enddatum" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." +msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" +msgstr "Einstellungen" + +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Status:" + +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../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_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../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/categories_list.html.twig:62 #, php-format msgid "%count category" msgid_plural "%count categories" -msgstr[0] "" -msgstr[1] "" +msgstr[0] "%count Kategorie" +msgstr[1] "%count Kategorien" #: ../tempcache/categories_list.html.twig:86 msgid "Add a category" -msgstr "" +msgstr "Kategorie hinzufügen" + +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "Inaktiv" #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" -msgstr "" +msgstr "Bearbeite \"%category\"" #: ../tempcache/categories_list.html.twig:325 #, php-format msgid "Remove \"%category\"" -msgstr "" +msgstr "Entferne \"%category\"" #: ../tempcache/preferences.html.twig:57 msgid "Plugin preferences" @@ -643,13 +503,16 @@ msgstr "" #: ../tempcache/preferences.html.twig:74 msgid "Members can borrow:" -msgstr "" +msgstr "Mitglieder können ausleihen:" #: ../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 "" +"Einem Mitglied (mit Ausnahme Mitarbeiter und Administrator) erlauben, ein " +"Objekt auszuleihen. Wenn diese Option auf \"Nein\" gesetzt ist, können nur " +"Administratoren und Mitarbeiter auf die Seite \"Objekt ausleihen\" zugreifen" #: ../tempcache/preferences.html.twig:76 msgid "Generate contribution:" @@ -755,125 +618,265 @@ msgstr "" 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 "Status:" - -#: ../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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Name:" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Beschreibung:" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" -msgstr "" +msgstr "--- Wähle eine Kategorie ---" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "Duplizieren" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Bild:" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +msgstr "" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Anfangsdatum" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Enddatum" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_en_US.po b/lang/objectslend_en_US.po index dcca625..cc5d9ce 100644 --- a/lang/objectslend_en_US.po +++ b/lang/objectslend_en_US.po @@ -1,14 +1,14 @@ # English translations for PACKAGE package. -# Copyright (C) 2023 THE PACKAGE'S COPYRIGHT HOLDER +# Copyright (C) 2024 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# Automatically generated, 2023. +# Automatically generated, 2024. # 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-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2024-02-08 22:16+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en_US\n" @@ -17,597 +17,448 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" +msgstr "object_card" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" +msgstr "Object card" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Labels" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" +msgstr "Name" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" +msgstr "Description" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" +msgstr "Category" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "Serial number" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" +msgstr "Price" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" +msgstr "Price per rental day" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" +msgstr "Dimensions" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "Cm" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" +msgstr "Weight" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "Kg" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "Active" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "Location" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" +msgstr "Since" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" +msgstr "Member" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" +msgstr "Return" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" +msgstr "History of object loans" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" +msgstr "Begin" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" +msgstr "End" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Status" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" +msgstr "In stock" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" +msgstr "Comments" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" +msgstr "objects_cards" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +msgstr "Objects list" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" +msgstr "Printed on %date" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" +msgstr "Serial" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" +msgstr "Borrow price" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" +msgstr "Category: %category" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" +msgstr "Total:" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" +msgstr "Borrowed" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" +msgstr "Available" + +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" +msgstr "Status has not been added :(" + +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" +msgstr "Object has not been added :(" + +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" +msgstr "No category" + +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" +msgstr "Unable to store preferences :(" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" +msgstr "Rent has not been added" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" +msgstr "Y-m-d H:i" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" +msgstr "ObjectsLend preferences" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" +msgstr "Preferences have been successfully stored!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" +msgstr "Please add at last one status \"in stock\"!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "Please add at least one status \"object borrowed\"!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "Status list" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" +msgstr "Edit status %status" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" +msgstr "New status" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." +msgstr "An error occurred while storing the status." + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" +msgstr "Status has been saved" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" +msgstr "Remove status %1$s" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 msgid "Categories list" msgstr "Categories list" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 msgid "Edit category" msgstr "Edit category" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 msgid "New category" msgstr "New category" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 msgid "Delete failed" msgstr "Delete failed" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 msgid "An error occurred while storing the category." msgstr "An error occurred while storing the category." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 msgid "Category has been saved" msgstr "Category has been saved" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 #, php-format msgid "Remove category %1$s" msgstr "Remove category %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 "Objects list" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 #, php-format msgid "Rents list for %object" msgstr "Rents list for %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 #: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "Edit object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 msgid "New object" msgstr "New object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 msgid "Something went wrong saving object :(" msgstr "Something went wrong saving object :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 msgid "Object has been saved" msgstr "Object has been saved" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 msgid "Status has been updated" msgstr "Status has been updated" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 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:578 -msgid "An error occured cloning object :(" -msgstr "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" +msgstr "An error occurred cloning object :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 msgid "Borrow an object" msgstr "Borrow an object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 msgid "Return a borrowed object" msgstr "Return a borrowed object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 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 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, php-format msgid "%object is currently not available" msgstr "%object is currently not available" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 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 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 #, php-format msgid "You have just borrowed %object :)" msgstr "You have just borrowed %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 #, php-format msgid "%object has been returned :)" msgstr "%object has been returned :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 #, php-format msgid "Remove object %1$s" msgstr "Remove object %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 #, 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 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\"!" -msgstr "Please add at least one status \"object borrowed\"!" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" -msgstr "Status list" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" -msgstr "Edit status %status" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" -msgstr "New status" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." -msgstr "An error occured while storing the status." - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" -msgstr "Status has been saved" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" -msgstr "Remove status %1$s" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" -msgstr "ObjectsLend preferences" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" -msgstr "Preferences have been successfully stored!" - -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 msgid "Objects lend" msgstr "Objects lend" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 msgid "Borrow status" msgstr "Borrow status" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 msgid "Object categories" msgstr "Object categories" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 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/Filters/ObjectsList.php:257 +msgid "Name/description" +msgstr "Name/description" -#: ../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:179 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 -msgid "Description" -msgstr "Description" - -#: ../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: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:182 -#: ../tempcache/objects_list.html.twig:170 -#: ../tempcache/objects_list.html.twig:589 -msgid "Borrow price" -msgstr "Borrow price" - -#: ../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: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: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: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:187 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 -msgid "Member" -msgstr "Member" - -#: ../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:216 -#, php-format -msgid "Category: %category" -msgstr "Category: %category" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 -msgid "Total:" -msgstr "Total:" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" -msgstr "Borrowed" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" -msgstr "Available" - -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" -msgstr "object_card" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" -msgstr "Object card" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" -msgstr "Labels" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" -msgstr "Category" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 -msgid "Serial number" -msgstr "Serial number" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" -msgstr "Price per rental day" - -#: ../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:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" -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 "Active" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" -msgstr "Location" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" -msgstr "History of object loans" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" -msgstr "Begin" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" -msgstr "End" - -#: ../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:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" -msgstr "Comments" - -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" -msgstr "Status has not been added :(" - -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 -msgid "Unable to store preferences :(" -msgstr "Unable to store preferences :(" - -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 -msgid "Rent has not been added" -msgstr "Rent has not been added" - -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 -msgid "Y-m-d H:i" -msgstr "Y-m-d H:i" - -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" -msgstr "No category" - -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" -msgstr "Object has not been added :(" - -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" -msgstr "Name/description" - -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 #: ../tempcache/list_lent_object.html.twig:66 msgid "Id" -msgstr "Id" - -#: ../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:" - -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" -msgstr "Categories" - -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" -msgstr "Object photo" - -#: ../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" +msgstr "Id" + +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Status:" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 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_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "Is object in stock or borrowed" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" -msgstr "%days days" +#: ../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" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" -msgstr "Edit %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" +msgstr "Active:" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" -msgstr "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" +msgstr "Days for rent" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" -msgstr "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "Number of days to rent per default" + +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "used to compute return date" #: ../tempcache/categories_list.html.twig:62 #, php-format @@ -620,6 +471,14 @@ msgstr[1] "%count categories" msgid "Add a category" msgstr "Add a category" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "Inactive" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -766,127 +625,267 @@ msgstr "View serial number:" msgid "View weight" msgstr "View weight" -#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 -#: ../tempcache/take_object.html.twig:435 -msgid "Status:" -msgstr "Status:" - -#: ../tempcache/status_edit.html.twig:74 -msgid "Is object in stock or borrowed" -msgstr "Is object in stock or borrowed" - -#: ../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" - -#: ../tempcache/status_edit.html.twig:87 -msgid "Number of days to rent per default" -msgstr "Number of days to rent per default" - -#: ../tempcache/status_edit.html.twig:87 -msgid "used to compute return date" -msgstr "used to compute return date" - -#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "Object" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Name:" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Description:" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "--- Select a category ---" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "Category:" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "Serial number:" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "Price:" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "Borrow price:" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "Price per rental day:" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 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" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "Dimensions:" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "Weight:" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "--- Select a status ---" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "Where is the object?" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "Object's photo" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "Duplicate" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "Print object" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "History" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "Change status" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" -msgstr "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "Click to view fullsize image" + +#: ../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:378 +msgid "Categories" +msgstr "Categories" + +#: ../tempcache/objects_list.html.twig:532 +#: ../tempcache/take_object.html.twig:95 +msgid "Object photo" +msgstr "Object photo" + +#: ../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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "Borrow information" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Member:" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "Expected return:" diff --git a/lang/objectslend_es.utf8.po b/lang/objectslend_es.utf8.po index 1839f4d..9569ffc 100644 --- a/lang/objectslend_es.utf8.po +++ b/lang/objectslend_es.utf8.po @@ -10,9 +10,9 @@ 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" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2023-12-07 12:05+0000\n" +"Last-Translator: gallegonovato \n" "Language-Team: Spanish \n" "Language: es\n" @@ -20,605 +20,450 @@ 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 5.2\n" +"X-Generator: Weblate 5.3-dev\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" +msgstr "objeto_tarjeta" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" +msgstr "Tarjeta objeto" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Etiquetas" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" +msgstr "Nombre" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" +msgstr "Descripción" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" +msgstr "Categoría" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "Nº de serie" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" +msgstr "Precio" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" +msgstr "Precio por día beneficiario" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" +msgstr "Dimensiones" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "Cm" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" +msgstr "Ponderación" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "Kg" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "Activa" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "Lugar" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" +msgstr "Desde" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" +msgstr "Miembro" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" +msgstr "Devolución" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" +msgstr "Histórico de objeto alquilado" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" +msgstr "Comienzo" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" +msgstr "Final" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Estado" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" +msgstr "Almacenado" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" +msgstr "Comentarios" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" +msgstr "objects_cards" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +msgstr "Índice de objetos" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" +msgstr "Escrito el %date" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" +msgstr "Serie" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" +msgstr "Precio de alquiler" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" +msgstr "Categoría: %category" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" +msgstr "Total:" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" +msgstr "Alquilado" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" +msgstr "Disponible" + +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" +msgstr "Estado que no ha sido añadido :(" + +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" +msgstr "El objeto no ha sido agregado :(" + +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" +msgstr "Ninguna categoría" + +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" +msgstr "Imposible almacenar preferencias :(" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" +msgstr "La renta no ha sido añadida" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" +msgstr "Y-m-d H:i" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" +msgstr "Preferencias de ObjectLend" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" +msgstr "¡ Las preferencias han sigo almacenadas correctamente !" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" +msgstr "¡ Agregue al final un estado «en almacenaje» !" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "¡ Añada un estado «objeto alquilado» !" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "Índice de estado" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" +msgstr "Editar estado %status" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" +msgstr "Estado nuevo" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." +msgstr "Ha ocurrido un error mientras almacenada el estado." + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" +msgstr "El estado ha sido guardado" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" +msgstr "Eliminar estado %1$s" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 msgid "Categories list" msgstr "Lista de las categorías" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 msgid "Edit category" msgstr "Editar categoría" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 msgid "New category" msgstr "Crear categoría" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 msgid "Delete failed" msgstr "Eliminación errónea" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 msgid "An error occurred while storing the category." msgstr "Ocurrió un error al almacenar la categoría." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 msgid "Category has been saved" msgstr "La categoría ha sido guardada" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 #, php-format msgid "Remove category %1$s" msgstr "Eliminar categoría %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 "Índice de objetos" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 #, php-format msgid "Rents list for %object" msgstr "Listado de rentas para %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 #: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "Editar objeto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 msgid "New object" msgstr "Crear objeto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 msgid "Something went wrong saving object :(" msgstr "Algo fue mal al guardar objeto :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 msgid "Object has been saved" msgstr "El objeto ha sido guardado" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 -#, fuzzy -#| msgid "Status has been saved" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 msgid "Status has been updated" -msgstr "El estado ha sido guardado" +msgstr "Estado actualizado" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 msgid "Successfully cloned from #%id.
You can now edit it." msgstr "Clonado correcto desde nº %id.
Ahora puede editarlo." -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "Ha ocurrido un error al clonar objeto :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 msgid "Borrow an object" msgstr "Alquilar un objeto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 msgid "Return a borrowed object" msgstr "Devolver un objeto prestado" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 msgid "You do not have rights to borrow objects!" msgstr "¡No tienes derecho a tomar objetos prestados!" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, php-format msgid "%object is currently not available" 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!" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 msgid "You do not have rights to return objects!" -msgstr "¡No tienes derecho a tomar objetos prestados!" +msgstr "¡No tiene derecho a devolver objetos!" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 #, php-format msgid "You have just borrowed %object :)" msgstr "Ha alquilado %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 #, php-format msgid "%object has been returned :)" msgstr "%object ha sido devuelto" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 #, php-format msgid "Remove object %1$s" msgstr "Quita objeto %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 #, php-format msgid "You are about to remove %count objects." msgstr "Va a quitar %count objetos." -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -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 "¡ Añada un estado «objeto alquilado» !" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" -msgstr "Índice de estado" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" -msgstr "Editar estado %status" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" -msgstr "Estado nuevo" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." -msgstr "Ha ocurrido un error mientras almacenada el estado." - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" -msgstr "El estado ha sido guardado" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" -msgstr "Eliminar estado %1$s" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" -msgstr "Preferencias de ObjectLend" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" -msgstr "¡ Las preferencias han sigo almacenadas correctamente !" - -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 msgid "Objects lend" msgstr "Lente de objetos" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 msgid "Borrow status" msgstr "Estado alquilado" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 msgid "Object categories" msgstr "Categorías de objeto" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 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:135 -#, php-format -msgid "Printed on %date" -msgstr "Escrito el %date" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" +msgstr "Nombre/descripción" -#: ../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 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 #: ../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:179 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 -msgid "Description" -msgstr "Descripción" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../tempcache/objects_list.html.twig:148 -#: ../tempcache/objects_list.html.twig:561 -msgid "Serial" -msgstr "Serie" - -#: ../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 "Precio" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:182 -#: ../tempcache/objects_list.html.twig:170 -#: ../tempcache/objects_list.html.twig:589 -msgid "Borrow price" -msgstr "Precio de alquiler" - -#: ../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 "Dimensiones" - -#: ../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 "Ponderación" - -#: ../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:186 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:666 -msgid "Since" -msgstr "Desde" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:187 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 -msgid "Member" -msgstr "Miembro" - -#: ../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 "Devolución" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:216 -#, php-format -msgid "Category: %category" -msgstr "Categoría: %category" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 -msgid "Total:" -msgstr "Total:" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" -msgstr "Alquilado" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" -msgstr "Disponible" - -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" -msgstr "objeto_tarjeta" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" -msgstr "Tarjeta objeto" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" -msgstr "Etiquetas" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" -msgstr "Categoría" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 -msgid "Serial number" -msgstr "Nº de serie" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" -msgstr "Precio por día beneficiario" - -#: ../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:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" -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 "Activa" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" -msgstr "Lugar" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" -msgstr "Histórico de objeto alquilado" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" -msgstr "Comienzo" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" -msgstr "Final" - -#: ../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 "Almacenado" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" -msgstr "Comentarios" - -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" -msgstr "Estado que no ha sido añadido :(" - -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 -msgid "Unable to store preferences :(" -msgstr "Imposible almacenar preferencias :(" - -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 -msgid "Rent has not been added" -msgstr "La renta no ha sido añadida" - -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 -msgid "Y-m-d H:i" -msgstr "Y-m-d H:i" - -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" -msgstr "Ninguna categoría" - -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" -msgstr "El objeto no ha sido agregado :(" - -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" -msgstr "Nombre/descripción" - -#: ../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" - -#: ../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 "Activo:" - -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" -msgstr "Categorías" - -#: ../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)" - -#: ../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" +msgid "Id" +msgstr "Id" -#: ../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_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Estado:" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 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_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "Este objeto está almacenado o alquilado" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" -msgstr "%days días" +#: ../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" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" -msgstr "Editar %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" +msgstr "Activo:" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" -msgstr "Quitar estado %status desde BdD" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" +msgstr "Días para alquilar" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" -msgstr "No ha sido encontrado ningún estado" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "Número de días para alquilar por defecto" + +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "utilizado para calcular la fecha de devolución" #: ../tempcache/categories_list.html.twig:62 #, php-format @@ -631,6 +476,14 @@ msgstr[1] "Categorías de %count" msgid "Add a category" msgstr "Añadir una categoría" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "Inactiva" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -781,129 +634,269 @@ msgstr "Vea el número de serie:" msgid "View weight" msgstr "Ver ponderación" -#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 -#: ../tempcache/take_object.html.twig:435 -msgid "Status:" -msgstr "Estado:" - -#: ../tempcache/status_edit.html.twig:74 -msgid "Is object in stock or borrowed" -msgstr "Este objeto está almacenado o alquilado" - -#: ../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" - -#: ../tempcache/status_edit.html.twig:87 -msgid "Number of days to rent per default" -msgstr "Número de días para alquilar por defecto" - -#: ../tempcache/status_edit.html.twig:87 -msgid "used to compute return date" -msgstr "utilizado para calcular la fecha de devolución" - -#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "Objeto" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Nombre:" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Descripción:" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "--- Seleccionar una categoría ---" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "Categoría:" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "Número serial:" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "Precio:" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "Precio alquilado:" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "Precio por día alquilado:" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 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" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "Dimensiones:" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "Ponderación:" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "--- Seleccione un estado ---" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "¿Dónde está el objeto?" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "Foto de objeto" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "Duplicar" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "Imprimir objeto" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "Historial" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "Cambiar estado" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" -msgstr "Miembro:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "Pulse para ver imagen a tamaño completo" + +#: ../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 "" +"Por favor, asegúrese de seleccionar al menos un objeto de la lista para " +"realizar esta acción." + +#: ../tempcache/objects_list.html.twig:59 +msgid "Print objects list" +msgstr "Imprimir la lista de objetos" + +#: ../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" + +#: ../tempcache/objects_list.html.twig:378 +msgid "Categories" +msgstr "Categorías" + +#: ../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)" + +#: ../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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "Pedir prestada la información" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Miembro:" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "Devolución esperada:" diff --git a/lang/objectslend_fr_FR.utf8.po b/lang/objectslend_fr_FR.utf8.po index 6d2efd8..0262cf6 100644 --- a/lang/objectslend_fr_FR.utf8.po +++ b/lang/objectslend_fr_FR.utf8.po @@ -1,10 +1,10 @@ -# Johan Cwiklinski , 2020, 2021, 2022, 2023. +# Johan Cwiklinski , 2020, 2021, 2022, 2023, 2024. msgid "" msgstr "" "Project-Id-Version: \n" -"Report-Msgid-Bugs-To: translations@galette.eu\n" -"POT-Creation-Date: 2023-12-06 08:20+0100\n" -"PO-Revision-Date: 2023-12-06 07:26+0000\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2024-02-08 21:06+0000\n" "Last-Translator: Johan Cwiklinski \n" "Language-Team: French \n" @@ -13,600 +13,451 @@ 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 5.3-dev\n" +"X-Generator: Weblate 5.4-dev\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" +msgstr "fiche_objet" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" +msgstr "Fiche de l'objet" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Étiquettes" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" +msgstr "Nom" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" +msgstr "Description" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" +msgstr "Catégorie" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "Numéro de série" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" +msgstr "Prix" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" +msgstr "Prix par jour de location" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" +msgstr "Dimensions" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "Cm" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" +msgstr "Poids" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "Kg" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "Actif" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "Emplacement" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" +msgstr "Depuis" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" +msgstr "Adhérent" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" +msgstr "Retour" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" +msgstr "Historique des emprunts de l'objet" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" +msgstr "Début" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" +msgstr "Fin" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Statut" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" +msgstr "En stock" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" +msgstr "Commentaires" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" +msgstr "fiches_objets" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +msgstr "Liste des objets" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" +msgstr "Imprimé le %date" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" +msgstr "Num. série" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" +msgstr "Prix location" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" +msgstr "Catégorie : %category" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" +msgstr "Total :" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" +msgstr "Emprunté" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" +msgstr "Disponible" + +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" +msgstr "Le statut n’a pas été ajouté :(" + +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" +msgstr "L'objet n'a pas été ajouté :(" + +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" +msgstr "Aucune catégorie" + +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" +msgstr "Impossible d'enregistrer les préférences :(" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" +msgstr "La location n'a pas été enregistrée :(" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" +msgstr "d/m/Y H:i" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" +msgstr "Préférences ObjectsLend" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" +msgstr "Les préférences ont été sauvegardées avec succès !" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" +msgstr "Veuillez ajouter au moins un statut « en stock » !" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "Veuillez ajouter au moins un statut « objet sorti » !" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "Liste des status" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" +msgstr "Modifier le status %status" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" +msgstr "Nouveau statut" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." +msgstr "Une erreur est survenue à l'enregistrement du statut." + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" +msgstr "Le status a été enregistré" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" +msgstr "Supprimer le statut %1$s" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 msgid "Categories list" msgstr "Liste des catégories" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 msgid "Edit category" msgstr "Modifier la catégorie" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 msgid "New category" msgstr "Nouvelle catégorie" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 msgid "Delete failed" msgstr "La suppression a échoué" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 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:322 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 msgid "Category has been saved" msgstr "La catégorie a été enregistrée" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 #, php-format msgid "Remove category %1$s" msgstr "Supprimer la catégorie %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 "Liste des objets" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:254 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 #, php-format msgid "Rents list for %object" msgstr "Liste des locations pour %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 #: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "Modifier l'objet" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 msgid "New object" msgstr "Nouvel objet" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 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:501 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 msgid "Object has been saved" msgstr "L'objet a été enregistré" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 msgid "Status has been updated" msgstr "Le status a été mis à jour" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 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:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "Une erreur est survenue au clonage de l'objet :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 msgid "Borrow an object" msgstr "Emprunter un objet" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 msgid "Return a borrowed object" msgstr "Retourner un objet emprunté" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 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:692 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, php-format msgid "%object is currently not available" msgstr "%object est actuellement indisponible" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 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 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 #, php-format msgid "You have just borrowed %object :)" msgstr "Vous venez d'emprunter %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 #, php-format msgid "%object has been returned :)" msgstr "%object a été retourné :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 #, php-format msgid "Remove object %1$s" msgstr "Supprimer l'objet %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 #, 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 at last one status \"in stock\"!" -msgstr "Veuillez ajouter au moins un statut « en stock » !" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 -msgid "Please add at least one status \"object borrowed\"!" -msgstr "Veuillez ajouter au moins un statut « objet sorti » !" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" -msgstr "Liste des status" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" -msgstr "Modifier le status %status" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" -msgstr "Nouveau statut" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." -msgstr "Une erreur est survenue à l'enregistrement du statut." - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" -msgstr "Le status a été enregistré" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" -msgstr "Supprimer le statut %1$s" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" -msgstr "Préférences ObjectsLend" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" -msgstr "Les préférences ont été sauvegardées avec succès !" - -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 msgid "Objects lend" msgstr "Prêt d'objets" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 msgid "Borrow status" msgstr "Statuts de location" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 msgid "Object categories" msgstr "Catégories d'objets" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 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:135 -#, php-format -msgid "Printed on %date" -msgstr "Imprimé le %date" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" +msgstr "Nom/description" -#: ../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:179 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 -msgid "Description" -msgstr "Description" - -#: ../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: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:182 -#: ../tempcache/objects_list.html.twig:170 -#: ../tempcache/objects_list.html.twig:589 -msgid "Borrow price" -msgstr "Prix location" - -#: ../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: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: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: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:187 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:216 -msgid "Member" -msgstr "Adhérent" - -#: ../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:216 -#, php-format -msgid "Category: %category" -msgstr "Catégorie : %category" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 -msgid "Total:" -msgstr "Total :" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" -msgstr "Emprunté" - -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" -msgstr "Disponible" - -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" -msgstr "fiche_objet" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" -msgstr "Fiche de l'objet" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" -msgstr "Étiquettes" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" -msgstr "Catégorie" - -#: ../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:176 -msgid "Price per rental day" -msgstr "Prix par jour de location" - -#: ../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:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" -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 "Actif" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" -msgstr "Emplacement" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" -msgstr "Historique des emprunts de l'objet" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" -msgstr "Début" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" -msgstr "Fin" - -#: ../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:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" -msgstr "Commentaires" - -#: ../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:288 -msgid "Unable to store preferences :(" -msgstr "Impossible d'enregistrer les préférences :(" - -#: ../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:367 -msgid "Y-m-d H:i" -msgstr "d/m/Y H:i" - -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" -msgstr "Aucune catégorie" - -#: ../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:289 -msgid "Name/description" -msgstr "Nom/description" - -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 #: ../tempcache/list_lent_object.html.twig:66 msgid "Id" -msgstr "Id" - -#: ../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 :" - -#: ../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" - -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" -msgstr "Afficher les prêts d'objets" - -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" -msgstr "Fiche de l'objet en PDF" - -#: ../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" +msgstr "Id" + +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Statut :" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 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_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "L'objet est-il disponible ou sorti" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" -msgstr "%days jours" +#: ../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é" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" -msgstr "Modifier %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" +msgstr "Actif :" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" -msgstr "Supprimer %status de la base" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" +msgstr "Jours de location" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" -msgstr "Aucun statut trouvé" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" +msgstr "Nombre de jours de location par défaut" + +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" +msgstr "utilisé pour calculer la date de retour" #: ../tempcache/categories_list.html.twig:62 #, php-format @@ -619,6 +470,14 @@ msgstr[1] "%count catégories" msgid "Add a category" msgstr "Ajouter une catégorie" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "Inactif" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -769,129 +628,269 @@ msgstr "Voir le numéro de série :" msgid "View weight" msgstr "Voir le poids" -#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 -#: ../tempcache/take_object.html.twig:435 -msgid "Status:" -msgstr "Statut :" - -#: ../tempcache/status_edit.html.twig:74 -msgid "Is object in stock or borrowed" -msgstr "L'objet est-il disponible ou sorti" - -#: ../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é" - -#: ../tempcache/status_edit.html.twig:87 -msgid "Number of days to rent per default" -msgstr "Nombre de jours de location par défaut" - -#: ../tempcache/status_edit.html.twig:87 -msgid "used to compute return date" -msgstr "utilisé pour calculer la date de retour" - -#: ../tempcache/objects_edit.html.twig:62 ../tempcache/take_object.html.twig:63 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "Objet" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Nom :" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Description :" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "--- Choisissez une catégorie ---" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "Catégorie :" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "Numéro de série :" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "Prix :" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "Prix location :" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "Prix par jour de location :" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 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" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "Dimensions :" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "Poids :" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "--- Choisissez un status ---" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "Où se trouve l'objet ?" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "Photo de l'objet" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "Dupliquer" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "Imprimer l'objet" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "Historique" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 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/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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "Cliquer pour voir l'image en pleine taille" + +#: ../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: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:748 +msgid "Duplicate object" +msgstr "Dupliquer l'objet" + +#: ../tempcache/objects_list.html.twig:749 +msgid "Show object lends" +msgstr "Afficher les prêts d'objets" + +#: ../tempcache/objects_list.html.twig:750 +msgid "Object card in PDF" +msgstr "Fiche de l'objet en PDF" + +#: ../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/take_object.html.twig:275 msgid "Borrow information" msgstr "Informations de location" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Adhérent :" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "Retour escompté :" @@ -1262,7 +1261,7 @@ msgstr "Vous devez accepter les conditions générales pour emprunter." #~ msgid "Filter" #~ msgstr "Filter" -#~ msgid "An SQL error has occured." +#~ msgid "An SQL error has occurred." #~ msgstr "Une erreur SQL est survenue." #~ msgid "Records per page:" diff --git a/lang/objectslend_it_IT.utf8.po b/lang/objectslend_it_IT.utf8.po index 34154a9..85dd173 100644 --- a/lang/objectslend_it_IT.utf8.po +++ b/lang/objectslend_it_IT.utf8.po @@ -2,13 +2,14 @@ # Luca De Filippo , 2020. # Alessandro Mandelli , 2021. # Giacomo Alessandroni , 2021. +# Marco Ciampa , 2024. 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: 2021-12-20 22:53+0000\n" -"Last-Translator: Giacomo Alessandroni \n" +"Report-Msgid-Bugs-To: translations@galette.eu\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2024-06-07 08:09+0000\n" +"Last-Translator: Marco Ciampa \n" "Language-Team: Italian \n" "Language: it_IT\n" @@ -16,602 +17,451 @@ 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\n" +"X-Generator: Weblate 5.6-dev\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 "Rimozione fallita" - -#: ../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 "" - -#: ../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 "" - -#: ../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 -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: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 -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 "" - -#: ../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:966 -#, php-format -msgid "%object has been returned :)" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" -msgstr "" - -#: ../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 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 "Prestiti oggetti" - -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 -msgid "Borrow status" -msgstr "" - -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 -msgid "Object categories" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 -msgid "Preferences" -msgstr "Preferenze" - -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 #, fuzzy #| msgid "Objects lend" -msgid "objects_cards" +msgid "Object card" msgstr "Prestiti oggetti" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 -#, php-format -msgid "Printed on %date" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Etichetta" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 #: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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:179 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../tempcache/objects_list.html.twig:148 -#: ../tempcache/objects_list.html.twig:561 -msgid "Serial" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 #: ../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 "Stato" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "Attivo" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 msgid "Member" -msgstr "" +msgstr "Socio" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 -msgid "Total:" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Stato" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 #, fuzzy #| msgid "Objects lend" -msgid "Object card" +msgid "objects_cards" msgstr "Prestiti oggetti" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" -msgstr "Etichetta" - -#: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../tempcache/objects_edit.html.twig:140 -#: ../tempcache/take_object.html.twig:171 -msgid "Cm" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" 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 "Attivo" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" 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/Entity/LendStatus.php:144 +msgid "Status has not been added :(" +msgstr "Lo stato non è stato aggiunto :(" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" -msgstr "Foto:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" +msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -#, fuzzy -#| msgid "Objects lend" -msgid "No object selected" -msgstr "Prestiti oggetti" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." +msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "Rimozione fallita" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" +msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../tempcache/objects_list.html.twig:751 -#, php-format -msgid "Remove %object from database" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:767 -msgid "Take away" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:778 -msgid "Give back" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:821 -msgid "No object has been found" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" +msgstr "Prestiti oggetti" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" -msgstr "" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" +msgstr "Preferenze" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -625,6 +475,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "Inattivo" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -673,7 +531,7 @@ msgstr "" #: ../tempcache/preferences.html.twig:127 msgid "Contribution type:" -msgstr "" +msgstr "Tipo di contributo:" #: ../tempcache/preferences.html.twig:134 msgid "Contribution text:" @@ -761,125 +619,267 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Descrizione:" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../tempcache/category_edit.html.twig:74 +msgid "Is active" +msgstr "" + +#: ../tempcache/category_edit.html.twig:81 +msgid "Picture:" +msgstr "Foto:" + +#: ../tempcache/category_edit.html.twig:103 +msgid "Category photo" +msgstr "" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Data di inizio" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Data di fine" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +msgstr "" + +#: ../tempcache/objects_list.html.twig:57 +#, fuzzy +#| msgid "Objects lend" +msgid "No object selected" +msgstr "Prestiti oggetti" + +#: ../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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" @@ -899,7 +899,7 @@ msgstr "" #: ../tempcache/take_object.html.twig:452 msgid "Comments:" -msgstr "" +msgstr "Commenti:" #: ../tempcache/take_object.html.twig:455 msgid "remaining characters" diff --git a/lang/objectslend_nb_NO.utf8.po b/lang/objectslend_nb_NO.utf8.po index 0294b9e..cf6b029 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: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -12,594 +12,445 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 3.0.0\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 "" - -#: ../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 "" - -#: ../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 -msgid "Status has been updated" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 -msgid "Successfully cloned from #%id.
You can now edit it." +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 -msgid "Borrow an object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 -msgid "Return a borrowed object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 -msgid "You do not have rights to borrow objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 -#, php-format -msgid "%object is currently not available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 -msgid "You do not have rights to return objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 -#, php-format -msgid "You have just borrowed %object :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 -#, php-format -msgid "%object has been returned :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 -#, php-format -msgid "You are about to remove %count objects." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add at last one status \"in stock\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 -msgid "Please add at least one status \"object borrowed\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 -msgid "Objects lend" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 -msgid "Borrow status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 -msgid "Object categories" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 -msgid "Preferences" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 #: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 #, 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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" 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" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 -msgid "Unable to store preferences :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 -msgid "Rent has not been added" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 -msgid "Y-m-d H:i" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" msgstr "" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:751 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, 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" +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -613,6 +464,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -749,125 +608,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_oc.utf8.po b/lang/objectslend_oc.utf8.po index f62a742..83b660c 100644 --- a/lang/objectslend_oc.utf8.po +++ b/lang/objectslend_oc.utf8.po @@ -1,12 +1,14 @@ # Weblate , 2020. # Quentin PAGÈS , 2020. +# Pèire Bréchet , 2024. +# Pèire Bréchet , 2024. 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: 2020-06-30 21:03+0000\n" -"Last-Translator: Quentin PAGÈS \n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2024-05-01 13:07+0000\n" +"Last-Translator: Pèire Bréchet \n" "Language-Team: Occitan \n" "Language: oc\n" @@ -14,596 +16,447 @@ 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.2-dev\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 "" - -#: ../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 "" - -#: ../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 -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: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 -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 "" - -#: ../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:966 -#, php-format -msgid "%object has been returned :)" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" -msgstr "" - -#: ../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 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 "Preferéncias" +"X-Generator: Weblate 5.5.3-dev\n" #. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" +msgstr "ficha_objècte" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 -#, php-format -msgid "Printed on %date" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" +msgstr "Ficha de l’objècte" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 #: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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:179 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:158 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 msgid "Description" msgstr "Descripcion" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../tempcache/objects_list.html.twig:148 -#: ../tempcache/objects_list.html.twig:561 -msgid "Serial" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 #: ../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 "Estat" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "Actiu" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 msgid "Member" msgstr "Membre" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 -msgid "Total:" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" +msgstr "Començament" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" +msgstr "Fin" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Estat" -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 -msgid "Serial number" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../tempcache/objects_edit.html.twig:140 -#: ../tempcache/take_object.html.twig:171 -msgid "Cm" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" 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 "Actiu" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" -msgstr "Començament" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" -msgstr "Fin" - -#: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" +msgstr "L'estatut es pas estat ajustat :(" + +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "La supression a mau capitat" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" 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" - -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:751 -#, php-format -msgid "Remove %object from database" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:767 -msgid "Take away" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." msgstr "" -#: ../tempcache/objects_list.html.twig:778 -msgid "Give back" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:821 -msgid "No object has been found" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" -msgstr "Data de fin" - -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" +msgstr "Prestament d’objèctes" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" +msgstr "Preferéncias" + +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Estatut:" + +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../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_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../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/categories_list.html.twig:62 @@ -617,6 +470,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "Inactiu" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -665,7 +526,7 @@ msgstr "" #: ../tempcache/preferences.html.twig:127 msgid "Contribution type:" -msgstr "" +msgstr "Mena de contribucion :" #: ../tempcache/preferences.html.twig:134 msgid "Contribution text:" @@ -753,125 +614,265 @@ msgstr "" 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 "Estatut:" - -#: ../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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Nom:" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Descripcion :" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/list_lent_object.html.twig:66 +msgid "Begin date" +msgstr "Data de començament" + +#: ../tempcache/list_lent_object.html.twig:66 +msgid "End date" +msgstr "Data de fin" + +#: ../tempcache/list_lent_object.html.twig:164 +msgid "No lend found" +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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" @@ -891,7 +892,7 @@ msgstr "" #: ../tempcache/take_object.html.twig:452 msgid "Comments:" -msgstr "" +msgstr "Comentaris :" #: ../tempcache/take_object.html.twig:455 msgid "remaining characters" diff --git a/lang/objectslend_ota.utf8.po b/lang/objectslend_ota.utf8.po index 2329177..e102b04 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: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -12,594 +12,445 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 3.3.6\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 "" - -#: ../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 "" - -#: ../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 -msgid "Status has been updated" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 -msgid "Successfully cloned from #%id.
You can now edit it." +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 -msgid "Borrow an object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 -msgid "Return a borrowed object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 -msgid "You do not have rights to borrow objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 -#, php-format -msgid "%object is currently not available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 -msgid "You do not have rights to return objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 -#, php-format -msgid "You have just borrowed %object :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 -#, php-format -msgid "%object has been returned :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 -#, php-format -msgid "You are about to remove %count objects." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add at last one status \"in stock\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 -msgid "Please add at least one status \"object borrowed\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 -msgid "Objects lend" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 -msgid "Borrow status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 -msgid "Object categories" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 -msgid "Preferences" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 #: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 #, 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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" 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" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 -msgid "Unable to store preferences :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 -msgid "Rent has not been added" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 -msgid "Y-m-d H:i" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" msgstr "" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:751 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, 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" +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -613,6 +464,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -749,125 +608,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_pt.utf8.po b/lang/objectslend_pt.utf8.po new file mode 100644 index 0000000..a5b1387 --- /dev/null +++ b/lang/objectslend_pt.utf8.po @@ -0,0 +1,938 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Languages add-on , 2024. +# Manuela Silva , 2024. +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" +"PO-Revision-Date: 2024-04-29 04:34+0000\n" +"Last-Translator: Manuela Silva \n" +"Language-Team: Portuguese \n" +"Language: pt\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" +"X-Generator: Weblate 5.5.1\n" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Etiquetas" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" +msgstr "" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" +msgstr "" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "Eliminação falhou" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" +msgstr "" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" +msgstr "" + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" +msgstr "" + +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" +msgstr "" + +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" +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 ../tempcache/status_list.html.twig:189 +msgid "In stock:" +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:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" +msgstr "" + +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" +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/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:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +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/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 +msgid "Object" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 +msgid "Name:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:76 +#: ../tempcache/take_object.html.twig:106 +msgid "Description:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:84 +msgid "--- Select a category ---" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:105 +msgid "Category:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:115 +#: ../tempcache/take_object.html.twig:124 +msgid "Serial number:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:121 +#: ../tempcache/take_object.html.twig:142 +msgid "Price:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:128 +#: ../tempcache/take_object.html.twig:218 +msgid "Borrow price:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:134 +msgid "Price per rental day:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:134 +msgid "The price applies on each rental day if checked, only once otherwise" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:162 +msgid "Dimensions:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:192 +msgid "Weight:" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 +#: ../tempcache/take_object.html.twig:340 +#: ../tempcache/take_object.html.twig:415 +msgid "--- Select a status ---" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:182 +msgid "Where is the object?" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 +msgid "Object's photo" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:265 +msgid "Duplicate" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:274 +msgid "Print object" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:299 +msgid "History" +msgstr "" + +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 +msgid "Change status" +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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 +msgid "Borrow information" +msgstr "" + +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +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 "" diff --git a/lang/objectslend_ru.utf8.po b/lang/objectslend_ru.utf8.po index 68ffc9c..dcfb85b 100644 --- a/lang/objectslend_ru.utf8.po +++ b/lang/objectslend_ru.utf8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" "PO-Revision-Date: 2023-11-22 10:44+0000\n" "Last-Translator: Johan Cwiklinski \n" "Language-Team: Russian =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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 -#, php-format -msgid "Printed on %date" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:178 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Метки" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 #: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:180 -#: ../tempcache/objects_list.html.twig:148 -#: ../tempcache/objects_list.html.twig:561 -msgid "Serial" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:181 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 #: ../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" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:183 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:295 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 #: ../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/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:186 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:189 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:188 -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 #: ../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:" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 -msgid "Borrowed" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 -msgid "Available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#. TRANS: this is a filename -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:78 -msgid "object_card" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Статус" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:90 -msgid "Object card" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:92 -msgid "Labels" -msgstr "Метки" - -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:161 -#: ../tempcache/category_edit.html.twig:62 -msgid "Category" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:164 -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:290 -msgid "Serial number" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:176 -msgid "Price per rental day" -msgstr "" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +msgstr "Список объектов" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:182 -#: ../tempcache/objects_edit.html.twig:140 -#: ../tempcache/take_object.html.twig:171 -msgid "Cm" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:185 -#: ../tempcache/objects_edit.html.twig:146 -#: ../tempcache/take_object.html.twig:201 -msgid "Kg" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" 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" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 msgid "Rent has not been added" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" +msgstr "Пожалуйста, добавьте последний статус \"на складе\"!" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "Пожалуйста, добавьте хотя бы один статус \"объект позаимствован\"!" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "Список статусов" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" +msgstr "Список категорий" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" +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 "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" +msgstr "Новая категория" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "Удалить не удалось" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." +msgstr "При сохранении категории произошла ошибка." -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" +msgstr "Категория сохранена" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" +msgstr "Удалить категорию %1$s" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" +msgstr "Список арендной платы для объекта %object" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" +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 "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" +msgstr "Новый объект" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" +msgstr "Что-то пошло не так при сохранении объекта :(" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" +msgstr "Объект сохранен" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +#, fuzzy +#| msgid "Category has been saved" +msgid "Status has been updated" +msgstr "Категория сохранена" -#: ../tempcache/objects_list.html.twig:751 -#, php-format -msgid "Remove %object from database" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." +msgstr "Успешно клонировано из #%id.
Теперь вы можете редактировать его." -#: ../tempcache/objects_list.html.twig:767 -msgid "Take away" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" +msgstr "Произошла ошибка при клонировании объекта :(" -#: ../tempcache/objects_list.html.twig:778 -msgid "Give back" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" +msgstr "Заимствование объекта" -#: ../tempcache/objects_list.html.twig:821 -msgid "No object has been found" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" +msgstr "Вернуть заимствованный объект" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to borrow objects!" +msgstr "У вас нет прав на изъятие предметов!" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 +#, php-format +msgid "%object is currently not available" +msgstr "%object в настоящее время недоступен" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +#, fuzzy +#| msgid "You do not have rights to take objects!" +msgid "You do not have rights to return objects!" +msgstr "У вас нет прав на изъятие предметов!" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" +msgstr "Вы только что заимствовали %object :)" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" +msgstr "%object был возвращен :)" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" -msgstr "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" +msgstr "Удалить объект %1$s" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." +msgstr "Вы собираетесь удалить объекты %count." + +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" -msgstr "" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" +msgstr "Предпочтения" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../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_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../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/categories_list.html.twig:62 @@ -627,6 +478,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -763,125 +622,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_si.utf8.po b/lang/objectslend_si.utf8.po index 2028ac3..5d9b2d0 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: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -12,594 +12,445 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 3.3.6\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 "" - -#: ../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 "" - -#: ../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 -msgid "Status has been updated" -msgstr "" - -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 -msgid "Successfully cloned from #%id.
You can now edit it." +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 -msgid "Borrow an object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 -msgid "Return a borrowed object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 -msgid "You do not have rights to borrow objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 -#, php-format -msgid "%object is currently not available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 -msgid "You do not have rights to return objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 -#, php-format -msgid "You have just borrowed %object :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 -#, php-format -msgid "%object has been returned :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 -#, php-format -msgid "You are about to remove %count objects." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add at last one status \"in stock\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 -msgid "Please add at least one status \"object borrowed\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 -msgid "Objects lend" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 -msgid "Borrow status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 -msgid "Object categories" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 -msgid "Preferences" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 #: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 #, 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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" 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" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 -msgid "Unable to store preferences :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 -msgid "Rent has not been added" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 -msgid "Y-m-d H:i" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "" -"Please make sure to select at least one object from the list to perform this " -"action." +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" msgstr "" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" msgstr "" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:751 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, 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" +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -613,6 +464,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -749,125 +608,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_tr.utf8.po b/lang/objectslend_tr.utf8.po index f035561..fc4b7a2 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: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+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." +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:578 -msgid "An error occured cloning object :(" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 -msgid "Borrow an object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 -msgid "Return a borrowed object" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 -msgid "You do not have rights to borrow objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:692 -#, php-format -msgid "%object is currently not available" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 -msgid "You do not have rights to return objects!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:876 -#, php-format -msgid "You have just borrowed %object :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 -#, php-format -msgid "%object has been returned :)" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 -#, php-format -msgid "Remove object %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 -#, php-format -msgid "You are about to remove %count objects." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:135 -msgid "Please add at last one status \"in stock\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:141 -msgid "Please add at least one status \"object borrowed\"!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:156 -msgid "Status list" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:247 -#, php-format -msgid "Edit status %status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:250 -msgid "New status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:290 -msgid "An error occured while storing the status." +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:316 -msgid "Status has been saved" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:369 -#, php-format -msgid "Remove status %1$s" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" msgstr "" -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 -msgid "Objects lend" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 -msgid "Borrow status" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 -msgid "Object categories" +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" msgstr "" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 -msgid "Preferences" +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +msgid "objects_cards" msgstr "" -#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 #: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 -msgid "objects_cards" +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:135 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 #, 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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 #: ../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 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 #, php-format msgid "Category: %category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:258 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 msgid "Total:" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:265 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 msgid "Borrowed" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:267 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 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" +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:188 -msgid "Location" +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:210 -msgid "History of object loans" +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:212 -msgid "Begin" +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:213 -msgid "End" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" 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" +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" msgstr "" -#: ../lib/GaletteObjectsLend/IO/PdfObject.php:217 -#: ../tempcache/list_lent_object.html.twig:66 -#: ../tempcache/objects_edit.html.twig:364 -msgid "Comments" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:167 -msgid "Status has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/Preferences.php:288 -msgid "Unable to store preferences :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:201 -msgid "Rent has not been added" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendRent.php:367 -msgid "Y-m-d H:i" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:265 -#: ../tempcache/categories_list.html.twig:369 -msgid "No category" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" msgstr "" -#: ../lib/GaletteObjectsLend/Entity/LendObject.php:372 -msgid "Object has not been added :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:289 -msgid "Name/description" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." msgstr "" -#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:291 -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Id" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" msgstr "" -#: ../tempcache/category_edit.html.twig:74 -msgid "Is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" msgstr "" -#: ../tempcache/category_edit.html.twig:81 -msgid "Picture:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 +msgid "Categories list" msgstr "" -#: ../tempcache/category_edit.html.twig:103 -msgid "Category photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 +msgid "Edit category" msgstr "" -#: ../tempcache/objects_list.html.twig:57 -msgid "No object selected" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 +msgid "New category" 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 "" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 +msgid "Delete failed" +msgstr "Silme başarısız" -#: ../tempcache/objects_list.html.twig:59 -msgid "Print objects list" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 +msgid "An error occurred while storing the category." msgstr "" -#: ../tempcache/objects_list.html.twig:100 -msgid "Add an object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 +msgid "Category has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:200 -#: ../tempcache/objects_list.html.twig:675 -msgid "By" +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 +#, php-format +msgid "Remove category %1$s" 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:" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 +#, php-format +msgid "Rents list for %object" msgstr "" -#: ../tempcache/objects_list.html.twig:378 -msgid "Categories" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 +#: ../tempcache/objects_list.html.twig:747 +msgid "Edit object" msgstr "" -#: ../tempcache/objects_list.html.twig:532 -#: ../tempcache/take_object.html.twig:95 -msgid "Object photo" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 +msgid "New object" msgstr "" -#: ../tempcache/objects_list.html.twig:600 -#: ../tempcache/take_object.html.twig:250 -msgid "(per day)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 +msgid "Something went wrong saving object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:606 -#: ../tempcache/take_object.html.twig:256 -msgid "(at once)" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 +msgid "Object has been saved" msgstr "" -#: ../tempcache/objects_list.html.twig:723 -msgid "Object is active" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 +msgid "Status has been updated" msgstr "" -#: ../tempcache/objects_list.html.twig:725 -msgid "Object is inactive" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 +msgid "Successfully cloned from #%id.
You can now edit it." 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" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "" -#: ../tempcache/objects_list.html.twig:748 -msgid "Duplicate object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 +msgid "Borrow an object" msgstr "" -#: ../tempcache/objects_list.html.twig:749 -msgid "Show object lends" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 +msgid "Return a borrowed object" msgstr "" -#: ../tempcache/objects_list.html.twig:750 -msgid "Object card in PDF" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 +msgid "You do not have rights to borrow objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:751 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, 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" +msgid "%object is currently not available" msgstr "" -#: ../tempcache/objects_list.html.twig:862 -msgid "History of object" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 +msgid "You do not have rights to return objects!" msgstr "" -#: ../tempcache/objects_list.html.twig:868 -msgid "An error occurred loading history display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 +#, php-format +msgid "You have just borrowed %object :)" msgstr "" -#: ../tempcache/objects_list.html.twig:904 -msgid "Take objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 +#, php-format +msgid "%object has been returned :)" msgstr "" -#: ../tempcache/objects_list.html.twig:921 -msgid "An error occurred loading 'Take away' display :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 +#, php-format +msgid "Remove object %1$s" msgstr "" -#: ../tempcache/objects_list.html.twig:951 -msgid "Give back objects" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 +#, php-format +msgid "You are about to remove %count objects." msgstr "" -#: ../tempcache/objects_list.html.twig:968 -msgid "An error occurred loading 'Give back' display :(" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 +msgid "Objects lend" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "Begin date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +msgid "Borrow status" msgstr "" -#: ../tempcache/list_lent_object.html.twig:66 -msgid "End date" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 +msgid "Object categories" msgstr "" -#: ../tempcache/list_lent_object.html.twig:164 -msgid "No lend found" +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 +msgid "Preferences" msgstr "" -#: ../tempcache/headers.html.twig:43 -msgid "Click to view fullsize image" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +msgid "Name/description" msgstr "" -#: ../tempcache/status_list.html.twig:86 -msgid "Add a status" +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Id" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:351 -msgid "Stock" +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" msgstr "" -#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:380 -#: ../tempcache/status_edit.html.twig:87 -msgid "Days for rent" +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 +msgid "In stock:" msgstr "" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 -msgid "In stock:" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" msgstr "" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" +#: ../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_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" msgstr "" -#: ../tempcache/status_list.html.twig:400 -#, php-format -msgid "Edit %status" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" msgstr "" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" +#: ../tempcache/status_edit.html.twig:87 +msgid "Number of days to rent per default" msgstr "" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" +#: ../tempcache/status_edit.html.twig:87 +msgid "used to compute return date" msgstr "" #: ../tempcache/categories_list.html.twig:62 @@ -616,6 +467,14 @@ msgstr[1] "" msgid "Add a category" msgstr "" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -752,125 +611,265 @@ msgstr "" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" +#: ../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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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/take_object.html.twig:275 msgid "Borrow information" msgstr "" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "" diff --git a/lang/objectslend_uk.utf8.po b/lang/objectslend_uk.utf8.po index c9b76a3..8f3c1f1 100644 --- a/lang/objectslend_uk.utf8.po +++ b/lang/objectslend_uk.utf8.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-06 08:20+0100\n" +"POT-Creation-Date: 2024-02-08 22:16+0100\n" "PO-Revision-Date: 2023-11-22 10:44+0000\n" "Last-Translator: Johan Cwiklinski \n" "Language-Team: Ukrainian =20) ? 1 : 2;\n" "X-Generator: Weblate 5.2\n" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:144 +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:58 +msgid "object_card" +msgstr "картка_об'єкта" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:70 +msgid "Object card" +msgstr "Картка об’єкта" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:72 +msgid "Labels" +msgstr "Мітки" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:136 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:159 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:257 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:255 +#: ../tempcache/category_edit.html.twig:69 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:140 +#: ../tempcache/objects_list.html.twig:539 +msgid "Name" +msgstr "Ім'я" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:138 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:160 +msgid "Description" +msgstr "Опис" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:141 +#: ../tempcache/category_edit.html.twig:62 +msgid "Category" +msgstr "Категорія" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:144 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:258 +msgid "Serial number" +msgstr "Серійний номер" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:147 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:162 +#: ../tempcache/objects_list.html.twig:159 +#: ../tempcache/objects_list.html.twig:575 +msgid "Price" +msgstr "Ціна" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:156 +msgid "Price per rental day" +msgstr "Ціна за день оренди" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:164 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:263 +#: ../tempcache/objects_list.html.twig:181 +#: ../tempcache/objects_list.html.twig:619 +msgid "Dimensions" +msgstr "Габарити" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:162 +#: ../tempcache/objects_edit.html.twig:141 +#: ../tempcache/take_object.html.twig:171 +msgid "Cm" +msgstr "См" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:165 +#: ../tempcache/objects_list.html.twig:192 +#: ../tempcache/objects_list.html.twig:633 +msgid "Weight" +msgstr "Вага" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:165 +#: ../tempcache/objects_edit.html.twig:147 +#: ../tempcache/take_object.html.twig:201 +msgid "Kg" +msgstr "Кг" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:167 +#: ../tempcache/categories_list.html.twig:98 +#: ../tempcache/categories_list.html.twig:283 +#: ../tempcache/categories_list.html.twig:294 +#: ../tempcache/categories_list.html.twig:302 +#: ../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/objects_list.html.twig:219 +#: ../tempcache/objects_list.html.twig:709 +#: ../tempcache/objects_list.html.twig:732 +msgid "Active" +msgstr "Діяльний" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:168 +msgid "Location" +msgstr "Місцеперебування" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:169 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:167 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:666 +msgid "Since" +msgstr "З" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:170 +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:196 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:168 +msgid "Member" +msgstr "Член" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:172 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:169 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/objects_list.html.twig:208 +#: ../tempcache/objects_list.html.twig:698 +msgid "Return" +msgstr "Повернути" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:190 +msgid "History of object loans" +msgstr "Історія позик об'єктів" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:192 +msgid "Begin" +msgstr "Початок" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:193 +msgid "End" +msgstr "Кінець" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:194 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:166 +#: ../tempcache/status_edit.html.twig:62 +#: ../tempcache/objects_edit.html.twig:360 +#: ../tempcache/list_lent_object.html.twig:66 +#: ../tempcache/status_list.html.twig:98 ../tempcache/status_list.html.twig:313 +#: ../tempcache/objects_list.html.twig:200 +#: ../tempcache/objects_list.html.twig:644 +msgid "Status" +msgstr "Стан" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:195 +#: ../tempcache/objects_edit.html.twig:342 +#: ../tempcache/list_lent_object.html.twig:119 +#: ../tempcache/status_list.html.twig:358 +#: ../tempcache/status_list.html.twig:362 +#: ../tempcache/objects_list.html.twig:654 +msgid "In stock" +msgstr "В наявності" + +#: ../lib/GaletteObjectsLend/IO/PdfObject.php:197 +#: ../tempcache/objects_edit.html.twig:365 +#: ../tempcache/list_lent_object.html.twig:66 +msgid "Comments" +msgstr "Коментарі" + +#. TRANS: this is a filename +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:70 +#, fuzzy +#| msgid "object_card" +msgid "objects_cards" +msgstr "картка_об'єкта" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:87 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:89 +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:107 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:145 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:52 +msgid "Objects list" +msgstr "Список об'єктів" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:116 +#, php-format +msgid "Printed on %date" +msgstr "Надруковано %date" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:161 +#: ../tempcache/objects_list.html.twig:148 +#: ../tempcache/objects_list.html.twig:561 +msgid "Serial" +msgstr "Серійний номер" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:163 +#: ../tempcache/objects_list.html.twig:170 +#: ../tempcache/objects_list.html.twig:589 +msgid "Borrow price" +msgstr "Ціна позики" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:197 +#, php-format +msgid "Category: %category" +msgstr "Категорія: %category" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:239 +msgid "Total:" +msgstr "Всього:" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:246 +msgid "Borrowed" +msgstr "Позичено" + +#: ../lib/GaletteObjectsLend/IO/PdfObjects.php:248 +msgid "Available" +msgstr "Доступно" + +#: ../lib/GaletteObjectsLend/Entity/LendStatus.php:144 +msgid "Status has not been added :(" +msgstr "Стан не додано :(" + +#: ../lib/GaletteObjectsLend/Entity/LendObject.php:349 +msgid "Object has not been added :(" +msgstr "Об'єкт не додано :(" + +#: ../lib/GaletteObjectsLend/Entity/LendCategory.php:238 +#: ../tempcache/categories_list.html.twig:369 +msgid "No category" +msgstr "Немає категорії" + +#: ../lib/GaletteObjectsLend/Entity/Preferences.php:264 +msgid "Unable to store preferences :(" +msgstr "Не вдалося зберегти налаштування :(" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:177 +msgid "Rent has not been added" +msgstr "Оренда не додана" + +#: ../lib/GaletteObjectsLend/Entity/LendRent.php:342 +msgid "Y-m-d H:i" +msgstr "Y-m-d H:i" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:65 +msgid "ObjectsLend preferences" +msgstr "Налаштування ObjectsLend" + +#: ../lib/GaletteObjectsLend/Controllers/MainController.php:97 +msgid "Preferences have been successfully stored!" +msgstr "Налаштування успішно збережено!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:113 +msgid "Please add at last one status \"in stock\"!" +msgstr "Будь ласка, додайте хоча б один стан \"в наявності\"!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:119 +msgid "Please add at least one status \"object borrowed\"!" +msgstr "Будь ласка, додайте хоча б один статус \"об'єкт позичено\"!" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:134 +msgid "Status list" +msgstr "Список станів" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:225 +#, php-format +msgid "Edit status %status" +msgstr "Редагувати стан %status" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:228 +msgid "New status" +msgstr "Новий стан" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:268 +msgid "An error occurred while storing the status." +msgstr "Під час зберігання стану сталася помилка." + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:294 +msgid "Status has been saved" +msgstr "Стан збережено" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/StatusController.php:347 +#, php-format +msgid "Remove status %1$s" +msgstr "Вилучити стан %1$s" + +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:122 msgid "Categories list" msgstr "Список категорій" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:225 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:203 msgid "Edit category" msgstr "Редагувати категорію" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:227 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:205 msgid "New category" msgstr "Нова категорія" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:291 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:467 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:269 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:440 msgid "Delete failed" msgstr "Не вдалося видалити" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:299 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:277 msgid "An error occurred while storing the category." msgstr "Під час зберігання категорії сталася помилка." -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:322 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:300 msgid "Category has been saved" msgstr "Категорію збережено" -#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:375 +#: ../lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php:353 #, 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 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:232 #, php-format msgid "Rents list for %object" msgstr "Список орендаторів %object" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:347 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:322 #: ../tempcache/objects_list.html.twig:747 msgid "Edit object" msgstr "Редагувати об'єкт" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:349 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:324 msgid "New object" msgstr "Новий об'єкт" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:475 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:448 msgid "Something went wrong saving object :(" msgstr "Під час збереження об’єкта щось пішло не так :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:501 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:474 msgid "Object has been saved" msgstr "Об'єкт збережено" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:542 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:515 #, fuzzy #| msgid "Status has been saved" msgid "Status has been updated" msgstr "Стан збережено" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:572 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:545 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 :(" +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:551 +msgid "An error occurred cloning object :(" msgstr "Під час клонування об'єкта сталася помилка :(" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:609 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:582 msgid "Borrow an object" msgstr "Позичити об'єкт" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:610 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:583 msgid "Return a borrowed object" msgstr "Повернути позичений об'єкт" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:655 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:771 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:628 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:744 #, 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 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:665 #, php-format msgid "%object is currently not available" msgstr "Об'єкт %object зараз недоступний" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:721 -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:941 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:694 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:914 #, 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 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:849 #, php-format msgid "You have just borrowed %object :)" msgstr "Ви щойно позичили %object :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:966 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:939 #, php-format msgid "%object has been returned :)" msgstr "%object повернено :)" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1053 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1026 #, php-format msgid "Remove object %1$s" msgstr "Вилучити об'єкт %1$s" -#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1062 +#: ../lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php:1035 #, 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 "Редагувати стан %status" - -#: ../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 "Вилучити стан %1$s" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:84 -msgid "ObjectsLend preferences" -msgstr "Налаштування ObjectsLend" - -#: ../lib/GaletteObjectsLend/Controllers/MainController.php:116 -msgid "Preferences have been successfully stored!" -msgstr "Налаштування успішно збережено!" - -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:48 msgid "Objects lend" msgstr "Objects lend" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:94 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:71 msgid "Borrow status" msgstr "Стан позики" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:101 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:78 msgid "Object categories" msgstr "Категорії об'єктів" -#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:108 +#: ../lib/GaletteObjectsLend/PluginGaletteObjectslend.php:85 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/Filters/ObjectsList.php:257 +msgid "Name/description" +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 "Категорія: %category" - -#: ../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 "Y-m-d H:i" - -#: ../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 +#: ../lib/GaletteObjectsLend/Filters/ObjectsList.php:259 #: ../tempcache/list_lent_object.html.twig:66 msgid "Id" -msgstr "ID" - -#: ../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 "Картка об’єкта в 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 "Дні оренди" +msgstr "ID" + +#: ../tempcache/status_edit.html.twig:69 ../tempcache/take_object.html.twig:372 +#: ../tempcache/take_object.html.twig:435 +msgid "Status:" +msgstr "Стан:" -#: ../tempcache/status_list.html.twig:189 ../tempcache/status_edit.html.twig:74 +#: ../tempcache/status_edit.html.twig:74 ../tempcache/status_list.html.twig:189 msgid "In stock:" msgstr "В наявності:" -#: ../tempcache/status_list.html.twig:368 -#: ../tempcache/status_list.html.twig:372 -msgid "Not in stock" -msgstr "Немає в наявності" +#: ../tempcache/status_edit.html.twig:74 +msgid "Is object in stock or borrowed" +msgstr "Є об'єктом на складі або позиченим" -#: ../tempcache/status_list.html.twig:387 -#: ../tempcache/take_object.html.twig:354 -#, php-format -msgid "%days days" -msgstr "%days днів" +#: ../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_list.html.twig:400 -#, php-format -msgid "Edit %status" -msgstr "Редагувати %status" +#: ../tempcache/status_edit.html.twig:80 +#: ../tempcache/categories_list.html.twig:131 +#: ../tempcache/objects_edit.html.twig:152 +#: ../tempcache/status_list.html.twig:133 +#: ../tempcache/objects_list.html.twig:286 +msgid "Active:" +msgstr "Діяльний:" -#: ../tempcache/status_list.html.twig:402 -#, php-format -msgid "Remove %status from database" -msgstr "Вилучити стан %status з бази даних" +#: ../tempcache/status_edit.html.twig:87 ../tempcache/status_list.html.twig:98 +#: ../tempcache/status_list.html.twig:380 +msgid "Days for rent" +msgstr "Дні оренди" -#: ../tempcache/status_list.html.twig:438 -msgid "No status has been found" -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/categories_list.html.twig:62 #, php-format @@ -632,6 +483,14 @@ msgstr[2] "%count категорій" msgid "Add a category" msgstr "Додати категорію" +#: ../tempcache/categories_list.html.twig:296 +#: ../tempcache/categories_list.html.twig:304 +#: ../tempcache/status_list.html.twig:339 +#: ../tempcache/status_list.html.twig:343 +#: ../tempcache/objects_list.html.twig:734 +msgid "Inactive" +msgstr "Незадіяний" + #: ../tempcache/categories_list.html.twig:315 #, php-format msgid "Edit \"%category\"" @@ -778,129 +637,269 @@ msgstr "Показ серійного номера:" 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 +#: ../tempcache/objects_edit.html.twig:63 ../tempcache/take_object.html.twig:63 msgid "Object" msgstr "Об'єкт" -#: ../tempcache/objects_edit.html.twig:69 ../tempcache/take_object.html.twig:70 +#: ../tempcache/objects_edit.html.twig:70 ../tempcache/take_object.html.twig:70 msgid "Name:" msgstr "Ім'я:" -#: ../tempcache/objects_edit.html.twig:75 +#: ../tempcache/objects_edit.html.twig:76 #: ../tempcache/take_object.html.twig:106 msgid "Description:" msgstr "Опис:" -#: ../tempcache/objects_edit.html.twig:83 +#: ../tempcache/objects_edit.html.twig:84 msgid "--- Select a category ---" msgstr "--- Виберіть категорію ---" -#: ../tempcache/objects_edit.html.twig:104 +#: ../tempcache/objects_edit.html.twig:105 msgid "Category:" msgstr "Категорія:" -#: ../tempcache/objects_edit.html.twig:114 +#: ../tempcache/objects_edit.html.twig:115 #: ../tempcache/take_object.html.twig:124 msgid "Serial number:" msgstr "Серійний номер:" -#: ../tempcache/objects_edit.html.twig:120 +#: ../tempcache/objects_edit.html.twig:121 #: ../tempcache/take_object.html.twig:142 msgid "Price:" msgstr "Ціна:" -#: ../tempcache/objects_edit.html.twig:127 +#: ../tempcache/objects_edit.html.twig:128 #: ../tempcache/take_object.html.twig:218 msgid "Borrow price:" msgstr "Ціна позики:" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "Price per rental day:" msgstr "Ціна за день оренди:" -#: ../tempcache/objects_edit.html.twig:133 +#: ../tempcache/objects_edit.html.twig:134 msgid "The price applies on each rental day if checked, only once otherwise" msgstr "" "Ціна застосовується в кожен день оренди, якщо зазначено, в іншому випадку " "тільки один раз" -#: ../tempcache/objects_edit.html.twig:140 +#: ../tempcache/objects_edit.html.twig:141 #: ../tempcache/take_object.html.twig:162 msgid "Dimensions:" msgstr "Габарити:" -#: ../tempcache/objects_edit.html.twig:146 +#: ../tempcache/objects_edit.html.twig:147 #: ../tempcache/take_object.html.twig:192 msgid "Weight:" msgstr "Вага:" -#: ../tempcache/objects_edit.html.twig:161 -#: ../tempcache/objects_edit.html.twig:327 +#: ../tempcache/objects_edit.html.twig:162 +#: ../tempcache/objects_edit.html.twig:328 #: ../tempcache/take_object.html.twig:340 #: ../tempcache/take_object.html.twig:415 msgid "--- Select a status ---" msgstr "--- Виберіть стан ---" -#: ../tempcache/objects_edit.html.twig:181 +#: ../tempcache/objects_edit.html.twig:182 msgid "Where is the object?" msgstr "Де знаходиться об'єкт?" -#: ../tempcache/objects_edit.html.twig:194 -#: ../tempcache/objects_edit.html.twig:218 +#: ../tempcache/objects_edit.html.twig:195 +#: ../tempcache/objects_edit.html.twig:219 msgid "Object's photo" msgstr "Світлина об'єкта" -#: ../tempcache/objects_edit.html.twig:264 +#: ../tempcache/objects_edit.html.twig:265 msgid "Duplicate" msgstr "Подвоїти" -#: ../tempcache/objects_edit.html.twig:273 +#: ../tempcache/objects_edit.html.twig:274 msgid "Print object" msgstr "Друк об'єкта" -#: ../tempcache/objects_edit.html.twig:298 +#: ../tempcache/objects_edit.html.twig:299 msgid "History" msgstr "Історія" -#: ../tempcache/objects_edit.html.twig:321 -#: ../tempcache/objects_edit.html.twig:408 +#: ../tempcache/objects_edit.html.twig:322 +#: ../tempcache/objects_edit.html.twig:416 msgid "Change status" msgstr "Змінити стан" -#: ../tempcache/objects_edit.html.twig:370 -#: ../tempcache/take_object.html.twig:286 -msgid "Member:" -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/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/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: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/headers.html.twig:43 +msgid "Click to view fullsize image" +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: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: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 "Картка об’єкта в 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/take_object.html.twig:275 msgid "Borrow information" msgstr "Відомості про позику" +#: ../tempcache/take_object.html.twig:286 +msgid "Member:" +msgstr "Член:" + #: ../tempcache/take_object.html.twig:380 msgid "Expected return:" msgstr "Очікуване повернення:" diff --git a/lang/oc.utf8/LC_MESSAGES/objectslend.mo b/lang/oc.utf8/LC_MESSAGES/objectslend.mo index 55aa9ed..2c6583c 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/pt.utf8/LC_MESSAGES/objectslend.mo b/lang/pt.utf8/LC_MESSAGES/objectslend.mo new file mode 100644 index 0000000..8b7c61f Binary files /dev/null and b/lang/pt.utf8/LC_MESSAGES/objectslend.mo differ diff --git a/lang/ru.utf8/LC_MESSAGES/objectslend.mo b/lang/ru.utf8/LC_MESSAGES/objectslend.mo index 8f237b6..c862523 100644 Binary files a/lang/ru.utf8/LC_MESSAGES/objectslend.mo 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 28cafcd..2f4bfb8 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 1ae8fb1..1f3ccfc 100644 --- a/lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php +++ b/lib/GaletteObjectsLend/Controllers/Crud/CategoriesController.php @@ -1,15 +1,9 @@ . - * - * @category Controllers - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Controllers\Crud; use Analog\Analog; @@ -49,23 +36,16 @@ /** * Categories controller * - * @category Controllers - * @name CategoriesController - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class CategoriesController extends AbstractPluginController { /** - * @var array + * @var array */ #[Inject("Plugin Galette Objects Lend")] - protected $module_info; + protected array $module_info; // CRUD - Create @@ -101,14 +81,14 @@ public function doAdd(Request $request, Response $response): Response /** * List page * - * @param Request $request PSR Request - * @param Response $response PSR Response - * @param string $option One of 'page' or 'order' - * @param string|integer $value Value of the option + * @param Request $request PSR Request + * @param Response $response PSR Response + * @param string|null $option One of 'page' or 'order' + * @param integer|string|null $value Value of the option * * @return Response */ - public function list(Request $request, Response $response, $option = null, $value = null): Response + public function list(Request $request, Response $response, string $option = null, int|string $value = null): Response { if (isset($this->session->objectslend_filter_categories)) { $filters = $this->session->objectslend_filter_categories; @@ -212,7 +192,7 @@ public function filter(Request $request, Response $response): Response * * @return Response */ - public function edit(Request $request, Response $response, int $id = null, $action = 'edit'): Response + public function edit(Request $request, Response $response, int $id = null, string $action = 'edit'): Response { if ($this->session->objectslend_category !== null) { $category = $this->session->objectslend_category; @@ -255,14 +235,14 @@ public function edit(Request $request, Response $response, int $id = null, $acti * * @return Response */ - public function doEdit(Request $request, Response $response, int $id = null, $action = 'edit'): Response + public function doEdit(Request $request, Response $response, int $id = null, string $action = 'edit'): Response { $post = $request->getParsedBody(); $category = new LendCategory($this->zdb, $this->plugins, $id); $error_detected = []; $category->name = $post['name']; - $category->is_active = $post['is_active'] == true; + $category->is_active = ($post['is_active'] ?? false) == true; if ($category->store()) { // picture upload if (isset($_FILES['picture'])) { @@ -337,7 +317,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac /** * Get redirection URI * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -349,7 +329,7 @@ public function redirectUri(array $args): string /** * Get form URI * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -364,7 +344,7 @@ public function formUri(array $args): string /** * Get confirmation removal page title * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -380,8 +360,8 @@ public function confirmRemoveTitle(array $args): string /** * Remove object * - * @param array $args Route arguments - * @param array $post POST values + * @param array $args Route arguments + * @param array $post POST values * * @return boolean */ diff --git a/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php b/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php index d0bb825..bf75732 100644 --- a/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php +++ b/lib/GaletteObjectsLend/Controllers/Crud/ObjectsController.php @@ -1,15 +1,9 @@ . - * - * @category Controllers - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Controllers\Crud; use Analog\Analog; @@ -59,23 +46,16 @@ /** * Objects controller * - * @category Controllers - * @name ObjectsController - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class ObjectsController extends AbstractPluginController { /** - * @var array + * @var array */ #[Inject("Plugin Galette Objects Lend")] - protected $module_info; + protected array $module_info; // CRUD - Create @@ -111,14 +91,14 @@ public function doAdd(Request $request, Response $response): Response /** * List page * - * @param Request $request PSR Request - * @param Response $response PSR Response - * @param string $option One of 'page' or 'order' - * @param string|integer $value Value of the option + * @param Request $request PSR Request + * @param Response $response PSR Response + * @param string|null $option One of 'page' or 'order' + * @param integer|string|null $value Value of the option * * @return Response */ - public function list(Request $request, Response $response, $option = null, $value = null): Response + public function list(Request $request, Response $response, string $option = null, int|string $value = null): Response { if (isset($this->session->objectslend_filter_objects)) { $filters = $this->session->objectslend_filter_objects; @@ -156,6 +136,7 @@ public function list(Request $request, Response $response, $option = null, $valu $cat_filters = new CategoriesList(); $cat_filters->active_filter = Categories::ACTIVE_CATEGORIES; //retrieve only active categories $cat_filters->not_empty = true; //retrieve only categories with objects + $cat_filters->setObjectsFilter($filters); //search for categories corresponding to filtered objects $categories = new Categories($this->zdb, $this->login, $this->plugins, $cat_filters); $categories_list = $categories->getCategoriesList(true, null, false); @@ -169,7 +150,7 @@ public function list(Request $request, Response $response, $option = null, $valu 'objects' => $list, 'nb_objects' => count($list), 'filters' => $filters, - 'lendsprefs' => $lendsprefs->getpreferences(), + 'lendsprefs' => $lendsprefs->getPreferences(), 'olendsprefs' => $lendsprefs, 'time' => time(), 'module_id' => $this->getModuleId(), @@ -301,10 +282,7 @@ public function handleBatch(Request $request, Response $response): Response ->withHeader('Location', $this->routeparser->urlFor('objectslend_objects_print')); } - $this->flash->addMessage( - 'error_detected', - _T("No action was found. Please contact plugin developpers.") - ); + throw new \RuntimeException('Does not know what to batch :('); } else { $this->flash->addMessage( 'error_detected', @@ -330,7 +308,7 @@ public function handleBatch(Request $request, Response $response): Response * * @return Response */ - public function edit(Request $request, Response $response, int $id = null, $action = 'edit'): Response + public function edit(Request $request, Response $response, int $id = null, string $action = 'edit'): Response { if ($this->session->objectslend_object !== null) { $object = $this->session->objectslend_object; @@ -360,7 +338,7 @@ public function edit(Request $request, Response $response, int $id = null, $acti 'object' => $object, 'time' => time(), 'action' => $action, - 'lendsprefs' => $lendsprefs->getpreferences(), + 'lendsprefs' => $lendsprefs->getPreferences(), 'olendsprefs' => $lendsprefs, 'categories' => $categories_list, 'statuses' => $slist @@ -402,7 +380,7 @@ public function edit(Request $request, Response $response, int $id = null, $acti * * @return Response */ - public function doEdit(Request $request, Response $response, int $id = null, $action = 'edit'): Response + public function doEdit(Request $request, Response $response, int $id = null, string $action = 'edit'): Response { $post = $request->getParsedBody(); @@ -422,13 +400,11 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac //FIXME: better currency format handler $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'] ?? false) == true; $object->dimension = $post['dimension']; if ($post['weight'] != '') { //FIXME: better format handler - $object->weight = (int)str_replace(' ', '', str_replace(',', '.', $post['weight'])); + $object->weight = (float)str_replace(' ', '', str_replace(',', '.', $post['weight'])); } $object->is_active = ($post['is_active'] ?? false) == true; @@ -520,7 +496,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac * * @return Response */ - public function doUpdateStatus(Request $request, Response $response, int $id = null, $action = 'edit'): Response + public function doUpdateStatus(Request $request, Response $response, int $id = null, string $action = 'edit'): Response { $post = $request->getParsedBody(); @@ -568,14 +544,14 @@ public function doClone(Request $request, Response $response, int $id): Response 'success_detected', str_replace( '%id', - $id, + (string)$id, _T('Successfully cloned from #%id.
You can now edit it.', 'objectslend') ) ); } else { $this->flash->addMessage( 'error_detected', - _T('An error occured cloning object :(', 'objectslend') + _T('An error occurred cloning object :(', 'objectslend') ); } @@ -614,7 +590,7 @@ public function lend(Request $request, Response $response, string $action, int $ 'statuses' => ($action == 'take' ? LendStatus::getActiveTakeAwayStatuses($this->zdb) : LendStatus::getActiveStockStatuses($this->zdb)), - 'lendsprefs' => $lendsprefs->getpreferences(), + 'lendsprefs' => $lendsprefs->getPreferences(), 'olendsprefs' => $lendsprefs, 'ajax' => $request->getHeaderLine('X-Requested-With') === 'XMLHttpRequest', 'takeorgive' => $action, @@ -991,7 +967,7 @@ public function doReturn(Request $request, Response $response, int $id): Respons /** * Get redirection URI * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -1003,7 +979,7 @@ public function redirectUri(array $args): string /** * Get form URI * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -1022,15 +998,15 @@ public function formUri(array $args): string * batchs, it should be found elsewhere. * In post values, we look for id key, as well as all {sthing}_sel keys (like members_sel or contrib_sel) * - * @param array $args Request arguments - * @param array $post POST values + * @param array $args Request arguments + * @param ?array $post POST values * * @return null|integer|integer[] */ - protected function getIdsToRemove(&$args, $post) + protected function getIdsToRemove(array &$args, ?array $post): array|int|null { if (isset($args['id'])) { - return $args['id']; + return (int)$args['id']; } else { $filters = $this->session->objectslend_filter_objects; return $filters->selected; @@ -1040,7 +1016,7 @@ protected function getIdsToRemove(&$args, $post) /** * Get confirmation removal page title * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -1067,8 +1043,8 @@ public function confirmRemoveTitle(array $args): string /** * Remove object * - * @param array $args Route arguments - * @param array $post POST values + * @param array $args Route arguments + * @param array $post POST values * * @return boolean */ diff --git a/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php b/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php index bd6f122..9019c38 100644 --- a/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php +++ b/lib/GaletteObjectsLend/Controllers/Crud/StatusController.php @@ -1,15 +1,9 @@ . - * - * @category Controllers - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Controllers\Crud; use DI\Attribute\Inject; @@ -48,23 +35,16 @@ /** * Status controller * - * @category Controllers - * @name CategoriesController - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class StatusController extends AbstractPluginController { /** - * @var array + * @var array */ #[Inject("Plugin Galette Objects Lend")] - protected $module_info; + protected array $module_info; // CRUD - Create @@ -100,14 +80,14 @@ public function doAdd(Request $request, Response $response): Response /** * List page * - * @param Request $request PSR Request - * @param Response $response PSR Response - * @param string $option One of 'page' or 'order' - * @param string|integer $value Value of the option + * @param Request $request PSR Request + * @param Response $response PSR Response + * @param string|null $option One of 'page' or 'order' + * @param integer|string|null $value Value of the option * * @return Response */ - public function list(Request $request, Response $response, $option = null, $value = null): Response + public function list(Request $request, Response $response, string $option = null, int|string $value = null): Response { if (isset($this->session->objectslend_filter_statuses)) { $filters = $this->session->objectslend_filter_statuses; @@ -231,7 +211,7 @@ public function filter(Request $request, Response $response): Response * * @return Response */ - public function edit(Request $request, Response $response, int $id = null, $action = 'edit'): Response + public function edit(Request $request, Response $response, int $id = null, string $action = 'edit'): Response { if ($this->session->objectslend_status !== null) { $status = $this->session->objectslend_status; @@ -275,7 +255,7 @@ public function edit(Request $request, Response $response, int $id = null, $acti * * @return Response */ - public function doEdit(Request $request, Response $response, int $id = null, $action = 'edit'): Response + public function doEdit(Request $request, Response $response, int $id = null, string $action = 'edit'): Response { $post = $request->getParsedBody(); $status = new LendStatus($this->zdb, $id); @@ -285,9 +265,9 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac $status->in_stock = isset($post['in_stock']); $status->is_active = isset($post['is_active']); $days = trim($post['rent_day_number']); - $status->rent_day_number = strlen($days) > 0 ? intval($days) : null; + $status->rent_day_number = strlen($days) > 0 ? (int)$days : null; if (!$status->store()) { - $error_detected[] = _T("An error occured while storing the status.", "objectslend"); + $error_detected[] = _T("An error occurred while storing the status.", "objectslend"); } if (count($error_detected)) { @@ -331,7 +311,7 @@ public function doEdit(Request $request, Response $response, int $id = null, $ac /** * Get redirection URI * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -343,7 +323,7 @@ public function redirectUri(array $args): string /** * Get form URI * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -358,7 +338,7 @@ public function formUri(array $args): string /** * Get confirmation removal page title * - * @param array $args Route arguments + * @param array $args Route arguments * * @return string */ @@ -374,8 +354,8 @@ public function confirmRemoveTitle(array $args): string /** * Remove object * - * @param array $args Route arguments - * @param array $post POST values + * @param array $args Route arguments + * @param array $post POST values * * @return boolean */ diff --git a/lib/GaletteObjectsLend/Controllers/ImagesController.php b/lib/GaletteObjectsLend/Controllers/ImagesController.php index cb23a9c..2130a2c 100644 --- a/lib/GaletteObjectsLend/Controllers/ImagesController.php +++ b/lib/GaletteObjectsLend/Controllers/ImagesController.php @@ -1,15 +1,9 @@ . - * - * @category Entity - * @package Galette - * - * @author Johan Cwiklinski - * @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 */ + */ + +declare(strict_types=1); namespace GaletteObjectsLend\Controllers; @@ -42,18 +31,12 @@ /** * Galette objects lend images controller * - * @category Controllers - * @name ImageController - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class ImagesController extends GImagesController { - private $lendsprefs; + private Preferences $lendsprefs; /** * Objects lends category or object route @@ -62,7 +45,7 @@ class ImagesController extends GImagesController * @param Response $response PSR Response * @param string $type Requested type (category or object) * @param string $mode Either thumbnail or photo - * @param int $id Object id + * @param ?int $id Object id * * @return Response */ diff --git a/lib/GaletteObjectsLend/Controllers/MainController.php b/lib/GaletteObjectsLend/Controllers/MainController.php index e1c9621..b41abf7 100644 --- a/lib/GaletteObjectsLend/Controllers/MainController.php +++ b/lib/GaletteObjectsLend/Controllers/MainController.php @@ -1,15 +1,9 @@ . - * - * @category Controllers - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 */ + */ + +declare(strict_types=1); namespace GaletteObjectsLend\Controllers; @@ -44,22 +33,16 @@ /** * Galette objects lend main controller * - * @category Controllers - * @name MainController - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class MainController extends AbstractPluginController { /** - * @var array + * @var array */ #[Inject("Plugin Galette Objects Lend")] - protected $module_info; + protected array $module_info; /** * Objects lends preferences @@ -79,11 +62,17 @@ public function preferences(Request $request, Response $response): Response } $ctypes = new ContributionsTypes($this->zdb); + $types_list = $ctypes->getList(); + $ctypes_params = [0 => _T("Choose a contribution type", "objectslend")]; + foreach ($types_list as $id => $type) { + $ctypes_params[$id] = $type['label']; + } $params = [ 'page_title' => _T('ObjectsLend preferences', 'objectslend'), - 'ctypes' => $ctypes->getList(), - 'lendsprefs' => $lendsprefs->getpreferences() + 'type_cotis_options' => $ctypes->getList(), + 'ctypes' => $ctypes_params, + 'lendsprefs' => $lendsprefs->getPreferences() ]; // display page @@ -110,7 +99,7 @@ public function storePreferences(Request $request, Response $response): Response $error_detected = []; $success_detected = []; - if ($lendsprefs->store($post, $error_detected)) { + if ($lendsprefs->store($post)) { $this->flash->addMessage( 'success_detected', _T("Preferences have been successfully stored!", "objectslend") diff --git a/lib/GaletteObjectsLend/Controllers/PdfController.php b/lib/GaletteObjectsLend/Controllers/PdfController.php index fdbf1b7..913a0df 100644 --- a/lib/GaletteObjectsLend/Controllers/PdfController.php +++ b/lib/GaletteObjectsLend/Controllers/PdfController.php @@ -1,15 +1,9 @@ . - * - * @category Controllers - * @package Galette - * - * @author Johan Cwiklinski - * @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 */ + */ + +declare(strict_types=1); namespace GaletteObjectsLend\Controllers; @@ -47,13 +36,7 @@ /** * Galette objects lend PDF controller * - * @category Controllers - * @name PdfController - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class PdfController extends GPdfController @@ -107,11 +90,14 @@ public function printObjects(Request $request, Response $response): Response $lendsprefs = new Preferences($this->zdb); if (isset($this->session->objectslend_filter_objects)) { - $filters = $this->session->objectslend_filter_objects; + $filters = clone $this->session->objectslend_filter_objects; } else { $filters = new ObjectsList(); } + if ($filters->orderby !== Objects::ORDERBY_CATEGORY) { + $filters->orderby = Objects::ORDERBY_CATEGORY; + } $objects = new Objects($this->zdb, $this->plugins, $lendsprefs, $filters); $list = $objects->getObjectsList(true, null, true, false); diff --git a/lib/GaletteObjectsLend/Entity/CategoryPicture.php b/lib/GaletteObjectsLend/Entity/CategoryPicture.php index 8422694..2f10c5d 100644 --- a/lib/GaletteObjectsLend/Entity/CategoryPicture.php +++ b/lib/GaletteObjectsLend/Entity/CategoryPicture.php @@ -1,41 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @copyright 2017-2020 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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -44,15 +29,8 @@ /** * Picture for category * - * @name CategoryPicture - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski */ class CategoryPicture extends Picture { @@ -65,7 +43,7 @@ class CategoryPicture extends Picture * @param Plugins $plugins Plugins * @param mixed|null $objectid Object id */ - public function __construct(Plugins $plugins, $objectid = null) + public function __construct(Plugins $plugins, mixed $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 1a05281..7bd6987 100644 --- a/lib/GaletteObjectsLend/Entity/LendCategory.php +++ b/lib/GaletteObjectsLend/Entity/LendCategory.php @@ -1,42 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -46,17 +30,10 @@ use Laminas\Db\Sql\Predicate; /** - * Categories manageemnt + * Categories management * - * @name LendCategory - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski * * @property bool $is_active * @property string $name @@ -68,50 +45,47 @@ class LendCategory public const TABLE = 'category'; public const PK = 'category_id'; - private $fields = array( + /** @var array */ + private array $fields = array( 'category_id' => 'integer', 'name' => 'varchar(100)', 'is_active' => 'boolean' ); - private $category_id; - private $name = ''; - private $is_active = true; - private $objects_nb = 0; - private $objects_price_sum = 0; + private int $category_id; + private ?string $name = null; + private bool $is_active = true; + private int $objects_nb = 0; + private float $objects_price_sum = 0.0; // Used to have an url for the image - private $categ_image_url = ''; - private $picture; + private string $categ_image_url = ''; + private CategoryPicture $picture; - private $deps = [ + /** @var array */ + private array $deps = [ 'picture' => true ]; - private $zdb; - private $plugins; + private Db $zdb; + private Plugins $plugins; /** * Default constructor * - * @param Db $zdb Database instance - * @param Plugins $plugins Pluginsugins instance - * @param int|object $args Maybe null, an RS object or an id from database - * @param array $deps Dependencies configuration, see LendCategory::$deps + * @param Db $zdb Database instance + * @param Plugins $plugins Plugins instance + * @param int|ArrayObject|null $args Maybe null, an RS object or an id from database + * @param array $deps Dependencies configuration, see LendCategory::$deps */ - public function __construct(Db $zdb, Plugins $plugins, $args = null, $deps = null) + public function __construct(Db $zdb, Plugins $plugins, int|ArrayObject $args = null, array $deps = null) { $this->zdb = $zdb; $this->plugins = $plugins; - if ($deps !== null && is_array($deps)) { + if ($deps !== null) { $this->deps = array_merge( $this->deps, $deps ); - } elseif ($deps !== null) { - Analog::log( - '$deps should be an array, ' . gettype($deps) . ' given!', - Analog::WARNING - ); } if ($this->deps['picture'] === true) { @@ -141,36 +115,35 @@ public function __construct(Db $zdb, Plugins $plugins, $args = null, $deps = nul /** * Populate object from a resultset row * - * @param ArrayObject $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ - private function loadFromRS($r) + private function loadFromRS(ArrayObject $r): void { - $this->category_id = $r->category_id; + $this->category_id = (int)$r->category_id; $this->name = $r->name; - $this->is_active = $r->is_active == '1' ? true : false; + $this->is_active = $r->is_active == '1'; if (property_exists($r, 'objects_count')) { - $this->objects_nb = $r->objects_count; + $this->objects_nb = (int)$r->objects_count; } - if (property_exists($r, 'objects_price_sum')) { - $this->objects_price_sum = $r->objects_price_sum; + if (property_exists($r, 'objects_price_sum') && $r->objects_price_sum !== null) { + $this->objects_price_sum = (float)$r->objects_price_sum; } - if ($this->deps['picture'] === true) { $this->picture = new CategoryPicture($this->plugins, (int)$this->category_id); } } /** - * Enregistre l'élément en cours que ce soit en insert ou update + * Store category * - * @return bool False si l'enregistrement a échoué, true si aucune erreur + * @return bool */ - public function store() + public function store(): bool { try { $values = array(); @@ -180,7 +153,7 @@ public function store() //Handle booleans for postgres ; bugs #18899 and #19354 $values[$k] = $this->zdb->isPostgres() ? 'false' : 0; } else { - $values[$k] = $this->$k; + $values[$k] = $this->$k ?? null; } } @@ -191,14 +164,15 @@ public function store() $result = $this->zdb->execute($insert); if ($result->count() > 0) { if ($this->zdb->isPostgres()) { - $this->category_id = $this->zdb->driver->getLastGeneratedValue( + /** @phpstan-ignore-next-line */ + $this->category_id = (int)$this->zdb->driver->getLastGeneratedValue( PREFIX_DB . 'lend_category_id_seq' ); } else { - $this->category_id = $this->zdb->driver->getLastGeneratedValue(); + $this->category_id = (int)$this->zdb->driver->getLastGeneratedValue(); } } else { - throw new \RuntimeException('Unable to add catagory!'); + throw new \RuntimeException('Unable to add category!'); } } else { $update = $this->zdb->update(LEND_PREFIX . self::TABLE) @@ -218,11 +192,11 @@ public function store() } /** - * Drop a category. All objects for removed catagory will be assigned to none. + * Drop a category. All objects for removed category will be assigned to none. * * @return boolean */ - public function delete() + public function delete(): bool { try { $this->zdb->connection->beginTransaction(); @@ -260,7 +234,7 @@ public function delete() * * @return string */ - public function getName($count = true) + public function getName(bool $count = true): string { $name = $this->name !== null ? $this->name : _T("No category", "objectslend"); @@ -278,14 +252,14 @@ public function getName($count = true) * * @return mixed the called property */ - public function __get($name) + public function __get(string $name): mixed { switch ($name) { case 'objects_price_sum': return number_format($this->$name, 2, ',', ''); case 'is_active': default: - return $this->$name; + return $this->$name ?? null; } } @@ -293,11 +267,11 @@ 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 */ - public function __set($name, $value) + public function __set(string $name, mixed $value): void { $this->$name = $value; } @@ -305,11 +279,11 @@ public function __set($name, $value) /** * Get object ID * - * @return int + * @return ?int */ - public function getId(): int + public function getId(): ?int { - return (int)$this->category_id; + return $this->category_id ?? null; } /** @@ -319,17 +293,17 @@ public function getId(): int */ public function isActive(): bool { - return (bool)$this->is_active; + return $this->is_active; } /** * Get picture * - * @return CategoryPicture + * @return ?CategoryPicture */ - public function getPicture(): CategoryPicture + public function getPicture(): ?CategoryPicture { - return $this->picture; + return $this->picture ?? null; } /** @@ -355,11 +329,11 @@ public function getObjectsNb(): int /** * Generic isset function * - * @param $name Property name + * @param string $name Property name * * @return bool */ - public function __isset($name) + public function __isset(string $name): bool { return property_exists($this, $name); } diff --git a/lib/GaletteObjectsLend/Entity/LendObject.php b/lib/GaletteObjectsLend/Entity/LendObject.php index 8cc0faa..0d0fb27 100644 --- a/lib/GaletteObjectsLend/Entity/LendObject.php +++ b/lib/GaletteObjectsLend/Entity/LendObject.php @@ -1,42 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -50,15 +34,8 @@ /** * Object * - * @name LendObject - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski * * @property ?int $object_id * @property ObjectPicture $picture @@ -79,13 +56,18 @@ * @property string $date_forecast * @property array $rents * @property int $category_id + * @property string $nom_adh + * @property string $prenom_adh + * @property string $currency + * @property bool $in_stock */ class LendObject { public const TABLE = 'objects'; public const PK = 'object_id'; - private $fields = array( + /** @var array */ + private array $fields = array( 'object_id' => 'integer', 'name' => 'varchar(100)', 'description' => 'varchar(500)', @@ -99,39 +81,40 @@ class LendObject 'category_id' => 'int', 'nb_available' => 'int', ); - private $object_id; - private $name = ''; - private $description = ''; - private $serial_number = ''; - private $price = 0.0; - private $rent_price = 0.0; - private $price_per_day = false; - private $dimension = ''; - private $weight = 0.0; - private $is_active = true; - private $category_id; - private $nb_available = 1; - // Requête sur le dernier statut de l'objet - private $date_begin; - private $date_forecast; - private $date_end; - private $status_text; - private $status_id; - private $in_stock = true; - // Requête sur l'adhérent associé au statut - private $nom_adh = ''; - private $prenom_adh = ''; - private $email_adh = ''; - private $id_adh; - private $rent_id; - private $comments; - private $currency = '€'; - private $picture; - private $cat_active = true; - private $cat_name; - private $member; - - private $deps = [ + private ?int $object_id; + private string $name = ''; + private string $description = ''; + private string $serial_number = ''; + private float $price = 0.0; + private float $rent_price = 0.0; + private bool $price_per_day = false; + private string $dimension = ''; + private float $weight = 0.0; + private bool $is_active = true; + private ?int $category_id; + private int $nb_available = 1; + + private string $date_begin; + private ?string $date_forecast; + private ?string $date_end; + private string $status_text = ''; + private int $status_id; + private bool $in_stock = true; + + private string $nom_adh = ''; + private string $prenom_adh = ''; + private string $email_adh = ''; + private ?int $id_adh; + private ?int $rent_id; + private string $comments = ''; + private string $currency = '€'; + private ObjectPicture $picture; + private bool $cat_active = true; + private ?string $cat_name = null; + private Adherent $member; + + /** @var array */ + private array $deps = [ 'picture' => true, 'rents' => false, 'last_rent' => false, @@ -140,38 +123,33 @@ class LendObject 'category' => false ]; - private $zdb; - private $plugins; + private Db $zdb; + private Plugins $plugins; /** * @var LendRent[] * Rents list for the object */ - private $rents; + private array $rents; /** * Default constructor * - * @param Db $zdb Database 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 + * @param Db $zdb Database instance + * @param Plugins $plugins Plugins instance + * @param int|ArrayObject|null $args Maybe null, an RS object or an id from database + * @param array $deps Dependencies configuration, see LendOb::$deps */ - public function __construct(Db $zdb, Plugins $plugins, $args = null, $deps = null) + public function __construct(Db $zdb, Plugins $plugins, int|ArrayObject $args = null, array $deps = null) { $this->zdb = $zdb; $this->plugins = $plugins; - if ($deps !== null && is_array($deps)) { + if ($deps !== null) { $this->deps = array_merge( $this->deps, $deps ); - } elseif ($deps !== null) { - Analog::log( - '$deps should be an array, ' . gettype($deps) . ' given!', - Analog::WARNING - ); } if ($this->deps['picture'] === true) { @@ -243,22 +221,22 @@ public function __construct(Db $zdb, Plugins $plugins, $args = null, $deps = nul /** * Populate object from a resultset row * - * @param ArrayObject $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ - private function loadFromRS($r) + private function loadFromRS(ArrayObject $r): void { - $this->object_id = $r->object_id; + $this->object_id = (int)$r->object_id; $this->name = $r->name; $this->description = $r->description; $this->serial_number = $r->serial_number; - $this->price = is_numeric($r->price) ? floatval($r->price) : 0.0; - $this->rent_price = is_numeric($r->rent_price) ? floatval($r->rent_price) : 0.0; + $this->price = is_numeric($r->price) ? (float)$r->price : 0.0; + $this->rent_price = is_numeric($r->rent_price) ? (float)$r->rent_price : 0.0; $this->price_per_day = $r->price_per_day == '1'; $this->dimension = $r->dimension; - $this->weight = is_numeric($r->weight) ? floatval($r->weight) : 0.0; - $this->is_active = $r->is_active == '1' ? true : false; + $this->weight = is_numeric($r->weight) ? (float)$r->weight : 0.0; + $this->is_active = $r->is_active == '1'; if (property_exists($r, 'cat_active') && ($r->cat_active == 1 || $r->cat_active === null)) { $this->cat_active = true; } else { @@ -267,14 +245,18 @@ private function loadFromRS($r) if (property_exists($r, 'cat_name') && $r->cat_name) { $this->cat_name = $r->cat_name; } - $this->category_id = $r->category_id; - $this->nb_available = $r->nb_available; - $this->rent_id = $r->rent_id; + if ($r->category_id != null) { + $this->category_id = (int)$r->category_id; + } + $this->nb_available = (int)$r->nb_available; + if ($r->rent_id != null) { + $this->rent_id = (int)$r->rent_id; + } //load last rent infos (status, member, and so on - if ($this->rent_id) { + if (isset($this->rent_id)) { if (property_exists($r, 'status_id')) { - $this->status_id = $r->status_id; + $this->status_id = (int)$r->status_id; } if (property_exists($r, 'status_text')) { @@ -294,22 +276,16 @@ private function loadFromRS($r) } if (property_exists($r, Adherent::PK)) { - $this->id_adh = $r->{Adherent::PK}; + $this->id_adh = (int)$r->{Adherent::PK}; } if (property_exists($r, 'in_stock')) { - $this->in_stock = $r->in_stock; + $this->in_stock = (bool)$r->in_stock; } } - $this->category_id = $r->category_id; - if ($this->object_id && $this->deps['rents'] === true) { - $only_last = false; - if ($this->deps['rents'] === false && $this->deps['last_rent'] === true) { - $only_last = true; - } - $this->rents = LendRent::getRentsForObjectId($this->object_id, $only_last); + $this->rents = LendRent::getRentsForObjectId($this->object_id); } if ($this->deps['picture'] === true) { @@ -330,11 +306,11 @@ private function loadFromRS($r) } /** - * Enregistre l'élément en cours que ce soit en insert ou update + * Store object * - * @return bool False si l'enregistrement a échoué, true si aucune erreur + * @return bool */ - public function store() + public function store(): bool { try { $values = array(); @@ -347,7 +323,7 @@ public function store() //Handle booleans for postgres ; bugs #18899 and #19354 $values[$k] = $this->zdb->isPostgres() ? 'false' : 0; } else { - $values[$k] = $this->$k; + $values[$k] = $this->$k ?? null; } } @@ -358,11 +334,12 @@ public function store() $result = $this->zdb->execute($insert); if ($result->count() > 0) { if ($this->zdb->isPostgres()) { - $this->object_id = $this->zdb->driver->getLastGeneratedValue( + /** @phpstan-ignore-next-line */ + $this->object_id = (int)$this->zdb->driver->getLastGeneratedValue( PREFIX_DB . 'lend_objects_id_seq' ); } else { - $this->object_id = $this->zdb->driver->getLastGeneratedValue(); + $this->object_id = (int)$this->zdb->driver->getLastGeneratedValue(); } if ($this->deps['picture'] === true) { @@ -388,97 +365,6 @@ public function store() } } - /** - * Get object rent status and rent user informations. - * - * @param LendObject $object L'objet dont on cherche le statut. Est automatiquement modifié. - * - * @return void - */ - public static function getStatusForObject($object) - { - global $zdb; - - // Statut - $select_rent = $zdb->select(LEND_PREFIX . LendRent::TABLE) - ->join( - PREFIX_DB . LEND_PREFIX . LendStatus::TABLE, - PREFIX_DB . LEND_PREFIX . LendRent::TABLE . '.status_id = ' . - PREFIX_DB . LEND_PREFIX . LendStatus::TABLE . '.status_id' - ) - ->join( - PREFIX_DB . Adherent::TABLE, - PREFIX_DB . Adherent::TABLE . '.id_adh = ' . PREFIX_DB . LEND_PREFIX . LendRent::TABLE . '.adherent_id', - '*', - 'left' - ) - ->where(array('object_id' => $object->object_id)) - ->limit(1) - ->offset(0) - ->order('date_begin desc'); - - $results = $zdb->execute($select_rent); - if ($results->count() == 1) { - $rent = $results->current(); - $object->date_begin = $rent->date_begin; - $object->date_forecast = $rent->date_forecast; - $object->date_end = $rent->date_end; - $object->status_text = $rent->status_text; - $object->comments = $rent->comments; - $object->in_stock = $rent->in_stock == '1' ? true : false; - $object->nom_adh = $rent->nom_adh; - $object->prenom_adh = $rent->prenom_adh; - $object->email_adh = $rent->email_adh; - $object->id_adh = $rent->id_adh; - } else { - $object->in_stock = true; - } - } - - /** - * Renvoit tous les objects correspondant aux IDs donnés. - * - * @param array $ids Tableau des IDs pour lequels on souhaite avoir les objects - * - * @return LendObject[] Tableau des objets correspondant aux IDs - */ - public static function getMoreObjectsByIds($ids) - { - global $zdb, $plugins; - - $myids = array(); - foreach ($ids as $id) { - if (is_numeric($id)) { - $myids[] = $id; - } - } - - try { - $select = $zdb->select(LEND_PREFIX . self::TABLE) - ->where(array(self::PK => $myids)); - - $results = array(); - - $rows = $zdb->execute($select); - foreach ($rows as $r) { - $o = new self($zdb, $plugins, $r); - - self::getStatusForObject($o); - - $results[] = $o; - } - - return $results; - } catch (\Exception $e) { - Analog::log( - 'Something went wrong :\'( | ' . $e->getMessage() . "\n" . - $e->getTraceAsString(), - Analog::ERROR - ); - throw $e; - } - } - /** * Global getter method * @@ -486,7 +372,7 @@ public static function getMoreObjectsByIds($ids) * * @return mixed the called property */ - public function __get($name) + public function __get(string $name): mixed { switch ($name) { case 'date_begin': @@ -497,12 +383,10 @@ public function __get($name) return number_format($this->$name, 2, ',', ' '); case 'value_rent_price': return $this->rent_price; - case 'weight_bulk': - return $this->weight; case 'weight': return number_format($this->weight, 3, ',', ' '); default: - return $this->$name; + return $this->$name ?? null; } } @@ -510,11 +394,11 @@ 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 */ - public function __set($name, $value) + public function __set(string $name, mixed $value): void { $forbidden = ['currency']; if (!in_array($name, $forbidden)) { @@ -522,6 +406,8 @@ public function __set($name, $value) case 'category_id': if ($value == '') { $value = null; + } else { + $value = (int)$value; } //no break for value to be set in default default: @@ -536,7 +422,7 @@ public function __set($name, $value) * * @return string */ - public function getCurrency() + public function getCurrency(): string { return $this->currency; } @@ -544,13 +430,14 @@ public function getCurrency() /** * Get current rent * - * @return LendRent|void + * @return LendRent|null */ - public function getCurrentRent() + public function getCurrentRent(): ?LendRent { - if (is_array($this->rents) && count($this->rents) > 0) { + if (isset($this->rents) && is_array($this->rents) && count($this->rents) > 0) { return $this->rents[0]; } + return null; } /** @@ -560,7 +447,7 @@ public function getCurrentRent() * * @return boolean */ - public function isActive() + public function isActive(): bool { return $this->is_active && $this->cat_active; } @@ -573,7 +460,7 @@ public function isActive() * * @return string */ - private function getHighlighted(ObjectsList $filters, $field) + private function getHighlighted(ObjectsList $filters, string $field): string { //check if search concerns field $process = false; @@ -605,10 +492,8 @@ private function getHighlighted(ObjectsList $filters, $field) return $this->$field; } - $untokenized = trim($filters->filter_str ?? '', '%'); - mb_internal_encoding('UTF-8'); return preg_replace( - '/(' . $untokenized . ')/iu', + '/(' . trim($filters->filter_str ?? '', '%') . ')/iu', '$1', $this->$field ); @@ -621,7 +506,7 @@ private function getHighlighted(ObjectsList $filters, $field) * * @return string */ - public function displayName(ObjectsList $filters) + public function displayName(ObjectsList $filters): string { return $this->getHighlighted($filters, 'name'); } @@ -633,7 +518,7 @@ public function displayName(ObjectsList $filters) * * @return string */ - public function displayDescription(ObjectsList $filters) + public function displayDescription(ObjectsList $filters): string { return $this->getHighlighted($filters, 'description'); } @@ -645,7 +530,7 @@ public function displayDescription(ObjectsList $filters) * * @return string */ - public function displaySerial(ObjectsList $filters) + public function displaySerial(ObjectsList $filters): string { return $this->getHighlighted($filters, 'serial_number'); } @@ -657,7 +542,7 @@ public function displaySerial(ObjectsList $filters) * * @return string */ - public function displayDimension(ObjectsList $filters) + public function displayDimension(ObjectsList $filters): string { return $this->getHighlighted($filters, 'dimension'); } @@ -667,13 +552,18 @@ public function displayDimension(ObjectsList $filters) * * @return boolean */ - public function delete() + public function delete(): bool { try { $this->zdb->connection->beginTransaction(); //remove rents + $update = $this->zdb->update(LEND_PREFIX . self::TABLE) + ->set([LendRent::PK => null]) + ->where(array(self::PK => $this->object_id)); + $this->zdb->execute($update); $delete = $this->zdb->delete(LEND_PREFIX . LendRent::TABLE) ->where(array(self::PK => $this->object_id)); + $this->zdb->execute($delete); $delete = $this->zdb->delete(LEND_PREFIX . self::TABLE) ->where(array(self::PK => $this->object_id)); $this->zdb->execute($delete); @@ -695,10 +585,10 @@ public function delete() * * @return boolean */ - public function clone() + public function clone(): bool { //unset id so this is considered as new object - $this->object_id = null; + unset($this->object_id); //unset image $this->picture = new ObjectPicture($this->plugins); return $this->store(); @@ -707,11 +597,11 @@ public function clone() /** * Get ID * - * @return int + * @return ?int */ - public function getId(): int + public function getId(): ?int { - return (int)$this->object_id; + return $this->object_id ?? null; } /** @@ -777,9 +667,9 @@ public function getWeight(): float /** * Get textual status * - * @return mixed + * @return string */ - public function getStatusText() + public function getStatusText(): string { return $this->status_text; } @@ -819,31 +709,31 @@ public function getDateForecast(): string /** * Get member ID * - * @return mixed + * @return ?int */ - public function getIdAdh() + public function getIdAdh(): ?int { - return $this->id_adh; + return $this->id_adh ?? null; } /** * Get rent ID * - * @return mixed + * @return ?int */ - public function getRentId() + public function getRentId(): ?int { - return $this->rent_id; + return $this->rent_id ?? null; } /** * Get category ID * - * @return mixed + * @return ?int */ - public function getCategoryId() + public function getCategoryId(): ?int { - return $this->category_id; + return $this->category_id ?? null; } /** @@ -851,7 +741,7 @@ public function getCategoryId() * * @return string */ - public function getSerialNumber() + public function getSerialNumber(): string { return $this->serial_number; } @@ -864,9 +754,9 @@ public function getSerialNumber() * @return string * @throws \Exception */ - protected function getDateField($name): string + protected function getDateField(string $name): string { - $date = $this->$name; + $date = $this->$name ?? null; if ($date == '' || $date == null) { return ''; } @@ -877,11 +767,11 @@ protected function getDateField($name): string /** * Generic isset function * - * @param $name Property name + * @param string $name Property name * * @return bool */ - public function __isset($name) + public function __isset(string $name): bool { return property_exists($this, $name); } diff --git a/lib/GaletteObjectsLend/Entity/LendPDF.php b/lib/GaletteObjectsLend/Entity/LendPDF.php index d8767e3..1879f95 100644 --- a/lib/GaletteObjectsLend/Entity/LendPDF.php +++ b/lib/GaletteObjectsLend/Entity/LendPDF.php @@ -1,42 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Galette\Core\Preferences as CorePreferences; @@ -45,15 +29,8 @@ /** * PDF creation * - * @name Picture - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski */ class LendPDF extends \Galette\IO\Pdf { @@ -61,9 +38,9 @@ class LendPDF extends \Galette\IO\Pdf * Main constructor, set creator and author * * @param CorePreferences $prefs Preferences - * @param PdfModel $model Related model + * @param ?PdfModel $model Related model */ - public function __construct(CorePreferences $prefs, $model = null) + public function __construct(CorePreferences $prefs, ?PdfModel $model = null) { parent::__construct($prefs, $model); $this->SetDisplayMode('real', 'OneColumn'); diff --git a/lib/GaletteObjectsLend/Entity/LendRent.php b/lib/GaletteObjectsLend/Entity/LendRent.php index 328fd43..a4d84c9 100644 --- a/lib/GaletteObjectsLend/Entity/LendRent.php +++ b/lib/GaletteObjectsLend/Entity/LendRent.php @@ -1,42 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -47,15 +31,8 @@ /** * Rents * - * @name LendRent - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski * * @property integer $rent_id * @property integer $object_id @@ -77,7 +54,8 @@ class LendRent public const TABLE = 'rents'; public const PK = 'rent_id'; - private $fields = array( + /** @var array */ + private array $fields = array( 'rent_id' => 'integer', 'object_id' => 'integer', 'date_begin' => 'datetime', @@ -87,29 +65,29 @@ class LendRent 'adherent_id' => 'integer', 'comments' => 'varchar(200)' ); - private $rent_id; - private $object_id; - private $date_begin; - private $date_forecast; - private $date_end; - private $status_id; - private $adherent_id; - private $comments = ''; - private $in_stock; - // Join sur table Status - private $status_text; - // Left join sur table adhérents - private $nom_adh = ''; - private $prenom_adh = ''; - private $pseudo_adh = ''; - private $email_adh = ''; + private int $rent_id; + private int $object_id; + private ?string $date_begin; + private ?string $date_forecast; + private ?string $date_end; + private ?int $status_id; + private ?int $adherent_id; + private string $comments = ''; + private bool $in_stock; + + private string $status_text; + + private ?string $nom_adh = ''; + private ?string $prenom_adh = ''; + private ?string $pseudo_adh = ''; + private ?string $email_adh = ''; /** * Default constructor * - * @param mixed|null $args Either an int with rent id, null, or a resultset row + * @param int|ArrayObject|null $args Either an int with rent id, null, or a resultset row */ - public function __construct($args = null) + public function __construct(int|ArrayObject $args = null) { global $zdb; @@ -139,19 +117,21 @@ public function __construct($args = null) /** * Populate object from a resultset row * - * @param ArrayObject $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ - private function loadFromRS($r) + private function loadFromRS(ArrayObject $r): void { - $this->rent_id = $r->rent_id; - $this->object_id = $r->object_id; + $this->rent_id = (int)$r->rent_id; + $this->object_id = (int)$r->object_id; $this->date_begin = $r->date_begin; $this->date_forecast = $r->date_forecast; $this->date_end = $r->date_end; - $this->status_id = $r->status_id; - $this->adherent_id = $r->adherent_id; + $this->status_id = (int)$r->status_id; + if ($r->adherent_id !== null) { + $this->adherent_id = (int)$r->adherent_id; + } $this->comments = $r->comments; } @@ -160,7 +140,7 @@ private function loadFromRS($r) * * @return bool */ - public function store() + public function store(): bool { global $zdb; @@ -169,7 +149,7 @@ public function store() $values = array(); foreach ($this->fields as $k => $v) { - $values[$k] = $this->$k; + $values[$k] = $this->$k ?? null; } if (!isset($this->rent_id) || $this->rent_id == '') { @@ -179,11 +159,11 @@ public function store() $result = $zdb->execute($insert); if ($result->count() > 0) { if ($zdb->isPostgres()) { - $this->rent_id = $zdb->driver->getLastGeneratedValue( + $this->rent_id = (int)$zdb->driver->getLastGeneratedValue( PREFIX_DB . 'lend_rents_id_seq' ); } else { - $this->rent_id = $zdb->driver->getLastGeneratedValue(); + $this->rent_id = (int)$zdb->driver->getLastGeneratedValue(); } Analog::log( 'Rent #' . $this->rent_id . ' added.', @@ -220,16 +200,15 @@ public function store() } /** - * Retourne tous les historiques d'emprunts pour un objet donné trié par date de début - * les plus récents en 1er. + * Get rent history for a given object sorted * - * @param integer $object_id ID de l'objet dont on souhaite l'historique d'emprunt + * @param integer $object_id Object ID * @param boolean $only_last Only retrieve last rent (for list display) * @param string $order Order clause, defaults to 'date_begin DESC' * - * @return array + * @return LendRent[] */ - public static function getRentsForObjectId($object_id, $only_last = false, $order = 'date_begin desc') + public static function getRentsForObjectId(int $object_id, bool $only_last = false, string $order = 'date_begin desc'): array { global $zdb; @@ -259,8 +238,8 @@ public static function getRentsForObjectId($object_id, $only_last = false, $orde foreach ($rows as $r) { $rt = new LendRent($r); $rt->status_text = $r->status_text; - $rt->status_id = $r->status_id; - $rt->in_stock = $r->in_stock == '1' ? true : false; + $rt->status_id = (int)$r->status_id; + $rt->in_stock = $r->in_stock == '1'; $rt->prenom_adh = $r->prenom_adh; $rt->nom_adh = $r->nom_adh; $rt->pseudo_adh = $r->pseudo_adh; @@ -280,14 +259,14 @@ public static function getRentsForObjectId($object_id, $only_last = false, $orde } /** - * Ferme tous les emprunts ouverts pour un objet donné avec le commentaire indiqué + * Close all open rents for a given object with given comment * - * @param int $object_id ID de l'objet surlequel fermer les emprunts - * @param string $comments Commentaire à mettre sur les emprunts + * @param int $object_id Object ID + * @param string $comments Comment to add on lend that will be closed * - * @return boolean True si OK, False si une erreur SQL est survenue + * @return boolean */ - public static function closeAllRentsForObject($object_id, $comments) + public static function closeAllRentsForObject(int $object_id, string $comments): bool { global $zdb; @@ -322,9 +301,9 @@ public static function closeAllRentsForObject($object_id, $comments) /** * Get active members sorted by name * - * @return array + * @return Adherent[] */ - public static function getAllActivesAdherents() + public static function getAllActivesAdherents(): array { try { $filters = new \Galette\Filters\MembersList(); @@ -357,24 +336,24 @@ public static function getAllActivesAdherents() * * @return mixed the called property */ - public function __get($name) + public function __get(string $name): mixed { switch ($name) { case 'date_begin': case 'date_end': - if ($this->$name != '') { + if (($this->$name ?? '') != '') { $dt = new \DateTime($this->$name); return $dt->format(_T('Y-m-d H:i', 'objectslend')); } return ''; case 'date_forecast': - if ($this->$name != '') { + if (($this->$name ?? '') != '') { $dt = new \DateTime($this->$name); return $dt->format(_T('Y-m-d')); } return ''; default: - return $this->$name; + return $this->$name ?? null; } } @@ -382,11 +361,11 @@ 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 */ - public function __set($name, $value) + public function __set(string $name, mixed $value): void { switch ($name) { case 'adherent_id': @@ -396,6 +375,11 @@ public function __set($name, $value) $this->$name = null; } break; + case 'status_id': + if ((int)$value > 0) { + $this->$name = (int)$value; + } + break; case 'date_forecast': case 'date_begin': case 'date_end': @@ -433,11 +417,11 @@ public function __set($name, $value) /** * Generic isset function * - * @param $name Property name + * @param string $name Property name * * @return bool */ - public function __isset($name) + public function __isset(string $name): bool { return property_exists($this, $name); } diff --git a/lib/GaletteObjectsLend/Entity/LendStatus.php b/lib/GaletteObjectsLend/Entity/LendStatus.php index 2707ecb..cc05a9d 100644 --- a/lib/GaletteObjectsLend/Entity/LendStatus.php +++ b/lib/GaletteObjectsLend/Entity/LendStatus.php @@ -1,42 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -46,15 +30,8 @@ /** * Lend status management * - * @name LendStatus - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski * * @property integer $status_id * @property string $status_text @@ -67,28 +44,29 @@ class LendStatus public const TABLE = 'status'; public const PK = 'status_id'; - private $zdb; + private Db $zdb; - private $fields = array( + /** @var array */ + private array $fields = array( 'status_id' => 'integer', 'status_text' => 'varchar(100)', 'in_stock' => 'boolean', 'is_active' => 'boolean', 'rent_day_number' => 'int' ); - private $status_id; - private $status_text = ''; - private $in_stock = false; - private $is_active = true; - private $rent_day_number = null; + private int $status_id; + private string $status_text = ''; + private bool $in_stock = false; + private bool $is_active = true; + private ?int $rent_day_number = null; /** * Status constructor * - * @param Db $zdb Database instance - * @param mixed $args Can be null, an ID or a database row + * @param Db $zdb Database instance + * @param int|ArrayObject|null $args Can be null, an ID or a database row */ - public function __construct(Db $zdb, $args = null) + public function __construct(Db $zdb, int|ArrayObject $args = null) { $this->zdb = $zdb; @@ -115,16 +93,16 @@ public function __construct(Db $zdb, $args = null) /** * Populate object from a resultset row * - * @param ArrayObject $r the resultset row + * @param ArrayObject $r the resultset row * * @return void */ - private function loadFromRS($r) + private function loadFromRS(ArrayObject $r): void { - $this->status_id = $r->status_id; + $this->status_id = (int)$r->status_id; $this->status_text = $r->status_text; - $this->in_stock = $r->in_stock == '1' ? true : false; - $this->is_active = $r->is_active == '1' ? true : false; + $this->in_stock = $r->in_stock == '1'; + $this->is_active = $r->is_active == '1'; $this->rent_day_number = $r->rent_day_number; } @@ -133,7 +111,7 @@ private function loadFromRS($r) * * @return bool */ - public function store() + public function store(): bool { try { $values = array(); @@ -146,7 +124,7 @@ public function store() //Handle booleans for postgres ; bugs #18899 and #19354 $values[$k] = $this->zdb->isPostgres() ? 'false' : 0; } else { - $values[$k] = $this->$k; + $values[$k] = $this->$k ?? null; } } @@ -157,11 +135,12 @@ public function store() $result = $this->zdb->execute($insert); if ($result->count() > 0) { if ($this->zdb->isPostgres()) { - $this->status_id = $this->zdb->driver->getLastGeneratedValue( + /** @phpstan-ignore-next-line */ + $this->status_id = (int)$this->zdb->driver->getLastGeneratedValue( PREFIX_DB . 'lend_status_id_seq' ); } else { - $this->status_id = $this->zdb->driver->getLastGeneratedValue(); + $this->status_id = (int)$this->zdb->driver->getLastGeneratedValue(); } } else { throw new \Exception(_T("Status has not been added :(", "objectslend")); @@ -188,9 +167,9 @@ public function store() * * @param Db $zdb Database instance * - * @return array + * @return LendStatus[] */ - public static function getActiveStatuses(Db $zdb) + public static function getActiveStatuses(Db $zdb): array { try { $select = $zdb->select(LEND_PREFIX . self::TABLE) @@ -218,9 +197,9 @@ public static function getActiveStatuses(Db $zdb) * * @param Db $zdb Database instance * - * @return array + * @return LendStatus[] */ - public static function getActiveTakeAwayStatuses(Db $zdb) + public static function getActiveTakeAwayStatuses(Db $zdb): array { try { $select = $zdb->select(LEND_PREFIX . self::TABLE) @@ -250,7 +229,7 @@ public static function getActiveTakeAwayStatuses(Db $zdb) * * @return LendStatus[] */ - public static function getActiveStockStatuses(Db $zdb) + public static function getActiveStockStatuses(Db $zdb): array { try { $select = $zdb->select(LEND_PREFIX . self::TABLE) @@ -273,7 +252,7 @@ public static function getActiveStockStatuses(Db $zdb) * * @return boolean */ - public function delete() + public function delete(): bool { try { $delete = $this->zdb->delete(LEND_PREFIX . self::TABLE) @@ -293,24 +272,24 @@ public function delete() /** * 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) + public function __get(string $name): mixed { - return $this->$name; + return $this->$name ?? null; } /** * 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 */ - public function __set($name, $value) + public function __set(string $name, mixed $value): void { $this->$name = $value; } @@ -318,11 +297,11 @@ public function __set($name, $value) /** * Generic isset function * - * @param $name Property name + * @param string $name Property name * * @return bool */ - public function __isset($name) + public function __isset(string $name): bool { return property_exists($this, $name); } diff --git a/lib/GaletteObjectsLend/Entity/ObjectPicture.php b/lib/GaletteObjectsLend/Entity/ObjectPicture.php index 53ffdfe..0f4db32 100644 --- a/lib/GaletteObjectsLend/Entity/ObjectPicture.php +++ b/lib/GaletteObjectsLend/Entity/ObjectPicture.php @@ -1,42 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -45,15 +29,8 @@ /** * Picture for objects * - * @name ObjectPicture - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski */ class ObjectPicture extends Picture { @@ -66,7 +43,7 @@ class ObjectPicture extends Picture * @param Plugins $plugins Plugins * @param mixed|null $objectid Object id */ - public function __construct(Plugins $plugins, $objectid = null) + public function __construct(Plugins $plugins, mixed $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 522b245..7dbd0f1 100644 --- a/lib/GaletteObjectsLend/Entity/Picture.php +++ b/lib/GaletteObjectsLend/Entity/Picture.php @@ -1,41 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -46,26 +31,19 @@ /** * Picture handling * - * @name Picture - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski */ class Picture extends \Galette\Core\Picture { - protected $max_width = 800; - protected $max_height = 800; + protected int $max_width = 800; + protected int $max_height = 800; - protected $thumb_max_width; - protected $thumb_max_height; + protected int $thumb_max_width; + protected int $thumb_max_height; - protected $thumb_optimal_height; - protected $thumb_optimal_width; + protected int $thumb_optimal_height; + protected int $thumb_optimal_width; protected Plugins $plugins; @@ -75,7 +53,7 @@ class Picture extends \Galette\Core\Picture * @param Plugins $plugins Plugins * @param mixed|null $objectid Object id */ - public function __construct(Plugins $plugins, $objectid = null) + public function __construct(Plugins $plugins, mixed $objectid = null) { $this->tbl_prefix = LEND_PREFIX; $this->plugins = $plugins; @@ -110,9 +88,9 @@ public function __construct(Plugins $plugins, $objectid = null) * * @return void */ - protected function getDefaultPicture() + protected function getDefaultPicture(): void { - $this->file_path = realpath( + $this->file_path = (string)realpath( $this->plugins->getTemplatesPathFromName('Galette Objects Lend') . '/../../webroot/images/1f5bc.png' ); @@ -129,7 +107,7 @@ protected function getDefaultPicture() * * @return Response */ - public function displayThumb(Response $response, Preferences $prefs) + public function displayThumb(Response $response, Preferences $prefs): Response { $this->setThumbSizes($prefs); $response = $response->withHeader('Content-Type', $this->mime) @@ -154,9 +132,9 @@ public function displayThumb(Response $response, Preferences $prefs) * @param string $dest the destination image. * If null, we'll use the source image. Defaults to null * - * @return void|false + * @return bool */ - private function createThumb($source, $ext, $dest = null) + private function createThumb(string $source, string $ext, string $dest = null): bool { $class = get_class($this); @@ -239,12 +217,15 @@ private function createThumb($source, $ext, $dest = null) imagegif($thumb, $dest); break; } + + return true; } else { Analog::log( '[' . $class . '] GD is not present - ' . 'pictures could not be resized!', Analog::ERROR ); + return false; } } @@ -255,11 +236,11 @@ private function createThumb($source, $ext, $dest = null) * * @return boolean true if image was successfully deleted, false otherwise */ - public function delete($transaction = true) + public function delete(bool $transaction = true): bool { //find and delete any thumb - $ext = strlen(pathinfo($this->file_path, PATHINFO_EXTENSION)) + 1; - $filename = substr($this->file_path, 0, strlen($this->file_path) - strlen($ext)); + $ext = pathinfo($this->file_path, PATHINFO_EXTENSION); + $filename = substr($this->file_path, 0, strlen($this->file_path) - strlen($ext) - 1); $thumb = $filename . '_th.' . $ext; @@ -273,16 +254,16 @@ 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 array $cropping not used + * @param array $file The uploaded file + * @param boolean $ajax If the image comes from an ajax call (dnd) + * @param ?array $cropping Cropping properties * - * @return true|false result of the storage process + * @return bool|int */ - public function store($file, $ajax = false, $cropping = null) + public function store(array $file, bool $ajax = false, array $cropping = null): bool|int { - $ext = strlen(pathinfo($this->file_path, PATHINFO_EXTENSION)) + 1; - $filename = substr($this->file_path, 0, strlen($this->file_path) - strlen($ext)); + $ext = pathinfo($this->file_path, PATHINFO_EXTENSION); + $filename = substr($this->file_path, 0, strlen($this->file_path) - strlen($ext) - 1); $thumb = $filename . '_th.' . $ext; if (is_file($thumb)) { @@ -295,12 +276,12 @@ public function store($file, $ajax = false, $cropping = null) /** * Restore objects images from database blob * - * @param array $success Success messages - * @param array $error Error messages + * @param string[] $success Success messages + * @param string[] $error Error messages * * @return void */ - public function restorePictures(&$success, &$error) + public function restorePictures(array &$success, array &$error): void { global $zdb; @@ -336,7 +317,7 @@ public function restorePictures(&$success, &$error) $e->getTraceAsString(), Analog::ERROR ); - $error[] = _T("An error occured :("); + $error[] = _T("An error occurred :("); } } @@ -345,7 +326,7 @@ public function restorePictures(&$success, &$error) * * @return string */ - public function getThumbPath() + public function getThumbPath(): string { if ($this->has_picture) { $ext = pathinfo($this->file_path, PATHINFO_EXTENSION); @@ -368,7 +349,7 @@ public function getThumbPath() * * @return void */ - private function setThumbSizes(Preferences $prefs) + private function setThumbSizes(Preferences $prefs): void { $thumb = $this->getThumbPath(); $this->thumb_max_width = $prefs->getThumbWidth(); @@ -415,9 +396,9 @@ private function setThumbSizes(Preferences $prefs) * * @return int optimal height */ - public function getOptimalThumbHeight(Preferences $prefs) + public function getOptimalThumbHeight(Preferences $prefs): int { - if (!$this->thumb_optimal_height) { + if (!isset($this->thumb_optimal_height)) { $this->setThumbSizes($prefs); } return (int)round($this->thumb_optimal_height, 1); @@ -430,9 +411,9 @@ public function getOptimalThumbHeight(Preferences $prefs) * * @return int optimal width */ - public function getOptimalThumbWidth(Preferences $prefs) + public function getOptimalThumbWidth(Preferences $prefs): int { - if (!$this->thumb_optimal_width) { + if (!isset($this->thumb_optimal_width)) { $this->setThumbSizes($prefs); } return (int)round($this->thumb_optimal_width, 1); @@ -443,7 +424,7 @@ public function getOptimalThumbWidth(Preferences $prefs) * * @return string */ - public function getDir() + public function getDir(): string { return $this->store_path; } diff --git a/lib/GaletteObjectsLend/Entity/Preferences.php b/lib/GaletteObjectsLend/Entity/Preferences.php index be20d49..b577058 100644 --- a/lib/GaletteObjectsLend/Entity/Preferences.php +++ b/lib/GaletteObjectsLend/Entity/Preferences.php @@ -1,42 +1,26 @@ . - * - * @category Plugins - * @package ObjectsLend - * - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Entity; use Analog\Analog; @@ -46,15 +30,8 @@ /** * Plugin preferences * - * @name Preferences - * @category Entity - * @package ObjectsLend - * @author Mélissa Djebel - * @author Johan Cwiklinski - * @copyright 2013-2016 Mélissa Djebel - * @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 + * @author Mélissa Djebel + * @author Johan Cwiklinski * * @property bool $ENABLE_MEMBER_RENT_OBJECT * @property bool $AUTO_GENERATE_CONTRIBUTION @@ -79,100 +56,101 @@ class Preferences public const PK = 'code'; private Db $zdb; - private $prefs; + /** @var array */ + private array $prefs = []; /** - * Paramètre : voir la liste des catégories en en-têtes de la liste des objets + * Show categories at the top of the objects list * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_CATEGORY = 'VIEW_CATEGORY'; /** - * Paramètre : voir la colonne "no de série" + * Show serial number column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_SERIAL = 'VIEW_SERIAL'; /** - * Paramètre : voir la colonne "photo/minitature" + * Show thumbnail column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_THUMBNAIL = 'VIEW_THUMBNAIL'; /** - * Paramètre : voir la colonne "description" + * Show description column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_DESCRIPTION = 'VIEW_DESCRIPTION'; /** - * Paramètre : voir la colonne "prix" + * Show price column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_PRICE = 'VIEW_PRICE'; /** - * Paramètre : voir la colonne "dimensions" + * Show dimensions column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_DIMENSION = 'VIEW_DIMENSION'; /** - * Paramètre : voir la colonne "poids" + * Show weight column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_WEIGHT = 'VIEW_WEIGHT'; /** - * Paramètre : voir la colonne "prix de location" + * Show rent price column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_LEND_PRICE = 'VIEW_LEND_PRICE'; /** - * Parametre : voir la colonne "retour prevu le" + * Show previsional return date column * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_DATE_FORECAST = 'VIEW_DATE_FORECAST'; /** - * Parametre : voir la somme des prix sur la liste des objects + * Show the sum of prices on the list of objects * Valeur : 0 = false / 1 = true */ public const PARAM_VIEW_LIST_PRICE_SUM = 'VIEW_LIST_PRICE_SUM'; /** - * Paramètre : largeur max d'une miniature (appliquée aux objets/catégories) + * Maximum width of a thumbnail (applied to objects/categories) * Valeur : largeur en pixels */ public const PARAM_THUMB_MAX_WIDTH = 'THUMB_MAX_WIDTH'; /** - * Paramètre : hauteur max d'une miniature (appliquée aux objets/catégories) + * Maximum height of a thumbnail (applied to objects/categories) * Valeur : largeur en pixels */ public const PARAM_THUMB_MAX_HEIGHT = 'THUMB_MAX_HEIGHT'; /** - * Paramètre : Générer automatiquement une contribution lors de la location d'un objet + * Generate automatically a contribution when an object is rented * Valeur : 0 = false / 1 = true */ public const PARAM_AUTO_GENERATE_CONTRIBUTION = 'AUTO_GENERATE_CONTRIBUTION'; /** - * Paramètre : Id du type de contribution si auto-génération d'une contribution + * Contribution ID to generate when an object is rented * Valeur : ID du type de contribution */ public const PARAM_GENERATED_CONTRIBUTION_TYPE_ID = 'GENERATED_CONTRIBUTION_TYPE_ID'; /** - * Paramètre : Texte pour la contribution + * Text for the contribution * Valeur : texte d'info à mettre avec des placeholders à remplacer */ public const PARAM_GENERATED_CONTRIB_INFO_TEXT = 'GENERATED_CONTRIB_INFO_TEXT'; /** - * Paramètre : Autoriser les membres non staff ni admin à pouvoir louer un objet = accès à la page take_object.php + * Allow non staff members to rent objects * Valeur : 0 = false / 1 = true */ public const PARAM_ENABLE_MEMBER_RENT_OBJECT = 'ENABLE_MEMBER_RENT_OBJECT'; @@ -185,7 +163,7 @@ class Preferences * * @return void */ - public function __construct(Db $zdb, $load = true) + public function __construct(Db $zdb, bool $load = true) { $this->zdb = $zdb; if ($load) { @@ -196,9 +174,9 @@ public function __construct(Db $zdb, $load = true) /** * Get preferences * - * @return array + * @return array */ - public function getpreferences() + public function getPreferences(): array { if (count($this->prefs) == 0) { $this->load(); @@ -209,34 +187,32 @@ public function getpreferences() /** * 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) + public function __get(string $name): mixed { - $forbidden = array(); - - if (!in_array($name, $forbidden) && isset($this->prefs[$name])) { + if (isset($this->prefs[$name])) { return $this->prefs[$name]; - } else { - Analog::log( - 'Preference `' . $name . '` is not set or is forbidden', - Analog::INFO - ); - return false; } + + $msg = __CLASS__ . '::' . $name . ' is not set'; + Analog::log( + $msg, + Analog::INFO + ); + throw new \RuntimeException($msg); } /** * Store preferences * - * @param array $data Posted data - * @param array $errors Errors + * @param array $data Posted data * * @return boolean */ - public function store($data, &$errors) + public function store(array $data): bool { foreach ($data as $key => $value) { $this->prefs[$key] = $value; @@ -262,10 +238,8 @@ public function store($data, &$errors) )->where->equalTo(self::PK, ':' . self::PK); $stmt = $this->zdb->sql->prepareStatementForSqlObject($update); + unset($data['csrf_value'], $data['csrf_name'], $data['GENERATED_CONTRIB_INFO_TEXT']); foreach ($data as $key => $value) { - if ($key === 'GENERATED_CONTRIB_INFO_TEXT') { - continue; - } $stmt->execute( [ 'value_numeric' => $value, @@ -280,13 +254,6 @@ public function store($data, &$errors) } catch (\Exception $e) { $this->zdb->connection->rollBack(); throw $e; - Analog::log( - 'Something went wrong :\'( | ' . $e->getMessage() . "\n" . - $e->getTraceAsString(), - Analog::ERROR - ); - $errors[] = _T("Unable to store preferences :(", "objectslend"); - return false; } } @@ -295,7 +262,7 @@ public function store($data, &$errors) * * @return boolean */ - public function load() + public function load(): bool { $this->prefs = array(); @@ -325,9 +292,9 @@ public function load() * * @return integer */ - public function getThumbWidth() + public function getThumbWidth(): int { - return $this->prefs['THUMB_MAX_WIDTH']; + return (int)$this->prefs['THUMB_MAX_WIDTH']; } /** @@ -335,9 +302,9 @@ public function getThumbWidth() * * @return integer */ - public function getThumbHeight() + public function getThumbHeight(): int { - return $this->prefs['THUMB_MAX_HEIGHT']; + return (int)$this->prefs['THUMB_MAX_HEIGHT']; } /** @@ -345,9 +312,9 @@ public function getThumbHeight() * * @return boolean */ - public function imagesInLists() + public function imagesInLists(): bool { - return $this->prefs['VIEW_THUMBNAIL']; + return (bool)$this->prefs['VIEW_THUMBNAIL']; } /** @@ -357,8 +324,8 @@ public function imagesInLists() * * @return boolean */ - public function showFullsize() + public function showFullsize(): bool { - return $this->prefs['VIEW_FULLSIZE']; + return (bool)$this->prefs['VIEW_FULLSIZE']; } } diff --git a/lib/GaletteObjectsLend/Filters/CategoriesList.php b/lib/GaletteObjectsLend/Filters/CategoriesList.php index bab7d56..4177555 100644 --- a/lib/GaletteObjectsLend/Filters/CategoriesList.php +++ b/lib/GaletteObjectsLend/Filters/CategoriesList.php @@ -1,15 +1,9 @@ . - * - * @category Filters - * @package Galette - * - * @author Johan Cwiklinski - * @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 - * @since 2017-02-10 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Filters; use Analog\Analog; @@ -45,14 +31,7 @@ /** * Categories list filters and paginator * - * @name CategoriesList - * @category Filters - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski * * @property ?string $filter_str * @property ?int $active_filter @@ -64,14 +43,15 @@ class CategoriesList extends Pagination { //filters - private $filter_str; - private $active_filter; - private $not_empty; - private $objects_filters; + private ?string $filter_str; + private ?int $active_filter; + private ?bool $not_empty; + private ?ObjectsList $objects_filters; - protected $query; + protected string $query; - protected $categorylist_fields = array( + /** @var array */ + protected array $categorylist_fields = array( 'filter_str', 'active_filter', 'not_empty', @@ -90,11 +70,11 @@ public function __construct() /** * Returns the field we want to default set order to * - * @return string field name + * @return int|string */ - protected function getDefaultOrder() + protected function getDefaultOrder(): int|string { - return 'name '; + return Categories::ORDERBY_NAME; } /** @@ -102,7 +82,7 @@ protected function getDefaultOrder() * * @return void */ - public function reinit() + public function reinit(): void { parent::reinit(); $this->filter_str = null; @@ -118,26 +98,23 @@ public function reinit() * * @return mixed the called property */ - public function __get($name) + public function __get(string $name): mixed { - - Analog::log( - '[CategoriesList] Getting property `' . $name . '`', - Analog::DEBUG - ); - if (in_array($name, $this->pagination_fields)) { return parent::__get($name); } else { if (in_array($name, $this->categorylist_fields)) { return $this->$name; - } else { - Analog::log( - '[CategoriesList] Unable to get property `' . $name . '`', - Analog::WARNING - ); } } + + throw new \RuntimeException( + sprintf( + 'Unable to get property "%s::%s"!', + __CLASS__, + $name + ) + ); } /** @@ -148,7 +125,7 @@ public function __get($name) * * @return void */ - public function __set($name, $value) + public function __set(string $name, mixed $value): void { if (in_array($name, $this->pagination_fields)) { @@ -170,7 +147,7 @@ public function __set($name, $value) case Categories::ALL_CATEGORIES: case Categories::ACTIVE_CATEGORIES: case Categories::INACTIVE_CATEGORIES: - $this->active_filter = $value; + $this->active_filter = (int)$value; break; default: Analog::log( @@ -183,48 +160,25 @@ public function __set($name, $value) } break; default: - Analog::log( - '[CategoriesList] Unable to set proprety `' . $name . '`', - Analog::WARNING + throw new \RuntimeException( + sprintf( + 'Unable to set property "%s::%s"!', + __CLASS__, + $name + ) ); - break; } } } - /** - * Add SQL limit - * - * @param Select $select Original select - * - * @return void - */ - public function setLimit($select) - { - $this->setLimits($select); - } - - /** - * Set counter - * - * @param int $c Count - * - * @return void - */ - public function setCounter($c) - { - $this->counter = (int)$c; - $this->countPages(); - } - /** * Set objects filter * * @param ObjectsList $filters Filters for objects list * - * @return CategoriesList + * @return self */ - public function setObjectsFilter(ObjectsList $filters) + public function setObjectsFilter(ObjectsList $filters): self { $this->objects_filters = $filters; return $this; diff --git a/lib/GaletteObjectsLend/Filters/ObjectsList.php b/lib/GaletteObjectsLend/Filters/ObjectsList.php index 727afaa..961a7a4 100644 --- a/lib/GaletteObjectsLend/Filters/ObjectsList.php +++ b/lib/GaletteObjectsLend/Filters/ObjectsList.php @@ -1,15 +1,9 @@ . - * - * @category Filters - * @package Galette - * - * @author Johan Cwiklinski - * @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 - * @since 2017-02-10 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Filters; use Analog\Analog; use Galette\Core\Pagination; +use GaletteObjectsLend\Entity\Preferences; use GaletteObjectsLend\Repository\Objects; use Laminas\Db\Sql\Select; +use Slim\Views\Twig; /** * Objects list filters and paginator * - * @name ObjectsList - * @category Filters - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski * * @property ?string $filter_str * @property ?int $category_filter @@ -65,15 +46,17 @@ class ObjectsList extends Pagination { //filters - private $filter_str; - private $category_filter; - private $active_filter; - private $field_filter; - private $selected; + private ?string $filter_str; + private ?int $category_filter; + private ?int $active_filter; + private ?int $field_filter; + /** @var array */ + private array $selected; - protected $query; + protected string $query; - protected $objectslist_fields = array( + /** @var array */ + protected array $objectslist_fields = array( 'filter_str', 'category_filter', 'active_filter', @@ -93,11 +76,11 @@ public function __construct() /** * Returns the field we want to default set order to * - * @return string field name + * @return int|string */ - protected function getDefaultOrder() + protected function getDefaultOrder(): int|string { - return 'name'; + return Objects::ORDERBY_NAME; } /** @@ -105,7 +88,7 @@ protected function getDefaultOrder() * * @return void */ - public function reinit() + public function reinit(): void { parent::reinit(); $this->filter_str = null; @@ -120,9 +103,9 @@ public function reinit() * * @param string $name Property name * - * @return object|void + * @return bool */ - public function __isset($name) + public function __isset(string $name): bool { if (in_array($name, $this->objectslist_fields)) { return true; @@ -138,25 +121,23 @@ public function __isset($name) * * @return mixed the called property */ - public function __get($name) + public function __get(string $name): mixed { - Analog::log( - '[ObectsList] Getting property `' . $name . '`', - Analog::DEBUG - ); - if (in_array($name, $this->pagination_fields)) { return parent::__get($name); } else { if (in_array($name, $this->objectslist_fields)) { return $this->$name; - } else { - Analog::log( - '[ObjectsList] Unable to get property `' . $name . '`', - Analog::WARNING - ); } } + + throw new \RuntimeException( + sprintf( + 'Unable to get property "%s::%s"!', + __CLASS__, + $name + ) + ); } /** @@ -167,7 +148,7 @@ public function __get($name) * * @return void */ - public function __set($name, $value) + public function __set(string $name, mixed $value): void { if (in_array($name, $this->pagination_fields)) { @@ -191,11 +172,12 @@ public function __set($name, $value) } break; case 'filter_str': + case 'query': $this->$name = $value; break; case 'category_filter': if (is_numeric($value)) { - $this->$name = $value; + $this->$name = (int)$value; } elseif ($value !== null) { Analog::log( '[ObjectsList] Value for property `' . $name . @@ -211,7 +193,7 @@ public function __set($name, $value) case Objects::ALL_OBJECTS: case Objects::ACTIVE_OBJECTS: case Objects::INACTIVE_OBJECTS: - $this->active_filter = $value; + $this->active_filter = (int)$value; break; default: Analog::log( @@ -225,7 +207,7 @@ public function __set($name, $value) break; case 'field_filter': if (is_numeric($value)) { - $this->$name = $value; + $this->$name = (int)$value; } elseif ($value !== null) { Analog::log( '[ObjectsList] Value for property `' . $name . @@ -234,53 +216,27 @@ public function __set($name, $value) ); } break; - case 'query': - $this->$name = $value; - break; default: - Analog::log( - '[ObjectsList] Unable to set proprety `' . $name . '`', - Analog::WARNING + throw new \RuntimeException( + sprintf( + 'Unable to set property "%s::%s"!', + __CLASS__, + $name + ) ); - break; } } } - /** - * Add SQL limit - * - * @param Select $select Original select - * - * @return void - */ - public function setLimit($select) - { - $this->setLimits($select); - } - - /** - * Set counter - * - * @param int $c Count - * - * @return void - */ - public function setCounter($c) - { - $this->counter = (int)$c; - $this->countPages(); - } - /** * Set commons filters for templates * * @param \GaletteObjectsLend\Entity\Preferences $prefs Preferences instance - * @param mixed $view Template reference + * @param Twig $view Template reference * * @return void */ - public function setViewCommonsFilters($prefs, $view) + public function setViewCommonsFilters(Preferences $prefs, Twig $view): void { $prefs = $prefs->getPreferences(); diff --git a/lib/GaletteObjectsLend/Filters/StatusList.php b/lib/GaletteObjectsLend/Filters/StatusList.php index 85255bf..daae2e4 100644 --- a/lib/GaletteObjectsLend/Filters/StatusList.php +++ b/lib/GaletteObjectsLend/Filters/StatusList.php @@ -1,15 +1,9 @@ . - * - * @category Filters - * @package Galette - * - * @author Johan Cwiklinski - * @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 - * @since 2017-02-10 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Filters; use Analog\Analog; @@ -44,14 +30,7 @@ /** * Status list filters and paginator * - * @name StatusList - * @category Filters - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski * * @property ?string $filter_str * @property ?int $active_filter @@ -62,13 +41,14 @@ class StatusList extends Pagination { //filters - private $filter_str; - private $active_filter; - private $stock_filter; + private ?string $filter_str; + private ?int $active_filter; + private ?int $stock_filter; - protected $query; + protected string $query; - protected $statuslist_fields = array( + /** @var array */ + protected array $statuslist_fields = array( 'filter_str', 'active_filter', 'stock_filter', @@ -78,11 +58,11 @@ class StatusList extends Pagination /** * Returns the field we want to default set order to * - * @return string field name + * @return int|string */ - protected function getDefaultOrder() + protected function getDefaultOrder(): int|string { - return 'status_text'; + return Status::ORDERBY_NAME; } /** @@ -90,7 +70,7 @@ protected function getDefaultOrder() * * @return void */ - public function reinit() + public function reinit(): void { parent::reinit(); $this->filter_str = null; @@ -105,26 +85,23 @@ public function reinit() * * @return mixed the called property */ - public function __get($name) + public function __get(string $name): mixed { - - Analog::log( - '[StatusList] Getting property `' . $name . '`', - Analog::DEBUG - ); - if (in_array($name, $this->pagination_fields)) { return parent::__get($name); } else { if (in_array($name, $this->statuslist_fields)) { return $this->$name; - } else { - Analog::log( - '[StatusList] Unable to get property `' . $name . '`', - Analog::WARNING - ); } } + + throw new \RuntimeException( + sprintf( + 'Unable to get property "%s::%s"!', + __CLASS__, + $name + ) + ); } /** @@ -135,7 +112,7 @@ public function __get($name) * * @return void */ - public function __set($name, $value) + public function __set(string $name, mixed $value): void { if (in_array($name, $this->pagination_fields)) { @@ -148,6 +125,7 @@ public function __set($name, $value) switch ($name) { case 'filter_str': + case 'query': $this->$name = $value; break; case 'active_filter': @@ -155,7 +133,7 @@ public function __set($name, $value) case Status::ALL: case Status::ACTIVE: case Status::INACTIVE: - $this->active_filter = $value; + $this->active_filter = (int)$value; break; default: Analog::log( @@ -172,28 +150,27 @@ public function __set($name, $value) case Status::DC_STOCK: case Status::IN_STOCK: case Status::OUT_STOCK: - $this->stock_filter = $value; + $this->stock_filter = (int)$value; break; default: Analog::log( '[StatusList] Value for stock filter should be either ' . - Status::IN_STOCK . ' or ' . - Status::OUT_STOCK . ' (' . $value . ' given)', + Status::IN_STOCK . ', ' . Status::OUT_STOCK . ' or ' . + Status::DC_STOCK . ' (' . $value . ' given)', Analog::WARNING ); break; } - break; - case 'query': - $this->$name = $value; break; default: - Analog::log( - '[StatusList] Unable to set proprety `' . $name . '`', - Analog::WARNING + throw new \RuntimeException( + sprintf( + 'Unable to set property "%s::%s"!', + __CLASS__, + $name + ) ); - break; } } } diff --git a/lib/GaletteObjectsLend/IO/PdfObject.php b/lib/GaletteObjectsLend/IO/PdfObject.php index 3abd94f..7dba2d9 100644 --- a/lib/GaletteObjectsLend/IO/PdfObject.php +++ b/lib/GaletteObjectsLend/IO/PdfObject.php @@ -1,15 +1,9 @@ . - * - * @category IO - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\IO; use Galette\IO\Pdf; @@ -49,18 +37,12 @@ /** * Object card PDF * - * @category IO - * @name PdfObject - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class PdfObject extends Pdf { - private $zdb; - private $lprefs; + private Db $zdb; + private LPreferences $lprefs; /** * Main constructor @@ -72,11 +54,13 @@ class PdfObject extends Pdf public function __construct(Db $zdb, Preferences $prefs, LPreferences $lprefs) { parent::__construct($prefs); + // Disable Auto Page breaks + $this->SetAutoPageBreak(false, $this->footer_height + 10); + $this->zdb = $zdb; $this->lprefs = $lprefs; //TRANS: this is a filename $this->filename = _T('object_card', 'objectslend') . '.pdf'; - $this->init(); } /** @@ -84,7 +68,7 @@ public function __construct(Db $zdb, Preferences $prefs, LPreferences $lprefs) * * @return void */ - private function init() + public function init(): void { // Set document information $this->SetTitle(_T('Object card', 'objectslend')); @@ -96,22 +80,27 @@ private function init() // Show full page $this->SetDisplayMode('fullpage'); - // Disable Auto Page breaks - $this->SetAutoPageBreak(false, 20); + //enable pagination + $this->showPagination(); + + parent::init(); } /** * Draw listed object cards * - * @param array $objects Object list + * @param LendObject[] $objects Object list * * @return void */ - public function drawCards(array $objects) + public function drawCards(array $objects): void { - $this->Open(); + $first = true; foreach ($objects as $object) { - $this->AddPage(); + if (!$first) { + $this->AddPage(); + } + $first = false; $this->drawCard($object); } } @@ -123,7 +112,7 @@ public function drawCards(array $objects) * * @return void */ - public function drawCard(LendObject $object) + public function drawCard(LendObject $object): void { $this->SetFont(Pdf::FONT, 'B'); $wpic = 0; @@ -239,7 +228,7 @@ public function drawCard(LendObject $object) * * @return void */ - private function addCell(string $title, string $value, int $width) + private function addCell(string $title, string $value, int $width): void { if ($width > 0) { $this->Cell($width, 0, ''); diff --git a/lib/GaletteObjectsLend/IO/PdfObjects.php b/lib/GaletteObjectsLend/IO/PdfObjects.php index a7a2f10..dea1349 100644 --- a/lib/GaletteObjectsLend/IO/PdfObjects.php +++ b/lib/GaletteObjectsLend/IO/PdfObjects.php @@ -1,15 +1,9 @@ . - * - * @category IO - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\IO; use Galette\Core\Db; @@ -41,6 +29,7 @@ use Galette\Core\Preferences; use Galette\Core\Login; use Analog\Analog; +use GaletteObjectsLend\Entity\LendObject; use GaletteObjectsLend\Filters\ObjectsList; use GaletteObjectsLend\Entity\LendCategory; use GaletteObjectsLend\Entity\Preferences as LendPreferences; @@ -48,21 +37,15 @@ /** * Object labels PDF * - * @category IO - * @name PDFObjects - * @package GaletteObjectsLend - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class PdfObjects extends Pdf { public const LIST_FONT = self::FONT_SIZE - 2; private Db $zdb; - private $lendsprefs; - private $filters; + private LendPreferences $lendsprefs; + private ObjectsList $filters; private Login $login; private Plugins $plugins; @@ -85,6 +68,9 @@ public function __construct( Plugins $plugins ) { parent::__construct($prefs); + // Enable Auto Page breaks + $this->SetAutoPageBreak(true, $this->footer_height + 10); + //TRANS: this is a filename $this->filename = _T('objects_cards', 'objectslend') . '.pdf'; $this->zdb = $zdb; @@ -92,7 +78,6 @@ public function __construct( $this->filters = $filters; $this->login = $login; $this->plugins = $plugins; - $this->init(); } /** @@ -100,7 +85,7 @@ public function __construct( * * @return void */ - private function init() + public function init(): void { // Set document information $this->SetTitle(_T("Objects list", "objectslend")); @@ -109,6 +94,11 @@ private function init() $this->setPageOrientation('L'); $this->setHeaderMargin(10); + + //enable pagination + $this->showPagination(); + + parent::init(); } /** @@ -118,7 +108,7 @@ private function init() * * @phpcs:disable */ - public function Header() + public function Header(): void { // @phpcs:enable $this->SetFont(Pdf::FONT, 'B'); @@ -149,15 +139,12 @@ public function Header() /** * Draw objects list * - * @param array $objects List of objects + * @param LendObject[] $objects List of objects * * @return void */ - public function drawList($objects) + public function drawList(array $objects): void { - $this->Open(); - $this->AddPage(); - $this->Ln(10); //for Header // Header @@ -193,6 +180,7 @@ public function drawList($objects) $sum_price = 0; $grant_total = 0; $row = 0; + $existing_categories = []; foreach ($objects as $object) { if ( @@ -201,25 +189,29 @@ public function drawList($objects) ) { $this->SetFont('', 'B'); - if (($this->login->isAdmin() || $this->login->isStaff()) && $sum_price > 0) { + if (($this->login->isAdmin() || $this->login->isStaff()) && $sum_price > 0 && !in_array($object->category_id, $existing_categories)) { $width = $w_checkbox + $w_name + $w_description + $w_serial + $w_price; $this->Cell($width, 0, number_format($sum_price, 2, ',', ''), '', 0, 'R'); $sum_price = 0; $this->Ln(); } - if (!empty($object->category_id)) { + if (!empty($object->category_id) && !in_array($object->category_id, $existing_categories)) { $category = new LendCategory($this->zdb, $this->plugins, (int)$object->category_id); $text = str_replace( '%category', $category->name, _T("Category: %category", "objectslend") ); - } else { + $existing_categories[] = $object->category_id; + $this->Cell(0, 0, $text, 0, 1, 'C'); + } elseif (!in_array(0, $existing_categories)) { $text = _T("No category"); + $existing_categories[0] = 0; + $this->Cell(0, 0, $text, 0, 1, 'C'); } - $this->Cell(0, 0, $text, 0, 1, 'C'); + $this->SetFont(''); } diff --git a/lib/GaletteObjectsLend/PluginGaletteObjectslend.php b/lib/GaletteObjectsLend/PluginGaletteObjectslend.php index 375ccfa..49e2c7b 100644 --- a/lib/GaletteObjectsLend/PluginGaletteObjectslend.php +++ b/lib/GaletteObjectsLend/PluginGaletteObjectslend.php @@ -1,15 +1,9 @@ . - * - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend; use Galette\Core\Login; @@ -44,14 +30,7 @@ /** * 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 + * @author Johan Cwiklinski */ class PluginGaletteObjectslend extends GalettePlugin @@ -59,7 +38,7 @@ class PluginGaletteObjectslend extends GalettePlugin /** * Extra menus entries * - * @return array|array[] + * @return array> */ public static function getMenusContents(): array { @@ -120,7 +99,7 @@ public static function getMenusContents(): array /** * Extra public menus entries * - * @return array|array[] + * @return array> */ public static function getPublicMenusItemsList(): array { @@ -130,7 +109,7 @@ public static function getPublicMenusItemsList(): array /** * Get dashboards contents * - * @return array|array[] + * @return array> */ public static function getDashboardsContents(): array { @@ -142,7 +121,7 @@ public static function getDashboardsContents(): array * * @param Adherent $member Member instance * - * @return array|array[] + * @return array> */ public static function getListActionsContents(Adherent $member): array { @@ -154,7 +133,7 @@ public static function getListActionsContents(Adherent $member): array * * @param Adherent $member Member instance * - * @return array|array[] + * @return array> */ public static function getDetailedActionsContents(Adherent $member): array { @@ -164,7 +143,7 @@ public static function getDetailedActionsContents(Adherent $member): array /** * Get batch actions contents * - * @return array|array[] + * @return array> */ public static function getBatchActionsContents(): array { diff --git a/lib/GaletteObjectsLend/Repository/Categories.php b/lib/GaletteObjectsLend/Repository/Categories.php index b0f9a3f..b388a55 100644 --- a/lib/GaletteObjectsLend/Repository/Categories.php +++ b/lib/GaletteObjectsLend/Repository/Categories.php @@ -1,15 +1,9 @@ . - * - * @category Repository - * @package Galette - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + 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 Laminas\Db\Sql\Predicate\Operator; -use Galette\Repository\Repository; use GaletteObjectsLend\Filters\CategoriesList; use GaletteObjectsLend\Filters\ObjectsList; -use GaletteObjectsLend\Entity\Preferences; use GaletteObjectsLend\Entity\LendCategory; use GaletteObjectsLend\Entity\LendObject; use Galette\Core\Login; @@ -55,14 +41,7 @@ /** * Categories list * - * @name Categories - * @category Repository - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class Categories { @@ -76,10 +55,12 @@ class Categories public const FILTER_NAME = 0; public const ORDERBY_NAME = 0; + public const ORDERBY_ACTIVITY = 1; - private $filters = false; - private $count = null; - private $errors = array(); + private CategoriesList $filters; + private ?int $count = null; + /** @var array */ + private array $errors = array(); private Db $zdb; private Plugins $plugins; @@ -88,10 +69,10 @@ class Categories /** * Default constructor * - * @param Db $zdb Database instance - * @param Login $login Logged in instance - * @param Plugins $plugins Plugins instance - * @param CategoriesList $filters Filtering + * @param Db $zdb Database instance + * @param Login $login Logged in instance + * @param Plugins $plugins Plugins instance + * @param ?CategoriesList $filters Filtering */ public function __construct(Db $zdb, Login $login, Plugins $plugins, CategoriesList $filters = null) { @@ -110,28 +91,28 @@ public function __construct(Db $zdb, Login $login, Plugins $plugins, CategoriesL /** * Get categories list * - * @param boolean $as_cat return the results as an array of - * Categories object. - * @param array $fields field(s) name(s) to get. Should be a string or - * an array. If null, all fields will be - * returned - * @param boolean $count true if we want to count members - * @param boolean $limit true if we want records pagination + * @param boolean $as_cat return the results as an array of + * Categories object. + * @param array $fields field(s) name(s) to get. Should be a string or + * an array. If null, all fields will be + * returned + * @param boolean $count true if we want to count members + * @param boolean $limit true if we want records pagination * - * @return array|ArrayObject + * @return LendCategory[]|ResultSet */ public function getCategoriesList( - $as_cat = false, - $fields = null, - $count = true, - $limit = true - ) { + bool $as_cat = false, + array $fields = null, + bool $count = true, + bool $limit = true + ): array|ResultSet { try { $select = $this->buildSelect($fields, $count); //add limits to retrieve only relevant rows if ($limit === true) { - $this->filters->setLimit($select); + $this->filters->setLimits($select); } $rows = $this->zdb->execute($select); @@ -160,13 +141,11 @@ public function getCategoriesList( * * @param boolean $as_cat return the results as an array of * Category object. - * @param array $fields field(s) name(s) to get. Should be a string or - * an array. If null, all fields will be - * returned + * @param ?array $fields field(s) name(s) to get. If null, all fields will be returned * - * @return array|ArrayObject + * @return LendCategory[]|ResultSet */ - public function getList($as_cat = false, $fields = null) + public function getList(bool $as_cat = false, array $fields = null): array|ResultSet { return $this->getCategoriesList( $as_cat, @@ -179,12 +158,12 @@ public function getList($as_cat = false, $fields = null) /** * Builds the SELECT statement * - * @param array $fields fields list to retrieve - * @param bool $count true if we want to count members, defaults to false + * @param ?array $fields fields list to retrieve + * @param bool $count true if we want to count members, defaults to false * * @return Select SELECT statement */ - private function buildSelect($fields, $count = false) + private function buildSelect(?array $fields, bool $count = false): Select { try { $fieldsList = [ @@ -237,13 +216,12 @@ private function buildSelect($fields, $count = false) * * @return void */ - private function proceedCount($select) + private function proceedCount(Select $select): void { try { $countSelect = clone $select; $countSelect->reset($countSelect::COLUMNS); $countSelect->reset($countSelect::ORDER); - $countSelect->reset($countSelect::HAVING); $countSelect->reset($countSelect::JOINS); $countSelect->columns( array( @@ -251,13 +229,6 @@ private function proceedCount($select) ) ); - $have = $select->having; - if ($have->count() > 0) { - foreach ($have->getPredicates() as $h) { - $countSelect->where($h); - } - } - $joins = $select->getRawState($select::JOINS); foreach ($joins as $join) { $countSelect->join( @@ -269,12 +240,11 @@ 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); + $this->count = 0; + if ($results->count() > 0) { + $this->count = (int)$results->current()->count; } + $this->filters->setCounter($this->count); } catch (\Exception $e) { Analog::log( 'Cannot count categories | ' . $e->getMessage(), @@ -287,12 +257,12 @@ private function proceedCount($select) /** * Builds the order clause * - * @param array $fields Fields list to ensure ORDER clause - * references selected fields. Optional. + * @param ?string[] $fields Fields list to ensure ORDER clause + * references selected fields. Optional. * - * @return array SQL ORDER clauses + * @return array SQL ORDER clauses */ - private function buildOrderClause($fields = null) + private function buildOrderClause(array $fields = null): array { $order = array(); switch ($this->filters->orderby) { @@ -301,6 +271,11 @@ private function buildOrderClause($fields = null) $order[] = 'name ' . $this->filters->getDirection(); } break; + case self::ORDERBY_ACTIVITY: + if ($this->canOrderBy('is_active', $fields)) { + $order[] = 'is_active ' . $this->filters->getDirection(); + } + break; } return $order; @@ -313,7 +288,7 @@ private function buildOrderClause($fields = null) * * @return void */ - private function buildWhereClause($select) + private function buildWhereClause(Select $select): void { try { //if there are filters on objects; add them @@ -340,7 +315,7 @@ private function buildWhereClause($select) ); $select->where( - 'c.name LIKE ' . $token + 'LOWER(c.name) LIKE ' . $token ); } @@ -366,12 +341,12 @@ private function buildWhereClause($select) * 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 + * @param string $field_name Field name to order by + * @param ?array $fields SELECTE'ed fields * * @return bool */ - private function canOrderBy($field_name, $fields) + private function canOrderBy(string $field_name, ?array $fields): bool { if (!is_array($fields)) { return true; @@ -390,9 +365,9 @@ private function canOrderBy($field_name, $fields) /** * Get count for current query * - * @return int + * @return ?int */ - public function getCount() + public function getCount(): ?int { return $this->count; } @@ -400,9 +375,9 @@ public function getCount() /** * Get registered errors * - * @return array + * @return array */ - public function getErrors() + public function getErrors(): array { return $this->errors; } diff --git a/lib/GaletteObjectsLend/Repository/Objects.php b/lib/GaletteObjectsLend/Repository/Objects.php index 0899772..700b2f2 100644 --- a/lib/GaletteObjectsLend/Repository/Objects.php +++ b/lib/GaletteObjectsLend/Repository/Objects.php @@ -1,15 +1,9 @@ . - * - * @category Repository - * @package Galette - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + namespace GaletteObjectsLend\Repository; use ArrayObject; @@ -55,14 +42,7 @@ /** * Objects list * - * @name Objects - * @category Repository - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class Objects { @@ -87,22 +67,24 @@ class Objects public const ORDERBY_BDATE = 6; public const ORDERBY_FDATE = 7; public const ORDERBY_MEMBER = 8; + public const ORDERBY_CATEGORY = 9; private Db $zdb; - private $filters = false; - private $count = null; - private $errors = array(); + private ObjectsList $filters; + private ?int $count = null; + /** @var array */ + private array $errors = array(); private Preferences $prefs; private Plugins $plugins; /** * Default constructor * - * @param Db $zdb Database instance - * @param Plugins $plugins Plugins instance - * @param Preferences $lprefs Lends preferences instance - * @param ObjectsList $filters Filtering + * @param Db $zdb Database instance + * @param Plugins $plugins Plugins instance + * @param Preferences $lprefs Lends preferences instance + * @param ?ObjectsList $filters Filtering */ public function __construct(Db $zdb, Plugins $plugins, Preferences $lprefs, ObjectsList $filters = null) { @@ -120,30 +102,28 @@ public function __construct(Db $zdb, Plugins $plugins, Preferences $lprefs, Obje /** * Get objects list * - * @param boolean $as_objects return the results as an array of - * Object object. - * @param array $fields field(s) name(s) to get. Should be a string or - * an array. If null, all fields will be - * returned - * @param boolean $count true if we want to count members - * @param boolean $limit true if we want records pagination - * @param boolean $all_rents true to load rents along with objects + * @param boolean $as_objects return the results as an array of + * Object object. + * @param array $fields field(s) name(s) to get. If null, all fields will be returned + * @param boolean $count true if we want to count members + * @param boolean $limit true if we want records pagination + * @param boolean $all_rents true to load rents along with objects * - * @return array|ArrayObject + * @return LendObject[]|ResultSet */ public function getObjectsList( - $as_objects = false, - $fields = null, - $count = true, - $limit = true, - $all_rents = false - ) { + bool $as_objects = false, + array $fields = null, + bool $count = true, + bool $limit = true, + bool $all_rents = false + ): array|ResultSet { try { $select = $this->buildSelect($fields, $count); //add limits to retrieve only relevant rows if ($limit === true) { - $this->filters->setLimit($select); + $this->filters->setLimits($select); } $rows = $this->zdb->execute($select); @@ -174,11 +154,11 @@ public function getObjectsList( /** * Remove specified objects, and their full history * - * @param array $ids Objects identifiers to delete + * @param array $ids Objects identifiers to delete * * @return bool */ - public function removeObjects(array $ids) + public function removeObjects(array $ids): bool { try { $this->zdb->connection->beginTransaction(); @@ -229,37 +209,16 @@ public function removeObjects(array $ids) return false; } - /** - * Disable selected objects - * - * @param array $ids List of objects id to disable - * - * @return ResultSet - */ - public function disableObjects(array $ids) - { - $update = $this->zdb->update(LEND_PREFIX . self::TABLE); - $update->set(['is_active' => false]); - $update->where->in( - self::PK, - $ids - ); - $results = $this->zdb->execute($update); - return $results; - } - /** * Get Objects list * - * @param boolean $as_objects return the results as an array of - * Object object. - * @param array $fields field(s) name(s) to get. Should be a string or - * an array. If null, all fields will be - * returned + * @param boolean $as_objects return the results as an array of + * Object object. + * @param ?array $fields field(s) name(s) to get. If null, all fields will be returned * - * @return array|ArrayObject + * @return LendObject[]|ResultSet */ - public function getList($as_objects = false, $fields = null) + public function getList(bool $as_objects = false, array $fields = null): array|ResultSet { return $this->getObjectsList( $as_objects, @@ -273,12 +232,12 @@ public function getList($as_objects = false, $fields = null) /** * Builds the SELECT statement * - * @param array $fields fields list to retrieve - * @param bool $count true if we want to count members, defaults to false + * @param ?string[] $fields fields list to retrieve + * @param bool $count true if we want to count members, defaults to false * * @return Select SELECT statement */ - private function buildSelect($fields, $count = false) + private function buildSelect(?array $fields, bool $count = false): Select { global $zdb, $login; @@ -346,7 +305,7 @@ private function buildSelect($fields, $count = false) * * @return void */ - private function proceedCount($select) + private function proceedCount(Select $select): void { global $zdb; @@ -381,7 +340,7 @@ private function proceedCount($select) $results = $zdb->execute($countSelect); - $this->count = $results->current()->count; + $this->count = (int)$results->current()->count; if (isset($this->filters) && $this->count > 0) { $this->filters->setCounter($this->count); } @@ -397,12 +356,12 @@ private function proceedCount($select) /** * Builds the order clause * - * @param array $fields Fields list to ensure ORDER clause - * references selected fields. Optionnal. + * @param array $fields Fields list to ensure ORDER clause + * references selected fields. Optional. * - * @return array SQL ORDER clauses + * @return array SQL ORDER clauses */ - private function buildOrderClause($fields = null) + private function buildOrderClause(array $fields = null): array { $order = array(); switch ($this->filters->orderby) { @@ -452,6 +411,11 @@ private function buildOrderClause($fields = null) ', a.prenom_adh ' . $this->filters->getDirection(); } break; + case self::ORDERBY_CATEGORY: + if ($this->canOrderBy('cat_name', $fields)) { + $order[] = 'c.name ' . $this->filters->getDirection(); + } + break; } return $order; @@ -464,10 +428,8 @@ private function buildOrderClause($fields = null) * * @return void */ - public function buildWhereClause($select) + public function buildWhereClause(Select $select): void { - global $login; - try { if (is_array($this->filters->selected) && count($this->filters->selected) > 0) { $select->where->in('o.' . self::PK, $this->filters->selected); @@ -512,7 +474,7 @@ public function buildWhereClause($select) ); } else { $select->where( - 'o.name LIKE ' . $token + 'LOWER(o.name) LIKE ' . $token ); } break; @@ -546,12 +508,12 @@ public function buildWhereClause($select) * 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 + * @param string $field_name Field name to order by + * @param ?string[] $fields SELECTE'ed fields * * @return boolean */ - private function canOrderBy($field_name, $fields) + private function canOrderBy(string $field_name, ?array $fields): bool { if (!is_array($fields)) { return true; @@ -570,9 +532,9 @@ private function canOrderBy($field_name, $fields) /** * Get count for current query * - * @return int + * @return ?int */ - public function getCount() + public function getCount(): ?int { return $this->count; } @@ -580,9 +542,9 @@ public function getCount() /** * Get registered errors * - * @return array + * @return array */ - public function getErrors() + public function getErrors(): array { return $this->errors; } diff --git a/lib/GaletteObjectsLend/Repository/Status.php b/lib/GaletteObjectsLend/Repository/Status.php index 6aaaec1..e4928e5 100644 --- a/lib/GaletteObjectsLend/Repository/Status.php +++ b/lib/GaletteObjectsLend/Repository/Status.php @@ -1,15 +1,9 @@ . - * - * @category Repository - * @package Galette - * - * @author Johan Cwiklinski - * @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 */ +declare(strict_types=1); + 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\Repository\Repository; use GaletteObjectsLend\Filters\StatusList; -use GaletteObjectsLend\Entity\Preferences; -use GaletteObjectsLend\Entity\LendObject; -use GaletteObjectsLend\Entity\LendCategory; -use GaletteObjectsLend\Entity\LendRent; use GaletteObjectsLend\Entity\LendStatus; use Galette\Core\Login; use Laminas\Db\Sql\Select; @@ -54,14 +37,7 @@ /** * Status list * - * @name Status - * @category Repository - * @package GaletteObjectsLend - * - * @author Johan Cwiklinski - * @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 + * @author Johan Cwiklinski */ class Status { @@ -87,16 +63,17 @@ class Status private Db $zdb; private Login $login; - private $filters = false; - private $count = null; - private $errors = array(); + private StatusList $filters; + private ?int $count = null; + /** @var array */ + private array $errors = array(); /** * Default constructor * - * @param Db $zdb Database instance - * @param Login $login Logged in instance - * @param StatusList $filters Filtering + * @param Db $zdb Database instance + * @param Login $login Logged in instance + * @param ?StatusList $filters Filtering */ public function __construct(Db $zdb, Login $login, StatusList $filters = null) { @@ -114,22 +91,20 @@ public function __construct(Db $zdb, Login $login, StatusList $filters = null) /** * Get status list * - * @param boolean $as_stt return the results as an array of - * Status object. - * @param array $fields field(s) name(s) to get. Should be a string or - * an array. If null, all fields will be - * returned - * @param boolean $count true if we want to count members - * @param boolean $limit true if we want records pagination + * @param boolean $as_stt return the results as an array of + * Status object. + * @param ?string[] $fields field(s) name(s) to get. If null, all fields will be returned + * @param boolean $count true if we want to count members + * @param boolean $limit true if we want records pagination * - * @return array|ArrayObject + * @return LendStatus[]|ResultSet */ public function getStatusList( - $as_stt = false, - $fields = null, - $count = true, - $limit = true - ) { + bool $as_stt = false, + array $fields = null, + bool $count = true, + bool $limit = true + ): array|ResultSet { try { $select = $this->buildSelect($fields, false, $count); @@ -168,9 +143,9 @@ public function getStatusList( * an array. If null, all fields will be * returned * - * @return LendStatus[]|ArrayObject + * @return LendStatus[]|ResultSet */ - public function getList($as_stt = false, $fields = null) + public function getList(bool $as_stt = false, array $fields = null): array|ResultSet { return $this->getStatusList( $as_stt, @@ -183,14 +158,14 @@ public function getList($as_stt = false, $fields = null) /** * Builds the SELECT statement * - * @param array $fields fields list to retrieve - * @param bool $photos true if we want to get only members with photos - * Default to false, only relevant for SHOW_PUBLIC_LIST - * @param bool $count true if we want to count members, defaults to false + * @param string[] $fields fields list to retrieve + * @param bool $photos true if we want to get only members with photos + * Default to false, only relevant for SHOW_PUBLIC_LIST + * @param bool $count true if we want to count members, defaults to false * * @return Select SELECT statement */ - private function buildSelect($fields, $photos, $count = false) + private function buildSelect(?array $fields, bool $photos = false, bool $count = false): Select { try { $fieldsList = ($fields != null) @@ -226,7 +201,7 @@ private function buildSelect($fields, $photos, $count = false) * * @return void */ - private function proceedCount($select) + private function proceedCount(Select $select): void { try { $countSelect = clone $select; @@ -248,8 +223,7 @@ private function proceedCount($select) $results = $this->zdb->execute($countSelect); - //@phpstan-ignore-next-line - $this->count = $results->current()->count; + $this->count = (int)$results->current()->count; if (isset($this->filters) && $this->count > 0) { $this->filters->setCounter($this->count); } @@ -265,12 +239,12 @@ private function proceedCount($select) /** * Builds the order clause * - * @param array $fields Fields list to ensure ORDER clause - * references selected fields. Optional. + * @param ?string[] $fields Fields list to ensure ORDER clause + * references selected fields. Optional. * - * @return array SQL ORDER clauses + * @return array SQL ORDER clauses */ - private function buildOrderClause($fields = null) + private function buildOrderClause(array $fields = null): array { $order = array(); switch ($this->filters->orderby) { @@ -311,7 +285,7 @@ private function buildOrderClause($fields = null) * * @return void */ - private function buildWhereClause($select) + private function buildWhereClause(Select $select): void { try { if ($this->filters->active_filter == self::ACTIVE) { @@ -334,7 +308,7 @@ private function buildWhereClause($select) ); $select->where( - 'c.status_text LIKE ' . $token + 'LOWER(c.status_text) LIKE ' . $token ); } } catch (\Exception $e) { @@ -349,12 +323,12 @@ private function buildWhereClause($select) * 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 + * @param string $field_name Field name to order by + * @param ?string[] $fields SELECTE'ed fields * * @return boolean */ - private function canOrderBy($field_name, $fields) + private function canOrderBy(string $field_name, ?array $fields): bool { if (!is_array($fields)) { return true; @@ -373,9 +347,9 @@ private function canOrderBy($field_name, $fields) /** * Get count for current query * - * @return int + * @return ?int */ - public function getCount() + public function getCount(): ?int { return $this->count; } @@ -383,9 +357,9 @@ public function getCount() /** * Get registered errors * - * @return array + * @return array */ - public function getErrors() + public function getErrors(): array { return $this->errors; } diff --git a/phpstan.neon b/phpstan.neon index c518327..fb8fb38 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,12 +6,14 @@ parameters: - lib/ scanFiles: - _config.inc.php - - ../../config/paths.inc.php + - ../../includes/sys_config/paths.inc.php - ../../config/config.inc.php.dist - - ../../config/galette_tcpdf_config.php + - ../../includes/sys_config/galette_tcpdf_config.php scanDirectories: - ../../includes/ - ../../lib/ + universalObjectCratesClasses: + - RKA\Session ignoreErrors: - '/Cannot access property .* on .*ArrayObject.*/' - '/Access to an undefined property ArrayObject.*/' diff --git a/templates/default/categories_list.html.twig b/templates/default/categories_list.html.twig index 4efb1c2..4ca18b5 100644 --- a/templates/default/categories_list.html.twig +++ b/templates/default/categories_list.html.twig @@ -1,3 +1,23 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% extends 'elements/list.html.twig' %} {% import "macros.twig" as macros %} @@ -30,7 +50,7 @@ {% set columns = [ {'label': '#'}, {'label': _T("Name", "objectslend"), order: constant('GaletteObjectsLend\\Repository\\Categories::ORDERBY_NAME')}, - {'label': _T("Active", "objectslend")}, + {'label': _T("Active", "objectslend"), order: constant('GaletteObjectsLend\\Repository\\Categories::ORDERBY_ACTIVITY')}, ] %} {{ parent() }} {% endblock %} @@ -40,7 +60,7 @@
- +
@@ -48,7 +68,7 @@
- +
diff --git a/templates/default/category_edit.html.twig b/templates/default/category_edit.html.twig index 977613a..035e55f 100644 --- a/templates/default/category_edit.html.twig +++ b/templates/default/category_edit.html.twig @@ -1,3 +1,23 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% extends "page.html.twig" %} {% block content %} diff --git a/templates/default/headers.html.twig b/templates/default/headers.html.twig index 0e45173..0c99f4f 100644 --- a/templates/default/headers.html.twig +++ b/templates/default/headers.html.twig @@ -1,3 +1,23 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% if olendsprefs is defined and olendsprefs.showFullsize() %} +{% endblock %} diff --git a/templates/default/objects_list.html.twig b/templates/default/objects_list.html.twig index 568c396..830513d 100644 --- a/templates/default/objects_list.html.twig +++ b/templates/default/objects_list.html.twig @@ -1,3 +1,23 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% extends 'elements/list.html.twig' %} {% import "macros.twig" as macros %} @@ -313,7 +333,7 @@ 'icon': 'file pdf grey' }, { - 'label': _T("Remove %object from database", "objectslend")|replace({ '%object': object.getName() }), + 'label': _T("Remove %object from database", "objectslend")|replace({'%object': object.getName()}), 'route': { 'name': 'objectslend_remove_object', 'args': {'id': object.getId()} @@ -381,7 +401,7 @@ } } %} - {% set batch_actions = [ + {% set batch_actions = [ { 'name': 'print_list__directdownload', 'label': _T("Print objects list", "objectslend"), @@ -411,7 +431,7 @@ datatype: 'html', {% include "elements/js/loader.js.twig" with { loader: "action", - }%}, + } %}, success: function(res){ var _content = $($.parseHTML(res)).find('div.main-content').children(); {% include "elements/js/modal.js.twig" with { @@ -446,7 +466,7 @@ datatype: 'html', {% include "elements/js/loader.js.twig" with { loader: "action", - }%}, + } %}, success: function(res){ var _content = $($.parseHTML(res)).find('div.main-content').children(); {% include "elements/js/modal.js.twig" with { diff --git a/templates/default/preferences.html.twig b/templates/default/preferences.html.twig index 59e07f5..84201df 100644 --- a/templates/default/preferences.html.twig +++ b/templates/default/preferences.html.twig @@ -1,6 +1,26 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% extends 'page.html.twig' %} -{% macro yesno_checkbox(label, name, tip, yes, no) %} +{% macro yesno_checkbox(label, name, tip, yes, no) %}
@@ -153,7 +179,7 @@ ] %} {% for yesno_box in yesno_boxes %} - {{ _self.yesno_checkbox( + {{ _self.yesno_checkbox( yesno_box.label, yesno_box.name, yesno_box.tip, @@ -282,7 +308,7 @@ ] %} {% for yesno_box in yesno_boxes %} - {{ _self.yesno_checkbox( + {{ _self.yesno_checkbox( yesno_box.label, yesno_box.name, yesno_box.tip ?? null, diff --git a/templates/default/status_edit.html.twig b/templates/default/status_edit.html.twig index f329f9f..2089421 100644 --- a/templates/default/status_edit.html.twig +++ b/templates/default/status_edit.html.twig @@ -1,3 +1,23 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% extends 'page.html.twig' %} {% block content %} diff --git a/templates/default/status_list.html.twig b/templates/default/status_list.html.twig index ea5189d..9b7076f 100644 --- a/templates/default/status_list.html.twig +++ b/templates/default/status_list.html.twig @@ -1,3 +1,23 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% extends 'elements/list.html.twig' %} {% set nb = nb_status %} @@ -47,7 +67,7 @@
- +
@@ -55,7 +75,7 @@
- +
@@ -78,7 +98,7 @@
- +
@@ -157,7 +177,7 @@ 'icon': 'edit' }, { - 'label': _T("Remove %status from database", "objectslend")|replace({ '%status': status.status_text }), + 'label': _T("Remove %status from database", "objectslend")|replace({'%status': status.status_text}), 'route': { 'name': 'objectslend_remove_status', 'args': {'id': status.status_id} diff --git a/templates/default/take_more_objects_away.tpl b/templates/default/take_more_objects_away.tpl index 8b0cd83..2cccfa9 100644 --- a/templates/default/take_more_objects_away.tpl +++ b/templates/default/take_more_objects_away.tpl @@ -1,3 +1,23 @@ +{# +/** +* Copyright © 2003-2024 The Galette Team +* +* This file is part of Galette (https://galette.eu). +* +* Galette is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* Galette is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with Galette. If not, see . +*/ +#}
diff --git a/templates/default/take_object.html.twig b/templates/default/take_object.html.twig index 8dd2984..bb772b7 100644 --- a/templates/default/take_object.html.twig +++ b/templates/default/take_object.html.twig @@ -1,3 +1,23 @@ +{# +/** + * Copyright © 2003-2024 The Galette Team + * + * This file is part of Galette (https://galette.eu). + * + * Galette is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Galette is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Galette. If not, see . + */ +#} {% extends 'page.html.twig' %} {% block content %} @@ -14,7 +34,7 @@ {{ _T(
@@ -142,7 +162,7 @@ {% endif %}
- {% else %} + {% else %}
diff --git a/tests/GaletteObjectsLend/Entity/tests/units/LendCategory.php b/tests/GaletteObjectsLend/Entity/tests/units/LendCategory.php new file mode 100644 index 0000000..b456b77 --- /dev/null +++ b/tests/GaletteObjectsLend/Entity/tests/units/LendCategory.php @@ -0,0 +1,116 @@ +. + */ + +namespace GaletteObjectsLends\Entity\tests\units; + +use Galette\GaletteTestCase; + +/** + * Category tests + * + * @author Johan Cwiklinski + */ +class LendCategory extends GaletteTestCase +{ + protected int $seed = 20240521212536; + + protected \Galette\Core\Plugins $plugins; + + /** + * Set up tests + * + * @return void + */ + public function setUp(): void + { + parent::setUp(); + $this->plugins = $this->container->get('plugins'); + } + + /** + * Cleanup after each test method + * + * @return void + */ + public function tearDown(): void + { + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendCategory::TABLE); + $this->zdb->execute($delete); + parent::tearDown(); + } + + /** + * Test empty + * + * @return void + */ + public function testEmpty(): void + { + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + $this->assertSame('No category (0)', $category->getName()); + $this->assertSame('No category', $category->getName(false)); + $this->assertInstanceOf(\GaletteObjectsLend\Entity\CategoryPicture::class, $category->getPicture()); + $this->assertSame(0.0, $category->getSum()); + $this->assertSame(0, $category->getObjectsNb()); + $this->assertTrue($category->isActive()); + $this->assertNull($category->getId()); + $this->assertSame('0,00', $category->objects_price_sum); + $this->assertNull($category->non_existing); + + $category = new \GaletteObjectsLend\Entity\LendCategory( + $this->zdb, + $this->plugins, + null, + ['picture' => false] + ); + $this->assertNull($category->getPicture()); + } + + /** + * Test add and update + * + * @return void + */ + public function testCrud(): void + { + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + + $category->name = 'Test category'; + $category->is_active = false; + + $this->assertTrue($category->store()); + $cid = $category->getId(); + $this->assertGreaterThan(0, $cid); + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins, $cid); + $this->assertSame('Test category (0)', $category->getName()); + $this->assertFalse($category->isActive()); + + $category->name = 'Test category (edited)'; + $this->assertTrue($category->store()); + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins, $cid); + $this->assertSame('Test category (edited) (0)', $category->getName()); + + $this->assertTrue($category->delete()); + new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins, $cid); + } +} diff --git a/tests/GaletteObjectsLend/Entity/tests/units/LendObject.php b/tests/GaletteObjectsLend/Entity/tests/units/LendObject.php new file mode 100644 index 0000000..24a2563 --- /dev/null +++ b/tests/GaletteObjectsLend/Entity/tests/units/LendObject.php @@ -0,0 +1,272 @@ +. + */ + +namespace GaletteObjectsLends\Entity\tests\units; + +use Galette\GaletteTestCase; + +/** + * Status tests + * + * @author Johan Cwiklinski + */ +class LendObject extends GaletteTestCase +{ + protected int $seed = 20240522000325; + + protected \Galette\Core\Plugins $plugins; + + private int $active_category_id; + private int $inactive_category_id; + private int $active_instock_status; + private int $active_notinstock_status; + private int $inactive_instock_status; + + /** + * Set up tests + * + * @return void + */ + public function setUp(): void + { + parent::setUp(); + $this->plugins = $this->container->get('plugins'); + $this->createCategories(); + $this->createStatus(); + } + + /** + * Cleanup after each test method + * + * @return void + */ + public function tearDown(): void + { + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendRent::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendObject::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendCategory::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendStatus::TABLE); + $this->zdb->execute($delete); + + parent::tearDown(); + } + + /** + * Test empty + * + * @return void + */ + public function testEmpty(): void + { + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins); + $this->assertSame('€', $object->getCurrency()); + $this->assertNull($object->getCurrentRent()); + $this->assertTrue($object->isActive()); + $this->assertNull($object->getId()); + $this->assertNull($object->getCategoryId()); + $this->assertSame('', $object->getName()); + $this->assertSame(0.0, $object->getPrice()); + $this->assertSame(0.0, $object->getRentPrice()); + $this->assertFalse($object->isPricePerDay()); + $this->assertSame(0.0, $object->getWeight()); + $this->assertSame('', $object->getStatusText()); + $this->assertTrue($object->inStock()); + $this->assertSame('', $object->getDateBegin()); + $this->assertSame('', $object->getDateForecast()); + $this->assertNull($object->getIdAdh()); + $this->assertNull($object->getRentId()); + $this->assertNull($object->getCategoryId()); + $this->assertSame('', $object->getSerialNumber()); + } + + /** + * Test add and update + * + * @return void + */ + public function testCrud(): void + { + $deps = [ + 'category' => true, + 'status' => true, + 'last_rent' => true + ]; + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, null, $deps); + + $object->name = 'An object'; + $object->category_id = $this->active_category_id; + $object->is_active = true; + $object->price = 1500.00; + $object->rent_price = 10.00; + $object->price_per_day = true; + $object->weight = 186.00; + + $this->assertTrue($object->store()); + $oid = $object->getId(); + $this->assertGreaterThan(0, $oid); + + $rent = new \GaletteObjectsLend\Entity\LendRent(); + $bdate = new \DateTime('2024-05-22 19:46:21'); + $rent->date_begin = $bdate->format('Y-m-d H:i:s'); + $edate = clone $bdate; + $edate->add(new \DateInterval('P1Y')); + $rent->date_end = $edate->format('Y-m-d H:i:s'); + $rent->status_id = $this->active_instock_status; + $rent->object_id = $oid; + $this->assertTrue($rent->store()); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, $oid, $deps); + $this->assertTrue($object->isActive()); + $this->assertSame(1500.00, $object->getPrice()); + $this->assertSame('1 500,00', $object->price); + $this->assertSame(10.00, $object->getRentPrice()); + $this->assertSame('10,00', $object->rent_price); + $this->assertSame(10.00, $object->value_rent_price); + $this->assertSame(186.00, $object->getWeight()); + $this->assertSame('186,000', $object->weight); + + $this->assertSame('2024-05-22', $object->getDateBegin()); + $this->assertSame('2024-05-22', $object->date_begin); + $object->name = 'An object (edited)'; + $object->description = 'An object description'; + $object->serial_number = 'SE-aBc-RI@L'; + $object->dimension = '10x50'; + $this->assertTrue($object->store()); + + $filter = new \GaletteObjectsLend\Filters\ObjectsList(); + $filter->field_filter = \GaletteObjectsLend\Repository\Objects::FILTER_NAME; + $filter->filter_str = 'object'; + $this->assertSame('An object (edited)', $object->displayName($filter)); + $this->assertSame('An object description', $object->displayDescription($filter)); + + $filter = new \GaletteObjectsLend\Filters\ObjectsList(); + $filter->field_filter = \GaletteObjectsLend\Repository\Objects::FILTER_SERIAL; + $filter->filter_str = 'abc'; + $this->assertSame('SE-aBc-RI@L', $object->displaySerial($filter)); + + $filter = new \GaletteObjectsLend\Filters\ObjectsList(); + $filter->field_filter = \GaletteObjectsLend\Repository\Objects::FILTER_DIM; + $filter->filter_str = '50'; + $this->assertSame('10x50', $object->displayDimension($filter)); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, $oid, $deps); + $this->assertSame('An object (edited)', $object->getName()); + + //edit category to inactive one + $object->category_id = $this->inactive_category_id; + $this->assertNull($object->member); + $this->assertNull($object->rents); + $this->assertTrue($object->store()); + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, $oid, $deps + ['member' => true, 'rents' => true]); + $this->assertFalse($object->isActive()); + $this->assertInstanceOf(\Galette\Entity\Adherent::class, $object->member); + + //removing category + $rm_category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + + $rm_category->name = 'Category to be removed'; + $rm_category->is_active = true; + $this->assertTrue($rm_category->store()); + $category_id = $rm_category->getId(); + + $object->category_id = $category_id; + $this->assertTrue($object->store()); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, $oid, $deps); + $this->assertSame($category_id, $object->getCategoryId()); + + $this->assertTrue($rm_category->delete()); + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, $oid, $deps); + $this->assertNull($object->getCategoryId()); + + //clone + $this->assertTrue($object->clone()); + $clone_id = $object->getId(); + $this->assertNotEquals($oid, $clone_id); + $this->assertSame('An object (edited)', $object->getName()); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, $oid); + $this->assertTrue($object->delete()); + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins, $clone_id); + $this->assertTrue($object->delete()); + } + + /** + * Create few status + * + * @return void + */ + private function createStatus(): void + { + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One active status'; + $status->in_stock = true; + $status->is_active = true; + $this->assertTrue($status->store()); + $this->active_instock_status = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'Another active status'; + $status->in_stock = false; + $status->is_active = true; + $this->assertTrue($status->store()); + $this->active_notinstock_status = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One inactive status'; + $status->in_stock = true; + $status->is_active = false; + $this->assertTrue($status->store()); + $this->inactive_instock_status = $status->status_id; + } + + /** + * Create few categories + * + * @return void + */ + private function createCategories(): void + { + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + + $category->name = 'Active test category'; + $category->is_active = true; + + $this->assertTrue($category->store()); + $this->active_category_id = $category->getId(); + $this->assertGreaterThan(0, $this->active_category_id); + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + + $category->name = 'Inactive test category'; + $category->is_active = false; + + $this->assertTrue($category->store()); + $this->inactive_category_id = $category->getId(); + $this->assertGreaterThan(0, $this->inactive_category_id); + } +} \ No newline at end of file diff --git a/tests/GaletteObjectsLend/Entity/tests/units/LendRent.php b/tests/GaletteObjectsLend/Entity/tests/units/LendRent.php new file mode 100644 index 0000000..ecdb993 --- /dev/null +++ b/tests/GaletteObjectsLend/Entity/tests/units/LendRent.php @@ -0,0 +1,250 @@ +. + */ + +namespace GaletteObjectsLends\Entity\tests\units; + +use Galette\GaletteTestCase; + +/** + * Status tests + * + * @author Johan Cwiklinski + */ +class LendRent extends GaletteTestCase +{ + protected int $seed = 20240524220704; + + protected \Galette\Core\Plugins $plugins; + private int $active_instock_status; + private int $active_notinstock_status; + private int $inactive_instock_status; + + /** + * Set up tests + * + * @return void + */ + public function setUp(): void + { + parent::setUp(); + $this->plugins = $this->container->get('plugins'); + //$this->createCategories(); + $this->createStatus(); + } + + /** + * Cleanup after each test method + * + * @return void + */ + public function tearDown(): void + { + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendRent::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendCategory::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendStatus::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(\Galette\Entity\Adherent::TABLE); + $delete->where(['fingerprint' => 'FAKER' . $this->seed]); + $this->zdb->execute($delete); + + parent::tearDown(); + } + + /** + * Test empty + * + * @return void + */ + public function testEmpty(): void + { + $rent = new \GaletteObjectsLend\Entity\LendRent(); + $this->assertNull($rent->rent_id); + $this->assertNull($rent->object_id); + $this->assertNull($rent->status_id); + $this->assertNull($rent->adherent_id); + $this->assertMatchesRegularExpression('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}/', $rent->date_begin); + $this->assertSame('', $rent->date_forecast); + $this->assertSame('', $rent->date_end); + $this->assertSame('', $rent->comments); + } + + /** + * Test add and update + * + * @return void + */ + public function testCrud(): void + { + $rent = new \GaletteObjectsLend\Entity\LendRent(); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins); + $object->name = 'Test object'; + $this->assertTrue($object->store()); + $oid = $object->object_id; + + $bdate = new \DateTime('2024-05-22 19:46:21'); + $rent->date_begin = $bdate->format('Y-m-d H:i:s'); + $rent->object_id = $oid; + $rent->status_id = $this->active_instock_status; + $rent->comments = 'Test comment'; + $this->assertTrue($rent->store()); + $rent_id = $rent->rent_id; + + $rent = new \GaletteObjectsLend\Entity\LendRent($rent_id); + $this->assertSame($this->active_instock_status, $rent->status_id); + + //update rent + $member = $this->getMemberOne(); + $rent = new \GaletteObjectsLend\Entity\LendRent($rent_id); + $rent->status_id = $this->active_notinstock_status; + $rent->adherent_id = $member->id; + $this->assertTrue($rent->store()); + + $rent = new \GaletteObjectsLend\Entity\LendRent($rent_id); + $this->assertSame($this->active_notinstock_status, $rent->status_id); + $this->assertSame($member->id, $rent->adherent_id); + + //active members + $this->assertCount(1, $rent::getAllActivesAdherents()); + + //another (older) rent + $rent = new \GaletteObjectsLend\Entity\LendRent(); + $bdate = new \DateTime('2024-05-22 19:46:21'); + $bdate->sub(new \DateInterval('P2Y')); + $rent->date_begin = $bdate->format('Y-m-d H:i:s'); + $rent2_edate = clone $bdate; + $rent2_edate->add(new \DateInterval('P1Y')); + $rent->date_end = $rent2_edate->format('Y-m-d H:i:s'); + $rent->date_forecast = $rent2_edate->format('Y-m-d'); + $rent->object_id = $oid; + $rent->status_id = $this->active_instock_status; + $rent->comments = 'Test 2 comment'; + $this->assertTrue($rent->store()); + $rent2_id = $rent->rent_id; + $this->assertNotEquals($rent_id, $rent2_id); + $this->assertSame($rent2_edate->format('Y-m-d'), $rent->date_forecast); + + $object_rents = $rent::getRentsForObjectId($oid); + $this->assertCount(2, $object_rents); + + //only last + $object_rents = $rent::getRentsForObjectId($oid, true); + $this->assertCount(1, $object_rents); + + //close all rents + $this->assertTrue($rent::closeAllRentsForObject($oid, 'Now closed.')); + + $rent = new \GaletteObjectsLend\Entity\LendRent($rent_id); + $this->assertSame('Now closed.', $rent->comments); + + //had an end_date, should not be modified + $rent = new \GaletteObjectsLend\Entity\LendRent($rent2_id); + $this->assertEquals($rent2_edate->format('Y-m-d H:i'), $rent->date_end); + $this->assertSame('Test 2 comment', $rent->comments); + + //cleanup to avoid constraint errors + $this->assertTrue($object->delete()); + + /*$status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One active status'; + $status->in_stock = true; + $status->is_active = true; + $this->assertTrue($status->store()); + $status_one = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'Another active status'; + $status->in_stock = false; + $status->is_active = true; + $this->assertTrue($status->store()); + $status_two = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One inactive status'; + $status->in_stock = true; + $status->is_active = false; + $this->assertTrue($status->store()); + $status_three = $status->status_id; + + $list = $status::getActiveTakeAwayStatuses($this->zdb); + $this->assertCount(1, $list); + + $active_one = $list[0]; + $this->assertSame($status_two, $active_one->status_id); + $this->assertSame('Another active status', $active_one->status_text); + + $list = $status::getActiveStockStatuses($this->zdb); + $this->assertCount(1, $list); + + $active_one = $list[0]; + $this->assertSame($status_one, $active_one->status_id); + $this->assertSame('One active status', $active_one->status_text); + + $list = $status::getActiveStatuses($this->zdb); + $this->assertCount(2, $list); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb, $status_one); + $status->status_text = 'One active status (edited)'; + $this->assertTrue($status->store()); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb, $status_one); + $this->assertSame('One active status (edited)', $status->status_text); + + $this->assertTrue($status->delete()); + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb, $status_one); + $this->assertNull($status->status_id);*/ + } + + /** + * Create few status + * + * @return void + */ + private function createStatus(): void + { + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One active status'; + $status->in_stock = true; + $status->is_active = true; + $this->assertTrue($status->store()); + $this->active_instock_status = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'Another active status'; + $status->in_stock = false; + $status->is_active = true; + $this->assertTrue($status->store()); + $this->active_notinstock_status = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One inactive status'; + $status->in_stock = true; + $status->is_active = false; + $this->assertTrue($status->store()); + $this->inactive_instock_status = $status->status_id; + } + +} diff --git a/tests/GaletteObjectsLend/Entity/tests/units/LendStatus.php b/tests/GaletteObjectsLend/Entity/tests/units/LendStatus.php new file mode 100644 index 0000000..a1b34c2 --- /dev/null +++ b/tests/GaletteObjectsLend/Entity/tests/units/LendStatus.php @@ -0,0 +1,118 @@ +. + */ + +namespace GaletteObjectsLends\Entity\tests\units; + +use Galette\GaletteTestCase; + +/** + * Status tests + * + * @author Johan Cwiklinski + */ +class LendStatus extends GaletteTestCase +{ + protected int $seed = 20240521230915; + + /** + * Cleanup after each test method + * + * @return void + */ + public function tearDown(): void + { + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendStatus::TABLE); + $this->zdb->execute($delete); + parent::tearDown(); + } + + /** + * Test empty + * + * @return void + */ + public function testEmpty(): void + { + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $this->assertNull($status->status_id); + $this->assertSame('', $status->status_text); + $this->assertFalse($status->in_stock); + $this->assertTrue($status->is_active); + $this->assertNull($status->rent_day_number); + } + + /** + * Test add and update + * + * @return void + */ + public function testCrud(): void + { + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One active status'; + $status->in_stock = true; + $status->is_active = true; + $this->assertTrue($status->store()); + $status_one = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'Another active status'; + $status->in_stock = false; + $status->is_active = true; + $this->assertTrue($status->store()); + $status_two = $status->status_id; + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One inactive status'; + $status->in_stock = true; + $status->is_active = false; + $this->assertTrue($status->store()); + $status_three = $status->status_id; + + $list = $status::getActiveTakeAwayStatuses($this->zdb); + $this->assertCount(1, $list); + + $active_one = $list[0]; + $this->assertSame($status_two, $active_one->status_id); + $this->assertSame('Another active status', $active_one->status_text); + + $list = $status::getActiveStockStatuses($this->zdb); + $this->assertCount(1, $list); + + $active_one = $list[0]; + $this->assertSame($status_one, $active_one->status_id); + $this->assertSame('One active status', $active_one->status_text); + + $list = $status::getActiveStatuses($this->zdb); + $this->assertCount(2, $list); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb, $status_one); + $status->status_text = 'One active status (edited)'; + $this->assertTrue($status->store()); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb, $status_one); + $this->assertSame('One active status (edited)', $status->status_text); + + $this->assertTrue($status->delete()); + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb, $status_one); + $this->assertNull($status->status_id); + } +} diff --git a/tests/GaletteObjectsLend/Entity/tests/units/Preferences.php b/tests/GaletteObjectsLend/Entity/tests/units/Preferences.php new file mode 100644 index 0000000..694acf2 --- /dev/null +++ b/tests/GaletteObjectsLend/Entity/tests/units/Preferences.php @@ -0,0 +1,90 @@ +. + */ + +namespace GaletteObjectsLends\Entity\tests\units; + +use Galette\GaletteTestCase; + +/** + * Preferences tests + * + * @author Johan Cwiklinski + */ +class Preferences extends GaletteTestCase +{ + protected int $seed = 20240519131740; + + /** + * Test defaults + * + * @return void + */ + public function testDefaults(): void + { + $prefs = new \GaletteObjectsLend\Entity\Preferences($this->zdb); + $this->assertSame(128, $prefs->getThumbWidth()); + $this->assertSame(128, $prefs->getThumbHeight()); + $this->assertTrue($prefs->imagesInLists()); + $this->assertTrue($prefs->showFullsize()); + + $all_prefs = $prefs->getPreferences(); + $this->assertCount(17, $all_prefs); + foreach ($all_prefs as $code => $value) { + $this->assertSame($value, $prefs->$code); + } + + $prefs = new \GaletteObjectsLend\Entity\Preferences($this->zdb, false); + $this->assertTrue($prefs->load()); + + $prefs = new \GaletteObjectsLend\Entity\Preferences($this->zdb, false); + $this->assertCount(17, $prefs->getPreferences()); + + $this->expectException(\RuntimeException::class); + $this->assertSame(null, $prefs->NON_EXISTING); + } + + /** + * Test add and update + * + * @return void + */ + public function testCrud(): void + { + $prefs = new \GaletteObjectsLend\Entity\Preferences($this->zdb); + $orig_prefs = $prefs->getPreferences(); + $this->assertCount(17, $orig_prefs); + + $all_prefs = $orig_prefs; + + $this->assertSame(128, (int)$all_prefs[\GaletteObjectsLend\Entity\Preferences::PARAM_THUMB_MAX_WIDTH]); + $this->assertSame(128, (int)$all_prefs[\GaletteObjectsLend\Entity\Preferences::PARAM_THUMB_MAX_HEIGHT]); + $all_prefs[\GaletteObjectsLend\Entity\Preferences::PARAM_THUMB_MAX_WIDTH] = 256; + $all_prefs[\GaletteObjectsLend\Entity\Preferences::PARAM_THUMB_MAX_HEIGHT] = 256; + + $this->assertTrue($prefs->store($all_prefs)); + $all_prefs = $prefs->getPreferences(); + $this->assertCount(17, $all_prefs); + $this->assertSame(256, (int)$all_prefs[\GaletteObjectsLend\Entity\Preferences::PARAM_THUMB_MAX_WIDTH]); + $this->assertSame(256, (int)$all_prefs[\GaletteObjectsLend\Entity\Preferences::PARAM_THUMB_MAX_HEIGHT]); + + $this->assertTrue($prefs->store($orig_prefs)); + } +} diff --git a/tests/GaletteObjectsLend/Filters/tests/units/CategoriesList.php b/tests/GaletteObjectsLend/Filters/tests/units/CategoriesList.php new file mode 100644 index 0000000..571b341 --- /dev/null +++ b/tests/GaletteObjectsLend/Filters/tests/units/CategoriesList.php @@ -0,0 +1,135 @@ +. + */ + +declare(strict_types=1); + +namespace GaletteObjectslend\Filters\test\units; + +use Galette\GaletteTestCase; + +/** + * Categories filters tests class + * + * @author Johan Cwiklinski + */ +class CategoriesList extends GaletteTestCase +{ + /** + * Test filter defaults values + * + * @param \GaletteObjectsLend\Filters\CategoriesList $filters Filters instance + * + * @return void + */ + protected function testDefaults(\GaletteObjectsLend\Filters\CategoriesList $filters): void + { + $this->assertSame(\GaletteObjectsLend\Repository\Categories::ORDERBY_NAME, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\CategoriesList::ORDER_ASC, $filters->ordered); + $this->assertNull($filters->filter_str); + $this->assertNull($filters->active_filter); + $this->assertNull($filters->not_empty); + $this->assertNull($filters->objects_filters); + } + + /** + * Test creation + * + * @return void + */ + public function testCreate(): void + { + $filters = new \GaletteObjectsLend\Filters\CategoriesList(); + + $this->testDefaults($filters); + + //change order field + $filters->orderby = \GaletteObjectsLend\Repository\Categories::ORDERBY_ACTIVITY; + $this->assertSame(\GaletteObjectsLend\Repository\Categories::ORDERBY_ACTIVITY, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\CategoriesList::ORDER_ASC, $filters->ordered); + + //same order field again: direction inverted + $filters->orderby = \GaletteObjectsLend\Repository\Categories::ORDERBY_ACTIVITY; + $this->assertSame(\GaletteObjectsLend\Repository\Categories::ORDERBY_ACTIVITY, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\CategoriesList::ORDER_DESC, $filters->ordered); + + //not existing order, same kept + $filters->ordered = 42; + $this->assertSame(\GaletteObjectsLend\Repository\Categories::ORDERBY_ACTIVITY, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\CategoriesList::ORDER_DESC, $filters->ordered); + + //change direction only + $filters->ordered = \GaletteObjectsLend\Filters\CategoriesList::ORDER_ASC; + $this->assertSame(\GaletteObjectsLend\Repository\Categories::ORDERBY_ACTIVITY, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\CategoriesList::ORDER_ASC, $filters->ordered); + + //set string filter + $filters->filter_str = 'a string'; + $this->assertSame('a string', $filters->filter_str); + + //Set activity filter + $filters->active_filter = \GaletteObjectsLend\Repository\Categories::INACTIVE_CATEGORIES; + $this->assertSame(\GaletteObjectsLend\Repository\Categories::INACTIVE_CATEGORIES, $filters->active_filter); + + //cast is forced + $filters->active_filter = (string)\GaletteObjectsLend\Repository\Categories::INACTIVE_CATEGORIES; + $this->assertSame(\GaletteObjectsLend\Repository\Categories::INACTIVE_CATEGORIES, $filters->active_filter); + + //out of known values, no change + $filters->active_filter = 42; + $this->assertSame(\GaletteObjectsLend\Repository\Categories::INACTIVE_CATEGORIES, $filters->active_filter); + + $ofilters = new \GaletteObjectsLend\Filters\ObjectsList(); + $this->assertInstanceOf($filters::class, $filters->setObjectsFilter($ofilters)); + $this->assertSame($ofilters, $filters->objects_filters); + + //reinit and test defaults are back + $filters->reinit(); + $this->testDefaults($filters); + } + + /** + * Test setting non existing filter + * + * @return void + */ + public function testSetNotExisting() + { + $filters = new \GaletteObjectsLend\Filters\CategoriesList(); + $this->testDefaults($filters); + + $this->expectException(\RuntimeException::class); + $filters->non_existing = 42; + } + + /** + * Test getting non existing filter + * + * @return void + */ + public function testGetNotExisting() + { + $filters = new \GaletteObjectsLend\Filters\CategoriesList(); + $this->testDefaults($filters); + + $this->expectException(\RuntimeException::class); + $value = $filters->non_existing; + } +} diff --git a/tests/GaletteObjectsLend/Filters/tests/units/ObjectsList.php b/tests/GaletteObjectsLend/Filters/tests/units/ObjectsList.php new file mode 100644 index 0000000..48091f8 --- /dev/null +++ b/tests/GaletteObjectsLend/Filters/tests/units/ObjectsList.php @@ -0,0 +1,143 @@ +. + */ + +declare(strict_types=1); + +namespace GaletteObjectslend\Filters\test\units; + +use Galette\GaletteTestCase; + +/** + * Objects filters tests class + * + * @author Johan Cwiklinski + */ +class ObjectsList extends GaletteTestCase +{ + /** + * Test filter defaults values + * + * @param \GaletteObjectsLend\Filters\ObjectsList $filters Filters instance + * + * @return void + */ + protected function testDefaults(\GaletteObjectsLend\Filters\ObjectsList $filters): void + { + $this->assertSame(\GaletteObjectsLend\Repository\Objects::ORDERBY_NAME, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC, $filters->ordered); + $this->assertNull($filters->filter_str); + $this->assertNull($filters->category_filter); + $this->assertNull($filters->active_filter); + $this->assertNull($filters->field_filter); + $this->assertSame([], $filters->selected); + } + + /** + * Test creation + * + * @return void + */ + public function testCreate(): void + { + $filters = new \GaletteObjectsLend\Filters\ObjectsList(); + + $this->testDefaults($filters); + + //change order field + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC, $filters->ordered); + + //same order field again: direction inverted + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\ObjectsList::ORDER_DESC, $filters->ordered); + + //not existing order, same kept + $filters->ordered = 42; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\ObjectsList::ORDER_DESC, $filters->ordered); + + //change direction only + $filters->ordered = \GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\ObjectsList::ORDER_ASC, $filters->ordered); + + //set string filter + $filters->filter_str = 'a string'; + $this->assertSame('a string', $filters->filter_str); + + //Set activity filter + $filters->active_filter = \GaletteObjectsLend\Repository\Objects::INACTIVE_OBJECTS; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::INACTIVE_OBJECTS, $filters->active_filter); + + //cast is forced + $filters->active_filter = (string)\GaletteObjectsLend\Repository\Objects::INACTIVE_OBJECTS; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::INACTIVE_OBJECTS, $filters->active_filter); + + //out of known values, no change + $filters->active_filter = 42; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::INACTIVE_OBJECTS, $filters->active_filter); + + $filters->field_filter = \GaletteObjectsLend\Repository\Objects::FILTER_SERIAL; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::FILTER_SERIAL, $filters->field_filter); + + //cast is forced + $filters->field_filter = (string)\GaletteObjectsLend\Repository\Objects::FILTER_SERIAL; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::FILTER_SERIAL, $filters->field_filter); + + //non numeric value, no change + $filters->field_filter = 'abc'; + $this->assertSame(\GaletteObjectsLend\Repository\Objects::FILTER_SERIAL, $filters->field_filter); + + //reinit and test defaults are back + $filters->reinit(); + $this->testDefaults($filters); + } + + /** + * Test setting non existing filter + * + * @return void + */ + public function testSetNotExisting() + { + $filters = new \GaletteObjectsLend\Filters\ObjectsList(); + $this->testDefaults($filters); + + $this->expectException(\RuntimeException::class); + $filters->non_existing = 42; + } + + /** + * Test getting non existing filter + * + * @return void + */ + public function testGetNotExisting() + { + $filters = new \GaletteObjectsLend\Filters\ObjectsList(); + $this->testDefaults($filters); + + $this->expectException(\RuntimeException::class); + $value = $filters->non_existing; + } +} diff --git a/tests/GaletteObjectsLend/Filters/tests/units/StatusList.php b/tests/GaletteObjectsLend/Filters/tests/units/StatusList.php new file mode 100644 index 0000000..7f91ffb --- /dev/null +++ b/tests/GaletteObjectsLend/Filters/tests/units/StatusList.php @@ -0,0 +1,141 @@ +. + */ + +declare(strict_types=1); + +namespace GaletteObjectslend\Filters\test\units; + +use Galette\GaletteTestCase; + +/** + * Status filters tests class + * + * @author Johan Cwiklinski + */ +class StatusList extends GaletteTestCase +{ + /** + * Test filter defaults values + * + * @param \GaletteObjectsLend\Filters\StatusList $filters Filters instance + * + * @return void + */ + protected function testDefaults(\GaletteObjectsLend\Filters\StatusList $filters): void + { + $this->assertSame(\GaletteObjectsLend\Repository\Status::ORDERBY_NAME, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\StatusList::ORDER_ASC, $filters->ordered); + $this->assertNull($filters->filter_str); + $this->assertNull($filters->active_filter); + $this->assertNull($filters->stock_filter); + } + + /** + * Test creation + * + * @return void + */ + public function testCreate(): void + { + $filters = new \GaletteObjectsLend\Filters\StatusList(); + + $this->testDefaults($filters); + + //change order field + $filters->orderby = \GaletteObjectsLend\Repository\Status::ORDERBY_STOCK; + $this->assertSame(\GaletteObjectsLend\Repository\Status::ORDERBY_STOCK, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\StatusList::ORDER_ASC, $filters->ordered); + + //same order field again: direction inverted + $filters->orderby = \GaletteObjectsLend\Repository\Status::ORDERBY_STOCK; + $this->assertSame(\GaletteObjectsLend\Repository\Status::ORDERBY_STOCK, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\StatusList::ORDER_DESC, $filters->ordered); + + //not existing order, same kept + $filters->ordered = 42; + $this->assertSame(\GaletteObjectsLend\Repository\Status::ORDERBY_STOCK, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\StatusList::ORDER_DESC, $filters->ordered); + + //change direction only + $filters->ordered = \GaletteObjectsLend\Filters\StatusList::ORDER_ASC; + $this->assertSame(\GaletteObjectsLend\Repository\Status::ORDERBY_STOCK, $filters->orderby); + $this->assertSame(\GaletteObjectsLend\Filters\StatusList::ORDER_ASC, $filters->ordered); + + //set string filter + $filters->filter_str = 'a string'; + $this->assertSame('a string', $filters->filter_str); + + //Set activity filter + $filters->active_filter = \GaletteObjectsLend\Repository\Status::INACTIVE; + $this->assertSame(\GaletteObjectsLend\Repository\Status::INACTIVE, $filters->active_filter); + + //cast is forced + $filters->active_filter = (string)\GaletteObjectsLend\Repository\Status::INACTIVE; + $this->assertSame(\GaletteObjectsLend\Repository\Status::INACTIVE, $filters->active_filter); + + //out of known values, no change + $filters->active_filter = 42; + $this->assertSame(\GaletteObjectsLend\Repository\Status::INACTIVE, $filters->active_filter); + + //set stock filter + $filters->stock_filter = \GaletteObjectsLend\Repository\Status::IN_STOCK; + $this->assertSame(\GaletteObjectsLend\Repository\Status::IN_STOCK, $filters->stock_filter); + + $filters->stock_filter = \GaletteObjectsLend\Repository\Status::OUT_STOCK; + $this->assertSame(\GaletteObjectsLend\Repository\Status::OUT_STOCK, $filters->stock_filter); + + //out of known values, no change + $filters->stock_filter = 42; + $this->assertSame(\GaletteObjectsLend\Repository\Status::OUT_STOCK, $filters->stock_filter); + + //reinit and test defaults are back + $filters->reinit(); + $this->testDefaults($filters); + } + + /** + * Test setting non existing filter + * + * @return void + */ + public function testSetNotExisting() + { + $filters = new \GaletteObjectsLend\Filters\StatusList(); + $this->testDefaults($filters); + + $this->expectException(\RuntimeException::class); + $filters->non_existing = 42; + } + + /** + * Test getting non existing filter + * + * @return void + */ + public function testGetNotExisting() + { + $filters = new \GaletteObjectsLend\Filters\StatusList(); + $this->testDefaults($filters); + + $this->expectException(\RuntimeException::class); + $value = $filters->non_existing; + } +} diff --git a/tests/GaletteObjectsLend/Repository/tests/units/Categories.php b/tests/GaletteObjectsLend/Repository/tests/units/Categories.php new file mode 100644 index 0000000..f38386e --- /dev/null +++ b/tests/GaletteObjectsLend/Repository/tests/units/Categories.php @@ -0,0 +1,133 @@ +. + */ + +namespace GaletteObjectsLends\Repository\tests\units; + +use Galette\GaletteTestCase; + +/** + * Categories tests + * + * @author Johan Cwiklinski + */ +class Categories extends GaletteTestCase +{ + protected int $seed = 20240525091538; + + protected \Galette\Core\Plugins $plugins; + + /** + * Set up tests + * + * @return void + */ + public function setUp(): void + { + parent::setUp(); + $this->plugins = $this->container->get('plugins'); + } + + /** + * Cleanup after each test method + * + * @return void + */ + public function tearDown(): void + { + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendObject::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendCategory::TABLE); + $this->zdb->execute($delete); + parent::tearDown(); + } + + /** + * Test getList + * + * @return void + */ + public function testGetList(): void + { + $categories = new \GaletteObjectsLend\Repository\Categories($this->zdb, $this->login, $this->plugins); + + $rs_list = $categories->getList(); + $this->assertInstanceOf(\Laminas\Db\ResultSet\ResultSet::class, $rs_list); + $this->assertSame(0, $rs_list->count()); + $this->assertSame([], $categories->getList(true)); + $this->assertNull($categories->getCount()); + + $this->assertSame([], $categories->getCategoriesList(true)); + $this->assertSame(0, $categories->getCount()); + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + $category->name = 'One category'; + $category->is_active = true; + $this->assertTrue($category->store()); + $cat_one_id = $category->category_id; + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + $category->name = 'Another category'; + $category->is_active = true; + $this->assertTrue($category->store()); + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + $category->name = 'Yet another category'; + $category->is_active = false; + $this->assertTrue($category->store()); + + $filters = new \GaletteObjectsLend\Filters\CategoriesList(); + $categories = new \GaletteObjectsLend\Repository\Categories($this->zdb, $this->login, $this->plugins, $filters); + + $this->assertCount(3, $categories->getCategoriesList(true)); + $this->assertSame(3, $categories->getCount()); + + $filters->filter_str = 'category'; + $this->assertCount(3, $categories->getCategoriesList(true)); + + $filters->filter_str = 'Yet'; + $this->assertCount(1, $categories->getCategoriesList(true)); + + $filters->filter_str = 'noone'; + $this->assertCount(0, $categories->getCategoriesList(true)); + + $filters->reinit(); + $filters->not_empty = true; + $this->assertCount(0, $categories->getCategoriesList(true)); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins); + $object->name = 'One object'; + $object->category_id = $cat_one_id; + $this->assertTrue($object->store()); + + $this->assertCount(1, $categories->getCategoriesList(true)); + + $filters->reinit(); + $filters->active_filter = \GaletteObjectsLend\Repository\Categories::ALL_CATEGORIES; + $this->assertCount(3, $categories->getCategoriesList(true)); + + $filters->active_filter = \GaletteObjectsLend\Repository\Categories::ACTIVE_CATEGORIES; + $this->assertCount(2, $categories->getCategoriesList(true)); + + $filters->active_filter = \GaletteObjectsLend\Repository\Categories::INACTIVE_CATEGORIES; + $this->assertCount(1, $categories->getCategoriesList(true)); + } +} diff --git a/tests/GaletteObjectsLend/Repository/tests/units/Objects.php b/tests/GaletteObjectsLend/Repository/tests/units/Objects.php new file mode 100644 index 0000000..ec20ee7 --- /dev/null +++ b/tests/GaletteObjectsLend/Repository/tests/units/Objects.php @@ -0,0 +1,241 @@ +. + */ + +namespace GaletteObjectsLends\Repository\tests\units; + +use Galette\GaletteTestCase; + +/** + * Categories tests + * + * @author Johan Cwiklinski + */ +class Objects extends GaletteTestCase +{ + protected int $seed = 20240526224135; + + protected \Galette\Core\Plugins $plugins; + protected \GaletteObjectsLend\Entity\Preferences $lend_prefs; + + /** + * Set up tests + * + * @return void + */ + public function setUp(): void + { + parent::setUp(); + $this->plugins = $this->container->get('plugins'); + $this->lend_prefs = new \GaletteObjectsLend\Entity\Preferences($this->zdb); + } + + /** + * Cleanup after each test method + * + * @return void + */ + public function tearDown(): void + { + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendObject::TABLE); + $this->zdb->execute($delete); + + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendCategory::TABLE); + $this->zdb->execute($delete); + + parent::tearDown(); + } + + /** + * Test getList + * + * @return void + */ + public function testGetList(): void + { + $objects = new \GaletteObjectsLend\Repository\Objects($this->zdb, $this->plugins, $this->lend_prefs); + + $rs_list = $objects->getList(); + $this->assertInstanceOf(\Laminas\Db\ResultSet\ResultSet::class, $rs_list); + $this->assertSame(0, $rs_list->count()); + $this->assertSame([], $objects->getList(true)); + $this->assertNull($objects->getCount()); + + $this->assertSame([], $objects->getObjectsList(true)); + $this->assertSame(0, $objects->getCount()); + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + $category->name = 'First category'; + $category->is_active = true; + $this->assertTrue($category->store()); + $first_category_id = $category->getId(); + $this->assertGreaterThan(0, $first_category_id); + + $category = new \GaletteObjectsLend\Entity\LendCategory($this->zdb, $this->plugins); + $category->name = 'Second category'; + $category->is_active = true; + $this->assertTrue($category->store()); + $second_category_id = $category->getId(); + $this->assertGreaterThan(0, $second_category_id); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins); + $object->name = 'First object'; + $object->category_id = $first_category_id; + $object->is_active = true; + $this->assertTrue($object->store()); + $first_object_id = $object->getId(); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins); + $object->name = 'Second object'; + $object->description = 'First description'; + $object->category_id = $first_category_id; + $object->is_active = true; + $this->assertTrue($object->store()); + $second_object_id = $object->getId(); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins); + $object->name = 'Third object'; + $object->category_id = $second_category_id; + $object->is_active = true; + $this->assertTrue($object->store()); + $third_object_id = $object->getId(); + + $object = new \GaletteObjectsLend\Entity\LendObject($this->zdb, $this->plugins); + $object->name = 'Fourth object'; + $object->serial_number = 'GGABCDEXX'; + $object->dimension = '210x297'; + $object->is_active = false; + $this->assertTrue($object->store()); + $fourth_object_id = $object->getId(); + + $filters = new \GaletteObjectsLend\Filters\ObjectsList(); + $objects = new \GaletteObjectsLend\Repository\Objects($this->zdb, $this->plugins, $this->lend_prefs, $filters); + + $this->assertCount(4, $objects->getObjectsList(true)); + $this->assertSame(4, $objects->getCount()); + + $selected = [ + $first_object_id, + $third_object_id + ]; + $filters->selected = $selected; + $this->assertCount(2, $objects->getObjectsList(true)); + $this->assertSame(2, $objects->getCount()); + + $filters->reinit(); + $filters->active_filter = \GaletteObjectsLend\Repository\Objects::ACTIVE_OBJECTS; + $this->assertCount(3, $objects->getObjectsList(true)); + $this->assertSame(3, $objects->getCount()); + + $filters->active_filter = \GaletteObjectsLend\Repository\Objects::INACTIVE_OBJECTS; + $this->assertCount(1, $objects->getObjectsList(true)); + $this->assertSame(1, $objects->getCount()); + + $filters->reinit(); + $filters->category_filter = -1; + $this->assertCount(1, $objects->getObjectsList(true)); + $this->assertSame(1, $objects->getCount()); + + $filters->category_filter = $first_category_id; + $this->assertCount(2, $objects->getObjectsList(true)); + $this->assertSame(2, $objects->getCount()); + + $filters->category_filter = $second_category_id; + $this->assertCount(1, $objects->getObjectsList(true)); + $this->assertSame(1, $objects->getCount()); + + $filters->reinit(); + $filters->filter_str = 'OBJECT'; + $this->assertCount(4, $objects->getObjectsList(true)); + $this->assertSame(4, $objects->getCount()); + + $filters->filter_str = 'first'; + $this->assertCount(2, $objects->getObjectsList(true)); + $this->assertSame(2, $objects->getCount()); + + //disable view description + $orig_prefs = $this->lend_prefs->getPreferences(); + $all_prefs = $orig_prefs; + $all_prefs[\GaletteObjectsLend\Entity\Preferences::PARAM_VIEW_DESCRIPTION] = 0; + $this->assertTrue($this->lend_prefs->store($all_prefs)); + + //only one result (first in name only) + $this->assertCount(1, $objects->getObjectsList(true)); + $this->assertSame(1, $objects->getCount()); + + //reset prefs + $this->assertTrue($this->lend_prefs->store($orig_prefs)); + + $filters->field_filter = \GaletteObjectsLend\Repository\Objects::FILTER_ID; + $filters->filter_str = (string)$third_object_id; + $this->assertCount(1, $objects->getObjectsList(true)); + $this->assertSame(1, $objects->getCount()); + + $filters->filter_str = '42'; + $this->assertCount(0, $objects->getObjectsList(true)); + $this->assertSame(0, $objects->getCount()); + + $filters->field_filter = \GaletteObjectsLend\Repository\Objects::FILTER_SERIAL; + $filters->filter_str = 'ABCDE'; + $this->assertCount(1, $objects->getObjectsList(true)); + $this->assertSame(1, $objects->getCount()); + + $filters->field_filter = \GaletteObjectsLend\Repository\Objects::FILTER_DIM; + $filters->filter_str = '297'; + $this->assertCount(1, $objects->getObjectsList(true)); + $this->assertSame(1, $objects->getCount()); + + //quick test ordering + $filters->reinit(); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_NAME; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_SERIAL; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_PRICE; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_RENTPRICE; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_WEIGHT; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_STATUS; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_BDATE; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_FDATE; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_MEMBER; + $this->assertCount(4, $objects->getObjectsList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Objects::ORDERBY_CATEGORY; + $this->assertCount(4, $objects->getObjectsList(true)); + + $this->assertTrue($objects->removeObjects([$first_object_id, $second_object_id, $third_object_id])); + $this->assertCount(1, $objects->getObjectsList(true)); + } +} diff --git a/tests/GaletteObjectsLend/Repository/tests/units/Status.php b/tests/GaletteObjectsLend/Repository/tests/units/Status.php new file mode 100644 index 0000000..bf106fb --- /dev/null +++ b/tests/GaletteObjectsLend/Repository/tests/units/Status.php @@ -0,0 +1,159 @@ +. + */ + +namespace GaletteObjectsLends\Repository\tests\units; + +use Galette\GaletteTestCase; + +/** + * Categories tests + * + * @author Johan Cwiklinski + */ +class Status extends GaletteTestCase +{ + protected int $seed = 20240526084251; + + protected \Galette\Core\Plugins $plugins; + + /** + * Set up tests + * + * @return void + */ + public function setUp(): void + { + parent::setUp(); + $this->plugins = $this->container->get('plugins'); + } + + /** + * Cleanup after each test method + * + * @return void + */ + public function tearDown(): void + { + $delete = $this->zdb->delete(LEND_PREFIX . \GaletteObjectsLend\Entity\LendStatus::TABLE); + $this->zdb->execute($delete); + + parent::tearDown(); + } + + /** + * Test getList + * + * @return void + */ + public function testGetList(): void + { + $status = new \GaletteObjectsLend\Repository\Status($this->zdb, $this->login); + + $rs_list = $status->getList(); + $this->assertInstanceOf(\Laminas\Db\ResultSet\ResultSet::class, $rs_list); + $this->assertSame(0, $rs_list->count()); + $this->assertSame([], $status->getList(true)); + $this->assertNull($status->getCount()); + + $this->assertSame([], $status->getStatusList(true)); + $this->assertSame(0, $status->getCount()); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One active in stock status'; + $status->in_stock = true; + $status->is_active = true; + $this->assertTrue($status->store()); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One active in stock status'; + $status->in_stock = true; + $status->is_active = true; + $this->assertTrue($status->store()); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One active not in stock status'; + $status->in_stock = false; + $status->is_active = true; + $this->assertTrue($status->store()); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One inactive in stock status'; + $status->in_stock = true; + $status->is_active = false; + $this->assertTrue($status->store()); + + $status = new \GaletteObjectsLend\Entity\LendStatus($this->zdb); + $status->status_text = 'One inactive not in stock status'; + $status->in_stock = false; + $status->is_active = false; + $this->assertTrue($status->store()); + + $filters = new \GaletteObjectsLend\Filters\StatusList(); + $status = new \GaletteObjectsLend\Repository\Status($this->zdb, $this->login, $filters); + + $this->assertCount(5, $status->getStatusList(true)); + $this->assertSame(5, $status->getCount()); + + $filters->filter_str = 'one'; + $this->assertCount(5, $status->getStatusList(true)); + + $filters->filter_str = 'not'; + $this->assertCount(2, $status->getStatusList(true)); + + $filters->filter_str = 'noone'; + $this->assertCount(0, $status->getStatusList(true)); + + $filters->reinit(); + $filters->active_filter = \GaletteObjectsLend\Repository\Status::ACTIVE; + $this->assertCount(3, $status->getStatusList(true)); + + $filters->active_filter = \GaletteObjectsLend\Repository\Status::INACTIVE; + $this->assertCount(2, $status->getStatusList(true)); + + $filters->reinit(); + $filters->stock_filter = \GaletteObjectsLend\Repository\Status::DC_STOCK; + $this->assertCount(5, $status->getStatusList(true)); + + $filters->stock_filter = \GaletteObjectsLend\Repository\Status::IN_STOCK; + $this->assertCount(3, $status->getStatusList(true)); + + $filters->stock_filter = \GaletteObjectsLend\Repository\Status::OUT_STOCK; + $this->assertCount(2, $status->getStatusList(true)); + + //quick test ordering + $filters->reinit(); + + $filters->orderby = \GaletteObjectsLend\Repository\Status::ORDERBY_ID; + $this->assertCount(5, $status->getStatusList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Status::ORDERBY_NAME; + $this->assertCount(5, $status->getStatusList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Status::ORDERBY_ACTIVE; + $this->assertCount(5, $status->getStatusList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Status::ORDERBY_STOCK; + $this->assertCount(5, $status->getStatusList(true)); + + $filters->orderby = \GaletteObjectsLend\Repository\Status::ORDERBY_RENTDAYS; + $this->assertCount(5, $status->getStatusList(true)); + } +} diff --git a/tests/TestsBootstrap.php b/tests/TestsBootstrap.php new file mode 100644 index 0000000..aaef719 --- /dev/null +++ b/tests/TestsBootstrap.php @@ -0,0 +1,32 @@ +. + */ + +/** + * Bootstrap tests file for Galette ObjectsLend plugin + * + * @author Johan Cwiklinski + */ + +define('GALETTE_PLUGINS_PATH', __DIR__ . '/../../'); +$basepath = '../../../galette/'; + +include_once '../../../tests/TestsBootstrap.php'; +require_once __DIR__ . '/../_config.inc.php';