Repository: richardbarran/django-photologue Branch: master Commit: 82bdbe37eb70 Files: 164 Total size: 966.7 KB Directory structure: gitextract_l0cgokhk/ ├── .coveragerc ├── .github/ │ └── workflows/ │ └── ci.yml ├── .gitignore ├── .isort.cfg ├── .readthedocs.yml ├── .tx/ │ └── config ├── CHANGELOG.txt ├── CONTRIBUTORS.txt ├── LICENSE.txt ├── MANIFEST.in ├── README.rst ├── SECURITY.md ├── docs/ │ ├── .gitignore │ ├── Makefile │ ├── conf.py │ ├── index.rst │ ├── make.bat │ ├── pages/ │ │ ├── changelog_page.rst │ │ ├── contributing.rst │ │ ├── customising/ │ │ │ ├── admin.rst │ │ │ ├── models.rst │ │ │ ├── settings.rst │ │ │ ├── templates.rst │ │ │ └── views.rst │ │ ├── installation.rst │ │ └── usage.rst │ └── requirements.txt ├── example_project/ │ ├── README.rst │ ├── example_project/ │ │ ├── __init__.py │ │ ├── example_storages/ │ │ │ ├── README.txt │ │ │ ├── __init__.py │ │ │ ├── s3_requirements.txt │ │ │ ├── s3utils.py │ │ │ └── settings_s3boto.py │ │ ├── fixtures/ │ │ │ └── .gitdirectory │ │ ├── settings.py │ │ ├── static/ │ │ │ ├── css/ │ │ │ │ └── styles.css │ │ │ └── js/ │ │ │ └── jquery-3.5.1.js │ │ ├── templates/ │ │ │ ├── base.html │ │ │ └── homepage.html │ │ ├── urls.py │ │ └── wsgi.py │ ├── manage.py │ ├── public/ │ │ ├── .gitdirectory │ │ ├── media/ │ │ │ └── .gitignore │ │ └── static/ │ │ └── .gitdirectory │ └── requirements.txt ├── photologue/ │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── forms.py │ ├── locale/ │ │ ├── ca/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── cs/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── da/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── de/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── en/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── en_US/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── es_ES/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── eu/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── fr/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── hu/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── it/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── nl/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── no/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── pl/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── pt/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── pt_BR/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── ru/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── sk/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── tr/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── tr_TR/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── uk/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ └── zh_Hans/ │ │ └── LC_MESSAGES/ │ │ ├── django.mo │ │ └── django.po │ ├── management/ │ │ ├── __init__.py │ │ └── commands/ │ │ ├── __init__.py │ │ ├── plcache.py │ │ ├── plcreatesize.py │ │ └── plflush.py │ ├── managers.py │ ├── migrations/ │ │ ├── 0001_initial.py │ │ ├── 0002_photosize_data.py │ │ ├── 0003_auto_20140822_1716.py │ │ ├── 0004_auto_20140915_1259.py │ │ ├── 0005_auto_20141027_1552.py │ │ ├── 0006_auto_20141028_2005.py │ │ ├── 0007_auto_20150404_1737.py │ │ ├── 0008_auto_20150509_1557.py │ │ ├── 0009_auto_20160102_0904.py │ │ ├── 0010_auto_20160105_1307.py │ │ ├── 0011_auto_20190223_2138.py │ │ ├── 0012_alter_photo_effect.py │ │ ├── 0013_alter_watermark_image.py │ │ └── __init__.py │ ├── models.py │ ├── sitemaps.py │ ├── templates/ │ │ ├── admin/ │ │ │ └── photologue/ │ │ │ └── photo/ │ │ │ ├── change_list.html │ │ │ └── upload_zip.html │ │ └── photologue/ │ │ ├── gallery_archive.html │ │ ├── gallery_archive_day.html │ │ ├── gallery_archive_month.html │ │ ├── gallery_archive_year.html │ │ ├── gallery_detail.html │ │ ├── gallery_list.html │ │ ├── includes/ │ │ │ ├── gallery_sample.html │ │ │ └── paginator.html │ │ ├── photo_archive.html │ │ ├── photo_archive_day.html │ │ ├── photo_archive_month.html │ │ ├── photo_archive_year.html │ │ ├── photo_detail.html │ │ ├── photo_list.html │ │ ├── root.html │ │ └── tags/ │ │ ├── next_in_gallery.html │ │ └── prev_in_gallery.html │ ├── templatetags/ │ │ ├── __init__.py │ │ └── photologue_tags.py │ ├── tests/ │ │ ├── __init__.py │ │ ├── factories.py │ │ ├── helpers.py │ │ ├── templates/ │ │ │ └── base.html │ │ ├── test_effect.py │ │ ├── test_gallery.py │ │ ├── test_photo.py │ │ ├── test_photosize.py │ │ ├── test_resize.py │ │ ├── test_sitemap.py │ │ ├── test_sites.py │ │ ├── test_urls.py │ │ ├── test_views_gallery.py │ │ ├── test_views_photo.py │ │ └── test_zipupload.py │ ├── urls.py │ ├── utils/ │ │ ├── __init__.py │ │ ├── reflection.py │ │ └── watermark.py │ └── views.py ├── requirements.txt ├── scripts/ │ ├── __init__.py │ └── releaser_hooks.py ├── setup.cfg ├── setup.py └── tox.ini ================================================ FILE CONTENTS ================================================ ================================================ FILE: .coveragerc ================================================ [run] source = photologue omit = *migrations*, *wsgi*, */tests/* ================================================ FILE: .github/workflows/ci.yml ================================================ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions name: CI on: [ push, pull_request ] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false # If one test fails, complete the other jobs. matrix: python: [ 3.8, 3.9, '3.10', '3.11', '3.12', '3.13' ] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install tox tox-gh-actions working-directory: ./example_project - name: Run tests run: tox - name: Flake8 if: ${{ matrix.python == '3.12' }} run: | pip install flake8 flake8 ./ - name: Isort if: ${{ matrix.python == '3.12' }} uses: jamescurtin/isort-action@master - name: Coverage if: ${{ matrix.python == '3.12' }} run: | pip install coverage[toml] django coverage run ./example_project/manage.py test photologue - name: Upload coverage if: ${{ matrix.python == '3.12' }} uses: codecov/codecov-action@v1 with: name: Python ${{ matrix.python }} ================================================ FILE: .gitignore ================================================ .DS_Store *__pycache__* django_photologue.egg-info build .idea example_project/db.sqlite3 htmlcov .coverage # Tox workfiles .tox/* ================================================ FILE: .isort.cfg ================================================ [settings] extend_skip_glob = photologue/migrations line_length = 119 ================================================ FILE: .readthedocs.yml ================================================ # .readthedocs.yml # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details # Required version: 2 # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py # Optionally build your docs in additional formats such as PDF and ePub formats: - htmlzip # Optionally set the version of Python and requirements required to build your docs python: version: 3.7 install: - requirements: docs/requirements.txt ================================================ FILE: .tx/config ================================================ [main] host = https://www.transifex.com lang_map = sr@latin:sr_Latn, zh-Hans:zh_Hans [django-photologue.core] file_filter = photologue/locale//LC_MESSAGES/django.po source_file = photologue/locale/en_US/LC_MESSAGES/django.po source_lang = en_US type = PO ================================================ FILE: CHANGELOG.txt ================================================ Changelog ========= 3.19 (unreleased) ----------------- - Nothing changed yet. 3.18 (2025-06-01) ----------------- - Checked compatibility with Django 5.1 and 5.2. - Dropped Django 3.2 and 4.1. 3.17 (2023-10-25) ----------------- - Fixed Python 3.11 bug (#226) (contributed by emirisman). 3.16 (2023-07-28) ----------------- - Split out zip upload functionality into a separate function (#222) (contributed by lausek). - Do not allow JS injection into the Photo caption field (#223) (bug detected by Domiee13). - Fixed deprecation warnings from Pillow. Should fix #225. - Handle when PHOTOLOGUE_DIR is not a string. Should fix #224. - Checked compatibility with Django 4.1 and 4.2. - Dropped Django 2.2 and 4.0. Dropped Python 3.7. - Note: not testing against Python 3.11 as I do not have it installed. 3.15.1 (2022-02-23) ------------------- - Django 4.0 adds a no-op migration (#221) (reported by rhbvkleef). 3.15 (2022-02-05) ----------------- - Made compatible with Django 4.0 (#220) (contributed by Martijn Verkleij). - Updated French translation (#219) (contributed by Alexandre Iooss). 3.14 (2021-10-03) ----------------- - Updated the sample templates to use Bootstrap 5 (previously used Bootstrap 3). - Checked compatibility with Django 3.2. - Use isort to tidy the Python imports. 3.13 (2020-09-03) ----------------- - Checked compatibility with Django 3.1. - Apply crop/effect changes to existing images (#210). - Encoding objects before hashing error (#205). 3.12 (2020-07-30) ----------------- - Drop alpha channel only on jpeg save (contributed by drazen) - Added zh_Hans translation (contributed by Lessica) - improved Dutch translations (contributed by andreas.milants) 3.11 (2019-12-13) ----------------- - Added support for Django 3. - Dropped support for Python 2, python 3.4 and Django 2.1. 3.10 (2019-08-29) ----------------- - Compatibility with Django 2.2. 3.9 (2019-04-21) ---------------- - Fixes when file doesn't exist in the file system but still is in S3. - Doc tweaks - and added a page on how to actually use Photologue! - Make setup compatible with latest version of pip. - Checked compatibility with Django 2.1 and Python 3.7. - Updated translations for Catalan and Basque. - Missed a Django migration (issue #194). - Test Tox; integrate with Travis and Coveralls. - Removed old code (old-style demo templates that have been deprecated since 2014). - Removed old code (old views that have been deprecated since 2014). - Removed all references to PIL (which hasn't been updated since 2009). I think that by now there are no servers left anywhere in the world that still use it :-) 3.8.1 (2017-12-03) ------------------ - Admin thumbnails were not displaying correctly. 3.8 (2017-12-03) ---------------- - Added support for Django 2.0. - Dropped support for Django 1.8 and 1.10. - Did not really work with Django 1.11 - sortedm2m library was broken. Upgraded sortedm2m and it now works with 1.11. - New translation for Ukrainian; updated translation for Spanish. - Fixed template tag that was broken in Django 1.11. 3.7 (2017-05-10) ---------------- - Now works with Django 1.11. Deprecated support for Django 1.9. - Fixed the management commands to work in the latest versions of Django. - Fixed an issue with some photo sizes not being created (see #170). - Updated translations for French and Basque (provided by matthieu.payet and urtzai). 3.6 (2016-10-05) ---------------- - Now works with Django 1.10 (to be precise: Photologue worked, but the unit tests did not). - Updated urlpatterns in docs, tests and example project for Django 1.8+ - Enhance Python 2.7 EXIF info. - Updated docs (contributed by lizwalsh). - Fixed command plcreatesize (contributed by Mikel Larreategi). - Fixed deprecated template settings (contributed by Justin Dugger). - Updated translations for German and Russian. 3.5.1 (2016-01-13) ------------------ - Photologue 3.5 failed to install under Python 2.7. Looks like distutils does not like files with non-ascii filenames (reported in #149). - Fix for issue #149 - bug with projects that extend ImageModel. 3.5 (2016-01-09) ---------------- - Increased length of 'title' fields to 250 chars in order to store longer title. - Rotate image before resize, to comply with height/width constraints (see #145). - Added forgotten migration (#148). - Changing "Photo" image leaves extra files on server (#147). - Normalize filenames to ASCII so they work across all filesystems (#109). - Updated Hungarian translation. 3.4.1 (2015-12-23) ------------------ - Django 1.9 requires latest version of django-sortedm2m. 3.4 (2015-12-23) ---------------- Upgrade notes: - The EXIF property of an Image is now a method instead. - Dropped support for Django 1.7. - Fixed a few minor issues with the unit tests. - Adding a watermark was crashing (fix suggested by hambro). - Added/updated translations: Danish, Slovak (contributed by Rasmus Klett, saboter). - Fixed Django 1.9 Deprecation warnings (contributed by jlemaes). - Processing of EXIF data was broken (and very broken in Python 3) - updated library and bug fixes. 3.3.2 (2015-07-20) ------------------ - Release Photologue as a universal wheel. 3.3.1 (2015-07-20) ------------------ - Upload of 3.3 to Pypi had failed. 3.3 (2015-07-20) ---------------- - In the initial data setup, the 'thumbnail' photosizes should not increment the view count (issue #133). - Fix typo in admin text (issue reported by Transifex user ciastko). - Updated translations: Hungarian, Czech, Dutch. - Zip upload used gallery title instead of "Title" field for photos (#139). - Zip upload: an uploaded photo is not a duplicate of an existing photo simply because they share the same slug. - Updated django-sortedm2m version - this should help admin performance for galleries with lots of photos. 3.2 (2015-05-11) ---------------- - Dropped support for Django 1.6. - Rotation of photos based upon EXIF data if available, so they get displayed correctly (#122). - Misc doc tweaks. - Only clear scale cache if image has changed. - Pagination is now hard-coded to 20 items per page - it's a convenience to have it available as soon as the app is run, but having settings to tweak this value is not needed as it's so easy to override in a Django project. - PHOTOLOGUE_GALLERY_PAGINATE_BY and PHOTOLOGUE_PHOTO_PAGINATE_BY were previously deprecated and have now been removed. - Tagging has been removed from Photologue. - All references to 'title_slug' field have been removed. - Django can now natively chain custom manager filters - so the dependency on django-model-utils is removed. - Updated German translation. - Improved setup file. 3.1.1 (2014-11-13) ------------------ - The 'zip upload' functionality did not work (the required html templates were not included into the released package). - Updated French translation. 3.1 (2014-11-03) ---------------- - The 'zip upload' functionality has been moved to a custom admin page. - Refactor `add_accessor_methods` to be lazily applied (see #110). - Updated German translation. - Several improvements to the sample Bootstrap templates. - Support CACHEDIR.TAG spec issue #89 - Fix issue #99 by adding 10 extra char to photo title(max gallery size up to 999999999 images) - Sitemap.xml was not aware of Sites (#104). - In python 3, gallery upload would crash if uploaded file was not a zip file (#106). 3.0.2 (2014-09-23) ------------------ - Updated django-sortedm2m to an official release. - Updated Spanish translation. - Updated Bootstrap version used in example project. 3.0.1 (2014-09-16) ------------------ - Missed out some templates from the released package. 3.0 (2014-09-15) ---------------- Upgrade notes: WARNING: IF YOU'RE USING POSTGRESQL AS A DATABASE & DJANGO 1.7, THE LATEST RELEASE OF DJANGO-SORTEDM2M HAS A BUG. INSTEAD, YOU'LL HAVE TO MANUALLY INSTALL: pip install -e git://github.com/richardbarran/django-sortedm2m.git@9a609a1c6b790a40a016e4ceadedbb6dd6b92010#egg=sortedm2m THE FOLLOWING CHANGES BREAK BACKWARDS COMPATIBILITY! - Django 1.7 comes with a new migrations framework which replaces South - if you continue to use Django 1.6, you'll need to add new settings. Please refer in the docs to the installation instructions. If you're upgrading to Django 1.7 - upgrade Photologue first, THEN upgrade Django. - The Twitter-Bootstrap templates - previously in 'contrib' - become the default; the previous templates are moved to 'contrib'. - The django-tagging library is no longer maintained by its author. As a consequence, it has been disabled - see the docs for more information (page https://django-photologue.readthedocs.org/en/latest/pages/customising/settings.html#photologue-enable-tags) - Support for Django 1.4 and 1.5 has been dropped (Photologue depends on django-sortedm2m, which has dropped support for 1.4; and Django 1.5 is no longer supported). - PHOTOLOGUE_USE_CKEDITOR has been removed. - Many urls have been renamed; photologue urls now go into their own namespace. See the urls.py file for all the changes. Other changes: - Support for Amazon S3 to store images (thank you Celia Oakley!). - List views have changed urls: instead of /page//, we now have a /?page= pattern. This is a more common style, and allows us to simplify template code e.g. paginators! - date_taken field not correctly handled during single photo upload (#80). - Removed deprecated PhotologueSitemap. - Gallery zip uploads would fail if the title contained unicode characters. - Gallery-uploads: Do not require title for uploading to existing gallery (#98). - The Photologue urls used to use names for months; this has been changed to using numbers, which is better for non-English websites (#101). 2.8.3 (2014-08-28) ------------------ - Updated Spanish translation. 2.8.2 (2014-07-26) ------------------ - The latest release of django-sortedm2m is not compatible with older versions of Django, so don't use it (issue #92). 2.8.1 (2014-07-26) ------------------ - Fixed issue #94 (problem with i18n plural forms). - Updated Slovak translation. 2.8 (2014-05-04) ---------------- Upgrade notes: 1. Photologue now depends on django-sortedm2m and django-model-utils - please refer to installation instructions. These dependencies should be added automatically. 2. Run South migrations. List of changes: - Photo and Gallery models now support Django's sites framework. - Photologue now uses django-sortedm2m to sort photos in a gallery. - Major rewrite of zip archive uploader: warn users of files that could not be processed, get code to work with Python 3 (issue #71), add extra error handling. - Renamed field title_slug to slug - this allows us to simplify views.py a bit. - PHOTOLOGUE_USE_CKEDITOR, PHOTOLOGUE_GALLERY_PAGINATE_BY and PHOTOLOGUE_PHOTO_PAGINATE_BY are deprecated. - Fixed pagination controls for photo list template. - Tightened naming rules for Photosize names. - Fixed a couple of unicode-related bugs. - Added to the documentation pages describing how to customise the admin and the views. - Refactored slightly views.py. - Started work on chainable querysets. 2.7 (2013-10-27) ---------------- Upgrade notes: 1. All settings are now prefixed with ``PHOTOLOGUE_``. Please check that you are not affected by this. List of changes: - Fixed issue #56, Gallery pagination is broken. - Photologue now works with Python 3. - Added a set of templates that work well with Twitter-Bootstrap 3, and used them for the 'example_project'. - Fixed issue #64 (allow installation without installing Pillow). - Optional use of CKEditor. - Updated/new translations for Polish, Slovak and German. - Bugfix: allow viewing latest galleries/latest photos pages even if they are empty. - Started using factory-boy - makes unit tests a bit easier to read. - Added settings to customise pagination count on list pages. - Documented all settings. - All settings are now prefixed with ``PHOTOLOGUE_``. 2.6.1 (2013-05-19) ------------------ List of changes: - Fixed broken packaging in release 2.6. 2.6 (2013-05-19) ---------------- Upgrade notes: 1. Photologue now relies on Pillow instead of PIL. The easiest way to upgrade is to remove PIL completely, then install the new version of Photologue. 2. Photologue, in line with Django itself, has dropped support for Django 1.3. List of changes: - Switched from PIL to Pillow - hopefully this should make installation easier. - Initial setup of data: removed plinit and replaced it with a South data migration. - Added feature to allow extending the built-in templates (and documented it!). - Allow editing of Photo added date (temp way of sorting photos). - Added an example project to help people wanting to contribute to the project. - Fixed buggy Travis CI script. - fixed issue #52, transactions in migration - fixed issue #51, uniqueness collisions in migration - Accessing the root url (usually /photologue/ will now redirect you to the gallery list view. - Photologue requires min. Django 1.4. - Tidied a data validator on PhotoSizes. 2.5 (2012-12-13) ---------------- - added a sitemap.xml. - added some templatetags. - started using Sphinx for managing documentation. - started using Transifex for managing translations. - started using Travis CI. - added 12 new translations and improved some of the existing translations. - fixed issue #29 (quote URL of resized image properly). - misc improvements to clarity of unit tests. - added Django 1.4 timezone support. 2.4 (2012-08-13) ---------------- Upgrade notes: 1. Starting with this version, Photologue uses South to manage the database schema. If you are upgrading an existing Photologue installation, please follow the South instructions at: http://south.readthedocs.org/en/latest/convertinganapp.html#converting-other-installations-and-servers 2. Photologue has dropped support for Django 1.2. List of changes: - use South to manage schema changes. - updated installation instructions. - fixed issue #9 (In Django 1.3, FileField no longer deletes files). - switched from function-based generic views to class-based views. - fixed PendingDeprecationWarnings seen when running Django 1.3 - this will make the move to Django 1.5 easier. - added unit tests. - fixed bug where GALLERY_SAMPLE_SIZE setting was not being used. - fixed issue #11 (GalleryUpload with len(title) > 50 causes a crash). - fixed issue #10 (Increase the size of the name field for photosize). ================================================ FILE: CONTRIBUTORS.txt ================================================ Photologue is made possible by all the people who have contributed to it. A non-exhaustive list follows: Justin Driscoll Richard Barran Marcos Daniel Petry Jannis martijnverkleij hedleyroos Celia Oakley Jonas Haag drazen Jasper Maes Krilivye Jakub Dorňák Andrew Gerard Karol Majta Urtzi Odriozola Alexey Vasilyev kdeebee lausek Alexandre Iooss Alasdair Nicol lizwalsh Steffen Goertz Baptiste Mispelon FilippoIOVINE ferhat elmas Benjamin Liles Emir Isman Adam Piskorek r0668522 i_82 Steve Wills Timothy Hobbs Chris Frisina nickledave cblignaut Justin Dugger Mikel Larreategi wf94 Guilhem Saurel saboter Mathieu Hinderyckx Thomas Güttler Tomas Babej Martin Sabo python-consulting jscott1971 Vivek Agarwal Ben Spaulding Reavis Sutphin-Gray Herman Schaaf Antti Kaihola Federico Maggi cubells AduchiMergen abc Def ================================================ FILE: LICENSE.txt ================================================ Copyright (c) 2007-2025, Justin C. Driscoll and all the people named in CONTRIBUTORS.txt. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of django-photologue nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================ FILE: MANIFEST.in ================================================ include CHANGELOG.txt include CONTRIBUTORS.txt include LICENSE.txt include requirements.txt recursive-include photologue/locale * recursive-include photologue/res *.jpg recursive-include photologue/res/zips *.zip recursive-include photologue/templates *.html recursive-include photologue/contrib * recursive-exclude * *.py[co] recursive-exclude * __pycache__ exclude photologue/res/test_unicode*.jpg exclude example_project recursive-exclude example_project * exclude tox.ini ================================================ FILE: README.rst ================================================ Django-photologue ================= .. image:: https://img.shields.io/pypi/v/django-photologue.svg :target: https://pypi.python.org/pypi/django-photologue/ :alt: Latest PyPI version .. image:: https://github.com/richardbarran/django-photologue/workflows/CI/badge.svg?branch=master :target: https://github.com/richardbarran/django-photologue/actions?workflow=CI :alt: CI Status .. image:: https://codecov.io/github/richardbarran/django-photologue/coverage.svg?branch=master :target: https://codecov.io/github/richardbarran/django-photologue?branch=master A powerful image management and gallery application for the Django web framework. Upload photos, group them into galleries, apply effects such as watermarks. Project status -------------- Message from the current maintainer: I no longer need django-photologue for my own projects, so I've stopped working on it. I will occasionally update it to run with current Django releases, but that's all. Any help in running this project is welcome. Take a closer look ------------------ - We have a `demo website `_. - We also have some `examples of sites using Photologue `_ on the wiki. Documentation ------------- Please head over to our `online documentation at ReadTheDocs `_ for instructions on installing and configuring this application. Amazon S3 --------- S3 also works with the standard BOTO package. Support ------- If you have any questions or need help with any aspect of Photologue then please `join our mailing list `_. ================================================ FILE: SECURITY.md ================================================ # Security Policy ## Supported Versions Please note that in the case of a security issue being reported, only the latest release will be fixed. Users of earlier releases of Photologue can of course patch the version that they use and open an MR - it will be reviewed and a micro-release published. ## Reporting a Vulnerability Please report vulnerabilities via the contact form at the personal website of the main project contributor: https://arbee.design/en-gb/contact/ ================================================ FILE: docs/.gitignore ================================================ _build ================================================ FILE: docs/Makefile ================================================ # Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " text to make text files" @echo " man to make manual pages" @echo " texinfo to make Texinfo files" @echo " info to make Texinfo files and run them through makeinfo" @echo " gettext to make PO message catalogs" @echo " changes to make an overview of all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: -rm -rf $(BUILDDIR)/* html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." singlehtml: $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml @echo @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." pickle: $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle @echo @echo "Build finished; now you can process the pickle files." json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json @echo @echo "Build finished; now you can process the JSON files." htmlhelp: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp @echo @echo "Build finished; now you can run HTML Help Workshop with the" \ ".hhp project file in $(BUILDDIR)/htmlhelp." qthelp: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/django-photologue.qhcp" @echo "To view the help file:" @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/django-photologue.qhc" devhelp: $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp @echo @echo "Build finished." @echo "To view the help file:" @echo "# mkdir -p $$HOME/.local/share/devhelp/django-photologue" @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/django-photologue" @echo "# devhelp" epub: $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make' in that directory to run these through (pdf)latex" \ "(use \`make latexpdf' here to do that automatically)." latexpdf: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo "Running LaTeX files through pdflatex..." $(MAKE) -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." text: $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text @echo @echo "Build finished. The text files are in $(BUILDDIR)/text." man: $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man @echo @echo "Build finished. The manual pages are in $(BUILDDIR)/man." texinfo: $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo @echo @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." @echo "Run \`make' in that directory to run these through makeinfo" \ "(use \`make info' here to do that automatically)." info: $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo @echo "Running Texinfo files through makeinfo..." make -C $(BUILDDIR)/texinfo info @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." gettext: $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale @echo @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes @echo @echo "The overview file is in $(BUILDDIR)/changes." linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in $(BUILDDIR)/linkcheck/output.txt." doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." ================================================ FILE: docs/conf.py ================================================ # # django-photologue documentation build configuration file, created by # sphinx-quickstart on Mon Sep 3 16:31:44 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import datetime import os import sys import django # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) sys.path.append('../example_project/') os.environ['DJANGO_SETTINGS_MODULE'] = 'example_project.settings' django.setup() # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = 'django-photologue' copyright = f'{datetime.datetime.now().year}, Justin Driscoll/Richard Barran' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # Dynamically get the version number from the photologue package. parent_dir = os.path.join(os.path.dirname(__file__), '..') sys.path.append(parent_dir) import photologue # The short X.Y version. version = '.'.join(photologue.__version__.split('.')[:1]) # The full version, including alpha/beta/rc tags. release = photologue.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". #html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_domain_indices = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. #html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'django-photologuedoc' # -- Options for LaTeX output -------------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). #'pointsize': '10pt', # Additional stuff for the LaTeX preamble. #'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'django-photologue.tex', 'django-photologue Documentation', 'Justin Driscoll/Richard Barran', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. #latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. #latex_use_parts = False # If true, show page references after internal links. #latex_show_pagerefs = False # If true, show URL addresses after external links. #latex_show_urls = False # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_domain_indices = True # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'django-photologue', 'django-photologue Documentation', ['Justin Driscoll/Richard Barran'], 1) ] # If true, show URL addresses after external links. #man_show_urls = False # -- Options for Texinfo output ------------------------------------------------ # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'django-photologue', 'django-photologue Documentation', 'Justin Driscoll/Richard Barran', 'django-photologue', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. #texinfo_appendices = [] # If false, no module index is generated. #texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' ================================================ FILE: docs/index.rst ================================================ .. django-photologue documentation master file, created by sphinx-quickstart on Mon Sep 3 16:31:44 2012. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to django-photologue's documentation! ============================================= .. include:: ../README.rst :start-line: 0 :end-line: 25 .. include:: ../README.rst :start-line: 31 :end-line: 46 Contents: ========= .. toctree:: :maxdepth: 2 pages/installation pages/usage pages/customising/templates pages/customising/settings pages/customising/admin pages/customising/views pages/customising/models pages/contributing pages/changelog_page Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` ================================================ FILE: docs/make.bat ================================================ @ECHO OFF REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set BUILDDIR=_build set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . set I18NSPHINXOPTS=%SPHINXOPTS% . if NOT "%PAPER%" == "" ( set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% ) if "%1" == "" goto help if "%1" == "help" ( :help echo.Please use `make ^` where ^ is one of echo. html to make standalone HTML files echo. dirhtml to make HTML files named index.html in directories echo. singlehtml to make a single large HTML file echo. pickle to make pickle files echo. json to make JSON files echo. htmlhelp to make HTML files and a HTML help project echo. qthelp to make HTML files and a qthelp project echo. devhelp to make HTML files and a Devhelp project echo. epub to make an epub echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter echo. text to make text files echo. man to make manual pages echo. texinfo to make Texinfo files echo. gettext to make PO message catalogs echo. changes to make an overview over all changed/added/deprecated items echo. linkcheck to check all external links for integrity echo. doctest to run all doctests embedded in the documentation if enabled goto end ) if "%1" == "clean" ( for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i del /q /s %BUILDDIR%\* goto end ) if "%1" == "html" ( %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html if errorlevel 1 exit /b 1 echo. echo.Build finished. The HTML pages are in %BUILDDIR%/html. goto end ) if "%1" == "dirhtml" ( %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml if errorlevel 1 exit /b 1 echo. echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. goto end ) if "%1" == "singlehtml" ( %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml if errorlevel 1 exit /b 1 echo. echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. goto end ) if "%1" == "pickle" ( %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can process the pickle files. goto end ) if "%1" == "json" ( %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can process the JSON files. goto end ) if "%1" == "htmlhelp" ( %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can run HTML Help Workshop with the ^ .hhp project file in %BUILDDIR%/htmlhelp. goto end ) if "%1" == "qthelp" ( %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp if errorlevel 1 exit /b 1 echo. echo.Build finished; now you can run "qcollectiongenerator" with the ^ .qhcp project file in %BUILDDIR%/qthelp, like this: echo.^> qcollectiongenerator %BUILDDIR%\qthelp\django-photologue.qhcp echo.To view the help file: echo.^> assistant -collectionFile %BUILDDIR%\qthelp\django-photologue.ghc goto end ) if "%1" == "devhelp" ( %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp if errorlevel 1 exit /b 1 echo. echo.Build finished. goto end ) if "%1" == "epub" ( %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub if errorlevel 1 exit /b 1 echo. echo.Build finished. The epub file is in %BUILDDIR%/epub. goto end ) if "%1" == "latex" ( %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex if errorlevel 1 exit /b 1 echo. echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. goto end ) if "%1" == "text" ( %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text if errorlevel 1 exit /b 1 echo. echo.Build finished. The text files are in %BUILDDIR%/text. goto end ) if "%1" == "man" ( %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man if errorlevel 1 exit /b 1 echo. echo.Build finished. The manual pages are in %BUILDDIR%/man. goto end ) if "%1" == "texinfo" ( %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo if errorlevel 1 exit /b 1 echo. echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. goto end ) if "%1" == "gettext" ( %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale if errorlevel 1 exit /b 1 echo. echo.Build finished. The message catalogs are in %BUILDDIR%/locale. goto end ) if "%1" == "changes" ( %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes if errorlevel 1 exit /b 1 echo. echo.The overview file is in %BUILDDIR%/changes. goto end ) if "%1" == "linkcheck" ( %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck if errorlevel 1 exit /b 1 echo. echo.Link check complete; look for any errors in the above output ^ or in %BUILDDIR%/linkcheck/output.txt. goto end ) if "%1" == "doctest" ( %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest if errorlevel 1 exit /b 1 echo. echo.Testing of doctests in the sources finished, look at the ^ results in %BUILDDIR%/doctest/output.txt. goto end ) :end ================================================ FILE: docs/pages/changelog_page.rst ================================================ .. We want the CHANGELOG to also appear in the docs but we don't want to break the DRY principle. So we simply include the CHANGELOG from the base directory. .. include:: ../../CHANGELOG.txt ================================================ FILE: docs/pages/contributing.rst ================================================ ########################## Contributing to Photologue ########################## Contributions are always very welcome. Even if you have never contributed to an open-source project before - please do not hesitate to offer help. Fixes for typos in the documentation, extra unit tests, etc... are welcome. And look in the issues list for anything tagged "easy_win". Example project --------------- Photologue includes an example project under ``/example_project/`` to get you quickly ready for contributing to the project - do not hesitate to use it! Please refer to ``/example_project/README.rst`` for installation instructions. You'll probably also want to manually install `Sphinx `_ if you're going to update the documentation. Workflow -------- Photologue is hosted on Github, so if you have not already done so, read the excellent `Github help pages `_. We try to keep the workflow as simple as possible; most pull requests are merged straight into the master branch. Please ensure your pull requests are on separate branches, and please try to only include one new feature per pull request! Features that will take a while to develop might warrant a separate branch in the project; at present only the ImageKit integration project is run on a separate branch. Coding style ------------ No surprises here - just try to `follow the conventions used by Django itself `_. Unit tests ---------- Including unit tests with your contributions will earn you bonus points, maybe even a beer. So write plenty of tests, and run them from the ``/example_project/`` with a ``python manage.py test photologue``. There's also a `Tox `_ configuration file - so if you have tox installed, run ``tox`` from the ``/example_project/`` folder, and it will run the entire test suite against all versions of Python and Django that are supported. Documentation ------------- Keeping the documentation up-to-date is very important - so if your code changes how Photologue works, or adds a new feature, please check that the documentation is still accurate, and update it if required. We use `Sphinx `_ to prepare the documentation; please refer to the excellent docs on that site for help. .. note:: The CHANGELOG is part of the documentation, so if your patch needs the end user to do something - e.g. run a database migration - don't forget to update it! Translations ------------ `Photologue manages string translations with Transifex `_. The easiest way to help is to add new/updated translations there. Once you've added translations, give the maintainer a wave and he will pull the updated translations into the master branch, so that you can install Photologue directly from the Github repository (see :ref:`installing-photologue-label`) and use your translations straight away. Or you can do nothing - just before a release any new/updated translations get pulled from Transifex and added to the Photologue project. New features ------------ In the wiki there is a `wishlist of new features already planned for Photologue `_ - you are welcome to suggest other useful improvements. If you’re interested in developing a new feature, it is recommended that you first discuss it on the `mailing list `_ or open a new ticket in Github, in order to avoid working on a feature that will not get accepted as it is judged to not fit in with the goals of Photologue. A bit of history ~~~~~~~~~~~~~~~~ Photologue was started by Justin Driscoll in 2007. He quickly built it into a powerful photo gallery and image processing application, and it became successful. Justin then moved onto other projects, and no longer had the time required to maintain Photologue - there was only one commit between August 2009 and August 2012, and approximately 70 open tickets on the Google Code project page. At this point Richard Barran took over as maintainer of the project. First priority was to improve the infrastructure of the project: moving to Github, adding South, Sphinx for documentation, Transifex for translations, Travis for continuous integration, zest.releaser. The codebase has not changed much so far - and it needs quite a bit of TLC (Tender Loving Care), and new features are waiting to be added. This is where you step in... And finally... -------------- Please remember that the maintainer looks after Photologue in his spare time - so it might be a few weeks before your pull request gets looked at... and the pull requests that are nicely formatted, with code, tests and docs included, will always get reviewed first ;-) ================================================ FILE: docs/pages/customising/admin.rst ================================================ .. _customisation-admin-label: #################### Customisation: Admin #################### The Photologue admin can easily be customised to your project's requirements. The technique described on this page is not specific to Photologue - it can be applied to any 3rd party library. Create a customisation application ---------------------------------- For clarity, it's best to put our customisation code in a new application; let's call it ``photologue_custom``; create the application and add it to your ``INSTALLED_APPS`` setting. Changing the admin ------------------ In the new ``photologue_custom`` application, create a new empty ``admin.py`` file. In this file we can replace the admin configuration supplied by Photologue, with a configuration specific to your project. For example: .. code-block:: python from django import forms from django.contrib import admin from photologue.admin import GalleryAdmin as GalleryAdminDefault from photologue.models import Gallery class GalleryAdminForm(forms.ModelForm): """Users never need to enter a description on a gallery.""" class Meta: model = Gallery exclude = ['description'] class GalleryAdmin(GalleryAdminDefault): form = GalleryAdminForm admin.site.unregister(Gallery) admin.site.register(Gallery, GalleryAdmin) This snippet will define a new Gallery admin class based on Photologue's own. The only change we make is to exclude the ``description`` field from the change form. We then unregister the default admin for the Gallery model and replace it with our new class. Possible uses ------------- The technique outlined above can be used to make many changes to the admin; here are a couple of suggestions. Custom rich text editors ~~~~~~~~~~~~~~~~~~~~~~~~ The description field on the Gallery model (and the caption field on the Photo model) are plain text fields. With the above technique, it's easy to use a rich text editor to manage these fields in the admin. For example, if you have `django-ckeditor `_ installed: .. code-block:: python from django import forms from django.contrib import admin from ckeditor.widgets import CKEditorWidget from photologue.admin import GalleryAdmin as GalleryAdminDefault from photologue.models import Gallery class GalleryAdminForm(forms.ModelForm): """Replace the default description field, with one that uses a custom widget.""" description = forms.CharField(widget=CKEditorWidget()) class Meta: model = Gallery exclude = [''] class GalleryAdmin(GalleryAdminDefault): form = GalleryAdminForm admin.site.unregister(Gallery) admin.site.register(Gallery, GalleryAdmin) ================================================ FILE: docs/pages/customising/models.rst ================================================ .. _customising-models-label: ##################### Customisation: Models ##################### The photologue models can be extended to better suit your project. The technique described on this page is not specific to Photologue - it can be applied to any 3rd party library. The models within Photologue cannot be directly modified (unlike, for example, Django's own User model). There are a number of reasons behind this decision, including: - If code within a project modifies directly the Photologue models' fields, it leaves the Photologue schema migrations in an ambiguous state. - Likewise, model methods can no longer be trusted to behave as intended (as fields on which they depend may have been overridden). However, it's easy to create new models linked by one-to-one relationships to Photologue's own ``Gallery`` and ``Photo`` models. On this page we will show how you can add tags to the ``Gallery`` model. For this we will use the popular 3rd party application `django-taggit `_. .. note:: The ``Gallery`` and ``Photo`` models currently have tag fields, however these are based on the abandonware `django-tagging `_ application. Instead, tagging is being entirely removed from Photologue, as it is a non-core functionality of a gallery application, and is easy to add back in - as this page shows! Create a customisation application ---------------------------------- For clarity, it's best to put our customisation code in a new application; let's call it ``photologue_custom``; create the application and add it to your ``INSTALLED_APPS`` setting. Extending --------- Within the ``photologue_custom`` application, we will edit 2 files: Models.py ~~~~~~~~~ .. code-block:: python from django.db import models from taggit.managers import TaggableManager from photologue.models import Gallery class GalleryExtended(models.Model): # Link back to Photologue's Gallery model. gallery = models.OneToOneField(Gallery, related_name='extended') # This is the important bit - where we add in the tags. tags = TaggableManager(blank=True) # Boilerplate code to make a prettier display in the admin interface. class Meta: verbose_name = u'Extra fields' verbose_name_plural = u'Extra fields' def __str__(self): return self.gallery.title Admin.py ~~~~~~~~ .. code-block:: python from django.contrib import admin from photologue.admin import GalleryAdmin as GalleryAdminDefault from photologue.models import Gallery from .models import GalleryExtended class GalleryExtendedInline(admin.StackedInline): model = GalleryExtended can_delete = False class GalleryAdmin(GalleryAdminDefault): """Define our new one-to-one model as an inline of Photologue's Gallery model.""" inlines = [GalleryExtendedInline, ] admin.site.unregister(Gallery) admin.site.register(Gallery, GalleryAdmin) The above code is enough to start entering tags in the admin interface. To use/display them in the front end, you will also need to override Photologue's own templates - as the templates are likely to be heavily customised for your specific project, an example is not included here. ================================================ FILE: docs/pages/customising/settings.rst ================================================ ####################### Customisation: Settings ####################### Photologue has several settings to customise behaviour. PHOTOLOGUE_GALLERY_LATEST_LIMIT ------------------------------- Default: ``None`` Default limit for gallery.latest PHOTOLOGUE_GALLERY_SAMPLE_SIZE ------------------------------ Default: ``5`` Number of random images from the gallery to display. PHOTOLOGUE_IMAGE_FIELD_MAX_LENGTH --------------------------------- Default: ``100`` max_length setting for the ImageModel ImageField PHOTOLOGUE_SAMPLE_IMAGE_PATH ---------------------------- Default: ``os.path.join(os.path.dirname(__file__), 'res', 'sample.jpg'))`` Path to sample image PHOTOLOGUE_MAXBLOCK ------------------- Default: ``256 * 2 ** 10`` Modify image file buffer size. PHOTOLOGUE_DIR -------------- Default: ``'photologue'`` The relative path from your ``MEDIA_ROOT`` setting where Photologue will save image files. If your ``MEDIA_ROOT`` is set to "/home/user/media", photologue will upload your images to "/home/user/media/photologue" PHOTOLOGUE_PATH --------------- Default: ``None`` Look for user function to define file paths. Specifies a "callable" that takes a model instance and the original uploaded filename and returns a relative path from your ``MEDIA_ROOT`` that the file will be saved. This function can be set directly. For example you could use the following code in a util module:: # myapp/utils.py: import os def get_image_path(instance, filename): return os.path.join('path', 'to', 'my', 'files', filename) Then set in settings:: # settings.py: from utils import get_image_path PHOTOLOGUE_PATH = get_image_path Or instead, pass a string path:: # settings.py: PHOTOLOGUE_PATH = 'myapp.utils.get_image_path' .. _settings-photologue-multisite-label: PHOTOLOGUE_MULTISITE -------------------- Default: ``False`` Photologue can integrate galleries and photos with `Django's site framework`_. The default is for this feature to be switched off, and new galleries and photos to be automatically linked to the current site (``SITE_ID = 1``). The Sites many-to-many field is hidden is the admin, as there is no need for a user to see it. If the setting is ``True``, the admin interface is slightly changed: * The Sites many-to-many field is displayed on Gallery and Photos models. * The Gallery Upload allows you to associate one more sites to the uploaded photos (and gallery). .. note:: Gallery Uploads (zip archives) are always associated with the current site. Pull requests to fix this would be welcome! .. _Django's site framework: http://django.readthedocs.org/en/latest/ref/contrib/sites.html ================================================ FILE: docs/pages/customising/templates.rst ================================================ ################################## Customisation: extending templates ################################## Photologue comes with a set of basic templates to get you started quickly - you can of course replace them with your own. That said, it is possible to extend the basic templates in your own project and override various blocks, for example to add css classes. Often this will be enough. The trick to extending the templates is not special to Photologue, it's used in other projects such as `Oscar `_. First, set up your template configuration as so: .. code-block:: python # for Django versions < 1.8 TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ) from photologue import PHOTOLOGUE_APP_DIR TEMPLATE_DIRS = ( ...other template folders..., PHOTOLOGUE_APP_DIR ) # for Django versions >= 1.8 TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], # note: if you set APP_DIRS to True, you won't need to add 'loaders' under OPTIONS # proceeding as if APP_DIRS is False 'APP_DIRS': False, 'OPTIONS': { 'context_processors': [ ... context processors ..., ], # start - please add only if APP_DIRS is False 'loaders': [ 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ], # end - please add only if APP_DIRS is False }, }, ] The ``PHOTOLOGUE_APP_DIR`` points to the directory above Photologue's normal templates directory. This means that ``path/to/photologue/template.html`` can also be reached via ``templates/path/to/photologue/template.html``. For example, to customise ``photologue/gallery_list.html``, you can have an implementation like: .. code-block:: html+django # Create your own photologue/gallery_list.html {% extends "templates/photologue/gallery_list.html" %} ... we are now extending the built-in gallery_list.html and we can override the content blocks that we want to customise ... ================================================ FILE: docs/pages/customising/views.rst ================================================ .. _customisation-views-label: ############################# Customisation: Views and Urls ############################# The photologue views and urls can be tweaked to better suit your project. The technique described on this page is not specific to Photologue - it can be applied to any 3rd party library. Create a customisation application ---------------------------------- For clarity, it's best to put our customisation code in a new application; let's call it ``photologue_custom``; create the application and add it to your ``INSTALLED_APPS`` setting. We will also want to customise urls: 1. Create a urls.py that will contain our customised urls: .. code-block:: python from django.conf.urls import * urlpatterns = [ # Nothing to see here... for now. ] 2. These custom urls will override the main Photologue urls, so place them just before Photologue in the project's main urls.py file: .. code-block:: python ... other code (r'^photologue/', include('photologue_custom.urls')), url(r'^photologue/', include('photologue.urls', namespace='photologue')), ... other code Now we're ready to make some changes. Changing pagination from our new urls.py ---------------------------------------- The list pages of Photologue (both Gallery and Photo) display 20 objects per page. Let's change this value. Edit our new urls.py file, and add: .. code-block:: python from django.conf.urls import * from photologue.views import GalleryListView urlpatterns = [ url(r'^gallerylist/$', GalleryListView.as_view(paginate_by=5), name='photologue_custom-gallery-list'), ] We've copied the urlpattern for `the gallery list view from Photologue itself `_, and changed it slightly by passing in ``paginate_by=5``. And that's it - now when that page is requested, our customised urls.py will be called first, with pagination set to 5 items. Values that can be overridden from urls.py ------------------------------------------ GalleryListView ~~~~~~~~~~~~~~~ * paginate_by: number of items to display per page. PhotoListView ~~~~~~~~~~~~~ * paginate_by: number of items to display per page. Changing views.py to create a RESTful api ----------------------------------------- More substantial customisation can be carried out by writing custom views. For example, it's easy to change a Photologue view to return JSON objects rather than html webpages. For this quick demo, we'll use the `django-braces library `_ to override the view returning a list of all photos. Add the following code to views.py in ``photologue_custom``: .. code-block:: python from photologue.views import PhotoListView from braces.views import JSONResponseMixin class PhotoJSONListView(JSONResponseMixin, PhotoListView): def render_to_response(self, context, **response_kwargs): return self.render_json_object_response(context['object_list'], **response_kwargs) And call this new view from urls.py; here we are replacing the standard Photo list page provided by Photologue: .. code-block:: python from .views import PhotoJSONListView urlpatterns = [ # Other urls... url(r'^photolist/$', PhotoJSONListView.as_view(), name='photologue_custom-photo-json-list'), # Other urls as required... ] And that's it! Of course, this is simply a demo and a real RESTful api would be rather more complex. ================================================ FILE: docs/pages/installation.rst ================================================ ############################ Installation & configuration ############################ .. _installing-photologue-label: Installation ------------ The easiest way to install Photologue is with `pip `_; this will give you the latest version available on `PyPi `_:: pip install django-photologue You can also take risks and install the latest code directly from the Github repository:: pip install -e git+https://github.com/richardbarran/django-photologue.git#egg=django-photologue This code should work ok - like `Django `_ itself, we try to keep the master branch bug-free. However, we strongly recommend that you stick with a release from the PyPi repository, unless if you're confident in your abilities to fix any potential bugs on your own! Python 3 ~~~~~~~~ Photologue is compatible with Python 3 (3.3 or later). Dependencies ------------ 3 apps that will be installed automatically if required. * `Django `_. * `Pillow `_. * `Django-sortedm2m `_. And 1 dependency that you will have to manage yourself: * `Pytz `_. See the Django release notes `for more information `_. .. note:: Photologue tries to support the same Django version as are supported by the Django project itself. That troublesome Pillow... ~~~~~~~~~~~~~~~~~~~~~~~~~~ Pillow can be tricky to install; sometimes it will install smoothly out of the box, sometimes you can spend hours figuring it out - installation issues vary from platform to platform, and from one OS release to the next, so listing them all here would not be realistic. Google is your friend! #. Pillow is a fork of PIL; you should not have installed both - this can cause strange bugs. #. Sometimes Pillow will install... but is not actually installed. This 'undocumented feature' has been reported by a user on Windows. If you can't get Photologue to display any images, check that you can actually import Pillow:: $ python manage.py shell Python 3.3.1 (default, Sep 25 2013, 19:29:01) [GCC 4.7.3] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from PIL import Image >>> Configure Your Django Settings file ----------------------------------- Follow these 4 steps: #. Add to your ``INSTALLED_APPS`` setting:: INSTALLED_APPS = ( # ...other installed applications... 'photologue', 'sortedm2m', ) #. Confirm that your `MEDIA_ROOT `_ and `MEDIA_URL `_ settings are correct (Photologue will store uploaded files in a folder called 'photologue' under your ``MEDIA_ROOT``). #. `Enable the admin app `_ if you have not already done so. #. `Enable the Django sites framework `_ if you have not already done so. This is not enabled by default in Django, but is required by Photologue. Add the urls ------------ Add photologue to your projects urls.py file:: urlpatterns += [ ... url(r'^photologue/', include('photologue.urls', namespace='photologue')), ] Sync Your Database ------------------ You can now sync your database:: python manage.py migrate photologue If you are installing Photologue for the first time, this will set up some default PhotoSizes to get you started - you are free to change them of course! Instant templates ----------------- Photologue comes with basic templates for galleries and photos, which are designed to work well with `Twitter-Bootstrap `_. You can of course use them, or override them, or completely replace them. Note that all Photologue templates inherit from ``photologue/root.html``, which itself expects your site's base template to be called ``base.html`` - you can change this to use a different base template. Sitemap ------- .. automodule:: photologue.sitemaps Sites ----- Photologue supports `Django's site framework`_ since version 2.8. That means that each Gallery and each Photo can be displayed on one or more sites. Please bear in mind that photos don't necessarily have to be assigned to the same sites as the gallery they're belonging to: each gallery will only display the photos that are on its site. When a gallery does not belong the current site but a single photo is, that photo is only accessible directly as the gallery won't be shown in the index. .. note:: If you're upgrading from a version earlier than 2.8 you don't need to worry about the assignment of already existing objects to a site because a datamigration will assign all your objects to the current site automatically. .. note:: This feature is switched off by default. :ref:`See here to enable it ` and for more information. .. _Django's site framework: http://django.readthedocs.org/en/latest/ref/contrib/sites.html Amazon S3 --------- Photologue can use a custom file storage system, for example `Amazon's S3 `_. You will need to configure your Django project to use Amazon S3 for storing files; a full discussion of how to do this is outside the scope of this page. However, there is a quick demo of using Photologue with S3 in the ``example_project`` directory; if you look at these files: * ``example_project/example_project/settings.py`` * ``example_project/requirements.txt`` At the end of each file you will commented-out lines for configuring S3 functionality. These point to extra files stored under ``example_project/example_storages/``. Uncomment these lines, run the example project, then study these files for inspiration! After that, setting up S3 will consist of (at minimum) the following steps: #. Signup for Amazon AWS S3 at http://aws.amazon.com/s3/. #. Create a Bucket on S3 to store your media and static files. #. Set the environment variables: * ``AWS_ACCESS_KEY_ID`` - issued to your account by S3. * ``AWS_SECRET_ACCESS_KEY`` - issued to your account by S3. * ``AWS_STORAGE_BUCKET_NAME`` - name of your bucket on S3. #. To copy your static files into your S3 Bucket, type ``python manage.py collectstatic`` in the ``example_project`` directory. .. note:: This simple setup does not handle S3 regions. ================================================ FILE: docs/pages/usage.rst ================================================ ##### Usage ##### Now that you've installed Photologue, here are a few suggestions on how to use it: Upload some photos in the admin ------------------------------- The ``Photo`` model in the admin allows you to add new photos to Photologue. You can add photos one by one - and it the top-right corner there is a 'Upload a Zip archive' button that will allow you to upload many photos at once. Define some Photosizes ---------------------- Photologue will create thumbnails of the photos that you upload, and the thumbnails are what is displayed in the public website. By default Photologue comes with a few Photosizes to get you started - feel free to tweak them, or to create new ones. Just note that the ``admin_thumbnail`` size is used by the admin pages, so it's not a good idea to delete it! Built-in pages and templates ---------------------------- If you've followed all the instructions in the installation page, you will have included Photologue's urls at ``/photologue/`` - you can use these, tweak them, or discard them if they do not fit in with your website's requirements. Custom usage ------------ The base of Photologue is the ``Photo`` model. When an instance is created, we automatically add methods to retrieve photos at various photosizes. E.g. if you have an instance of ``Photo`` called ``photo``, then the following methods will have been added automatically:: photo.get_thumbnail_url() photo.get_display_url() photo.get_admin_thumbnail_url() These can be used in a custom template to display a thumbnail, e.g.:: {{ photo.title }} This will display an image, sized to the dimensions specified in the Photosize ``display``, and provide a clickable link to the raw image. Please refer to the example templates for ideas on how to use ``Photo`` and ``Gallery`` instances! Data integrity -------------- Photologue will store 'as-is' any data stored for galleries and photos. You may want to enforce some data integrity rules - e.g. to sanitise any javascript injected into a ``Photo`` ``caption`` field. An easy way to do this would be to add extra processing on a ``post-save`` signal. Photologue does not sanitise data itself as you may legitimately want to store html and javascript in a caption field e.g. if you use a rich-text editor. ================================================ FILE: docs/requirements.txt ================================================ django -r ../requirements.txt ================================================ FILE: example_project/README.rst ================================================ ####################### Photologue Demo Project ####################### About ===== This project serves 3 purposes: - It's a quick demo of django-photologue for people who wish to try it out. - It's an easy way for contributors to the project to have both django-photologue, and a project that uses it. - It's used for Travis CI testing of django-photologue. It uses the Bootstrap-friendly templates that come with Photologue. The rest of the README will assume that you want to set up the test project in order to work on django-photologue itself. Prerequisites ============= - python 3. - virtualenvwrapper makes it easy to manage your virtualenvs. Strongly recommended! Installation ============ **Note**: the project is configured so that it can run immediately with zero configuration (especially of settings files). Create a virtual python environment for the project. The use of virtualenvwrapper is strongly recommended:: mkproject --no-site-packages django-photologue or for more sophisticated setups: mkvirtualenv --no-site-packages django-photologue Clone this code into your project folder:: (cd to the new virtualenv) git clone https://github.com/richardbarran/django-photologue.git . **Note**: if you plan to contribute code back to django-photologue, then you'll probably want instead to fork the project on Github, and clone your fork instead. Install requirements:: cd example_project pip install -r requirements.txt **Note**: this will install Pillow, which is not always straightforward; sometimes it will install smoothly out of the box, sometimes you can spend hours figuring it out - installation issues vary from platform to platform, and from one OS release to the next. Google is your friend here, and it's worth noting that Pillow is a fork of PIL, so googling 'PIL installation ' can also help. The project is set up to run SQLite in dev so that it can be quickly started with no configuration required (you can of course specify another database in the settings file). To setup the database:: ./manage.py migrate Follow the instructions to configure photologue here: `Photologue Docs `_ And finally run the project (it defaults to a safe set of settings for a dev environment):: ./manage.py runserver Open browser to http://127.0.0.1:8000 Thank you ========= This example project is based on the earlier `photologue_demo project `_. This project included contributions and input from: crainbf, tomkingston, bmcorser. .. Note: this README is formatted as reStructuredText so that it's in the same format as the Sphinx docs. ================================================ FILE: example_project/example_project/__init__.py ================================================ ================================================ FILE: example_project/example_project/example_storages/README.txt ================================================ In this folder we keep configuration files for non-default media stores, e.g. Amazon S3. ================================================ FILE: example_project/example_project/example_storages/__init__.py ================================================ ================================================ FILE: example_project/example_project/example_storages/s3_requirements.txt ================================================ boto>=2.29.1 django-storages>=1.1.8 ================================================ FILE: example_project/example_project/example_storages/s3utils.py ================================================ from storages.backends.s3boto import S3BotoStorage StaticS3BotoStorage = lambda: S3BotoStorage(location='static') MediaS3BotoStorage = lambda: S3BotoStorage(location='media') ================================================ FILE: example_project/example_project/example_storages/settings_s3boto.py ================================================ # S3Boto storage settings for photologue example project. import os DEFAULT_FILE_STORAGE = 'example_project.example_storages.s3utils.MediaS3BotoStorage' STATICFILES_STORAGE = 'example_project.example_storages.s3utils.StaticS3BotoStorage' try: # If you want to test the example_project with S3, you'll have to configure the # environment variables as specified below. # (Secret keys are stored in environment variables for security - you don't want to # accidentally commit and push them to a public repository). AWS_ACCESS_KEY_ID = os.environ['AWS_ACCESS_KEY_ID'] AWS_SECRET_ACCESS_KEY = os.environ['AWS_SECRET_ACCESS_KEY'] AWS_STORAGE_BUCKET_NAME = os.environ['AWS_STORAGE_BUCKET_NAME'] except KeyError: raise KeyError('Need to define AWS environment variables: ' 'AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_STORAGE_BUCKET_NAME') # Default Django Storage API behavior - don't overwrite files with same name AWS_S3_FILE_OVERWRITE = False MEDIA_ROOT = '/media/' MEDIA_URL = 'http://%s.s3.amazonaws.com/media/' % AWS_STORAGE_BUCKET_NAME STATIC_ROOT = '/static/' STATIC_URL = 'http://%s.s3.amazonaws.com/static/' % AWS_STORAGE_BUCKET_NAME ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' ================================================ FILE: example_project/example_project/fixtures/.gitdirectory ================================================ Placeholder so that this directory will be added to the git repository. ================================================ FILE: example_project/example_project/settings.py ================================================ # Global settings for photologue example project. import os import sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '=_v6sfp8u2uuhdncdz9t1_nu8(#8q4=40$f$4rorj4q3)f-nlc' DEBUG = True ALLOWED_HOSTS = ['*'] INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # Note: added sitemaps to the INSTALLED_APPS just so that unit tests run, # but not actually added a sitemap in urls.py. 'django.contrib.sitemaps', 'photologue', 'sortedm2m', 'example_project', ) MIDDLEWARE = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) ROOT_URLCONF = 'example_project.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'example_project/templates'), ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', ], 'debug': True, }, }, ] WSGI_APPLICATION = 'example_project.wsgi.application' # Database # https://docs.djangoproject.com/en/1.8/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Internationalization # https://docs.djangoproject.com/en/1.8/topics/i18n/ LANGUAGE_CODE = 'en-gb' TIME_ZONE = 'UTC' USE_I18N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.8/howto/static-files/ STATIC_ROOT = os.path.join(BASE_DIR, 'public', 'static') STATIC_URL = '/static/' MEDIA_ROOT = os.path.join(BASE_DIR, 'public', 'media') MEDIA_URL = '/media/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'example_project/static'), ) SITE_ID = 1 # LOGGING CONFIGURATION # A logging configuration that writes log messages to the console. LOGGING = { 'version': 1, 'disable_existing_loggers': True, # Formatting of messages. 'formatters': { # Don't need to show the time when logging to console. 'console': { 'format': '%(levelname)s %(name)s.%(funcName)s (%(lineno)d) %(message)s' } }, # The handlers decide what we should do with a logging message - do we email # it, ditch it, or write it to a file? 'handlers': { # Writing to console. Use only in dev. 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'console' }, # Send logs to /dev/null. 'null': { 'level': 'DEBUG', 'class': 'logging.NullHandler', }, }, # Loggers decide what is logged. 'loggers': { '': { # Default (suitable for dev) is to log to console. 'handlers': ['console'], 'level': 'INFO', 'propagate': False, }, 'photologue': { # Default (suitable for dev) is to log to console. 'handlers': ['console'], 'level': 'DEBUG', 'propagate': False, }, # logging of SQL statements. Default is to ditch them (send them to # null). Note that this logger only works if DEBUG = True. 'django.db.backends': { 'handlers': ['null'], 'level': 'DEBUG', 'propagate': False, }, } } # Don't display logging messages to console during unit test runs. if len(sys.argv) > 1 and sys.argv[1] == 'test': LOGGING['loggers']['']['handlers'] = ['null'] LOGGING['loggers']['photologue']['handlers'] = ['null'] # Uncomment this for Amazon S3 file storage # from example_storages.settings_s3boto import * ================================================ FILE: example_project/example_project/static/css/styles.css ================================================ /* Some customisation for the Photologue demo site. */ /* Page structure */ h1 { margin-top: 1rem; margin-bottom: 2rem; border-bottom: 1px solid lightgray; padding-bottom: 0.25rem; } /* Photo galleries */ .gallery-sample { margin-bottom: 2rem; } a.btn { margin-top: 2rem; } td { width: 100px; } .gallery-sample a { text-decoration: none; } .gallery-list a { text-decoration: none; } .photo-list a { text-decoration: none; } ul.pagination { margin-top: 2rem; } .img-thumbnail { margin-bottom: 0.25rem; } ================================================ FILE: example_project/example_project/static/js/jquery-3.5.1.js ================================================ /*! * jQuery JavaScript Library v3.5.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2020-05-04T22:49Z */ ( function( global, factory ) { "use strict"; if ( typeof module === "object" && typeof module.exports === "object" ) { // For CommonJS and CommonJS-like environments where a proper `window` // is present, execute the factory and get jQuery. // For environments that do not have a `window` with a `document` // (such as Node.js), expose a factory as module.exports. // This accentuates the need for the creation of a real `window`. // e.g. var jQuery = require("jquery")(window); // See ticket #14549 for more info. module.exports = global.document ? factory( global, true ) : function( w ) { if ( !w.document ) { throw new Error( "jQuery requires a window with a document" ); } return factory( w ); }; } else { factory( global ); } // Pass this if window is not defined yet } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common // enough that all such attempts are guarded in a try block. "use strict"; var arr = []; var getProto = Object.getPrototypeOf; var slice = arr.slice; var flat = arr.flat ? function( array ) { return arr.flat.call( array ); } : function( array ) { return arr.concat.apply( [], array ); }; var push = arr.push; var indexOf = arr.indexOf; var class2type = {}; var toString = class2type.toString; var hasOwn = class2type.hasOwnProperty; var fnToString = hasOwn.toString; var ObjectFunctionString = fnToString.call( Object ); var support = {}; var isFunction = function isFunction( obj ) { // Support: Chrome <=57, Firefox <=52 // In some browsers, typeof returns "function" for HTML elements // (i.e., `typeof document.createElement( "object" ) === "function"`). // We don't want to classify *any* DOM node as a function. return typeof obj === "function" && typeof obj.nodeType !== "number"; }; var isWindow = function isWindow( obj ) { return obj != null && obj === obj.window; }; var document = window.document; var preservedScriptAttributes = { type: true, src: true, nonce: true, noModule: true }; function DOMEval( code, node, doc ) { doc = doc || document; var i, val, script = doc.createElement( "script" ); script.text = code; if ( node ) { for ( i in preservedScriptAttributes ) { // Support: Firefox 64+, Edge 18+ // Some browsers don't support the "nonce" property on scripts. // On the other hand, just using `getAttribute` is not enough as // the `nonce` attribute is reset to an empty string whenever it // becomes browsing-context connected. // See https://github.com/whatwg/html/issues/2369 // See https://html.spec.whatwg.org/#nonce-attributes // The `node.getAttribute` check was added for the sake of // `jQuery.globalEval` so that it can fake a nonce-containing node // via an object. val = node[ i ] || node.getAttribute && node.getAttribute( i ); if ( val ) { script.setAttribute( i, val ); } } } doc.head.appendChild( script ).parentNode.removeChild( script ); } function toType( obj ) { if ( obj == null ) { return obj + ""; } // Support: Android <=2.3 only (functionish RegExp) return typeof obj === "object" || typeof obj === "function" ? class2type[ toString.call( obj ) ] || "object" : typeof obj; } /* global Symbol */ // Defining this global in .eslintrc.json would create a danger of using the global // unguarded in another place, it seems safer to define global only for this module var version = "3.5.1", // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' // Need init if jQuery is called (just allow error to be thrown if not included) return new jQuery.fn.init( selector, context ); }; jQuery.fn = jQuery.prototype = { // The current version of jQuery being used jquery: version, constructor: jQuery, // The default length of a jQuery object is 0 length: 0, toArray: function() { return slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { // Return all the elements in a clean array if ( num == null ) { return slice.call( this ); } // Return just the one element from the set return num < 0 ? this[ num + this.length ] : this[ num ]; }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. each: function( callback ) { return jQuery.each( this, callback ); }, map: function( callback ) { return this.pushStack( jQuery.map( this, function( elem, i ) { return callback.call( elem, i, elem ); } ) ); }, slice: function() { return this.pushStack( slice.apply( this, arguments ) ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, even: function() { return this.pushStack( jQuery.grep( this, function( _elem, i ) { return ( i + 1 ) % 2; } ) ); }, odd: function() { return this.pushStack( jQuery.grep( this, function( _elem, i ) { return i % 2; } ) ); }, eq: function( i ) { var len = this.length, j = +i + ( i < 0 ? len : 0 ); return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); }, end: function() { return this.prevObject || this.constructor(); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: push, sort: arr.sort, splice: arr.splice }; jQuery.extend = jQuery.fn.extend = function() { var options, name, src, copy, copyIsArray, clone, target = arguments[ 0 ] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; // Skip the boolean and the target target = arguments[ i ] || {}; i++; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !isFunction( target ) ) { target = {}; } // Extend jQuery itself if only one argument is passed if ( i === length ) { target = this; i--; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( ( options = arguments[ i ] ) != null ) { // Extend the base object for ( name in options ) { copy = options[ name ]; // Prevent Object.prototype pollution // Prevent never-ending loop if ( name === "__proto__" || target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject( copy ) || ( copyIsArray = Array.isArray( copy ) ) ) ) { src = target[ name ]; // Ensure proper type for the source value if ( copyIsArray && !Array.isArray( src ) ) { clone = []; } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { clone = {}; } else { clone = src; } copyIsArray = false; // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend( { // Unique for each copy of jQuery on the page expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), // Assume jQuery is ready without the ready module isReady: true, error: function( msg ) { throw new Error( msg ); }, noop: function() {}, isPlainObject: function( obj ) { var proto, Ctor; // Detect obvious negatives // Use toString instead of jQuery.type to catch host objects if ( !obj || toString.call( obj ) !== "[object Object]" ) { return false; } proto = getProto( obj ); // Objects with no prototype (e.g., `Object.create( null )`) are plain if ( !proto ) { return true; } // Objects with prototype are plain iff they were constructed by a global Object function Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; }, isEmptyObject: function( obj ) { var name; for ( name in obj ) { return false; } return true; }, // Evaluates a script in a provided context; falls back to the global one // if not specified. globalEval: function( code, options, doc ) { DOMEval( code, { nonce: options && options.nonce }, doc ); }, each: function( obj, callback ) { var length, i = 0; if ( isArrayLike( obj ) ) { length = obj.length; for ( ; i < length; i++ ) { if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { break; } } } else { for ( i in obj ) { if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { break; } } } return obj; }, // results is for internal usage only makeArray: function( arr, results ) { var ret = results || []; if ( arr != null ) { if ( isArrayLike( Object( arr ) ) ) { jQuery.merge( ret, typeof arr === "string" ? [ arr ] : arr ); } else { push.call( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { return arr == null ? -1 : indexOf.call( arr, elem, i ); }, // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit merge: function( first, second ) { var len = +second.length, j = 0, i = first.length; for ( ; j < len; j++ ) { first[ i++ ] = second[ j ]; } first.length = i; return first; }, grep: function( elems, callback, invert ) { var callbackInverse, matches = [], i = 0, length = elems.length, callbackExpect = !invert; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { callbackInverse = !callback( elems[ i ], i ); if ( callbackInverse !== callbackExpect ) { matches.push( elems[ i ] ); } } return matches; }, // arg is for internal usage only map: function( elems, callback, arg ) { var length, value, i = 0, ret = []; // Go through the array, translating each of the items to their new values if ( isArrayLike( elems ) ) { length = elems.length; for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } // Go through every key on the object, } else { for ( i in elems ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } } // Flatten any nested arrays return flat( ret ); }, // A global GUID counter for objects guid: 1, // jQuery.support is not used in Core but other projects attach their // properties to it so it needs to exist. support: support } ); if ( typeof Symbol === "function" ) { jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; } // Populate the class2type map jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), function( _i, name ) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); } ); function isArrayLike( obj ) { // Support: real iOS 8.2 only (not reproducible in simulator) // `in` check used to prevent JIT error (gh-2145) // hasOwn isn't used here due to false negatives // regarding Nodelist length in IE var length = !!obj && "length" in obj && obj.length, type = toType( obj ); if ( isFunction( obj ) || isWindow( obj ) ) { return false; } return type === "array" || length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in obj; } var Sizzle = /*! * Sizzle CSS Selector Engine v2.3.5 * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://js.foundation/ * * Date: 2020-03-14 */ ( function( window ) { var i, support, Expr, getText, isXML, tokenize, compile, select, outermostContext, sortInput, hasDuplicate, // Local document vars setDocument, document, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, // Instance-specific data expando = "sizzle" + 1 * new Date(), preferredDoc = window.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), nonnativeSelectorCache = createCache(), sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; } return 0; }, // Instance methods hasOwn = ( {} ).hasOwnProperty, arr = [], pop = arr.pop, pushNative = arr.push, push = arr.push, slice = arr.slice, // Use a stripped-down indexOf as it's faster than native // https://jsperf.com/thor-indexof-vs-for/5 indexOf = function( list, elem ) { var i = 0, len = list.length; for ( ; i < len; i++ ) { if ( list[ i ] === elem ) { return i; } } return -1; }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + "ismap|loop|multiple|open|readonly|required|scoped", // Regular expressions // http://www.w3.org/TR/css3-selectors/#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + // Operator (capture 2) "*([*^$|!~]?=)" + whitespace + // "Attribute values must be CSS identifiers [capture 5] // or strings [capture 3 or capture 4]" "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + "*\\]", pseudos = ":(" + identifier + ")(?:\\((" + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: // 1. quoted (capture 3; capture 4 or capture 5) "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + // 2. simple (capture 6) "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + // 3. anything else (capture 2) ".*" + ")\\)|)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rwhitespace = new RegExp( whitespace + "+", "g" ), rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), rdescend = new RegExp( whitespace + "|>" ), rpseudo = new RegExp( pseudos ), ridentifier = new RegExp( "^" + identifier + "$" ), matchExpr = { "ID": new RegExp( "^#(" + identifier + ")" ), "CLASS": new RegExp( "^\\.(" + identifier + ")" ), "TAG": new RegExp( "^(" + identifier + "|[*])" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), // For use in libraries implementing .is() // We use this for POS matching in `select` "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) }, rhtml = /HTML$/i, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rnative = /^[^{]+\{\s*\[native \w/, // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rsibling = /[+~]/, // CSS escapes // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ), funescape = function( escape, nonHex ) { var high = "0x" + escape.slice( 1 ) - 0x10000; return nonHex ? // Strip the backslash prefix from a non-hex escape sequence nonHex : // Replace a hexadecimal escape sequence with the encoded Unicode code point // Support: IE <=11+ // For values outside the Basic Multilingual Plane (BMP), manually construct a // surrogate pair high < 0 ? String.fromCharCode( high + 0x10000 ) : String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); }, // CSS string/identifier serialization // https://drafts.csswg.org/cssom/#common-serializing-idioms rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, fcssescape = function( ch, asCodePoint ) { if ( asCodePoint ) { // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER if ( ch === "\0" ) { return "\uFFFD"; } // Control characters and (dependent upon position) numbers get escaped as code points return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; } // Other potentially-special ASCII characters get backslash-escaped return "\\" + ch; }, // Used for iframes // See setDocument() // Removing the function wrapper causes a "Permission Denied" // error in IE unloadHandler = function() { setDocument(); }, inDisabledFieldset = addCombinator( function( elem ) { return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; }, { dir: "parentNode", next: "legend" } ); // Optimize for push.apply( _, NodeList ) try { push.apply( ( arr = slice.call( preferredDoc.childNodes ) ), preferredDoc.childNodes ); // Support: Android<4.0 // Detect silently failing push.apply // eslint-disable-next-line no-unused-expressions arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { push = { apply: arr.length ? // Leverage slice if possible function( target, els ) { pushNative.apply( target, slice.call( els ) ); } : // Support: IE<9 // Otherwise append directly function( target, els ) { var j = target.length, i = 0; // Can't trust NodeList.length while ( ( target[ j++ ] = els[ i++ ] ) ) {} target.length = j - 1; } }; } function Sizzle( selector, context, results, seed ) { var m, i, elem, nid, match, groups, newSelector, newContext = context && context.ownerDocument, // nodeType defaults to 9, since context defaults to document nodeType = context ? context.nodeType : 9; results = results || []; // Return early from calls with invalid selector or context if ( typeof selector !== "string" || !selector || nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { return results; } // Try to shortcut find operations (as opposed to filters) in HTML documents if ( !seed ) { setDocument( context ); context = context || document; if ( documentIsHTML ) { // If the selector is sufficiently simple, try using a "get*By*" DOM method // (excepting DocumentFragment context, where the methods don't exist) if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { // ID selector if ( ( m = match[ 1 ] ) ) { // Document context if ( nodeType === 9 ) { if ( ( elem = context.getElementById( m ) ) ) { // Support: IE, Opera, Webkit // TODO: identify versions // getElementById can match elements by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } // Element context } else { // Support: IE, Opera, Webkit // TODO: identify versions // getElementById can match elements by name instead of ID if ( newContext && ( elem = newContext.getElementById( m ) ) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Type selector } else if ( match[ 2 ] ) { push.apply( results, context.getElementsByTagName( selector ) ); return results; // Class selector } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName && context.getElementsByClassName ) { push.apply( results, context.getElementsByClassName( m ) ); return results; } } // Take advantage of querySelectorAll if ( support.qsa && !nonnativeSelectorCache[ selector + " " ] && ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) && // Support: IE 8 only // Exclude object elements ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) { newSelector = selector; newContext = context; // qSA considers elements outside a scoping root when evaluating child or // descendant combinators, which is not what we want. // In such cases, we work around the behavior by prefixing every selector in the // list with an ID selector referencing the scope context. // The technique has to be used as well when a leading combinator is used // as such selectors are not recognized by querySelectorAll. // Thanks to Andrew Dupont for this technique. if ( nodeType === 1 && ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) { // Expand context for sibling selectors newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; // We can use :scope instead of the ID hack if the browser // supports it & if we're not changing the context. if ( newContext !== context || !support.scope ) { // Capture the context ID, setting it first if necessary if ( ( nid = context.getAttribute( "id" ) ) ) { nid = nid.replace( rcssescape, fcssescape ); } else { context.setAttribute( "id", ( nid = expando ) ); } } // Prefix every selector in the list groups = tokenize( selector ); i = groups.length; while ( i-- ) { groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + toSelector( groups[ i ] ); } newSelector = groups.join( "," ); } try { push.apply( results, newContext.querySelectorAll( newSelector ) ); return results; } catch ( qsaError ) { nonnativeSelectorCache( selector, true ); } finally { if ( nid === expando ) { context.removeAttribute( "id" ); } } } } } // All others return select( selector.replace( rtrim, "$1" ), context, results, seed ); } /** * Create key-value caches of limited size * @returns {function(string, object)} Returns the Object data after storing it on itself with * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) * deleting the oldest entry */ function createCache() { var keys = []; function cache( key, value ) { // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) if ( keys.push( key + " " ) > Expr.cacheLength ) { // Only keep the most recent entries delete cache[ keys.shift() ]; } return ( cache[ key + " " ] = value ); } return cache; } /** * Mark a function for special use by Sizzle * @param {Function} fn The function to mark */ function markFunction( fn ) { fn[ expando ] = true; return fn; } /** * Support testing using an element * @param {Function} fn Passed the created element and returns a boolean result */ function assert( fn ) { var el = document.createElement( "fieldset" ); try { return !!fn( el ); } catch ( e ) { return false; } finally { // Remove from its parent by default if ( el.parentNode ) { el.parentNode.removeChild( el ); } // release memory in IE el = null; } } /** * Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied */ function addHandle( attrs, handler ) { var arr = attrs.split( "|" ), i = arr.length; while ( i-- ) { Expr.attrHandle[ arr[ i ] ] = handler; } } /** * Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b */ function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && a.sourceIndex - b.sourceIndex; // Use IE sourceIndex if available on both nodes if ( diff ) { return diff; } // Check if b follows a if ( cur ) { while ( ( cur = cur.nextSibling ) ) { if ( cur === b ) { return -1; } } } return a ? 1 : -1; } /** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; } /** * Returns a function to use in pseudos for buttons * @param {String} type */ function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return ( name === "input" || name === "button" ) && elem.type === type; }; } /** * Returns a function to use in pseudos for :enabled/:disabled * @param {Boolean} disabled true for :disabled; false for :enabled */ function createDisabledPseudo( disabled ) { // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable return function( elem ) { // Only certain elements can match :enabled or :disabled // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled if ( "form" in elem ) { // Check for inherited disabledness on relevant non-disabled elements: // * listed form-associated elements in a disabled fieldset // https://html.spec.whatwg.org/multipage/forms.html#category-listed // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled // * option elements in a disabled optgroup // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled // All such elements have a "form" property. if ( elem.parentNode && elem.disabled === false ) { // Option elements defer to a parent optgroup if present if ( "label" in elem ) { if ( "label" in elem.parentNode ) { return elem.parentNode.disabled === disabled; } else { return elem.disabled === disabled; } } // Support: IE 6 - 11 // Use the isDisabled shortcut property to check for disabled fieldset ancestors return elem.isDisabled === disabled || // Where there is no isDisabled, check manually /* jshint -W018 */ elem.isDisabled !== !disabled && inDisabledFieldset( elem ) === disabled; } return elem.disabled === disabled; // Try to winnow out elements that can't be disabled before trusting the disabled property. // Some victims get caught in our net (label, legend, menu, track), but it shouldn't // even exist on them, let alone have a boolean value. } else if ( "label" in elem ) { return elem.disabled === disabled; } // Remaining elements are neither :enabled nor :disabled return false; }; } /** * Returns a function to use in pseudos for positionals * @param {Function} fn */ function createPositionalPseudo( fn ) { return markFunction( function( argument ) { argument = +argument; return markFunction( function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { if ( seed[ ( j = matchIndexes[ i ] ) ] ) { seed[ j ] = !( matches[ j ] = seed[ j ] ); } } } ); } ); } /** * Checks a node for validity as a Sizzle context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value */ function testContext( context ) { return context && typeof context.getElementsByTagName !== "undefined" && context; } // Expose support vars for convenience support = Sizzle.support = {}; /** * Detects XML nodes * @param {Element|Object} elem An element or a document * @returns {Boolean} True iff elem is a non-HTML XML node */ isXML = Sizzle.isXML = function( elem ) { var namespace = elem.namespaceURI, docElem = ( elem.ownerDocument || elem ).documentElement; // Support: IE <=8 // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes // https://bugs.jquery.com/ticket/4833 return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); }; /** * Sets document-related variables once based on the current document * @param {Element|Object} [doc] An element or document object to use to set the document * @returns {Object} Returns the current document */ setDocument = Sizzle.setDocument = function( node ) { var hasCompare, subWindow, doc = node ? node.ownerDocument || node : preferredDoc; // Return early if doc is invalid or already selected // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { return document; } // Update global variables document = doc; docElem = document.documentElement; documentIsHTML = !isXML( document ); // Support: IE 9 - 11+, Edge 12 - 18+ // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( preferredDoc != document && ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { // Support: IE 11, Edge if ( subWindow.addEventListener ) { subWindow.addEventListener( "unload", unloadHandler, false ); // Support: IE 9 - 10 only } else if ( subWindow.attachEvent ) { subWindow.attachEvent( "onunload", unloadHandler ); } } // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only, // Safari 4 - 5 only, Opera <=11.6 - 12.x only // IE/Edge & older browsers don't support the :scope pseudo-class. // Support: Safari 6.0 only // Safari 6.0 supports :scope but it's an alias of :root there. support.scope = assert( function( el ) { docElem.appendChild( el ).appendChild( document.createElement( "div" ) ); return typeof el.querySelectorAll !== "undefined" && !el.querySelectorAll( ":scope fieldset div" ).length; } ); /* Attributes ---------------------------------------------------------------------- */ // Support: IE<8 // Verify that getAttribute really returns attributes and not properties // (excepting IE8 booleans) support.attributes = assert( function( el ) { el.className = "i"; return !el.getAttribute( "className" ); } ); /* getElement(s)By* ---------------------------------------------------------------------- */ // Check if getElementsByTagName("*") returns only elements support.getElementsByTagName = assert( function( el ) { el.appendChild( document.createComment( "" ) ); return !el.getElementsByTagName( "*" ).length; } ); // Support: IE<9 support.getElementsByClassName = rnative.test( document.getElementsByClassName ); // Support: IE<10 // Check if getElementById returns elements by name // The broken getElementById methods don't pick up programmatically-set names, // so use a roundabout getElementsByName test support.getById = assert( function( el ) { docElem.appendChild( el ).id = expando; return !document.getElementsByName || !document.getElementsByName( expando ).length; } ); // ID filter and find if ( support.getById ) { Expr.filter[ "ID" ] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { return elem.getAttribute( "id" ) === attrId; }; }; Expr.find[ "ID" ] = function( id, context ) { if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { var elem = context.getElementById( id ); return elem ? [ elem ] : []; } }; } else { Expr.filter[ "ID" ] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode( "id" ); return node && node.value === attrId; }; }; // Support: IE 6 - 7 only // getElementById is not reliable as a find shortcut Expr.find[ "ID" ] = function( id, context ) { if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { var node, i, elems, elem = context.getElementById( id ); if ( elem ) { // Verify the id attribute node = elem.getAttributeNode( "id" ); if ( node && node.value === id ) { return [ elem ]; } // Fall back on getElementsByName elems = context.getElementsByName( id ); i = 0; while ( ( elem = elems[ i++ ] ) ) { node = elem.getAttributeNode( "id" ); if ( node && node.value === id ) { return [ elem ]; } } } return []; } }; } // Tag Expr.find[ "TAG" ] = support.getElementsByTagName ? function( tag, context ) { if ( typeof context.getElementsByTagName !== "undefined" ) { return context.getElementsByTagName( tag ); // DocumentFragment nodes don't have gEBTN } else if ( support.qsa ) { return context.querySelectorAll( tag ); } } : function( tag, context ) { var elem, tmp = [], i = 0, // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { while ( ( elem = results[ i++ ] ) ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; }; // Class Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) { if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { return context.getElementsByClassName( className ); } }; /* QSA/matchesSelector ---------------------------------------------------------------------- */ // QSA and matchesSelector support // matchesSelector(:active) reports false when true (IE9/Opera 11.5) rbuggyMatches = []; // qSa(:focus) reports false when true (Chrome 21) // We allow this because of a bug in IE8/9 that throws an error // whenever `document.activeElement` is accessed on an iframe // So, we allow :focus to pass through QSA all the time to avoid the IE error // See https://bugs.jquery.com/ticket/13378 rbuggyQSA = []; if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) { // Build QSA regex // Regex strategy adopted from Diego Perini assert( function( el ) { var input; // Select is set to empty string on purpose // This is to test IE's treatment of not explicitly // setting a boolean content attribute, // since its presence should be enough // https://bugs.jquery.com/ticket/12359 docElem.appendChild( el ).innerHTML = "" + ""; // Support: IE8, Opera 11-12.16 // Nothing should be selected when empty strings follow ^= or $= or *= // The test attribute must be unknown in Opera but "safe" for WinRT // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); } // Support: IE8 // Boolean attributes and "value" are not treated correctly if ( !el.querySelectorAll( "[selected]" ).length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); } // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { rbuggyQSA.push( "~=" ); } // Support: IE 11+, Edge 15 - 18+ // IE 11/Edge don't find elements on a `[name='']` query in some cases. // Adding a temporary attribute to the document before the selection works // around the issue. // Interestingly, IE 10 & older don't seem to have the issue. input = document.createElement( "input" ); input.setAttribute( "name", "" ); el.appendChild( input ); if ( !el.querySelectorAll( "[name='']" ).length ) { rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + whitespace + "*(?:''|\"\")" ); } // Webkit/Opera - :checked should return selected option elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked // IE8 throws error here and will not see later tests if ( !el.querySelectorAll( ":checked" ).length ) { rbuggyQSA.push( ":checked" ); } // Support: Safari 8+, iOS 8+ // https://bugs.webkit.org/show_bug.cgi?id=136851 // In-page `selector#id sibling-combinator selector` fails if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { rbuggyQSA.push( ".#.+[+~]" ); } // Support: Firefox <=3.6 - 5 only // Old Firefox doesn't throw on a badly-escaped identifier. el.querySelectorAll( "\\\f" ); rbuggyQSA.push( "[\\r\\n\\f]" ); } ); assert( function( el ) { el.innerHTML = "" + ""; // Support: Windows 8 Native Apps // The type and name attributes are restricted during .innerHTML assignment var input = document.createElement( "input" ); input.setAttribute( "type", "hidden" ); el.appendChild( input ).setAttribute( "name", "D" ); // Support: IE8 // Enforce case-sensitivity of name attribute if ( el.querySelectorAll( "[name=d]" ).length ) { rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here and will not see later tests if ( el.querySelectorAll( ":enabled" ).length !== 2 ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Support: IE9-11+ // IE's :disabled selector does not pick up the children of disabled fieldsets docElem.appendChild( el ).disabled = true; if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Support: Opera 10 - 11 only // Opera 10-11 does not throw on post-comma invalid pseudos el.querySelectorAll( "*,:x" ); rbuggyQSA.push( ",.*:" ); } ); } if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector ) ) ) ) { assert( function( el ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) support.disconnectedMatch = matches.call( el, "*" ); // This should fail with an exception // Gecko does not error, returns false instead matches.call( el, "[s!='']:x" ); rbuggyMatches.push( "!=", pseudos ); } ); } rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) ); /* Contains ---------------------------------------------------------------------- */ hasCompare = rnative.test( docElem.compareDocumentPosition ); // Element contains another // Purposefully self-exclusive // As in, an element does not contain itself contains = hasCompare || rnative.test( docElem.contains ) ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && ( adown.contains ? adown.contains( bup ) : a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 ) ); } : function( a, b ) { if ( b ) { while ( ( b = b.parentNode ) ) { if ( b === a ) { return true; } } } return false; }; /* Sorting ---------------------------------------------------------------------- */ // Document order sorting sortOrder = hasCompare ? function( a, b ) { // Flag for duplicate removal if ( a === b ) { hasDuplicate = true; return 0; } // Sort on method existence if only one input has compareDocumentPosition var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; if ( compare ) { return compare; } // Calculate position if both inputs belong to the same document // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ? a.compareDocumentPosition( b ) : // Otherwise we know they are disconnected 1; // Disconnected nodes if ( compare & 1 || ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) { // Choose the first element that is related to our preferred document // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( a == document || a.ownerDocument == preferredDoc && contains( preferredDoc, a ) ) { return -1; } // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( b == document || b.ownerDocument == preferredDoc && contains( preferredDoc, b ) ) { return 1; } // Maintain original order return sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; } return compare & 4 ? -1 : 1; } : function( a, b ) { // Exit early if the nodes are identical if ( a === b ) { hasDuplicate = true; return 0; } var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [ a ], bp = [ b ]; // Parentless nodes are either documents or disconnected if ( !aup || !bup ) { // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. /* eslint-disable eqeqeq */ return a == document ? -1 : b == document ? 1 : /* eslint-enable eqeqeq */ aup ? -1 : bup ? 1 : sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; // If the nodes are siblings, we can do a quick check } else if ( aup === bup ) { return siblingCheck( a, b ); } // Otherwise we need full lists of their ancestors for comparison cur = a; while ( ( cur = cur.parentNode ) ) { ap.unshift( cur ); } cur = b; while ( ( cur = cur.parentNode ) ) { bp.unshift( cur ); } // Walk down the tree looking for a discrepancy while ( ap[ i ] === bp[ i ] ) { i++; } return i ? // Do a sibling check if the nodes have a common ancestor siblingCheck( ap[ i ], bp[ i ] ) : // Otherwise nodes in our document sort first // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. /* eslint-disable eqeqeq */ ap[ i ] == preferredDoc ? -1 : bp[ i ] == preferredDoc ? 1 : /* eslint-enable eqeqeq */ 0; }; return document; }; Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { setDocument( elem ); if ( support.matchesSelector && documentIsHTML && !nonnativeSelectorCache[ expr + " " ] && ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || support.disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch ( e ) { nonnativeSelectorCache( expr, true ); } } return Sizzle( expr, document, null, [ elem ] ).length > 0; }; Sizzle.contains = function( context, elem ) { // Set document vars if needed // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( ( context.ownerDocument || context ) != document ) { setDocument( context ); } return contains( context, elem ); }; Sizzle.attr = function( elem, name ) { // Set document vars if needed // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( ( elem.ownerDocument || elem ) != document ) { setDocument( elem ); } var fn = Expr.attrHandle[ name.toLowerCase() ], // Don't get fooled by Object.prototype properties (jQuery #13807) val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? fn( elem, name, !documentIsHTML ) : undefined; return val !== undefined ? val : support.attributes || !documentIsHTML ? elem.getAttribute( name ) : ( val = elem.getAttributeNode( name ) ) && val.specified ? val.value : null; }; Sizzle.escape = function( sel ) { return ( sel + "" ).replace( rcssescape, fcssescape ); }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** * Document sorting and removing duplicates * @param {ArrayLike} results */ Sizzle.uniqueSort = function( results ) { var elem, duplicates = [], j = 0, i = 0; // Unless we *know* we can detect duplicates, assume their presence hasDuplicate = !support.detectDuplicates; sortInput = !support.sortStable && results.slice( 0 ); results.sort( sortOrder ); if ( hasDuplicate ) { while ( ( elem = results[ i++ ] ) ) { if ( elem === results[ i ] ) { j = duplicates.push( i ); } } while ( j-- ) { results.splice( duplicates[ j ], 1 ); } } // Clear input after sorting to release objects // See https://github.com/jquery/sizzle/pull/225 sortInput = null; return results; }; /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( !nodeType ) { // If no nodeType, this is expected to be an array while ( ( node = elem[ i++ ] ) ) { // Do not traverse comment nodes ret += getText( node ); } } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (jQuery #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes return ret; }; Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, createPseudo: markFunction, match: matchExpr, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[ 1 ] = match[ 1 ].replace( runescape, funescape ); // Move the given value to match[3] whether quoted or unquoted match[ 3 ] = ( match[ 3 ] || match[ 4 ] || match[ 5 ] || "" ).replace( runescape, funescape ); if ( match[ 2 ] === "~=" ) { match[ 3 ] = " " + match[ 3 ] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 what (child|of-type) 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 4 xn-component of xn+y argument ([+-]?\d*n|) 5 sign of xn-component 6 x of xn-component 7 sign of y-component 8 y of y-component */ match[ 1 ] = match[ 1 ].toLowerCase(); if ( match[ 1 ].slice( 0, 3 ) === "nth" ) { // nth-* requires argument if ( !match[ 3 ] ) { Sizzle.error( match[ 0 ] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[ 4 ] = +( match[ 4 ] ? match[ 5 ] + ( match[ 6 ] || 1 ) : 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) ); match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" ); // other types prohibit arguments } else if ( match[ 3 ] ) { Sizzle.error( match[ 0 ] ); } return match; }, "PSEUDO": function( match ) { var excess, unquoted = !match[ 6 ] && match[ 2 ]; if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) { return null; } // Accept quoted arguments as-is if ( match[ 3 ] ) { match[ 2 ] = match[ 4 ] || match[ 5 ] || ""; // Strip excess characters from unquoted arguments } else if ( unquoted && rpseudo.test( unquoted ) && // Get excess from tokenize (recursively) ( excess = tokenize( unquoted, true ) ) && // advance to the next closing parenthesis ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) { // excess is a negative index match[ 0 ] = match[ 0 ].slice( 0, excess ); match[ 2 ] = unquoted.slice( 0, excess ); } // Return only captures needed by the pseudo filter method (type and argument) return match.slice( 0, 3 ); } }, filter: { "TAG": function( nodeNameSelector ) { var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); return nodeNameSelector === "*" ? function() { return true; } : function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ className + " " ]; return pattern || ( pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" ) ) && classCache( className, function( elem ) { return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute( "class" ) || "" ); } ); }, "ATTR": function( name, operator, check ) { return function( elem ) { var result = Sizzle.attr( elem, name ); if ( result == null ) { return operator === "!="; } if ( !operator ) { return true; } result += ""; /* eslint-disable max-len */ return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf( check ) === 0 : operator === "*=" ? check && result.indexOf( check ) > -1 : operator === "$=" ? check && result.slice( -check.length ) === check : operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : false; /* eslint-enable max-len */ }; }, "CHILD": function( type, what, _argument, first, last ) { var simple = type.slice( 0, 3 ) !== "nth", forward = type.slice( -4 ) !== "last", ofType = what === "of-type"; return first === 1 && last === 0 ? // Shortcut for :nth-*(n) function( elem ) { return !!elem.parentNode; } : function( elem, _context, xml ) { var cache, uniqueCache, outerCache, node, nodeIndex, start, dir = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType, diff = false; if ( parent ) { // :(first|last|only)-(child|of-type) if ( simple ) { while ( dir ) { node = elem; while ( ( node = node[ dir ] ) ) { if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { return false; } } // Reverse direction for :only-* (if we haven't yet done so) start = dir = type === "only" && !start && "nextSibling"; } return true; } start = [ forward ? parent.firstChild : parent.lastChild ]; // non-xml :nth-child(...) stores cache data on `parent` if ( forward && useCache ) { // Seek `elem` from a previously-cached index // ...in a gzip-friendly way node = parent; outerCache = node[ expando ] || ( node[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || ( outerCache[ node.uniqueID ] = {} ); cache = uniqueCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex && cache[ 2 ]; node = nodeIndex && parent.childNodes[ nodeIndex ]; while ( ( node = ++nodeIndex && node && node[ dir ] || // Fallback to seeking `elem` from the start ( diff = nodeIndex = 0 ) || start.pop() ) ) { // When found, cache indexes on `parent` and break if ( node.nodeType === 1 && ++diff && node === elem ) { uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; break; } } } else { // Use previously-cached element index if available if ( useCache ) { // ...in a gzip-friendly way node = elem; outerCache = node[ expando ] || ( node[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || ( outerCache[ node.uniqueID ] = {} ); cache = uniqueCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex; } // xml :nth-child(...) // or :nth-last-child(...) or :nth(-last)?-of-type(...) if ( diff === false ) { // Use the same loop as above to seek `elem` from the start while ( ( node = ++nodeIndex && node && node[ dir ] || ( diff = nodeIndex = 0 ) || start.pop() ) ) { if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { // Cache the index of each encountered element if ( useCache ) { outerCache = node[ expando ] || ( node[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || ( outerCache[ node.uniqueID ] = {} ); uniqueCache[ type ] = [ dirruns, diff ]; } if ( node === elem ) { break; } } } } } // Incorporate the offset, then check against cycle size diff -= last; return diff === first || ( diff % first === 0 && diff / first >= 0 ); } }; }, "PSEUDO": function( pseudo, argument ) { // pseudo-class names are case-insensitive // http://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || Sizzle.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function // just as Sizzle does if ( fn[ expando ] ) { return fn( argument ); } // But maintain support for old signatures if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? markFunction( function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { idx = indexOf( seed, matched[ i ] ); seed[ idx ] = !( matches[ idx ] = matched[ i ] ); } } ) : function( elem ) { return fn( elem, 0, args ); }; } return fn; } }, pseudos: { // Potentially complex pseudos "not": markFunction( function( selector ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], matcher = compile( selector.replace( rtrim, "$1" ) ); return matcher[ expando ] ? markFunction( function( seed, matches, _context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { if ( ( elem = unmatched[ i ] ) ) { seed[ i ] = !( matches[ i ] = elem ); } } } ) : function( elem, _context, xml ) { input[ 0 ] = elem; matcher( input, null, xml, results ); // Don't keep the element (issue #299) input[ 0 ] = null; return !results.pop(); }; } ), "has": markFunction( function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; } ), "contains": markFunction( function( text ) { text = text.replace( runescape, funescape ); return function( elem ) { return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; }; } ), // "Whether an element is represented by a :lang() selector // is based solely on the element's language value // being equal to the identifier C, // or beginning with the identifier C immediately followed by "-". // The matching of C against the element's language value is performed case-insensitively. // The identifier C does not have to be a valid language name." // http://www.w3.org/TR/selectors/#lang-pseudo "lang": markFunction( function( lang ) { // lang value must be a valid identifier if ( !ridentifier.test( lang || "" ) ) { Sizzle.error( "unsupported lang: " + lang ); } lang = lang.replace( runescape, funescape ).toLowerCase(); return function( elem ) { var elemLang; do { if ( ( elemLang = documentIsHTML ? elem.lang : elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; } } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 ); return false; }; } ), // Miscellaneous "target": function( elem ) { var hash = window.location && window.location.hash; return hash && hash.slice( 1 ) === elem.id; }, "root": function( elem ) { return elem === docElem; }, "focus": function( elem ) { return elem === document.activeElement && ( !document.hasFocus || document.hasFocus() ) && !!( elem.type || elem.href || ~elem.tabIndex ); }, // Boolean properties "enabled": createDisabledPseudo( false ), "disabled": createDisabledPseudo( true ), "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked var nodeName = elem.nodeName.toLowerCase(); return ( nodeName === "input" && !!elem.checked ) || ( nodeName === "option" && !!elem.selected ); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { // eslint-disable-next-line no-unused-expressions elem.parentNode.selectedIndex; } return elem.selected === true; }, // Contents "empty": function( elem ) { // http://www.w3.org/TR/selectors/#empty-pseudo // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), // but not by others (comment: 8; processing instruction: 7; etc.) // nodeType < 6 works because attributes (2) do not appear as children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { if ( elem.nodeType < 6 ) { return false; } } return true; }, "parent": function( elem ) { return !Expr.pseudos[ "empty" ]( elem ); }, // Element/input types "header": function( elem ) { return rheader.test( elem.nodeName ); }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "text": function( elem ) { var attr; return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && // Support: IE<8 // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" ( ( attr = elem.getAttribute( "type" ) ) == null || attr.toLowerCase() === "text" ); }, // Position-in-collection "first": createPositionalPseudo( function() { return [ 0 ]; } ), "last": createPositionalPseudo( function( _matchIndexes, length ) { return [ length - 1 ]; } ), "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; } ), "even": createPositionalPseudo( function( matchIndexes, length ) { var i = 0; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; } ), "odd": createPositionalPseudo( function( matchIndexes, length ) { var i = 1; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; } ), "lt": createPositionalPseudo( function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument > length ? length : argument; for ( ; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; } ), "gt": createPositionalPseudo( function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; } ) } }; Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ]; // Add button/input type pseudos for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { Expr.pseudos[ i ] = createInputPseudo( i ); } for ( i in { submit: true, reset: true } ) { Expr.pseudos[ i ] = createButtonPseudo( i ); } // Easy API for creating new setFilters function setFilters() {} setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); tokenize = Sizzle.tokenize = function( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first run if ( !matched || ( match = rcomma.exec( soFar ) ) ) { if ( match ) { // Don't consume trailing commas as valid soFar = soFar.slice( match[ 0 ].length ) || soFar; } groups.push( ( tokens = [] ) ); } matched = false; // Combinators if ( ( match = rcombinators.exec( soFar ) ) ) { matched = match.shift(); tokens.push( { value: matched, // Cast descendant combinators to space type: match[ 0 ].replace( rtrim, " " ) } ); soFar = soFar.slice( matched.length ); } // Filters for ( type in Expr.filter ) { if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] || ( match = preFilters[ type ]( match ) ) ) ) { matched = match.shift(); tokens.push( { value: matched, type: type, matches: match } ); soFar = soFar.slice( matched.length ); } } if ( !matched ) { break; } } // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens return parseOnly ? soFar.length : soFar ? Sizzle.error( selector ) : // Cache the tokens tokenCache( selector, groups ).slice( 0 ); }; function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[ i ].value; } return selector; } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, skip = combinator.next, key = skip || dir, checkNonElements = base && key === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { return matcher( elem, context, xml ); } } return false; } : // Check against all ancestor/preceding elements function( elem, context, xml ) { var oldCache, uniqueCache, outerCache, newCache = [ dirruns, doneName ]; // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching if ( xml ) { while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { if ( matcher( elem, context, xml ) ) { return true; } } } } else { while ( ( elem = elem[ dir ] ) ) { if ( elem.nodeType === 1 || checkNonElements ) { outerCache = elem[ expando ] || ( elem[ expando ] = {} ); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ elem.uniqueID ] || ( outerCache[ elem.uniqueID ] = {} ); if ( skip && skip === elem.nodeName.toLowerCase() ) { elem = elem[ dir ] || elem; } else if ( ( oldCache = uniqueCache[ key ] ) && oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { // Assign to newCache so results back-propagate to previous elements return ( newCache[ 2 ] = oldCache[ 2 ] ); } else { // Reuse newcache so results back-propagate to previous elements uniqueCache[ key ] = newCache; // A match means we're done; a fail means we have to keep checking if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) { return true; } } } } } return false; }; } function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[ i ]( elem, context, xml ) ) { return false; } } return true; } : matchers[ 0 ]; } function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[ i ], results ); } return results; } function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( ( elem = unmatched[ i ] ) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction( function( seed, results, context, xml ) { var temp, i, elem, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : elems, matcherOut = matcher ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, postFinder || ( seed ? preFilter : preexisting || postFilter ) ? // ...intermediate processing is necessary [] : // ...otherwise use results directly results : matcherIn; // Find primary matches if ( matcher ) { matcher( matcherIn, matcherOut, context, xml ); } // Apply postFilter if ( postFilter ) { temp = condense( matcherOut, postMap ); postFilter( temp, [], context, xml ); // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { if ( ( elem = temp[ i ] ) ) { matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem ); } } } if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { if ( ( elem = matcherOut[ i ] ) ) { // Restore matcherIn since elem is not yet a final match temp.push( ( matcherIn[ i ] = elem ) ); } } postFinder( null, ( matcherOut = [] ), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { if ( ( elem = matcherOut[ i ] ) && ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) { seed[ temp ] = !( results[ temp ] = elem ); } } } // Add elements to results, through postFinder if defined } else { matcherOut = condense( matcherOut === results ? matcherOut.splice( preexisting, matcherOut.length ) : matcherOut ); if ( postFinder ) { postFinder( null, results, matcherOut, xml ); } else { push.apply( results, matcherOut ); } } } ); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[ 0 ].type ], implicitRelative = leadingRelative || Expr.relative[ " " ], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) matchContext = addCombinator( function( elem ) { return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { return indexOf( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( ( checkContext = context ).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); // Avoid hanging onto element (issue #299) checkContext = null; return ret; } ]; for ( ; i < len; i++ ) { if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) { matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; } else { matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { if ( Expr.relative[ tokens[ j ].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && toSelector( // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens .slice( 0, i - 1 ) .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } ) ).replace( rtrim, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ), j < len && toSelector( tokens ) ); } matchers.push( matcher ); } } return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, // We must always have either seed elements or outermost context elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ), // Use integer dirruns iff this is the outermost matcher dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ), len = elems.length; if ( outermost ) { // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq outermostContext = context == document || context || outermost; } // Add elements passing elementMatchers directly to results // Support: IE<9, Safari // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) { if ( byElement && elem ) { j = 0; // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. // eslint-disable-next-line eqeqeq if ( !context && elem.ownerDocument != document ) { setDocument( elem ); xml = !documentIsHTML; } while ( ( matcher = elementMatchers[ j++ ] ) ) { if ( matcher( elem, context || document, xml ) ) { results.push( elem ); break; } } if ( outermost ) { dirruns = dirrunsUnique; } } // Track unmatched elements for set filters if ( bySet ) { // They will have gone through all possible matchers if ( ( elem = !matcher && elem ) ) { matchedCount--; } // Lengthen the array for every element, matched or not if ( seed ) { unmatched.push( elem ); } } } // `i` is now the count of elements visited above, and adding it to `matchedCount` // makes the latter nonnegative. matchedCount += i; // Apply set filters to unmatched elements // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` // equals `i`), unless we didn't visit _any_ elements in the above loop because we have // no element matchers and no seed. // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that // case, which will result in a "00" `matchedCount` that differs from `i` but is also // numerically zero. if ( bySet && i !== matchedCount ) { j = 0; while ( ( matcher = setMatchers[ j++ ] ) ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { if ( !( unmatched[ i ] || setMatched[ i ] ) ) { setMatched[ i ] = pop.call( results ); } } } // Discard index placeholder values to get only actual matches setMatched = condense( setMatched ); } // Add matches to results push.apply( results, setMatched ); // Seedless set matches succeeding multiple successful matchers stipulate sorting if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { Sizzle.uniqueSort( results ); } } // Override manipulation of globals by nested matchers if ( outermost ) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; }; return bySet ? markFunction( superMatcher ) : superMatcher; } compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !match ) { match = tokenize( selector ); } i = match.length; while ( i-- ) { cached = matcherFromTokens( match[ i ] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { elementMatchers.push( cached ); } } // Cache the compiled function cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); // Save selector and tokenization cached.selector = selector; } return cached; }; /** * A low-level selection function that works with Sizzle's compiled * selector functions * @param {String|Function} selector A selector or a pre-compiled * selector function built with Sizzle.compile * @param {Element} context * @param {Array} [results] * @param {Array} [seed] A set of elements to match against */ select = Sizzle.select = function( selector, context, results, seed ) { var i, tokens, token, type, find, compiled = typeof selector === "function" && selector, match = !seed && tokenize( ( selector = compiled.selector || selector ) ); results = results || []; // Try to minimize operations if there is only one selector in the list and no seed // (the latter of which guarantees us context) if ( match.length === 1 ) { // Reduce context if the leading compound selector is an ID tokens = match[ 0 ] = match[ 0 ].slice( 0 ); if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" && context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) { context = ( Expr.find[ "ID" ]( token.matches[ 0 ] .replace( runescape, funescape ), context ) || [] )[ 0 ]; if ( !context ) { return results; // Precompiled matchers will still verify ancestry, so step up a level } else if ( compiled ) { context = context.parentNode; } selector = selector.slice( tokens.shift().value.length ); } // Fetch a seed set for right-to-left matching i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length; while ( i-- ) { token = tokens[ i ]; // Abort if we hit a combinator if ( Expr.relative[ ( type = token.type ) ] ) { break; } if ( ( find = Expr.find[ type ] ) ) { // Search, expanding context for leading sibling combinators if ( ( seed = find( token.matches[ 0 ].replace( runescape, funescape ), rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) || context ) ) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); selector = seed.length && toSelector( tokens ); if ( !selector ) { push.apply( results, seed ); return results; } break; } } } } // Compile and execute a filtering function if one is not provided // Provide `match` to avoid retokenization if we modified the selector above ( compiled || compile( selector, match ) )( seed, context, !documentIsHTML, results, !context || rsibling.test( selector ) && testContext( context.parentNode ) || context ); return results; }; // One-time assignments // Sort stability support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando; // Support: Chrome 14-35+ // Always assume duplicates if they aren't passed to the comparison function support.detectDuplicates = !!hasDuplicate; // Initialize against the default document setDocument(); // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) // Detached nodes confoundingly follow *each other* support.sortDetached = assert( function( el ) { // Should return 1, but returns 4 (following) return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1; } ); // Support: IE<8 // Prevent attribute/property "interpolation" // https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx if ( !assert( function( el ) { el.innerHTML = ""; return el.firstChild.getAttribute( "href" ) === "#"; } ) ) { addHandle( "type|href|height|width", function( elem, name, isXML ) { if ( !isXML ) { return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); } } ); } // Support: IE<9 // Use defaultValue in place of getAttribute("value") if ( !support.attributes || !assert( function( el ) { el.innerHTML = ""; el.firstChild.setAttribute( "value", "" ); return el.firstChild.getAttribute( "value" ) === ""; } ) ) { addHandle( "value", function( elem, _name, isXML ) { if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { return elem.defaultValue; } } ); } // Support: IE<9 // Use getAttributeNode to fetch booleans when getAttribute lies if ( !assert( function( el ) { return el.getAttribute( "disabled" ) == null; } ) ) { addHandle( booleans, function( elem, name, isXML ) { var val; if ( !isXML ) { return elem[ name ] === true ? name.toLowerCase() : ( val = elem.getAttributeNode( name ) ) && val.specified ? val.value : null; } } ); } return Sizzle; } )( window ); jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; // Deprecated jQuery.expr[ ":" ] = jQuery.expr.pseudos; jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; jQuery.escapeSelector = Sizzle.escape; var dir = function( elem, dir, until ) { var matched = [], truncate = until !== undefined; while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { if ( elem.nodeType === 1 ) { if ( truncate && jQuery( elem ).is( until ) ) { break; } matched.push( elem ); } } return matched; }; var siblings = function( n, elem ) { var matched = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { matched.push( n ); } } return matched; }; var rneedsContext = jQuery.expr.match.needsContext; function nodeName( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }; var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { if ( isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { return !!qualifier.call( elem, i, elem ) !== not; } ); } // Single element if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qualifier ) !== not; } ); } // Arraylike of elements (jQuery, arguments, Array) if ( typeof qualifier !== "string" ) { return jQuery.grep( elements, function( elem ) { return ( indexOf.call( qualifier, elem ) > -1 ) !== not; } ); } // Filtered directly for both simple and complex selectors return jQuery.filter( qualifier, elements, not ); } jQuery.filter = function( expr, elems, not ) { var elem = elems[ 0 ]; if ( not ) { expr = ":not(" + expr + ")"; } if ( elems.length === 1 && elem.nodeType === 1 ) { return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; } return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { return elem.nodeType === 1; } ) ); }; jQuery.fn.extend( { find: function( selector ) { var i, ret, len = this.length, self = this; if ( typeof selector !== "string" ) { return this.pushStack( jQuery( selector ).filter( function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } } ) ); } ret = this.pushStack( [] ); for ( i = 0; i < len; i++ ) { jQuery.find( selector, self[ i ], ret ); } return len > 1 ? jQuery.uniqueSort( ret ) : ret; }, filter: function( selector ) { return this.pushStack( winnow( this, selector || [], false ) ); }, not: function( selector ) { return this.pushStack( winnow( this, selector || [], true ) ); }, is: function( selector ) { return !!winnow( this, // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". typeof selector === "string" && rneedsContext.test( selector ) ? jQuery( selector ) : selector || [], false ).length; } } ); // Initialize a jQuery object // A central reference to the root jQuery(document) var rootjQuery, // A simple way to check for HTML strings // Prioritize #id over to avoid XSS via location.hash (#9521) // Strict HTML recognition (#11290: must start with <) // Shortcut simple #id case for speed rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, init = jQuery.fn.init = function( selector, context, root ) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Method init() accepts an alternate rootjQuery // so migrate can support jQuery.sub (gh-2101) root = root || rootjQuery; // Handle HTML strings if ( typeof selector === "string" ) { if ( selector[ 0 ] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && ( match[ 1 ] || !context ) ) { // HANDLE: $(html) -> $(array) if ( match[ 1 ] ) { context = context instanceof jQuery ? context[ 0 ] : context; // Option to run scripts is true for back-compat // Intentionally let the error be thrown if parseHTML is not present jQuery.merge( this, jQuery.parseHTML( match[ 1 ], context && context.nodeType ? context.ownerDocument || context : document, true ) ); // HANDLE: $(html, props) if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { for ( match in context ) { // Properties of context are called as methods if possible if ( isFunction( this[ match ] ) ) { this[ match ]( context[ match ] ); // ...and otherwise set as attributes } else { this.attr( match, context[ match ] ); } } } return this; // HANDLE: $(#id) } else { elem = document.getElementById( match[ 2 ] ); if ( elem ) { // Inject the element directly into the jQuery object this[ 0 ] = elem; this.length = 1; } return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || root ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(DOMElement) } else if ( selector.nodeType ) { this[ 0 ] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready } else if ( isFunction( selector ) ) { return root.ready !== undefined ? root.ready( selector ) : // Execute immediately if ready is not present selector( jQuery ); } return jQuery.makeArray( selector, this ); }; // Give the init function the jQuery prototype for later instantiation init.prototype = jQuery.fn; // Initialize central reference rootjQuery = jQuery( document ); var rparentsprev = /^(?:parents|prev(?:Until|All))/, // Methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend( { has: function( target ) { var targets = jQuery( target, this ), l = targets.length; return this.filter( function() { var i = 0; for ( ; i < l; i++ ) { if ( jQuery.contains( this, targets[ i ] ) ) { return true; } } } ); }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, matched = [], targets = typeof selectors !== "string" && jQuery( selectors ); // Positional selectors never match, since there's no _selection_ context if ( !rneedsContext.test( selectors ) ) { for ( ; i < l; i++ ) { for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { // Always skip document fragments if ( cur.nodeType < 11 && ( targets ? targets.index( cur ) > -1 : // Don't pass non-elements to Sizzle cur.nodeType === 1 && jQuery.find.matchesSelector( cur, selectors ) ) ) { matched.push( cur ); break; } } } } return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); }, // Determine the position of an element within the set index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; } // Index in selector if ( typeof elem === "string" ) { return indexOf.call( jQuery( elem ), this[ 0 ] ); } // Locate the position of the desired element return indexOf.call( this, // If it receives a jQuery object, the first element is used elem.jquery ? elem[ 0 ] : elem ); }, add: function( selector, context ) { return this.pushStack( jQuery.uniqueSort( jQuery.merge( this.get(), jQuery( selector, context ) ) ) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter( selector ) ); } } ); function sibling( cur, dir ) { while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} return cur; } jQuery.each( { parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return dir( elem, "parentNode" ); }, parentsUntil: function( elem, _i, until ) { return dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return dir( elem, "previousSibling" ); }, nextUntil: function( elem, _i, until ) { return dir( elem, "nextSibling", until ); }, prevUntil: function( elem, _i, until ) { return dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return siblings( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return siblings( elem.firstChild ); }, contents: function( elem ) { if ( elem.contentDocument != null && // Support: IE 11+ // elements with no `data` attribute has an object // `contentDocument` with a `null` prototype. getProto( elem.contentDocument ) ) { return elem.contentDocument; } // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only // Treat the template element as a regular one in browsers that // don't support it. if ( nodeName( elem, "template" ) ) { elem = elem.content || elem; } return jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var matched = jQuery.map( this, fn, until ); if ( name.slice( -5 ) !== "Until" ) { selector = until; } if ( selector && typeof selector === "string" ) { matched = jQuery.filter( selector, matched ); } if ( this.length > 1 ) { // Remove duplicates if ( !guaranteedUnique[ name ] ) { jQuery.uniqueSort( matched ); } // Reverse order for parents* and prev-derivatives if ( rparentsprev.test( name ) ) { matched.reverse(); } } return this.pushStack( matched ); }; } ); var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); // Convert String-formatted options into Object-formatted ones function createOptions( options ) { var object = {}; jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { object[ flag ] = true; } ); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? createOptions( options ) : jQuery.extend( {}, options ); var // Flag to know if list is currently firing firing, // Last fire value for non-forgettable lists memory, // Flag to know if list was already fired fired, // Flag to prevent firing locked, // Actual callback list list = [], // Queue of execution data for repeatable lists queue = [], // Index of currently firing callback (modified by add/remove as needed) firingIndex = -1, // Fire callbacks fire = function() { // Enforce single-firing locked = locked || options.once; // Execute callbacks for all pending executions, // respecting firingIndex overrides and runtime changes fired = firing = true; for ( ; queue.length; firingIndex = -1 ) { memory = queue.shift(); while ( ++firingIndex < list.length ) { // Run callback and check for early termination if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && options.stopOnFalse ) { // Jump to end and forget the data so .add doesn't re-fire firingIndex = list.length; memory = false; } } } // Forget the data if we're done with it if ( !options.memory ) { memory = false; } firing = false; // Clean up if we're done firing for good if ( locked ) { // Keep an empty list if we have data for future add calls if ( memory ) { list = []; // Otherwise, this object is spent } else { list = ""; } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // If we have memory from a past run, we should fire after adding if ( memory && !firing ) { firingIndex = list.length - 1; queue.push( memory ); } ( function add( args ) { jQuery.each( args, function( _, arg ) { if ( isFunction( arg ) ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && toType( arg ) !== "string" ) { // Inspect recursively add( arg ); } } ); } )( arguments ); if ( memory && !firing ) { fire(); } } return this; }, // Remove a callback from the list remove: function() { jQuery.each( arguments, function( _, arg ) { var index; while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( index <= firingIndex ) { firingIndex--; } } } ); return this; }, // Check if a given callback is in the list. // If no argument is given, return whether or not list has callbacks attached. has: function( fn ) { return fn ? jQuery.inArray( fn, list ) > -1 : list.length > 0; }, // Remove all callbacks from the list empty: function() { if ( list ) { list = []; } return this; }, // Disable .fire and .add // Abort any current/pending executions // Clear all callbacks and values disable: function() { locked = queue = []; list = memory = ""; return this; }, disabled: function() { return !list; }, // Disable .fire // Also disable .add unless we have memory (since it would have no effect) // Abort any pending executions lock: function() { locked = queue = []; if ( !memory && !firing ) { list = memory = ""; } return this; }, locked: function() { return !!locked; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { if ( !locked ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; queue.push( args ); if ( !firing ) { fire(); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; function Identity( v ) { return v; } function Thrower( ex ) { throw ex; } function adoptValue( value, resolve, reject, noValue ) { var method; try { // Check for promise aspect first to privilege synchronous behavior if ( value && isFunction( ( method = value.promise ) ) ) { method.call( value ).done( resolve ).fail( reject ); // Other thenables } else if ( value && isFunction( ( method = value.then ) ) ) { method.call( value, resolve, reject ); // Other non-thenables } else { // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: // * false: [ value ].slice( 0 ) => resolve( value ) // * true: [ value ].slice( 1 ) => resolve() resolve.apply( undefined, [ value ].slice( noValue ) ); } // For Promises/A+, convert exceptions into rejections // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in // Deferred#then to conditionally suppress rejection. } catch ( value ) { // Support: Android 4.0 only // Strict mode functions invoked without .call/.apply get global-object context reject.apply( undefined, [ value ] ); } } jQuery.extend( { Deferred: function( func ) { var tuples = [ // action, add listener, callbacks, // ... .then handlers, argument index, [final state] [ "notify", "progress", jQuery.Callbacks( "memory" ), jQuery.Callbacks( "memory" ), 2 ], [ "resolve", "done", jQuery.Callbacks( "once memory" ), jQuery.Callbacks( "once memory" ), 0, "resolved" ], [ "reject", "fail", jQuery.Callbacks( "once memory" ), jQuery.Callbacks( "once memory" ), 1, "rejected" ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, "catch": function( fn ) { return promise.then( null, fn ); }, // Keep pipe for back-compat pipe: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred( function( newDefer ) { jQuery.each( tuples, function( _i, tuple ) { // Map tuples (progress, done, fail) to arguments (done, fail, progress) var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; // deferred.progress(function() { bind to newDefer or newDefer.notify }) // deferred.done(function() { bind to newDefer or newDefer.resolve }) // deferred.fail(function() { bind to newDefer or newDefer.reject }) deferred[ tuple[ 1 ] ]( function() { var returned = fn && fn.apply( this, arguments ); if ( returned && isFunction( returned.promise ) ) { returned.promise() .progress( newDefer.notify ) .done( newDefer.resolve ) .fail( newDefer.reject ); } else { newDefer[ tuple[ 0 ] + "With" ]( this, fn ? [ returned ] : arguments ); } } ); } ); fns = null; } ).promise(); }, then: function( onFulfilled, onRejected, onProgress ) { var maxDepth = 0; function resolve( depth, deferred, handler, special ) { return function() { var that = this, args = arguments, mightThrow = function() { var returned, then; // Support: Promises/A+ section 2.3.3.3.3 // https://promisesaplus.com/#point-59 // Ignore double-resolution attempts if ( depth < maxDepth ) { return; } returned = handler.apply( that, args ); // Support: Promises/A+ section 2.3.1 // https://promisesaplus.com/#point-48 if ( returned === deferred.promise() ) { throw new TypeError( "Thenable self-resolution" ); } // Support: Promises/A+ sections 2.3.3.1, 3.5 // https://promisesaplus.com/#point-54 // https://promisesaplus.com/#point-75 // Retrieve `then` only once then = returned && // Support: Promises/A+ section 2.3.4 // https://promisesaplus.com/#point-64 // Only check objects and functions for thenability ( typeof returned === "object" || typeof returned === "function" ) && returned.then; // Handle a returned thenable if ( isFunction( then ) ) { // Special processors (notify) just wait for resolution if ( special ) { then.call( returned, resolve( maxDepth, deferred, Identity, special ), resolve( maxDepth, deferred, Thrower, special ) ); // Normal processors (resolve) also hook into progress } else { // ...and disregard older resolution values maxDepth++; then.call( returned, resolve( maxDepth, deferred, Identity, special ), resolve( maxDepth, deferred, Thrower, special ), resolve( maxDepth, deferred, Identity, deferred.notifyWith ) ); } // Handle all other returned values } else { // Only substitute handlers pass on context // and multiple values (non-spec behavior) if ( handler !== Identity ) { that = undefined; args = [ returned ]; } // Process the value(s) // Default process is resolve ( special || deferred.resolveWith )( that, args ); } }, // Only normal processors (resolve) catch and reject exceptions process = special ? mightThrow : function() { try { mightThrow(); } catch ( e ) { if ( jQuery.Deferred.exceptionHook ) { jQuery.Deferred.exceptionHook( e, process.stackTrace ); } // Support: Promises/A+ section 2.3.3.3.4.1 // https://promisesaplus.com/#point-61 // Ignore post-resolution exceptions if ( depth + 1 >= maxDepth ) { // Only substitute handlers pass on context // and multiple values (non-spec behavior) if ( handler !== Thrower ) { that = undefined; args = [ e ]; } deferred.rejectWith( that, args ); } } }; // Support: Promises/A+ section 2.3.3.3.1 // https://promisesaplus.com/#point-57 // Re-resolve promises immediately to dodge false rejection from // subsequent errors if ( depth ) { process(); } else { // Call an optional hook to record the stack, in case of exception // since it's otherwise lost when execution goes async if ( jQuery.Deferred.getStackHook ) { process.stackTrace = jQuery.Deferred.getStackHook(); } window.setTimeout( process ); } }; } return jQuery.Deferred( function( newDefer ) { // progress_handlers.add( ... ) tuples[ 0 ][ 3 ].add( resolve( 0, newDefer, isFunction( onProgress ) ? onProgress : Identity, newDefer.notifyWith ) ); // fulfilled_handlers.add( ... ) tuples[ 1 ][ 3 ].add( resolve( 0, newDefer, isFunction( onFulfilled ) ? onFulfilled : Identity ) ); // rejected_handlers.add( ... ) tuples[ 2 ][ 3 ].add( resolve( 0, newDefer, isFunction( onRejected ) ? onRejected : Thrower ) ); } ).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 5 ]; // promise.progress = list.add // promise.done = list.add // promise.fail = list.add promise[ tuple[ 1 ] ] = list.add; // Handle state if ( stateString ) { list.add( function() { // state = "resolved" (i.e., fulfilled) // state = "rejected" state = stateString; }, // rejected_callbacks.disable // fulfilled_callbacks.disable tuples[ 3 - i ][ 2 ].disable, // rejected_handlers.disable // fulfilled_handlers.disable tuples[ 3 - i ][ 3 ].disable, // progress_callbacks.lock tuples[ 0 ][ 2 ].lock, // progress_handlers.lock tuples[ 0 ][ 3 ].lock ); } // progress_handlers.fire // fulfilled_handlers.fire // rejected_handlers.fire list.add( tuple[ 3 ].fire ); // deferred.notify = function() { deferred.notifyWith(...) } // deferred.resolve = function() { deferred.resolveWith(...) } // deferred.reject = function() { deferred.rejectWith(...) } deferred[ tuple[ 0 ] ] = function() { deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); return this; }; // deferred.notifyWith = list.fireWith // deferred.resolveWith = list.fireWith // deferred.rejectWith = list.fireWith deferred[ tuple[ 0 ] + "With" ] = list.fireWith; } ); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( singleValue ) { var // count of uncompleted subordinates remaining = arguments.length, // count of unprocessed arguments i = remaining, // subordinate fulfillment data resolveContexts = Array( i ), resolveValues = slice.call( arguments ), // the master Deferred master = jQuery.Deferred(), // subordinate callback factory updateFunc = function( i ) { return function( value ) { resolveContexts[ i ] = this; resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; if ( !( --remaining ) ) { master.resolveWith( resolveContexts, resolveValues ); } }; }; // Single- and empty arguments are adopted like Promise.resolve if ( remaining <= 1 ) { adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, !remaining ); // Use .then() to unwrap secondary thenables (cf. gh-3000) if ( master.state() === "pending" || isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { return master.then(); } } // Multiple arguments are aggregated like Promise.all array elements while ( i-- ) { adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); } return master.promise(); } } ); // These usually indicate a programmer mistake during development, // warn about them ASAP rather than swallowing them by default. var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; jQuery.Deferred.exceptionHook = function( error, stack ) { // Support: IE 8 - 9 only // Console exists when dev tools are open, which can happen at any time if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); } }; jQuery.readyException = function( error ) { window.setTimeout( function() { throw error; } ); }; // The deferred used on DOM ready var readyList = jQuery.Deferred(); jQuery.fn.ready = function( fn ) { readyList .then( fn ) // Wrap jQuery.readyException in a function so that the lookup // happens at the time of error handling instead of callback // registration. .catch( function( error ) { jQuery.readyException( error ); } ); return this; }; jQuery.extend( { // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); } } ); jQuery.ready.then = readyList.then; // The ready event handler and self cleanup method function completed() { document.removeEventListener( "DOMContentLoaded", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); } // Catch cases where $(document).ready() is called // after the browser event has already occurred. // Support: IE <=9 - 10 only // Older IE sometimes signals "interactive" too soon if ( document.readyState === "complete" || ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { // Handle it asynchronously to allow scripts the opportunity to delay ready window.setTimeout( jQuery.ready ); } else { // Use the handy event callback document.addEventListener( "DOMContentLoaded", completed ); // A fallback to window.onload, that will always work window.addEventListener( "load", completed ); } // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, len = elems.length, bulk = key == null; // Sets many values if ( toType( key ) === "object" ) { chainable = true; for ( i in key ) { access( elems, fn, i, key[ i ], true, emptyGet, raw ); } // Sets one value } else if ( value !== undefined ) { chainable = true; if ( !isFunction( value ) ) { raw = true; } if ( bulk ) { // Bulk operations run against the entire set if ( raw ) { fn.call( elems, value ); fn = null; // ...except when executing function values } else { bulk = fn; fn = function( elem, _key, value ) { return bulk.call( jQuery( elem ), value ); }; } } if ( fn ) { for ( ; i < len; i++ ) { fn( elems[ i ], key, raw ? value : value.call( elems[ i ], i, fn( elems[ i ], key ) ) ); } } } if ( chainable ) { return elems; } // Gets if ( bulk ) { return fn.call( elems ); } return len ? fn( elems[ 0 ], key ) : emptyGet; }; // Matches dashed string for camelizing var rmsPrefix = /^-ms-/, rdashAlpha = /-([a-z])/g; // Used by camelCase as callback to replace() function fcamelCase( _all, letter ) { return letter.toUpperCase(); } // Convert dashed to camelCase; used by the css and data modules // Support: IE <=9 - 11, Edge 12 - 15 // Microsoft forgot to hump their vendor prefix (#9572) function camelCase( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); } var acceptData = function( owner ) { // Accepts only: // - Node // - Node.ELEMENT_NODE // - Node.DOCUMENT_NODE // - Object // - Any return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); }; function Data() { this.expando = jQuery.expando + Data.uid++; } Data.uid = 1; Data.prototype = { cache: function( owner ) { // Check if the owner object already has a cache var value = owner[ this.expando ]; // If not, create one if ( !value ) { value = {}; // We can accept data for non-element nodes in modern browsers, // but we should not, see #8335. // Always return an empty object. if ( acceptData( owner ) ) { // If it is a node unlikely to be stringify-ed or looped over // use plain assignment if ( owner.nodeType ) { owner[ this.expando ] = value; // Otherwise secure it in a non-enumerable property // configurable must be true to allow the property to be // deleted when data is removed } else { Object.defineProperty( owner, this.expando, { value: value, configurable: true } ); } } } return value; }, set: function( owner, data, value ) { var prop, cache = this.cache( owner ); // Handle: [ owner, key, value ] args // Always use camelCase key (gh-2257) if ( typeof data === "string" ) { cache[ camelCase( data ) ] = value; // Handle: [ owner, { properties } ] args } else { // Copy the properties one-by-one to the cache object for ( prop in data ) { cache[ camelCase( prop ) ] = data[ prop ]; } } return cache; }, get: function( owner, key ) { return key === undefined ? this.cache( owner ) : // Always use camelCase key (gh-2257) owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; }, access: function( owner, key, value ) { // In cases where either: // // 1. No key was specified // 2. A string key was specified, but no value provided // // Take the "read" path and allow the get method to determine // which value to return, respectively either: // // 1. The entire cache object // 2. The data stored at the key // if ( key === undefined || ( ( key && typeof key === "string" ) && value === undefined ) ) { return this.get( owner, key ); } // When the key is not a string, or both a key and value // are specified, set or extend (existing objects) with either: // // 1. An object of properties // 2. A key and value // this.set( owner, key, value ); // Since the "set" path can have two possible entry points // return the expected data based on which path was taken[*] return value !== undefined ? value : key; }, remove: function( owner, key ) { var i, cache = owner[ this.expando ]; if ( cache === undefined ) { return; } if ( key !== undefined ) { // Support array or space separated string of keys if ( Array.isArray( key ) ) { // If key is an array of keys... // We always set camelCase keys, so remove that. key = key.map( camelCase ); } else { key = camelCase( key ); // If a key with the spaces exists, use it. // Otherwise, create an array by matching non-whitespace key = key in cache ? [ key ] : ( key.match( rnothtmlwhite ) || [] ); } i = key.length; while ( i-- ) { delete cache[ key[ i ] ]; } } // Remove the expando if there's no more data if ( key === undefined || jQuery.isEmptyObject( cache ) ) { // Support: Chrome <=35 - 45 // Webkit & Blink performance suffers when deleting properties // from DOM nodes, so set to undefined instead // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) if ( owner.nodeType ) { owner[ this.expando ] = undefined; } else { delete owner[ this.expando ]; } } }, hasData: function( owner ) { var cache = owner[ this.expando ]; return cache !== undefined && !jQuery.isEmptyObject( cache ); } }; var dataPriv = new Data(); var dataUser = new Data(); // Implementation Summary // // 1. Enforce API surface and semantic compatibility with 1.9.x branch // 2. Improve the module's maintainability by reducing the storage // paths to a single mechanism. // 3. Use the same single mechanism to support "private" and "user" data. // 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) // 5. Avoid exposing implementation details on user objects (eg. expando properties) // 6. Provide a clear path for implementation upgrade to WeakMap in 2014 var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /[A-Z]/g; function getData( data ) { if ( data === "true" ) { return true; } if ( data === "false" ) { return false; } if ( data === "null" ) { return null; } // Only convert to a number if it doesn't change the string if ( data === +data + "" ) { return +data; } if ( rbrace.test( data ) ) { return JSON.parse( data ); } return data; } function dataAttr( elem, key, data ) { var name; // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = getData( data ); } catch ( e ) {} // Make sure we set the data so it isn't changed later dataUser.set( elem, key, data ); } else { data = undefined; } } return data; } jQuery.extend( { hasData: function( elem ) { return dataUser.hasData( elem ) || dataPriv.hasData( elem ); }, data: function( elem, name, data ) { return dataUser.access( elem, name, data ); }, removeData: function( elem, name ) { dataUser.remove( elem, name ); }, // TODO: Now that all calls to _data and _removeData have been replaced // with direct calls to dataPriv methods, these can be deprecated. _data: function( elem, name, data ) { return dataPriv.access( elem, name, data ); }, _removeData: function( elem, name ) { dataPriv.remove( elem, name ); } } ); jQuery.fn.extend( { data: function( key, value ) { var i, name, data, elem = this[ 0 ], attrs = elem && elem.attributes; // Gets all values if ( key === undefined ) { if ( this.length ) { data = dataUser.get( elem ); if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { i = attrs.length; while ( i-- ) { // Support: IE 11 only // The attrs elements can be null (#14894) if ( attrs[ i ] ) { name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { name = camelCase( name.slice( 5 ) ); dataAttr( elem, name, data[ name ] ); } } } dataPriv.set( elem, "hasDataAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each( function() { dataUser.set( this, key ); } ); } return access( this, function( value ) { var data; // The calling jQuery object (element matches) is not empty // (and therefore has an element appears at this[ 0 ]) and the // `value` parameter was not undefined. An empty jQuery object // will result in `undefined` for elem = this[ 0 ] which will // throw an exception if an attempt to read a data cache is made. if ( elem && value === undefined ) { // Attempt to get data from the cache // The key will always be camelCased in Data data = dataUser.get( elem, key ); if ( data !== undefined ) { return data; } // Attempt to "discover" the data in // HTML5 custom data-* attrs data = dataAttr( elem, key ); if ( data !== undefined ) { return data; } // We tried really hard, but the data doesn't exist. return; } // Set the data... this.each( function() { // We always store the camelCased key dataUser.set( this, key, value ); } ); }, null, value, arguments.length > 1, null, true ); }, removeData: function( key ) { return this.each( function() { dataUser.remove( this, key ); } ); } } ); jQuery.extend( { queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = dataPriv.get( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || Array.isArray( data ) ) { queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // Clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // Not public - generate a queueHooks object, or return the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { empty: jQuery.Callbacks( "once memory" ).add( function() { dataPriv.remove( elem, [ type + "queue", key ] ); } ) } ); } } ); jQuery.fn.extend( { queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[ 0 ], type ); } return data === undefined ? this : this.each( function() { var queue = jQuery.queue( this, type, data ); // Ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { jQuery.dequeue( this, type ); } } ); }, dequeue: function( type ) { return this.each( function() { jQuery.dequeue( this, type ); } ); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while ( i-- ) { tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } } ); var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; var documentElement = document.documentElement; var isAttached = function( elem ) { return jQuery.contains( elem.ownerDocument, elem ); }, composed = { composed: true }; // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only // Check attachment across shadow DOM boundaries when possible (gh-3504) // Support: iOS 10.0-10.2 only // Early iOS 10 versions support `attachShadow` but not `getRootNode`, // leading to errors. We need to check for `getRootNode`. if ( documentElement.getRootNode ) { isAttached = function( elem ) { return jQuery.contains( elem.ownerDocument, elem ) || elem.getRootNode( composed ) === elem.ownerDocument; }; } var isHiddenWithinTree = function( elem, el ) { // isHiddenWithinTree might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; // Inline style trumps all return elem.style.display === "none" || elem.style.display === "" && // Otherwise, check computed style // Support: Firefox <=43 - 45 // Disconnected elements can have computed display: none, so first confirm that elem is // in the document. isAttached( elem ) && jQuery.css( elem, "display" ) === "none"; }; function adjustCSS( elem, prop, valueParts, tween ) { var adjusted, scale, maxIterations = 20, currentValue = tween ? function() { return tween.cur(); } : function() { return jQuery.css( elem, prop, "" ); }, initial = currentValue(), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), // Starting value computation is required for potential unit mismatches initialInUnit = elem.nodeType && ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && rcssNum.exec( jQuery.css( elem, prop ) ); if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { // Support: Firefox <=54 // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) initial = initial / 2; // Trust units reported by jQuery.css unit = unit || initialInUnit[ 3 ]; // Iteratively approximate from a nonzero starting point initialInUnit = +initial || 1; while ( maxIterations-- ) { // Evaluate and update our best guess (doubling guesses that zero out). // Finish if the scale equals or crosses 1 (making the old*new product non-positive). jQuery.style( elem, prop, initialInUnit + unit ); if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { maxIterations = 0; } initialInUnit = initialInUnit / scale; } initialInUnit = initialInUnit * 2; jQuery.style( elem, prop, initialInUnit + unit ); // Make sure we update the tween properties later on valueParts = valueParts || []; } if ( valueParts ) { initialInUnit = +initialInUnit || +initial || 0; // Apply relative offset (+=/-=) if specified adjusted = valueParts[ 1 ] ? initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : +valueParts[ 2 ]; if ( tween ) { tween.unit = unit; tween.start = initialInUnit; tween.end = adjusted; } } return adjusted; } var defaultDisplayMap = {}; function getDefaultDisplay( elem ) { var temp, doc = elem.ownerDocument, nodeName = elem.nodeName, display = defaultDisplayMap[ nodeName ]; if ( display ) { return display; } temp = doc.body.appendChild( doc.createElement( nodeName ) ); display = jQuery.css( temp, "display" ); temp.parentNode.removeChild( temp ); if ( display === "none" ) { display = "block"; } defaultDisplayMap[ nodeName ] = display; return display; } function showHide( elements, show ) { var display, elem, values = [], index = 0, length = elements.length; // Determine new display value for elements that need to change for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } display = elem.style.display; if ( show ) { // Since we force visibility upon cascade-hidden elements, an immediate (and slow) // check is required in this first loop unless we have a nonempty display value (either // inline or about-to-be-restored) if ( display === "none" ) { values[ index ] = dataPriv.get( elem, "display" ) || null; if ( !values[ index ] ) { elem.style.display = ""; } } if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { values[ index ] = getDefaultDisplay( elem ); } } else { if ( display !== "none" ) { values[ index ] = "none"; // Remember what we're overwriting dataPriv.set( elem, "display", display ); } } } // Set the display of the elements in a second loop to avoid constant reflow for ( index = 0; index < length; index++ ) { if ( values[ index ] != null ) { elements[ index ].style.display = values[ index ]; } } return elements; } jQuery.fn.extend( { show: function() { return showHide( this, true ); }, hide: function() { return showHide( this ); }, toggle: function( state ) { if ( typeof state === "boolean" ) { return state ? this.show() : this.hide(); } return this.each( function() { if ( isHiddenWithinTree( this ) ) { jQuery( this ).show(); } else { jQuery( this ).hide(); } } ); } } ); var rcheckableType = ( /^(?:checkbox|radio)$/i ); var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); ( function() { var fragment = document.createDocumentFragment(), div = fragment.appendChild( document.createElement( "div" ) ), input = document.createElement( "input" ); // Support: Android 4.0 - 4.3 only // Check state lost if the name is set (#11217) // Support: Windows Web Apps (WWA) // `name` and `type` must use .setAttribute for WWA (#14901) input.setAttribute( "type", "radio" ); input.setAttribute( "checked", "checked" ); input.setAttribute( "name", "t" ); div.appendChild( input ); // Support: Android <=4.1 only // Older WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; // Support: IE <=11 only // Make sure textarea (and checkbox) defaultValue is properly cloned div.innerHTML = ""; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; // Support: IE <=9 only // IE <=9 replaces "; support.option = !!div.lastChild; } )(); // We have to close these tags to support XHTML (#13200) var wrapMap = { // XHTML parsers do not magically insert elements in the // same way that tag soup parsers do. So we cannot shorten // this by omitting or other required elements. thead: [ 1, "", "
" ], col: [ 2, "", "
" ], tr: [ 2, "", "
" ], td: [ 3, "", "
" ], _default: [ 0, "", "" ] }; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; // Support: IE <=9 only if ( !support.option ) { wrapMap.optgroup = wrapMap.option = [ 1, "" ]; } function getAll( context, tag ) { // Support: IE <=9 - 11 only // Use typeof to avoid zero-argument method invocation on host objects (#15151) var ret; if ( typeof context.getElementsByTagName !== "undefined" ) { ret = context.getElementsByTagName( tag || "*" ); } else if ( typeof context.querySelectorAll !== "undefined" ) { ret = context.querySelectorAll( tag || "*" ); } else { ret = []; } if ( tag === undefined || tag && nodeName( context, tag ) ) { return jQuery.merge( [ context ], ret ); } return ret; } // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { var i = 0, l = elems.length; for ( ; i < l; i++ ) { dataPriv.set( elems[ i ], "globalEval", !refElements || dataPriv.get( refElements[ i ], "globalEval" ) ); } } var rhtml = /<|&#?\w+;/; function buildFragment( elems, context, scripts, selection, ignored ) { var elem, tmp, tag, wrap, attached, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( toType( elem ) === "object" ) { // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); // Convert non-html into a text node } else if ( !rhtml.test( elem ) ) { nodes.push( context.createTextNode( elem ) ); // Convert html into DOM nodes } else { tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); // Deserialize a standard representation tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; // Descend through wrappers to the right content j = wrap[ 0 ]; while ( j-- ) { tmp = tmp.lastChild; } // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, tmp.childNodes ); // Remember the top-level container tmp = fragment.firstChild; // Ensure the created nodes are orphaned (#12392) tmp.textContent = ""; } } } // Remove wrapper from fragment fragment.textContent = ""; i = 0; while ( ( elem = nodes[ i++ ] ) ) { // Skip elements already in the context collection (trac-4087) if ( selection && jQuery.inArray( elem, selection ) > -1 ) { if ( ignored ) { ignored.push( elem ); } continue; } attached = isAttached( elem ); // Append to fragment tmp = getAll( fragment.appendChild( elem ), "script" ); // Preserve script evaluation history if ( attached ) { setGlobalEval( tmp ); } // Capture executables if ( scripts ) { j = 0; while ( ( elem = tmp[ j++ ] ) ) { if ( rscriptType.test( elem.type || "" ) ) { scripts.push( elem ); } } } } return fragment; } var rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, rtypenamespace = /^([^.]*)(?:\.(.+)|)/; function returnTrue() { return true; } function returnFalse() { return false; } // Support: IE <=9 - 11+ // focus() and blur() are asynchronous, except when they are no-op. // So expect focus to be synchronous when the element is already active, // and blur to be synchronous when the element is not already active. // (focus and blur are always synchronous in other supported browsers, // this just defines when we can count on it). function expectSync( elem, type ) { return ( elem === safeActiveElement() ) === ( type === "focus" ); } // Support: IE <=9 only // Accessing document.activeElement can throw unexpectedly // https://bugs.jquery.com/ticket/13393 function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } } function on( elem, types, selector, data, fn, one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { on( elem, type, selector, data, types[ type ], one ); } return elem; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return elem; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return elem.each( function() { jQuery.event.add( this, types, fn, data, selector ); } ); } /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { global: {}, add: function( elem, types, handler, data, selector ) { var handleObjIn, eventHandle, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.get( elem ); // Only attach events to objects that accept data if ( !acceptData( elem ) ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Ensure that invalid selectors throw exceptions at attach time // Evaluate against documentElement in case elem is a non-element node (e.g., document) if ( selector ) { jQuery.find.matchesSelector( documentElement, selector ); } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first if ( !( events = elemData.events ) ) { events = elemData.events = Object.create( null ); } if ( !( eventHandle = elemData.handle ) ) { eventHandle = elemData.handle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? jQuery.event.dispatch.apply( elem, arguments ) : undefined; }; } // Handle multiple events separated by a space types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; type = origType = tmp[ 1 ]; namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); // There *must* be a type, no attaching namespace-only handlers if ( !type ) { continue; } // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend( { type: type, origType: origType, data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join( "." ) }, handleObjIn ); // Init the event handler queue if we're the first if ( !( handlers = events[ type ] ) ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } }, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var j, origCount, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); if ( !elemData || !( events = elemData.events ) ) { return; } // Once for each type.namespace in types; type may be omitted types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; type = origType = tmp[ 1 ]; namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector ? special.delegateType : special.bindType ) || type; handlers = events[ type ] || []; tmp = tmp[ 2 ] && new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); // Remove matching events origCount = j = handlers.length; while ( j-- ) { handleObj = handlers[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !tmp || tmp.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { handlers.splice( j, 1 ); if ( handleObj.selector ) { handlers.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( origCount && !handlers.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove data and the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { dataPriv.remove( elem, "handle events" ); } }, dispatch: function( nativeEvent ) { var i, j, ret, matched, handleObj, handlerQueue, args = new Array( arguments.length ), // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( nativeEvent ), handlers = ( dataPriv.get( this, "events" ) || Object.create( null ) )[ event.type ] || [], special = jQuery.event.special[ event.type ] || {}; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[ 0 ] = event; for ( i = 1; i < arguments.length; i++ ) { args[ i ] = arguments[ i ]; } event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers handlerQueue = jQuery.event.handlers.call( this, event, handlers ); // Run delegates first; they may want to stop propagation beneath us i = 0; while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { event.currentTarget = matched.elem; j = 0; while ( ( handleObj = matched.handlers[ j++ ] ) && !event.isImmediatePropagationStopped() ) { // If the event is namespaced, then each handler is only invoked if it is // specially universal or its namespaces are a superset of the event's. if ( !event.rnamespace || handleObj.namespace === false || event.rnamespace.test( handleObj.namespace ) ) { event.handleObj = handleObj; event.data = handleObj.data; ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || handleObj.handler ).apply( matched.elem, args ); if ( ret !== undefined ) { if ( ( event.result = ret ) === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, handlers: function( event, handlers ) { var i, handleObj, sel, matchedHandlers, matchedSelectors, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target; // Find delegate handlers if ( delegateCount && // Support: IE <=9 // Black-hole SVG instance trees (trac-13180) cur.nodeType && // Support: Firefox <=42 // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click // Support: IE 11 only // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) !( event.type === "click" && event.button >= 1 ) ) { for ( ; cur !== this; cur = cur.parentNode || this ) { // Don't check non-elements (#13208) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { matchedHandlers = []; matchedSelectors = {}; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; // Don't conflict with Object.prototype properties (#13203) sel = handleObj.selector + " "; if ( matchedSelectors[ sel ] === undefined ) { matchedSelectors[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) > -1 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( matchedSelectors[ sel ] ) { matchedHandlers.push( handleObj ); } } if ( matchedHandlers.length ) { handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); } } } } // Add the remaining (directly-bound) handlers cur = this; if ( delegateCount < handlers.length ) { handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); } return handlerQueue; }, addProp: function( name, hook ) { Object.defineProperty( jQuery.Event.prototype, name, { enumerable: true, configurable: true, get: isFunction( hook ) ? function() { if ( this.originalEvent ) { return hook( this.originalEvent ); } } : function() { if ( this.originalEvent ) { return this.originalEvent[ name ]; } }, set: function( value ) { Object.defineProperty( this, name, { enumerable: true, configurable: true, writable: true, value: value } ); } } ); }, fix: function( originalEvent ) { return originalEvent[ jQuery.expando ] ? originalEvent : new jQuery.Event( originalEvent ); }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, click: { // Utilize native event to ensure correct state for checkable inputs setup: function( data ) { // For mutual compressibility with _default, replace `this` access with a local var. // `|| data` is dead code meant only to preserve the variable through minification. var el = this || data; // Claim the first handler if ( rcheckableType.test( el.type ) && el.click && nodeName( el, "input" ) ) { // dataPriv.set( el, "click", ... ) leverageNative( el, "click", returnTrue ); } // Return false to allow normal processing in the caller return false; }, trigger: function( data ) { // For mutual compressibility with _default, replace `this` access with a local var. // `|| data` is dead code meant only to preserve the variable through minification. var el = this || data; // Force setup before triggering a click if ( rcheckableType.test( el.type ) && el.click && nodeName( el, "input" ) ) { leverageNative( el, "click" ); } // Return non-false to allow normal event-path propagation return true; }, // For cross-browser consistency, suppress native .click() on links // Also prevent it if we're currently inside a leveraged native-event stack _default: function( event ) { var target = event.target; return rcheckableType.test( target.type ) && target.click && nodeName( target, "input" ) && dataPriv.get( target, "click" ) || nodeName( target, "a" ); } }, beforeunload: { postDispatch: function( event ) { // Support: Firefox 20+ // Firefox doesn't alert if the returnValue field is not set. if ( event.result !== undefined && event.originalEvent ) { event.originalEvent.returnValue = event.result; } } } } }; // Ensure the presence of an event listener that handles manually-triggered // synthetic events by interrupting progress until reinvoked in response to // *native* events that it fires directly, ensuring that state changes have // already occurred before other listeners are invoked. function leverageNative( el, type, expectSync ) { // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add if ( !expectSync ) { if ( dataPriv.get( el, type ) === undefined ) { jQuery.event.add( el, type, returnTrue ); } return; } // Register the controller as a special universal handler for all event namespaces dataPriv.set( el, type, false ); jQuery.event.add( el, type, { namespace: false, handler: function( event ) { var notAsync, result, saved = dataPriv.get( this, type ); if ( ( event.isTrigger & 1 ) && this[ type ] ) { // Interrupt processing of the outer synthetic .trigger()ed event // Saved data should be false in such cases, but might be a leftover capture object // from an async native handler (gh-4350) if ( !saved.length ) { // Store arguments for use when handling the inner native event // There will always be at least one argument (an event object), so this array // will not be confused with a leftover capture object. saved = slice.call( arguments ); dataPriv.set( this, type, saved ); // Trigger the native event and capture its result // Support: IE <=9 - 11+ // focus() and blur() are asynchronous notAsync = expectSync( this, type ); this[ type ](); result = dataPriv.get( this, type ); if ( saved !== result || notAsync ) { dataPriv.set( this, type, false ); } else { result = {}; } if ( saved !== result ) { // Cancel the outer synthetic event event.stopImmediatePropagation(); event.preventDefault(); return result.value; } // If this is an inner synthetic event for an event with a bubbling surrogate // (focus or blur), assume that the surrogate already propagated from triggering the // native event and prevent that from happening again here. // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the // bubbling surrogate propagates *after* the non-bubbling base), but that seems // less bad than duplication. } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { event.stopPropagation(); } // If this is a native event triggered above, everything is now in order // Fire an inner synthetic event with the original arguments } else if ( saved.length ) { // ...and capture the result dataPriv.set( this, type, { value: jQuery.event.trigger( // Support: IE <=9 - 11+ // Extend with the prototype to reset the above stopImmediatePropagation() jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), saved.slice( 1 ), this ) } ); // Abort handling of the native event event.stopImmediatePropagation(); } } } ); } jQuery.removeEvent = function( elem, type, handle ) { // This "if" is needed for plain objects if ( elem.removeEventListener ) { elem.removeEventListener( type, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !( this instanceof jQuery.Event ) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === undefined && // Support: Android <=2.3 only src.returnValue === false ? returnTrue : returnFalse; // Create target properties // Support: Safari <=6 - 7 only // Target should not be a text node (#504, #13143) this.target = ( src.target && src.target.nodeType === 3 ) ? src.target.parentNode : src.target; this.currentTarget = src.currentTarget; this.relatedTarget = src.relatedTarget; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || Date.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { constructor: jQuery.Event, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse, isSimulated: false, preventDefault: function() { var e = this.originalEvent; this.isDefaultPrevented = returnTrue; if ( e && !this.isSimulated ) { e.preventDefault(); } }, stopPropagation: function() { var e = this.originalEvent; this.isPropagationStopped = returnTrue; if ( e && !this.isSimulated ) { e.stopPropagation(); } }, stopImmediatePropagation: function() { var e = this.originalEvent; this.isImmediatePropagationStopped = returnTrue; if ( e && !this.isSimulated ) { e.stopImmediatePropagation(); } this.stopPropagation(); } }; // Includes all common event props including KeyEvent and MouseEvent specific props jQuery.each( { altKey: true, bubbles: true, cancelable: true, changedTouches: true, ctrlKey: true, detail: true, eventPhase: true, metaKey: true, pageX: true, pageY: true, shiftKey: true, view: true, "char": true, code: true, charCode: true, key: true, keyCode: true, button: true, buttons: true, clientX: true, clientY: true, offsetX: true, offsetY: true, pointerId: true, pointerType: true, screenX: true, screenY: true, targetTouches: true, toElement: true, touches: true, which: function( event ) { var button = event.button; // Add which for key events if ( event.which == null && rkeyEvent.test( event.type ) ) { return event.charCode != null ? event.charCode : event.keyCode; } // Add which for click: 1 === left; 2 === middle; 3 === right if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { if ( button & 1 ) { return 1; } if ( button & 2 ) { return 3; } if ( button & 4 ) { return 2; } return 0; } return event.which; } }, jQuery.event.addProp ); jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { jQuery.event.special[ type ] = { // Utilize native event if possible so blur/focus sequence is correct setup: function() { // Claim the first handler // dataPriv.set( this, "focus", ... ) // dataPriv.set( this, "blur", ... ) leverageNative( this, type, expectSync ); // Return false to allow normal processing in the caller return false; }, trigger: function() { // Force setup before trigger leverageNative( this, type ); // Return non-false to allow normal event-path propagation return true; }, delegateType: delegateType }; } ); // Create mouseenter/leave events using mouseover/out and event-time checks // so that event delegation works in jQuery. // Do the same for pointerenter/pointerleave and pointerover/pointerout // // Support: Safari 7 only // Safari sends mouseenter too often; see: // https://bugs.chromium.org/p/chromium/issues/detail?id=470258 // for the description of the bug (it existed in older Chrome versions as well). jQuery.each( { mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj; // For mouseenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; } ); jQuery.fn.extend( { on: function( types, selector, data, fn ) { return on( this, types, selector, data, fn ); }, one: function( types, selector, data, fn ) { return on( this, types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each( function() { jQuery.event.remove( this, types, fn, selector ); } ); } } ); var // Support: IE <=10 - 11, Edge 12 - 13 only // In IE/Edge using regex groups here causes severe slowdowns. // See https://connect.microsoft.com/IE/feedback/details/1736512/ rnoInnerhtml = /\s*$/g; // Prefer a tbody over its parent table for containing new rows function manipulationTarget( elem, content ) { if ( nodeName( elem, "table" ) && nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { return jQuery( elem ).children( "tbody" )[ 0 ] || elem; } return elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; return elem; } function restoreScript( elem ) { if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { elem.type = elem.type.slice( 5 ); } else { elem.removeAttribute( "type" ); } return elem; } function cloneCopyEvent( src, dest ) { var i, l, type, pdataOld, udataOld, udataCur, events; if ( dest.nodeType !== 1 ) { return; } // 1. Copy private data: events, handlers, etc. if ( dataPriv.hasData( src ) ) { pdataOld = dataPriv.get( src ); events = pdataOld.events; if ( events ) { dataPriv.remove( dest, "handle events" ); for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } } // 2. Copy user data if ( dataUser.hasData( src ) ) { udataOld = dataUser.access( src ); udataCur = jQuery.extend( {}, udataOld ); dataUser.set( dest, udataCur ); } } // Fix IE bugs, see support tests function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected option to the default selected state when cloning options } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; } } function domManip( collection, args, callback, ignored ) { // Flatten any nested arrays args = flat( args ); var fragment, first, scripts, hasScripts, node, doc, i = 0, l = collection.length, iNoClone = l - 1, value = args[ 0 ], valueIsFunction = isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit if ( valueIsFunction || ( l > 1 && typeof value === "string" && !support.checkClone && rchecked.test( value ) ) ) { return collection.each( function( index ) { var self = collection.eq( index ); if ( valueIsFunction ) { args[ 0 ] = value.call( this, index, self.html() ); } domManip( self, args, callback, ignored ); } ); } if ( l ) { fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } // Require either new content or an interest in ignored elements to invoke the callback if ( first || ignored ) { scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); hasScripts = scripts.length; // Use the original fragment for the last item // instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). for ( ; i < l; i++ ) { node = fragment; if ( i !== iNoClone ) { node = jQuery.clone( node, true, true ); // Keep references to cloned scripts for later restoration if ( hasScripts ) { // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( scripts, getAll( node, "script" ) ); } } callback.call( collection[ i ], node, i ); } if ( hasScripts ) { doc = scripts[ scripts.length - 1 ].ownerDocument; // Reenable scripts jQuery.map( scripts, restoreScript ); // Evaluate executable scripts on first document insertion for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && !dataPriv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { // Optional AJAX dependency, but won't run scripts if not present if ( jQuery._evalUrl && !node.noModule ) { jQuery._evalUrl( node.src, { nonce: node.nonce || node.getAttribute( "nonce" ) }, doc ); } } else { DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); } } } } } } return collection; } function remove( elem, selector, keepData ) { var node, nodes = selector ? jQuery.filter( selector, elem ) : elem, i = 0; for ( ; ( node = nodes[ i ] ) != null; i++ ) { if ( !keepData && node.nodeType === 1 ) { jQuery.cleanData( getAll( node ) ); } if ( node.parentNode ) { if ( keepData && isAttached( node ) ) { setGlobalEval( getAll( node, "script" ) ); } node.parentNode.removeChild( node ); } } return elem; } jQuery.extend( { htmlPrefilter: function( html ) { return html; }, clone: function( elem, dataAndEvents, deepDataAndEvents ) { var i, l, srcElements, destElements, clone = elem.cloneNode( true ), inPage = isAttached( elem ); // Fix IE cloning issues if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 destElements = getAll( clone ); srcElements = getAll( elem ); for ( i = 0, l = srcElements.length; i < l; i++ ) { fixInput( srcElements[ i ], destElements[ i ] ); } } // Copy the events from the original to the clone if ( dataAndEvents ) { if ( deepDataAndEvents ) { srcElements = srcElements || getAll( elem ); destElements = destElements || getAll( clone ); for ( i = 0, l = srcElements.length; i < l; i++ ) { cloneCopyEvent( srcElements[ i ], destElements[ i ] ); } } else { cloneCopyEvent( elem, clone ); } } // Preserve script evaluation history destElements = getAll( clone, "script" ); if ( destElements.length > 0 ) { setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); } // Return the cloned set return clone; }, cleanData: function( elems ) { var data, elem, type, special = jQuery.event.special, i = 0; for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { if ( acceptData( elem ) ) { if ( ( data = elem[ dataPriv.expando ] ) ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } // Support: Chrome <=35 - 45+ // Assign undefined instead of using delete, see Data#remove elem[ dataPriv.expando ] = undefined; } if ( elem[ dataUser.expando ] ) { // Support: Chrome <=35 - 45+ // Assign undefined instead of using delete, see Data#remove elem[ dataUser.expando ] = undefined; } } } } } ); jQuery.fn.extend( { detach: function( selector ) { return remove( this, selector, true ); }, remove: function( selector ) { return remove( this, selector ); }, text: function( value ) { return access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().each( function() { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { this.textContent = value; } } ); }, null, value, arguments.length ); }, append: function() { return domManip( this, arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.appendChild( elem ); } } ); }, prepend: function() { return domManip( this, arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.insertBefore( elem, target.firstChild ); } } ); }, before: function() { return domManip( this, arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this ); } } ); }, after: function() { return domManip( this, arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this.nextSibling ); } } ); }, empty: function() { var elem, i = 0; for ( ; ( elem = this[ i ] ) != null; i++ ) { if ( elem.nodeType === 1 ) { // Prevent memory leaks jQuery.cleanData( getAll( elem, false ) ); // Remove any remaining nodes elem.textContent = ""; } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map( function() { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); } ); }, html: function( value ) { return access( this, function( value ) { var elem = this[ 0 ] || {}, i = 0, l = this.length; if ( value === undefined && elem.nodeType === 1 ) { return elem.innerHTML; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { value = jQuery.htmlPrefilter( value ); try { for ( ; i < l; i++ ) { elem = this[ i ] || {}; // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch ( e ) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function() { var ignored = []; // Make the changes, replacing each non-ignored context element with the new content return domManip( this, arguments, function( elem ) { var parent = this.parentNode; if ( jQuery.inArray( this, ignored ) < 0 ) { jQuery.cleanData( getAll( this ) ); if ( parent ) { parent.replaceChild( elem, this ); } } // Force callback invocation }, ignored ); } } ); jQuery.each( { appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, ret = [], insert = jQuery( selector ), last = insert.length - 1, i = 0; for ( ; i <= last; i++ ) { elems = i === last ? this : this.clone( true ); jQuery( insert[ i ] )[ original ]( elems ); // Support: Android <=4.0 only, PhantomJS 1 only // .get() because push.apply(_, arraylike) throws on ancient WebKit push.apply( ret, elems.get() ); } return this.pushStack( ret ); }; } ); var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); var getStyles = function( elem ) { // Support: IE <=11 only, Firefox <=30 (#15098, #14150) // IE throws on elements created in popups // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" var view = elem.ownerDocument.defaultView; if ( !view || !view.opener ) { view = window; } return view.getComputedStyle( elem ); }; var swap = function( elem, options, callback ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.call( elem ); // Revert the old values for ( name in options ) { elem.style[ name ] = old[ name ]; } return ret; }; var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); ( function() { // Executing both pixelPosition & boxSizingReliable tests require only one layout // so they're executed at the same time to save the second computation. function computeStyleTests() { // This is a singleton, we need to execute it only once if ( !div ) { return; } container.style.cssText = "position:absolute;left:-11111px;width:60px;" + "margin-top:1px;padding:0;border:0"; div.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + "margin:auto;border:1px;padding:1px;" + "width:60%;top:1%"; documentElement.appendChild( container ).appendChild( div ); var divStyle = window.getComputedStyle( div ); pixelPositionVal = divStyle.top !== "1%"; // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 // Some styles come back with percentage values, even though they shouldn't div.style.right = "60%"; pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; // Support: IE 9 - 11 only // Detect misreporting of content dimensions for box-sizing:border-box elements boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; // Support: IE 9 only // Detect overflow:scroll screwiness (gh-3699) // Support: Chrome <=64 // Don't get tricked when zoom affects offsetWidth (gh-4029) div.style.position = "absolute"; scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; documentElement.removeChild( container ); // Nullify the div so it wouldn't be stored in the memory and // it will also be a sign that checks already performed div = null; } function roundPixelMeasures( measure ) { return Math.round( parseFloat( measure ) ); } var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, reliableTrDimensionsVal, reliableMarginLeftVal, container = document.createElement( "div" ), div = document.createElement( "div" ); // Finish early in limited (non-browser) environments if ( !div.style ) { return; } // Support: IE <=9 - 11 only // Style of cloned element affects source element cloned (#8908) div.style.backgroundClip = "content-box"; div.cloneNode( true ).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box"; jQuery.extend( support, { boxSizingReliable: function() { computeStyleTests(); return boxSizingReliableVal; }, pixelBoxStyles: function() { computeStyleTests(); return pixelBoxStylesVal; }, pixelPosition: function() { computeStyleTests(); return pixelPositionVal; }, reliableMarginLeft: function() { computeStyleTests(); return reliableMarginLeftVal; }, scrollboxSize: function() { computeStyleTests(); return scrollboxSizeVal; }, // Support: IE 9 - 11+, Edge 15 - 18+ // IE/Edge misreport `getComputedStyle` of table rows with width/height // set in CSS while `offset*` properties report correct values. // Behavior in IE 9 is more subtle than in newer versions & it passes // some versions of this test; make sure not to make it pass there! reliableTrDimensions: function() { var table, tr, trChild, trStyle; if ( reliableTrDimensionsVal == null ) { table = document.createElement( "table" ); tr = document.createElement( "tr" ); trChild = document.createElement( "div" ); table.style.cssText = "position:absolute;left:-11111px"; tr.style.height = "1px"; trChild.style.height = "9px"; documentElement .appendChild( table ) .appendChild( tr ) .appendChild( trChild ); trStyle = window.getComputedStyle( tr ); reliableTrDimensionsVal = parseInt( trStyle.height ) > 3; documentElement.removeChild( table ); } return reliableTrDimensionsVal; } } ); } )(); function curCSS( elem, name, computed ) { var width, minWidth, maxWidth, ret, // Support: Firefox 51+ // Retrieving style before computed somehow // fixes an issue with getting wrong values // on detached elements style = elem.style; computed = computed || getStyles( elem ); // getPropertyValue is needed for: // .css('filter') (IE 9 only, #12537) // .css('--customProperty) (#3144) if ( computed ) { ret = computed.getPropertyValue( name ) || computed[ name ]; if ( ret === "" && !isAttached( elem ) ) { ret = jQuery.style( elem, name ); } // A tribute to the "awesome hack by Dean Edwards" // Android Browser returns percentage for some values, // but width seems to be reliably pixels. // This is against the CSSOM draft spec: // https://drafts.csswg.org/cssom/#resolved-values if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { // Remember the original values width = style.width; minWidth = style.minWidth; maxWidth = style.maxWidth; // Put in the new values to get a computed value out style.minWidth = style.maxWidth = style.width = ret; ret = computed.width; // Revert the changed values style.width = width; style.minWidth = minWidth; style.maxWidth = maxWidth; } } return ret !== undefined ? // Support: IE <=9 - 11 only // IE returns zIndex value as an integer. ret + "" : ret; } function addGetHookIf( conditionFn, hookFn ) { // Define the hook, we'll check on the first run if it's really needed. return { get: function() { if ( conditionFn() ) { // Hook not needed (or it's not possible to use it due // to missing dependency), remove it. delete this.get; return; } // Hook needed; redefine it so that the support test is not executed again. return ( this.get = hookFn ).apply( this, arguments ); } }; } var cssPrefixes = [ "Webkit", "Moz", "ms" ], emptyStyle = document.createElement( "div" ).style, vendorProps = {}; // Return a vendor-prefixed property or undefined function vendorPropName( name ) { // Check for vendor prefixed names var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in emptyStyle ) { return name; } } } // Return a potentially-mapped jQuery.cssProps or vendor prefixed property function finalPropName( name ) { var final = jQuery.cssProps[ name ] || vendorProps[ name ]; if ( final ) { return final; } if ( name in emptyStyle ) { return name; } return vendorProps[ name ] = vendorPropName( name ) || name; } var // Swappable if display is none or starts with table // except "table", "table-cell", or "table-caption" // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display rdisplayswap = /^(none|table(?!-c[ea]).+)/, rcustomProp = /^--/, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: "0", fontWeight: "400" }; function setPositiveNumber( _elem, value, subtract ) { // Any relative (+/-) values have already been // normalized at this point var matches = rcssNum.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : value; } function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { var i = dimension === "width" ? 1 : 0, extra = 0, delta = 0; // Adjustment may not be necessary if ( box === ( isBorderBox ? "border" : "content" ) ) { return 0; } for ( ; i < 4; i += 2 ) { // Both box models exclude margin if ( box === "margin" ) { delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); } // If we get here with a content-box, we're seeking "padding" or "border" or "margin" if ( !isBorderBox ) { // Add padding delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); // For "border" or "margin", add border if ( box !== "padding" ) { delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); // But still keep track of it otherwise } else { extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } // If we get here with a border-box (content + padding + border), we're seeking "content" or // "padding" or "margin" } else { // For "content", subtract padding if ( box === "content" ) { delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); } // For "content" or "padding", subtract border if ( box !== "margin" ) { delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } } // Account for positive content-box scroll gutter when requested by providing computedVal if ( !isBorderBox && computedVal >= 0 ) { // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border // Assuming integer scroll gutter, subtract the rest and round down delta += Math.max( 0, Math.ceil( elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - computedVal - delta - extra - 0.5 // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter // Use an explicit zero to avoid NaN (gh-3964) ) ) || 0; } return delta; } function getWidthOrHeight( elem, dimension, extra ) { // Start with computed style var styles = getStyles( elem ), // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). // Fake content-box until we know it's needed to know the true value. boxSizingNeeded = !support.boxSizingReliable() || extra, isBorderBox = boxSizingNeeded && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", valueIsBorderBox = isBorderBox, val = curCSS( elem, dimension, styles ), offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); // Support: Firefox <=54 // Return a confounding non-pixel value or feign ignorance, as appropriate. if ( rnumnonpx.test( val ) ) { if ( !extra ) { return val; } val = "auto"; } // Support: IE 9 - 11 only // Use offsetWidth/offsetHeight for when box sizing is unreliable. // In those cases, the computed value can be trusted to be border-box. if ( ( !support.boxSizingReliable() && isBorderBox || // Support: IE 10 - 11+, Edge 15 - 18+ // IE/Edge misreport `getComputedStyle` of table rows with width/height // set in CSS while `offset*` properties report correct values. // Interestingly, in some cases IE 9 doesn't suffer from this issue. !support.reliableTrDimensions() && nodeName( elem, "tr" ) || // Fall back to offsetWidth/offsetHeight when value is "auto" // This happens for inline elements with no explicit setting (gh-3571) val === "auto" || // Support: Android <=4.1 - 4.3 only // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && // Make sure the element is visible & connected elem.getClientRects().length ) { isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; // Where available, offsetWidth/offsetHeight approximate border box dimensions. // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the // retrieved value as a content box dimension. valueIsBorderBox = offsetProp in elem; if ( valueIsBorderBox ) { val = elem[ offsetProp ]; } } // Normalize "" and auto val = parseFloat( val ) || 0; // Adjust for the element's box model return ( val + boxModelAdjustment( elem, dimension, extra || ( isBorderBox ? "border" : "content" ), valueIsBorderBox, styles, // Provide the current computed size to request scroll gutter calculation (gh-3589) val ) ) + "px"; } jQuery.extend( { // Add in style property hooks for overriding the default // behavior of getting and setting a style property cssHooks: { opacity: { get: function( elem, computed ) { if ( computed ) { // We should always get a number back from opacity var ret = curCSS( elem, "opacity" ); return ret === "" ? "1" : ret; } } } }, // Don't automatically add "px" to these possibly-unitless properties cssNumber: { "animationIterationCount": true, "columnCount": true, "fillOpacity": true, "flexGrow": true, "flexShrink": true, "fontWeight": true, "gridArea": true, "gridColumn": true, "gridColumnEnd": true, "gridColumnStart": true, "gridRow": true, "gridRowEnd": true, "gridRowStart": true, "lineHeight": true, "opacity": true, "order": true, "orphans": true, "widows": true, "zIndex": true, "zoom": true }, // Add in properties whose names you wish to fix before // setting or getting the value cssProps: {}, // Get and set the style property on a DOM Node style: function( elem, name, value, extra ) { // Don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { return; } // Make sure that we're working with the right name var ret, type, hooks, origName = camelCase( name ), isCustomProp = rcustomProp.test( name ), style = elem.style; // Make sure that we're working with the right name. We don't // want to query the value if it is a CSS custom property // since they are user-defined. if ( !isCustomProp ) { name = finalPropName( origName ); } // Gets hook for the prefixed version, then unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // Check if we're setting a value if ( value !== undefined ) { type = typeof value; // Convert "+=" or "-=" to relative numbers (#7345) if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { value = adjustCSS( elem, name, ret ); // Fixes bug #9237 type = "number"; } // Make sure that null and NaN values aren't set (#7116) if ( value == null || value !== value ) { return; } // If a number was passed in, add the unit (except for certain CSS properties) // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append // "px" to a few hardcoded values. if ( type === "number" && !isCustomProp ) { value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); } // background-* props affect original clone's values if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { style[ name ] = "inherit"; } // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !( "set" in hooks ) || ( value = hooks.set( elem, value, extra ) ) !== undefined ) { if ( isCustomProp ) { style.setProperty( name, value ); } else { style[ name ] = value; } } } else { // If a hook was provided get the non-computed value from there if ( hooks && "get" in hooks && ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { return ret; } // Otherwise just get the value from the style object return style[ name ]; } }, css: function( elem, name, extra, styles ) { var val, num, hooks, origName = camelCase( name ), isCustomProp = rcustomProp.test( name ); // Make sure that we're working with the right name. We don't // want to modify the value if it is a CSS custom property // since they are user-defined. if ( !isCustomProp ) { name = finalPropName( origName ); } // Try prefixed name followed by the unprefixed name hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // If a hook was provided get the computed value from there if ( hooks && "get" in hooks ) { val = hooks.get( elem, true, extra ); } // Otherwise, if a way to get the computed value exists, use that if ( val === undefined ) { val = curCSS( elem, name, styles ); } // Convert "normal" to computed value if ( val === "normal" && name in cssNormalTransform ) { val = cssNormalTransform[ name ]; } // Make numeric if forced or a qualifier was provided and val looks numeric if ( extra === "" || extra ) { num = parseFloat( val ); return extra === true || isFinite( num ) ? num || 0 : val; } return val; } } ); jQuery.each( [ "height", "width" ], function( _i, dimension ) { jQuery.cssHooks[ dimension ] = { get: function( elem, computed, extra ) { if ( computed ) { // Certain elements can have dimension info if we invisibly show them // but it must have a current display style that would benefit return rdisplayswap.test( jQuery.css( elem, "display" ) ) && // Support: Safari 8+ // Table columns in Safari have non-zero offsetWidth & zero // getBoundingClientRect().width unless display is changed. // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? swap( elem, cssShow, function() { return getWidthOrHeight( elem, dimension, extra ); } ) : getWidthOrHeight( elem, dimension, extra ); } }, set: function( elem, value, extra ) { var matches, styles = getStyles( elem ), // Only read styles.position if the test has a chance to fail // to avoid forcing a reflow. scrollboxSizeBuggy = !support.scrollboxSize() && styles.position === "absolute", // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) boxSizingNeeded = scrollboxSizeBuggy || extra, isBorderBox = boxSizingNeeded && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", subtract = extra ? boxModelAdjustment( elem, dimension, extra, isBorderBox, styles ) : 0; // Account for unreliable border-box dimensions by comparing offset* to computed and // faking a content-box to get border and padding (gh-3699) if ( isBorderBox && scrollboxSizeBuggy ) { subtract -= Math.ceil( elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - parseFloat( styles[ dimension ] ) - boxModelAdjustment( elem, dimension, "border", false, styles ) - 0.5 ); } // Convert to pixels if value adjustment is needed if ( subtract && ( matches = rcssNum.exec( value ) ) && ( matches[ 3 ] || "px" ) !== "px" ) { elem.style[ dimension ] = value; value = jQuery.css( elem, dimension ); } return setPositiveNumber( elem, value, subtract ); } }; } ); jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, function( elem, computed ) { if ( computed ) { return ( parseFloat( curCSS( elem, "marginLeft" ) ) || elem.getBoundingClientRect().left - swap( elem, { marginLeft: 0 }, function() { return elem.getBoundingClientRect().left; } ) ) + "px"; } } ); // These hooks are used by animate to expand properties jQuery.each( { margin: "", padding: "", border: "Width" }, function( prefix, suffix ) { jQuery.cssHooks[ prefix + suffix ] = { expand: function( value ) { var i = 0, expanded = {}, // Assumes a single number if not a string parts = typeof value === "string" ? value.split( " " ) : [ value ]; for ( ; i < 4; i++ ) { expanded[ prefix + cssExpand[ i ] + suffix ] = parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; } return expanded; } }; if ( prefix !== "margin" ) { jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; } } ); jQuery.fn.extend( { css: function( name, value ) { return access( this, function( elem, name, value ) { var styles, len, map = {}, i = 0; if ( Array.isArray( name ) ) { styles = getStyles( elem ); len = name.length; for ( ; i < len; i++ ) { map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); } return map; } return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); } } ); function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) { this.elem = elem; this.prop = prop; this.easing = easing || jQuery.easing._default; this.options = options; this.start = this.now = this.cur(); this.end = end; this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); }, cur: function() { var hooks = Tween.propHooks[ this.prop ]; return hooks && hooks.get ? hooks.get( this ) : Tween.propHooks._default.get( this ); }, run: function( percent ) { var eased, hooks = Tween.propHooks[ this.prop ]; if ( this.options.duration ) { this.pos = eased = jQuery.easing[ this.easing ]( percent, this.options.duration * percent, 0, 1, this.options.duration ); } else { this.pos = eased = percent; } this.now = ( this.end - this.start ) * eased + this.start; if ( this.options.step ) { this.options.step.call( this.elem, this.now, this ); } if ( hooks && hooks.set ) { hooks.set( this ); } else { Tween.propHooks._default.set( this ); } return this; } }; Tween.prototype.init.prototype = Tween.prototype; Tween.propHooks = { _default: { get: function( tween ) { var result; // Use a property on the element directly when it is not a DOM element, // or when there is no matching style property that exists. if ( tween.elem.nodeType !== 1 || tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { return tween.elem[ tween.prop ]; } // Passing an empty string as a 3rd parameter to .css will automatically // attempt a parseFloat and fallback to a string if the parse fails. // Simple values such as "10px" are parsed to Float; // complex values such as "rotate(1rad)" are returned as-is. result = jQuery.css( tween.elem, tween.prop, "" ); // Empty strings, null, undefined and "auto" are converted to 0. return !result || result === "auto" ? 0 : result; }, set: function( tween ) { // Use step hook for back compat. // Use cssHook if its there. // Use .style if available and use plain properties where available. if ( jQuery.fx.step[ tween.prop ] ) { jQuery.fx.step[ tween.prop ]( tween ); } else if ( tween.elem.nodeType === 1 && ( jQuery.cssHooks[ tween.prop ] || tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); } else { tween.elem[ tween.prop ] = tween.now; } } } }; // Support: IE <=9 only // Panic based approach to setting things on disconnected nodes Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { set: function( tween ) { if ( tween.elem.nodeType && tween.elem.parentNode ) { tween.elem[ tween.prop ] = tween.now; } } }; jQuery.easing = { linear: function( p ) { return p; }, swing: function( p ) { return 0.5 - Math.cos( p * Math.PI ) / 2; }, _default: "swing" }; jQuery.fx = Tween.prototype.init; // Back compat <1.8 extension point jQuery.fx.step = {}; var fxNow, inProgress, rfxtypes = /^(?:toggle|show|hide)$/, rrun = /queueHooks$/; function schedule() { if ( inProgress ) { if ( document.hidden === false && window.requestAnimationFrame ) { window.requestAnimationFrame( schedule ); } else { window.setTimeout( schedule, jQuery.fx.interval ); } jQuery.fx.tick(); } } // Animations created synchronously will run synchronously function createFxNow() { window.setTimeout( function() { fxNow = undefined; } ); return ( fxNow = Date.now() ); } // Generate parameters to create a standard animation function genFx( type, includeWidth ) { var which, i = 0, attrs = { height: type }; // If we include width, step value is 1 to do all cssExpand values, // otherwise step value is 2 to skip over Left and Right includeWidth = includeWidth ? 1 : 0; for ( ; i < 4; i += 2 - includeWidth ) { which = cssExpand[ i ]; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; } if ( includeWidth ) { attrs.opacity = attrs.width = type; } return attrs; } function createTween( value, prop, animation ) { var tween, collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { // We're done with this property return tween; } } } function defaultPrefilter( elem, props, opts ) { var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, isBox = "width" in props || "height" in props, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHiddenWithinTree( elem ), dataShow = dataPriv.get( elem, "fxshow" ); // Queue-skipping animations hijack the fx hooks if ( !opts.queue ) { hooks = jQuery._queueHooks( elem, "fx" ); if ( hooks.unqueued == null ) { hooks.unqueued = 0; oldfire = hooks.empty.fire; hooks.empty.fire = function() { if ( !hooks.unqueued ) { oldfire(); } }; } hooks.unqueued++; anim.always( function() { // Ensure the complete handler is called before this completes anim.always( function() { hooks.unqueued--; if ( !jQuery.queue( elem, "fx" ).length ) { hooks.empty.fire(); } } ); } ); } // Detect show/hide animations for ( prop in props ) { value = props[ prop ]; if ( rfxtypes.test( value ) ) { delete props[ prop ]; toggle = toggle || value === "toggle"; if ( value === ( hidden ? "hide" : "show" ) ) { // Pretend to be hidden if this is a "show" and // there is still data from a stopped show/hide if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { hidden = true; // Ignore all other no-op show/hide data } else { continue; } } orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); } } // Bail out if this is a no-op like .hide().hide() propTween = !jQuery.isEmptyObject( props ); if ( !propTween && jQuery.isEmptyObject( orig ) ) { return; } // Restrict "overflow" and "display" styles during box animations if ( isBox && elem.nodeType === 1 ) { // Support: IE <=9 - 11, Edge 12 - 15 // Record all 3 overflow attributes because IE does not infer the shorthand // from identically-valued overflowX and overflowY and Edge just mirrors // the overflowX value there. opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; // Identify a display type, preferring old show/hide data over the CSS cascade restoreDisplay = dataShow && dataShow.display; if ( restoreDisplay == null ) { restoreDisplay = dataPriv.get( elem, "display" ); } display = jQuery.css( elem, "display" ); if ( display === "none" ) { if ( restoreDisplay ) { display = restoreDisplay; } else { // Get nonempty value(s) by temporarily forcing visibility showHide( [ elem ], true ); restoreDisplay = elem.style.display || restoreDisplay; display = jQuery.css( elem, "display" ); showHide( [ elem ] ); } } // Animate inline elements as inline-block if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { if ( jQuery.css( elem, "float" ) === "none" ) { // Restore the original display value at the end of pure show/hide animations if ( !propTween ) { anim.done( function() { style.display = restoreDisplay; } ); if ( restoreDisplay == null ) { display = style.display; restoreDisplay = display === "none" ? "" : display; } } style.display = "inline-block"; } } } if ( opts.overflow ) { style.overflow = "hidden"; anim.always( function() { style.overflow = opts.overflow[ 0 ]; style.overflowX = opts.overflow[ 1 ]; style.overflowY = opts.overflow[ 2 ]; } ); } // Implement show/hide animations propTween = false; for ( prop in orig ) { // General show/hide setup for this element animation if ( !propTween ) { if ( dataShow ) { if ( "hidden" in dataShow ) { hidden = dataShow.hidden; } } else { dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); } // Store hidden/visible for toggle so `.stop().toggle()` "reverses" if ( toggle ) { dataShow.hidden = !hidden; } // Show elements before animating them if ( hidden ) { showHide( [ elem ], true ); } /* eslint-disable no-loop-func */ anim.done( function() { /* eslint-enable no-loop-func */ // The final step of a "hide" animation is actually hiding the element if ( !hidden ) { showHide( [ elem ] ); } dataPriv.remove( elem, "fxshow" ); for ( prop in orig ) { jQuery.style( elem, prop, orig[ prop ] ); } } ); } // Per-property setup propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); if ( !( prop in dataShow ) ) { dataShow[ prop ] = propTween.start; if ( hidden ) { propTween.end = propTween.start; propTween.start = 0; } } } } function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( Array.isArray( value ) ) { easing = value[ 1 ]; value = props[ index ] = value[ 0 ]; } if ( index !== name ) { props[ name ] = value; delete props[ index ]; } hooks = jQuery.cssHooks[ name ]; if ( hooks && "expand" in hooks ) { value = hooks.expand( value ); delete props[ name ]; // Not quite $.extend, this won't overwrite existing keys. // Reusing 'index' because we have the correct "name" for ( index in value ) { if ( !( index in props ) ) { props[ index ] = value[ index ]; specialEasing[ index ] = easing; } } } else { specialEasing[ name ] = easing; } } } function Animation( elem, properties, options ) { var result, stopped, index = 0, length = Animation.prefilters.length, deferred = jQuery.Deferred().always( function() { // Don't match elem in the :animated selector delete tick.elem; } ), tick = function() { if ( stopped ) { return false; } var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), // Support: Android 2.3 only // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) temp = remaining / animation.duration || 0, percent = 1 - temp, index = 0, length = animation.tweens.length; for ( ; index < length; index++ ) { animation.tweens[ index ].run( percent ); } deferred.notifyWith( elem, [ animation, percent, remaining ] ); // If there's more to do, yield if ( percent < 1 && length ) { return remaining; } // If this was an empty animation, synthesize a final progress notification if ( !length ) { deferred.notifyWith( elem, [ animation, 1, 0 ] ); } // Resolve the animation and report its conclusion deferred.resolveWith( elem, [ animation ] ); return false; }, animation = deferred.promise( { elem: elem, props: jQuery.extend( {}, properties ), opts: jQuery.extend( true, { specialEasing: {}, easing: jQuery.easing._default }, options ), originalProperties: properties, originalOptions: options, startTime: fxNow || createFxNow(), duration: options.duration, tweens: [], createTween: function( prop, end ) { var tween = jQuery.Tween( elem, animation.opts, prop, end, animation.opts.specialEasing[ prop ] || animation.opts.easing ); animation.tweens.push( tween ); return tween; }, stop: function( gotoEnd ) { var index = 0, // If we are going to the end, we want to run all the tweens // otherwise we skip this part length = gotoEnd ? animation.tweens.length : 0; if ( stopped ) { return this; } stopped = true; for ( ; index < length; index++ ) { animation.tweens[ index ].run( 1 ); } // Resolve when we played the last frame; otherwise, reject if ( gotoEnd ) { deferred.notifyWith( elem, [ animation, 1, 0 ] ); deferred.resolveWith( elem, [ animation, gotoEnd ] ); } else { deferred.rejectWith( elem, [ animation, gotoEnd ] ); } return this; } } ), props = animation.props; propFilter( props, animation.opts.specialEasing ); for ( ; index < length; index++ ) { result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); if ( result ) { if ( isFunction( result.stop ) ) { jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = result.stop.bind( result ); } return result; } } jQuery.map( props, createTween, animation ); if ( isFunction( animation.opts.start ) ) { animation.opts.start.call( elem, animation ); } // Attach callbacks from options animation .progress( animation.opts.progress ) .done( animation.opts.done, animation.opts.complete ) .fail( animation.opts.fail ) .always( animation.opts.always ); jQuery.fx.timer( jQuery.extend( tick, { elem: elem, anim: animation, queue: animation.opts.queue } ) ); return animation; } jQuery.Animation = jQuery.extend( Animation, { tweeners: { "*": [ function( prop, value ) { var tween = this.createTween( prop, value ); adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); return tween; } ] }, tweener: function( props, callback ) { if ( isFunction( props ) ) { callback = props; props = [ "*" ]; } else { props = props.match( rnothtmlwhite ); } var prop, index = 0, length = props.length; for ( ; index < length; index++ ) { prop = props[ index ]; Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; Animation.tweeners[ prop ].unshift( callback ); } }, prefilters: [ defaultPrefilter ], prefilter: function( callback, prepend ) { if ( prepend ) { Animation.prefilters.unshift( callback ); } else { Animation.prefilters.push( callback ); } } } ); jQuery.speed = function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { complete: fn || !fn && easing || isFunction( speed ) && speed, duration: speed, easing: fn && easing || easing && !isFunction( easing ) && easing }; // Go to the end state if fx are off if ( jQuery.fx.off ) { opt.duration = 0; } else { if ( typeof opt.duration !== "number" ) { if ( opt.duration in jQuery.fx.speeds ) { opt.duration = jQuery.fx.speeds[ opt.duration ]; } else { opt.duration = jQuery.fx.speeds._default; } } } // Normalize opt.queue - true/undefined/null -> "fx" if ( opt.queue == null || opt.queue === true ) { opt.queue = "fx"; } // Queueing opt.old = opt.complete; opt.complete = function() { if ( isFunction( opt.old ) ) { opt.old.call( this ); } if ( opt.queue ) { jQuery.dequeue( this, opt.queue ); } }; return opt; }; jQuery.fn.extend( { fadeTo: function( speed, to, easing, callback ) { // Show any hidden elements after setting opacity to 0 return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() // Animate to the value specified .end().animate( { opacity: to }, speed, easing, callback ); }, animate: function( prop, speed, easing, callback ) { var empty = jQuery.isEmptyObject( prop ), optall = jQuery.speed( speed, easing, callback ), doAnimation = function() { // Operate on a copy of prop so per-property easing won't be lost var anim = Animation( this, jQuery.extend( {}, prop ), optall ); // Empty animations, or finishing resolves immediately if ( empty || dataPriv.get( this, "finish" ) ) { anim.stop( true ); } }; doAnimation.finish = doAnimation; return empty || optall.queue === false ? this.each( doAnimation ) : this.queue( optall.queue, doAnimation ); }, stop: function( type, clearQueue, gotoEnd ) { var stopQueue = function( hooks ) { var stop = hooks.stop; delete hooks.stop; stop( gotoEnd ); }; if ( typeof type !== "string" ) { gotoEnd = clearQueue; clearQueue = type; type = undefined; } if ( clearQueue ) { this.queue( type || "fx", [] ); } return this.each( function() { var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = dataPriv.get( this ); if ( index ) { if ( data[ index ] && data[ index ].stop ) { stopQueue( data[ index ] ); } } else { for ( index in data ) { if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { stopQueue( data[ index ] ); } } } for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && ( type == null || timers[ index ].queue === type ) ) { timers[ index ].anim.stop( gotoEnd ); dequeue = false; timers.splice( index, 1 ); } } // Start the next in the queue if the last step wasn't forced. // Timers currently will call their complete callbacks, which // will dequeue but only if they were gotoEnd. if ( dequeue || !gotoEnd ) { jQuery.dequeue( this, type ); } } ); }, finish: function( type ) { if ( type !== false ) { type = type || "fx"; } return this.each( function() { var index, data = dataPriv.get( this ), queue = data[ type + "queue" ], hooks = data[ type + "queueHooks" ], timers = jQuery.timers, length = queue ? queue.length : 0; // Enable finishing flag on private data data.finish = true; // Empty the queue first jQuery.queue( this, type, [] ); if ( hooks && hooks.stop ) { hooks.stop.call( this, true ); } // Look for any active animations, and finish them for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && timers[ index ].queue === type ) { timers[ index ].anim.stop( true ); timers.splice( index, 1 ); } } // Look for any animations in the old queue and finish them for ( index = 0; index < length; index++ ) { if ( queue[ index ] && queue[ index ].finish ) { queue[ index ].finish.call( this ); } } // Turn off finishing flag delete data.finish; } ); } } ); jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) { var cssFn = jQuery.fn[ name ]; jQuery.fn[ name ] = function( speed, easing, callback ) { return speed == null || typeof speed === "boolean" ? cssFn.apply( this, arguments ) : this.animate( genFx( name, true ), speed, easing, callback ); }; } ); // Generate shortcuts for custom animations jQuery.each( { slideDown: genFx( "show" ), slideUp: genFx( "hide" ), slideToggle: genFx( "toggle" ), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, easing, callback ) { return this.animate( props, speed, easing, callback ); }; } ); jQuery.timers = []; jQuery.fx.tick = function() { var timer, i = 0, timers = jQuery.timers; fxNow = Date.now(); for ( ; i < timers.length; i++ ) { timer = timers[ i ]; // Run the timer and safely remove it when done (allowing for external removal) if ( !timer() && timers[ i ] === timer ) { timers.splice( i--, 1 ); } } if ( !timers.length ) { jQuery.fx.stop(); } fxNow = undefined; }; jQuery.fx.timer = function( timer ) { jQuery.timers.push( timer ); jQuery.fx.start(); }; jQuery.fx.interval = 13; jQuery.fx.start = function() { if ( inProgress ) { return; } inProgress = true; schedule(); }; jQuery.fx.stop = function() { inProgress = null; }; jQuery.fx.speeds = { slow: 600, fast: 200, // Default speed _default: 400 }; // Based off of the plugin by Clint Helfers, with permission. // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ jQuery.fn.delay = function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = window.setTimeout( next, time ); hooks.stop = function() { window.clearTimeout( timeout ); }; } ); }; ( function() { var input = document.createElement( "input" ), select = document.createElement( "select" ), opt = select.appendChild( document.createElement( "option" ) ); input.type = "checkbox"; // Support: Android <=4.3 only // Default value for a checkbox should be "on" support.checkOn = input.value !== ""; // Support: IE <=11 only // Must access selectedIndex to make default options select support.optSelected = opt.selected; // Support: IE <=11 only // An input loses its value after becoming a radio input = document.createElement( "input" ); input.value = "t"; input.type = "radio"; support.radioValue = input.value === "t"; } )(); var boolHook, attrHandle = jQuery.expr.attrHandle; jQuery.fn.extend( { attr: function( name, value ) { return access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each( function() { jQuery.removeAttr( this, name ); } ); } } ); jQuery.extend( { attr: function( elem, name, value ) { var ret, hooks, nType = elem.nodeType; // Don't get/set attributes on text, comment and attribute nodes if ( nType === 3 || nType === 8 || nType === 2 ) { return; } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); } // Attribute hooks are determined by the lowercase version // Grab necessary hook if one is defined if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { hooks = jQuery.attrHooks[ name.toLowerCase() ] || ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); return; } if ( hooks && "set" in hooks && ( ret = hooks.set( elem, value, name ) ) !== undefined ) { return ret; } elem.setAttribute( name, value + "" ); return value; } if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { return ret; } ret = jQuery.find.attr( elem, name ); // Non-existent attributes return null, we normalize to undefined return ret == null ? undefined : ret; }, attrHooks: { type: { set: function( elem, value ) { if ( !support.radioValue && value === "radio" && nodeName( elem, "input" ) ) { var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } } }, removeAttr: function( elem, value ) { var name, i = 0, // Attribute names can contain non-HTML whitespace characters // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 attrNames = value && value.match( rnothtmlwhite ); if ( attrNames && elem.nodeType === 1 ) { while ( ( name = attrNames[ i++ ] ) ) { elem.removeAttribute( name ); } } } } ); // Hooks for boolean attributes boolHook = { set: function( elem, value, name ) { if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { elem.setAttribute( name, name ); } return name; } }; jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { var getter = attrHandle[ name ] || jQuery.find.attr; attrHandle[ name ] = function( elem, name, isXML ) { var ret, handle, lowercaseName = name.toLowerCase(); if ( !isXML ) { // Avoid an infinite loop by temporarily removing this function from the getter handle = attrHandle[ lowercaseName ]; attrHandle[ lowercaseName ] = ret; ret = getter( elem, name, isXML ) != null ? lowercaseName : null; attrHandle[ lowercaseName ] = handle; } return ret; }; } ); var rfocusable = /^(?:input|select|textarea|button)$/i, rclickable = /^(?:a|area)$/i; jQuery.fn.extend( { prop: function( name, value ) { return access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { return this.each( function() { delete this[ jQuery.propFix[ name ] || name ]; } ); } } ); jQuery.extend( { prop: function( elem, name, value ) { var ret, hooks, nType = elem.nodeType; // Don't get/set properties on text, comment and attribute nodes if ( nType === 3 || nType === 8 || nType === 2 ) { return; } if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { if ( hooks && "set" in hooks && ( ret = hooks.set( elem, value, name ) ) !== undefined ) { return ret; } return ( elem[ name ] = value ); } if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { return ret; } return elem[ name ]; }, propHooks: { tabIndex: { get: function( elem ) { // Support: IE <=9 - 11 only // elem.tabIndex doesn't always return the // correct value when it hasn't been explicitly set // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ // Use proper attribute retrieval(#12072) var tabindex = jQuery.find.attr( elem, "tabindex" ); if ( tabindex ) { return parseInt( tabindex, 10 ); } if ( rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ) { return 0; } return -1; } } }, propFix: { "for": "htmlFor", "class": "className" } } ); // Support: IE <=11 only // Accessing the selectedIndex property // forces the browser to respect setting selected // on the option // The getter ensures a default option is selected // when in an optgroup // eslint rule "no-unused-expressions" is disabled for this code // since it considers such accessions noop if ( !support.optSelected ) { jQuery.propHooks.selected = { get: function( elem ) { /* eslint no-unused-expressions: "off" */ var parent = elem.parentNode; if ( parent && parent.parentNode ) { parent.parentNode.selectedIndex; } return null; }, set: function( elem ) { /* eslint no-unused-expressions: "off" */ var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } } }; } jQuery.each( [ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable" ], function() { jQuery.propFix[ this.toLowerCase() ] = this; } ); // Strip and collapse whitespace according to HTML spec // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace function stripAndCollapse( value ) { var tokens = value.match( rnothtmlwhite ) || []; return tokens.join( " " ); } function getClass( elem ) { return elem.getAttribute && elem.getAttribute( "class" ) || ""; } function classesToArray( value ) { if ( Array.isArray( value ) ) { return value; } if ( typeof value === "string" ) { return value.match( rnothtmlwhite ) || []; } return []; } jQuery.fn.extend( { addClass: function( value ) { var classes, elem, cur, curValue, clazz, j, finalValue, i = 0; if ( isFunction( value ) ) { return this.each( function( j ) { jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); } ); } classes = classesToArray( value ); if ( classes.length ) { while ( ( elem = this[ i++ ] ) ) { curValue = getClass( elem ); cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); if ( cur ) { j = 0; while ( ( clazz = classes[ j++ ] ) ) { if ( cur.indexOf( " " + clazz + " " ) < 0 ) { cur += clazz + " "; } } // Only assign if different to avoid unneeded rendering. finalValue = stripAndCollapse( cur ); if ( curValue !== finalValue ) { elem.setAttribute( "class", finalValue ); } } } } return this; }, removeClass: function( value ) { var classes, elem, cur, curValue, clazz, j, finalValue, i = 0; if ( isFunction( value ) ) { return this.each( function( j ) { jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); } ); } if ( !arguments.length ) { return this.attr( "class", "" ); } classes = classesToArray( value ); if ( classes.length ) { while ( ( elem = this[ i++ ] ) ) { curValue = getClass( elem ); // This expression is here for better compressibility (see addClass) cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); if ( cur ) { j = 0; while ( ( clazz = classes[ j++ ] ) ) { // Remove *all* instances while ( cur.indexOf( " " + clazz + " " ) > -1 ) { cur = cur.replace( " " + clazz + " ", " " ); } } // Only assign if different to avoid unneeded rendering. finalValue = stripAndCollapse( cur ); if ( curValue !== finalValue ) { elem.setAttribute( "class", finalValue ); } } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value, isValidValue = type === "string" || Array.isArray( value ); if ( typeof stateVal === "boolean" && isValidValue ) { return stateVal ? this.addClass( value ) : this.removeClass( value ); } if ( isFunction( value ) ) { return this.each( function( i ) { jQuery( this ).toggleClass( value.call( this, i, getClass( this ), stateVal ), stateVal ); } ); } return this.each( function() { var className, i, self, classNames; if ( isValidValue ) { // Toggle individual class names i = 0; self = jQuery( this ); classNames = classesToArray( value ); while ( ( className = classNames[ i++ ] ) ) { // Check each className given, space separated list if ( self.hasClass( className ) ) { self.removeClass( className ); } else { self.addClass( className ); } } // Toggle whole class name } else if ( value === undefined || type === "boolean" ) { className = getClass( this ); if ( className ) { // Store className if set dataPriv.set( this, "__className__", className ); } // If the element has a class name or if we're passed `false`, // then remove the whole classname (if there was one, the above saved it). // Otherwise bring back whatever was previously saved (if anything), // falling back to the empty string if nothing was stored. if ( this.setAttribute ) { this.setAttribute( "class", className || value === false ? "" : dataPriv.get( this, "__className__" ) || "" ); } } } ); }, hasClass: function( selector ) { var className, elem, i = 0; className = " " + selector + " "; while ( ( elem = this[ i++ ] ) ) { if ( elem.nodeType === 1 && ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { return true; } } return false; } } ); var rreturn = /\r/g; jQuery.fn.extend( { val: function( value ) { var hooks, ret, valueIsFunction, elem = this[ 0 ]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && ( ret = hooks.get( elem, "value" ) ) !== undefined ) { return ret; } ret = elem.value; // Handle most common string cases if ( typeof ret === "string" ) { return ret.replace( rreturn, "" ); } // Handle cases where value is null/undef or number return ret == null ? "" : ret; } return; } valueIsFunction = isFunction( value ); return this.each( function( i ) { var val; if ( this.nodeType !== 1 ) { return; } if ( valueIsFunction ) { val = value.call( this, i, jQuery( this ).val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( Array.isArray( val ) ) { val = jQuery.map( val, function( value ) { return value == null ? "" : value + ""; } ); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } } ); } } ); jQuery.extend( { valHooks: { option: { get: function( elem ) { var val = jQuery.find.attr( elem, "value" ); return val != null ? val : // Support: IE <=10 - 11 only // option.text throws exceptions (#14686, #14858) // Strip and collapse whitespace // https://html.spec.whatwg.org/#strip-and-collapse-whitespace stripAndCollapse( jQuery.text( elem ) ); } }, select: { get: function( elem ) { var value, option, i, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one", values = one ? null : [], max = one ? index + 1 : options.length; if ( index < 0 ) { i = max; } else { i = one ? index : 0; } // Loop through all the selected options for ( ; i < max; i++ ) { option = options[ i ]; // Support: IE <=9 only // IE8-9 doesn't update selected after form reset (#2551) if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup !option.disabled && ( !option.parentNode.disabled || !nodeName( option.parentNode, "optgroup" ) ) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; }, set: function( elem, value ) { var optionSet, option, options = elem.options, values = jQuery.makeArray( value ), i = options.length; while ( i-- ) { option = options[ i ]; /* eslint-disable no-cond-assign */ if ( option.selected = jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) { optionSet = true; } /* eslint-enable no-cond-assign */ } // Force browsers to behave consistently when non-matching value is set if ( !optionSet ) { elem.selectedIndex = -1; } return values; } } } } ); // Radios and checkboxes getter/setter jQuery.each( [ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { set: function( elem, value ) { if ( Array.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); } } }; if ( !support.checkOn ) { jQuery.valHooks[ this ].get = function( elem ) { return elem.getAttribute( "value" ) === null ? "on" : elem.value; }; } } ); // Return jQuery for attributes-only inclusion support.focusin = "onfocusin" in window; var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, stopPropagationCallback = function( e ) { e.stopPropagation(); }; jQuery.extend( jQuery.event, { trigger: function( event, data, elem, onlyHandlers ) { var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, eventPath = [ elem || document ], type = hasOwn.call( event, "type" ) ? event.type : event, namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; cur = lastElement = tmp = elem = elem || document; // Don't do events on text and comment nodes if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf( "." ) > -1 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split( "." ); type = namespaces.shift(); namespaces.sort(); } ontype = type.indexOf( ":" ) < 0 && "on" + type; // Caller can pass in a jQuery.Event object, Object, or just an event type string event = event[ jQuery.expando ] ? event : new jQuery.Event( type, typeof event === "object" && event ); // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) event.isTrigger = onlyHandlers ? 2 : 3; event.namespace = namespaces.join( "." ); event.rnamespace = event.namespace ? new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : null; // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data == null ? [ event ] : jQuery.makeArray( data, [ event ] ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { bubbleType = special.delegateType || type; if ( !rfocusMorph.test( bubbleType + type ) ) { cur = cur.parentNode; } for ( ; cur; cur = cur.parentNode ) { eventPath.push( cur ); tmp = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( tmp === ( elem.ownerDocument || document ) ) { eventPath.push( tmp.defaultView || tmp.parentWindow || window ); } } // Fire handlers on the event path i = 0; while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { lastElement = cur; event.type = i > 1 ? bubbleType : special.bindType || type; // jQuery handler handle = ( dataPriv.get( cur, "events" ) || Object.create( null ) )[ event.type ] && dataPriv.get( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Native handler handle = ontype && cur[ ontype ]; if ( handle && handle.apply && acceptData( cur ) ) { event.result = handle.apply( cur, data ); if ( event.result === false ) { event.preventDefault(); } } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( ( !special._default || special._default.apply( eventPath.pop(), data ) === false ) && acceptData( elem ) ) { // Call a native DOM method on the target with the same name as the event. // Don't do default actions on window, that's where global variables be (#6170) if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method tmp = elem[ ontype ]; if ( tmp ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; if ( event.isPropagationStopped() ) { lastElement.addEventListener( type, stopPropagationCallback ); } elem[ type ](); if ( event.isPropagationStopped() ) { lastElement.removeEventListener( type, stopPropagationCallback ); } jQuery.event.triggered = undefined; if ( tmp ) { elem[ ontype ] = tmp; } } } } return event.result; }, // Piggyback on a donor event to simulate a different one // Used only for `focus(in | out)` events simulate: function( type, elem, event ) { var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true } ); jQuery.event.trigger( e, null, elem ); } } ); jQuery.fn.extend( { trigger: function( type, data ) { return this.each( function() { jQuery.event.trigger( type, data, this ); } ); }, triggerHandler: function( type, data ) { var elem = this[ 0 ]; if ( elem ) { return jQuery.event.trigger( type, data, elem, true ); } } } ); // Support: Firefox <=44 // Firefox doesn't have focus(in | out) events // Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 // // Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 // focus(in | out) events fire after focus & blur events, // which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order // Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 if ( !support.focusin ) { jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler on the document while someone wants focusin/focusout var handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); }; jQuery.event.special[ fix ] = { setup: function() { // Handle: regular nodes (via `this.ownerDocument`), window // (via `this.document`) & document (via `this`). var doc = this.ownerDocument || this.document || this, attaches = dataPriv.access( doc, fix ); if ( !attaches ) { doc.addEventListener( orig, handler, true ); } dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); }, teardown: function() { var doc = this.ownerDocument || this.document || this, attaches = dataPriv.access( doc, fix ) - 1; if ( !attaches ) { doc.removeEventListener( orig, handler, true ); dataPriv.remove( doc, fix ); } else { dataPriv.access( doc, fix, attaches ); } } }; } ); } var location = window.location; var nonce = { guid: Date.now() }; var rquery = ( /\?/ ); // Cross-browser xml parsing jQuery.parseXML = function( data ) { var xml; if ( !data || typeof data !== "string" ) { return null; } // Support: IE 9 - 11 only // IE throws on parseFromString with invalid input. try { xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); } catch ( e ) { xml = undefined; } if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; }; var rbracket = /\[\]$/, rCRLF = /\r?\n/g, rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, rsubmittable = /^(?:input|select|textarea|keygen)/i; function buildParams( prefix, obj, traditional, add ) { var name; if ( Array.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // Item is non-scalar (array or object), encode its numeric index. buildParams( prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", v, traditional, add ); } } ); } else if ( !traditional && toType( obj ) === "object" ) { // Serialize object item. for ( name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); } } else { // Serialize scalar item. add( prefix, obj ); } } // Serialize an array of form elements or a set of // key/values into a query string jQuery.param = function( a, traditional ) { var prefix, s = [], add = function( key, valueOrFunction ) { // If value is a function, invoke it and use its return value var value = isFunction( valueOrFunction ) ? valueOrFunction() : valueOrFunction; s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value == null ? "" : value ); }; if ( a == null ) { return ""; } // If an array was passed in, assume that it is an array of form elements. if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); } ); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( prefix in a ) { buildParams( prefix, a[ prefix ], traditional, add ); } } // Return the resulting serialization return s.join( "&" ); }; jQuery.fn.extend( { serialize: function() { return jQuery.param( this.serializeArray() ); }, serializeArray: function() { return this.map( function() { // Can add propHook for "elements" to filter or add form elements var elements = jQuery.prop( this, "elements" ); return elements ? jQuery.makeArray( elements ) : this; } ) .filter( function() { var type = this.type; // Use .is( ":disabled" ) so that fieldset[disabled] works return this.name && !jQuery( this ).is( ":disabled" ) && rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && ( this.checked || !rcheckableType.test( type ) ); } ) .map( function( _i, elem ) { var val = jQuery( this ).val(); if ( val == null ) { return null; } if ( Array.isArray( val ) ) { return jQuery.map( val, function( val ) { return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; } ); } return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; } ).get(); } } ); var r20 = /%20/g, rhash = /#.*$/, rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, // #7653, #8125, #8152: local protocol detection rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 2) These are called: * - BEFORE asking for a transport * - AFTER param serialization (s.data is a string if s.processData is true) * 3) key is the dataType * 4) the catchall symbol "*" can be used * 5) execution will start with transport dataType and THEN continue down to "*" if needed */ prefilters = {}, /* Transports bindings * 1) key is the dataType * 2) the catchall symbol "*" can be used * 3) selection will start with transport dataType and THEN go to "*" if needed */ transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression allTypes = "*/".concat( "*" ), // Anchor tag for parsing the document origin originAnchor = document.createElement( "a" ); originAnchor.href = location.href; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, i = 0, dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; if ( isFunction( func ) ) { // For each dataType in the dataTypeExpression while ( ( dataType = dataTypes[ i++ ] ) ) { // Prepend if requested if ( dataType[ 0 ] === "+" ) { dataType = dataType.slice( 1 ) || "*"; ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); // Otherwise append } else { ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); } } } }; } // Base inspection function for prefilters and transports function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { var inspected = {}, seekingTransport = ( structure === transports ); function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) { options.dataTypes.unshift( dataTypeOrTransport ); inspect( dataTypeOrTransport ); return false; } else if ( seekingTransport ) { return !( selected = dataTypeOrTransport ); } } ); return selected; } return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); } // A special extend for ajax options // that takes "flat" options (not to be deep extended) // Fixes #9887 function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } return target; } /* Handles responses to an ajax request: * - finds the right dataType (mediates between content-type and expected dataType) * - returns the corresponding response */ function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes; // Remove auto dataType and get content-type in the process while ( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); } } // Check if we're dealing with a known content-type if ( ct ) { for ( type in contents ) { if ( contents[ type ] && contents[ type ].test( ct ) ) { dataTypes.unshift( type ); break; } } } // Check to see if we have a response for the expected dataType if ( dataTypes[ 0 ] in responses ) { finalDataType = dataTypes[ 0 ]; } else { // Try convertible dataTypes for ( type in responses ) { if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { finalDataType = type; break; } if ( !firstDataType ) { firstDataType = type; } } // Or just use first one finalDataType = finalDataType || firstDataType; } // If we found a dataType // We add the dataType to the list if needed // and return the corresponding response if ( finalDataType ) { if ( finalDataType !== dataTypes[ 0 ] ) { dataTypes.unshift( finalDataType ); } return responses[ finalDataType ]; } } /* Chain conversions given the request and the original response * Also sets the responseXXX fields on the jqXHR instance */ function ajaxConvert( s, response, jqXHR, isSuccess ) { var conv2, current, conv, tmp, prev, converters = {}, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(); // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.converters ) { converters[ conv.toLowerCase() ] = s.converters[ conv ]; } } current = dataTypes.shift(); // Convert to each sequential dataType while ( current ) { if ( s.responseFields[ current ] ) { jqXHR[ s.responseFields[ current ] ] = response; } // Apply the dataFilter if provided if ( !prev && isSuccess && s.dataFilter ) { response = s.dataFilter( response, s.dataType ); } prev = current; current = dataTypes.shift(); if ( current ) { // There's only work to do if current dataType is non-auto if ( current === "*" ) { current = prev; // Convert response if prev dataType is non-auto and differs from current } else if ( prev !== "*" && prev !== current ) { // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ]; // If none found, seek a pair if ( !conv ) { for ( conv2 in converters ) { // If conv2 outputs current tmp = conv2.split( " " ); if ( tmp[ 1 ] === current ) { // If prev can be converted to accepted input conv = converters[ prev + " " + tmp[ 0 ] ] || converters[ "* " + tmp[ 0 ] ]; if ( conv ) { // Condense equivalence converters if ( conv === true ) { conv = converters[ conv2 ]; // Otherwise, insert the intermediate dataType } else if ( converters[ conv2 ] !== true ) { current = tmp[ 0 ]; dataTypes.unshift( tmp[ 1 ] ); } break; } } } } // Apply converter (if not an equivalence) if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them if ( conv && s.throws ) { response = conv( response ); } else { try { response = conv( response ); } catch ( e ) { return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; } } } } } } return { state: "success", data: response }; } jQuery.extend( { // Counter for holding the number of active queries active: 0, // Last-Modified header cache for next request lastModified: {}, etag: {}, ajaxSettings: { url: location.href, type: "GET", isLocal: rlocalProtocol.test( location.protocol ), global: true, processData: true, async: true, contentType: "application/x-www-form-urlencoded; charset=UTF-8", /* timeout: 0, data: null, dataType: null, username: null, password: null, cache: null, throws: false, traditional: false, headers: {}, */ accepts: { "*": allTypes, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript" }, contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ }, responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON" }, // Data converters // Keys separate source (or catchall "*") and destination types with a single space converters: { // Convert anything to text "* text": String, // Text to html (true = no transformation) "text html": true, // Evaluate text as a json expression "text json": JSON.parse, // Parse text as xml "text xml": jQuery.parseXML }, // For options that shouldn't be deep extended: // you can add your own custom options here if // and when you create one that shouldn't be // deep extended (see ajaxExtend) flatOptions: { url: true, context: true } }, // Creates a full fledged settings object into target // with both ajaxSettings and settings fields. // If target is omitted, writes into ajaxSettings. ajaxSetup: function( target, settings ) { return settings ? // Building a settings object ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : // Extending ajaxSettings ajaxExtend( jQuery.ajaxSettings, target ); }, ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), ajaxTransport: addToPrefiltersOrTransports( transports ), // Main method ajax: function( url, options ) { // If url is an object, simulate pre-1.5 signature if ( typeof url === "object" ) { options = url; url = undefined; } // Force options to be an object options = options || {}; var transport, // URL without anti-cache param cacheURL, // Response headers responseHeadersString, responseHeaders, // timeout handle timeoutTimer, // Url cleanup var urlAnchor, // Request state (becomes false upon send and true upon completion) completed, // To know if global events are to be dispatched fireGlobals, // Loop variable i, // uncached part of the url uncached, // Create the final options object s = jQuery.ajaxSetup( {}, options ), // Callbacks context callbackContext = s.context || s, // Context for global events is callbackContext if it is a DOM node or jQuery collection globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ? jQuery( callbackContext ) : jQuery.event, // Deferreds deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks( "once memory" ), // Status-dependent callbacks statusCode = s.statusCode || {}, // Headers (they are sent all at once) requestHeaders = {}, requestHeadersNames = {}, // Default abort message strAbort = "canceled", // Fake xhr jqXHR = { readyState: 0, // Builds headers hashtable if needed getResponseHeader: function( key ) { var match; if ( completed ) { if ( !responseHeaders ) { responseHeaders = {}; while ( ( match = rheaders.exec( responseHeadersString ) ) ) { responseHeaders[ match[ 1 ].toLowerCase() + " " ] = ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) .concat( match[ 2 ] ); } } match = responseHeaders[ key.toLowerCase() + " " ]; } return match == null ? null : match.join( ", " ); }, // Raw string getAllResponseHeaders: function() { return completed ? responseHeadersString : null; }, // Caches the header setRequestHeader: function( name, value ) { if ( completed == null ) { name = requestHeadersNames[ name.toLowerCase() ] = requestHeadersNames[ name.toLowerCase() ] || name; requestHeaders[ name ] = value; } return this; }, // Overrides response content-type header overrideMimeType: function( type ) { if ( completed == null ) { s.mimeType = type; } return this; }, // Status-dependent callbacks statusCode: function( map ) { var code; if ( map ) { if ( completed ) { // Execute the appropriate callbacks jqXHR.always( map[ jqXHR.status ] ); } else { // Lazy-add the new callbacks in a way that preserves old ones for ( code in map ) { statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; } } } return this; }, // Cancel the request abort: function( statusText ) { var finalText = statusText || strAbort; if ( transport ) { transport.abort( finalText ); } done( 0, finalText ); return this; } }; // Attach deferreds deferred.promise( jqXHR ); // Add protocol if not provided (prefilters might expect it) // Handle falsy url in the settings object (#10093: consistency with old signature) // We also use the url parameter if available s.url = ( ( url || s.url || location.href ) + "" ) .replace( rprotocol, location.protocol + "//" ); // Alias method option to type as per ticket #12004 s.type = options.method || options.type || s.method || s.type; // Extract dataTypes list s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; // A cross-domain request is in order when the origin doesn't match the current origin. if ( s.crossDomain == null ) { urlAnchor = document.createElement( "a" ); // Support: IE <=8 - 11, Edge 12 - 15 // IE throws exception on accessing the href property if url is malformed, // e.g. http://example.com:80x/ try { urlAnchor.href = s.url; // Support: IE <=8 - 11 only // Anchor's host property isn't correctly set when s.url is relative urlAnchor.href = urlAnchor.href; s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== urlAnchor.protocol + "//" + urlAnchor.host; } catch ( e ) { // If there is an error parsing the URL, assume it is crossDomain, // it can be rejected by the transport if it is invalid s.crossDomain = true; } } // Convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Apply prefilters inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); // If request was aborted inside a prefilter, stop there if ( completed ) { return jqXHR; } // We can fire global events as of now if asked to // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) fireGlobals = jQuery.event && s.global; // Watch for a new set of requests if ( fireGlobals && jQuery.active++ === 0 ) { jQuery.event.trigger( "ajaxStart" ); } // Uppercase the type s.type = s.type.toUpperCase(); // Determine if request has content s.hasContent = !rnoContent.test( s.type ); // Save the URL in case we're toying with the If-Modified-Since // and/or If-None-Match header later on // Remove hash to simplify url manipulation cacheURL = s.url.replace( rhash, "" ); // More options handling for requests with no content if ( !s.hasContent ) { // Remember the hash so we can put it back uncached = s.url.slice( cacheURL.length ); // If data is available and should be processed, append data to url if ( s.data && ( s.processData || typeof s.data === "string" ) ) { cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; // #9682: remove data so that it's not used in an eventual retry delete s.data; } // Add or update anti-cache param if needed if ( s.cache === false ) { cacheURL = cacheURL.replace( rantiCache, "$1" ); uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) + uncached; } // Put hash and anti-cache on the URL that will be requested (gh-1732) s.url = cacheURL + uncached; // Change '%20' to '+' if this is encoded form body content (gh-2658) } else if ( s.data && s.processData && ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { s.data = s.data.replace( r20, "+" ); } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { if ( jQuery.lastModified[ cacheURL ] ) { jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); } if ( jQuery.etag[ cacheURL ] ) { jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); } } // Set the correct header, if data is being sent if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { jqXHR.setRequestHeader( "Content-Type", s.contentType ); } // Set the Accepts header for the server, depending on the dataType jqXHR.setRequestHeader( "Accept", s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? s.accepts[ s.dataTypes[ 0 ] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : s.accepts[ "*" ] ); // Check for headers option for ( i in s.headers ) { jqXHR.setRequestHeader( i, s.headers[ i ] ); } // Allow custom headers/mimetypes and early abort if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { // Abort if not done already and return return jqXHR.abort(); } // Aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds completeDeferred.add( s.complete ); jqXHR.done( s.success ); jqXHR.fail( s.error ); // Get transport transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); // If no transport, we auto-abort if ( !transport ) { done( -1, "No Transport" ); } else { jqXHR.readyState = 1; // Send global event if ( fireGlobals ) { globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); } // If request was aborted inside ajaxSend, stop there if ( completed ) { return jqXHR; } // Timeout if ( s.async && s.timeout > 0 ) { timeoutTimer = window.setTimeout( function() { jqXHR.abort( "timeout" ); }, s.timeout ); } try { completed = false; transport.send( requestHeaders, done ); } catch ( e ) { // Rethrow post-completion exceptions if ( completed ) { throw e; } // Propagate others as results done( -1, e ); } } // Callback for when everything is done function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Ignore repeat invocations if ( completed ) { return; } completed = true; // Clear timeout if it exists if ( timeoutTimer ) { window.clearTimeout( timeoutTimer ); } // Dereference transport for early garbage collection // (no matter how long the jqXHR object will be used) transport = undefined; // Cache response headers responseHeadersString = headers || ""; // Set readyState jqXHR.readyState = status > 0 ? 4 : 0; // Determine if successful isSuccess = status >= 200 && status < 300 || status === 304; // Get response data if ( responses ) { response = ajaxHandleResponses( s, jqXHR, responses ); } // Use a noop converter for missing script if ( !isSuccess && jQuery.inArray( "script", s.dataTypes ) > -1 ) { s.converters[ "text script" ] = function() {}; } // Convert no matter what (that way responseXXX fields are always set) response = ajaxConvert( s, response, jqXHR, isSuccess ); // If successful, handle type chaining if ( isSuccess ) { // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { modified = jqXHR.getResponseHeader( "Last-Modified" ); if ( modified ) { jQuery.lastModified[ cacheURL ] = modified; } modified = jqXHR.getResponseHeader( "etag" ); if ( modified ) { jQuery.etag[ cacheURL ] = modified; } } // if no content if ( status === 204 || s.type === "HEAD" ) { statusText = "nocontent"; // if not modified } else if ( status === 304 ) { statusText = "notmodified"; // If we have data, let's convert it } else { statusText = response.state; success = response.data; error = response.error; isSuccess = !error; } } else { // Extract error from statusText and normalize for non-aborts error = statusText; if ( status || !statusText ) { statusText = "error"; if ( status < 0 ) { status = 0; } } } // Set data for the fake xhr object jqXHR.status = status; jqXHR.statusText = ( nativeStatusText || statusText ) + ""; // Success/Error if ( isSuccess ) { deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); } else { deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); } // Status-dependent callbacks jqXHR.statusCode( statusCode ); statusCode = undefined; if ( fireGlobals ) { globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", [ jqXHR, s, isSuccess ? success : error ] ); } // Complete completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); if ( fireGlobals ) { globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); // Handle the global AJAX counter if ( !( --jQuery.active ) ) { jQuery.event.trigger( "ajaxStop" ); } } } return jqXHR; }, getJSON: function( url, data, callback ) { return jQuery.get( url, data, callback, "json" ); }, getScript: function( url, callback ) { return jQuery.get( url, undefined, callback, "script" ); } } ); jQuery.each( [ "get", "post" ], function( _i, method ) { jQuery[ method ] = function( url, data, callback, type ) { // Shift arguments if data argument was omitted if ( isFunction( data ) ) { type = type || callback; callback = data; data = undefined; } // The url can be an options object (which then must have .url) return jQuery.ajax( jQuery.extend( { url: url, type: method, dataType: type, data: data, success: callback }, jQuery.isPlainObject( url ) && url ) ); }; } ); jQuery.ajaxPrefilter( function( s ) { var i; for ( i in s.headers ) { if ( i.toLowerCase() === "content-type" ) { s.contentType = s.headers[ i ] || ""; } } } ); jQuery._evalUrl = function( url, options, doc ) { return jQuery.ajax( { url: url, // Make this explicit, since user can override this through ajaxSetup (#11264) type: "GET", dataType: "script", cache: true, async: false, global: false, // Only evaluate the response if it is successful (gh-4126) // dataFilter is not invoked for failure responses, so using it instead // of the default converter is kludgy but it works. converters: { "text script": function() {} }, dataFilter: function( response ) { jQuery.globalEval( response, options, doc ); } } ); }; jQuery.fn.extend( { wrapAll: function( html ) { var wrap; if ( this[ 0 ] ) { if ( isFunction( html ) ) { html = html.call( this[ 0 ] ); } // The elements to wrap the target around wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); if ( this[ 0 ].parentNode ) { wrap.insertBefore( this[ 0 ] ); } wrap.map( function() { var elem = this; while ( elem.firstElementChild ) { elem = elem.firstElementChild; } return elem; } ).append( this ); } return this; }, wrapInner: function( html ) { if ( isFunction( html ) ) { return this.each( function( i ) { jQuery( this ).wrapInner( html.call( this, i ) ); } ); } return this.each( function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } } ); }, wrap: function( html ) { var htmlIsFunction = isFunction( html ); return this.each( function( i ) { jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); } ); }, unwrap: function( selector ) { this.parent( selector ).not( "body" ).each( function() { jQuery( this ).replaceWith( this.childNodes ); } ); return this; } } ); jQuery.expr.pseudos.hidden = function( elem ) { return !jQuery.expr.pseudos.visible( elem ); }; jQuery.expr.pseudos.visible = function( elem ) { return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); }; jQuery.ajaxSettings.xhr = function() { try { return new window.XMLHttpRequest(); } catch ( e ) {} }; var xhrSuccessStatus = { // File protocol always yields status code 0, assume 200 0: 200, // Support: IE <=9 only // #1450: sometimes IE returns 1223 when it should be 204 1223: 204 }, xhrSupported = jQuery.ajaxSettings.xhr(); support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); support.ajax = xhrSupported = !!xhrSupported; jQuery.ajaxTransport( function( options ) { var callback, errorCallback; // Cross domain only allowed if supported through XMLHttpRequest if ( support.cors || xhrSupported && !options.crossDomain ) { return { send: function( headers, complete ) { var i, xhr = options.xhr(); xhr.open( options.type, options.url, options.async, options.username, options.password ); // Apply custom fields if provided if ( options.xhrFields ) { for ( i in options.xhrFields ) { xhr[ i ] = options.xhrFields[ i ]; } } // Override mime type if needed if ( options.mimeType && xhr.overrideMimeType ) { xhr.overrideMimeType( options.mimeType ); } // X-Requested-With header // For cross-domain requests, seeing as conditions for a preflight are // akin to a jigsaw puzzle, we simply never set it to be sure. // (it can always be set on a per-request basis or even using ajaxSetup) // For same-domain requests, won't change header if already provided. if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { headers[ "X-Requested-With" ] = "XMLHttpRequest"; } // Set headers for ( i in headers ) { xhr.setRequestHeader( i, headers[ i ] ); } // Callback callback = function( type ) { return function() { if ( callback ) { callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = xhr.onreadystatechange = null; if ( type === "abort" ) { xhr.abort(); } else if ( type === "error" ) { // Support: IE <=9 only // On a manual native abort, IE9 throws // errors on any property access that is not readyState if ( typeof xhr.status !== "number" ) { complete( 0, "error" ); } else { complete( // File: protocol always yields status 0; see #8605, #14207 xhr.status, xhr.statusText ); } } else { complete( xhrSuccessStatus[ xhr.status ] || xhr.status, xhr.statusText, // Support: IE <=9 only // IE9 has no XHR2 but throws on binary (trac-11426) // For XHR2 non-text, let the caller handle it (gh-2498) ( xhr.responseType || "text" ) !== "text" || typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText }, xhr.getAllResponseHeaders() ); } } }; }; // Listen to events xhr.onload = callback(); errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); // Support: IE 9 only // Use onreadystatechange to replace onabort // to handle uncaught aborts if ( xhr.onabort !== undefined ) { xhr.onabort = errorCallback; } else { xhr.onreadystatechange = function() { // Check readyState before timeout as it changes if ( xhr.readyState === 4 ) { // Allow onerror to be called first, // but that will not handle a native abort // Also, save errorCallback to a variable // as xhr.onerror cannot be accessed window.setTimeout( function() { if ( callback ) { errorCallback(); } } ); } }; } // Create the abort callback callback = callback( "abort" ); try { // Do send the request (this may raise an exception) xhr.send( options.hasContent && options.data || null ); } catch ( e ) { // #14683: Only rethrow if this hasn't been notified as an error yet if ( callback ) { throw e; } } }, abort: function() { if ( callback ) { callback(); } } }; } } ); // Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) jQuery.ajaxPrefilter( function( s ) { if ( s.crossDomain ) { s.contents.script = false; } } ); // Install script dataType jQuery.ajaxSetup( { accepts: { script: "text/javascript, application/javascript, " + "application/ecmascript, application/x-ecmascript" }, contents: { script: /\b(?:java|ecma)script\b/ }, converters: { "text script": function( text ) { jQuery.globalEval( text ); return text; } } } ); // Handle cache's special case and crossDomain jQuery.ajaxPrefilter( "script", function( s ) { if ( s.cache === undefined ) { s.cache = false; } if ( s.crossDomain ) { s.type = "GET"; } } ); // Bind script tag hack transport jQuery.ajaxTransport( "script", function( s ) { // This transport only deals with cross domain or forced-by-attrs requests if ( s.crossDomain || s.scriptAttrs ) { var script, callback; return { send: function( _, complete ) { script = jQuery( " ================================================ FILE: example_project/example_project/templates/homepage.html ================================================ {% extends 'base.html' %} {% block title %}Photologue example project{% endblock %} {% block content %}

This is a quick demo of the Photologue application - just click on the menu options above.

It uses the built-in Bootstrap-compatible templates that you can use to get you quickly up and running, or completely replace with your own templates.

{% endblock %} ================================================ FILE: example_project/example_project/urls.py ================================================ from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from django.views.generic import TemplateView urlpatterns = [path('admin/', admin.site.urls), path('photologue/', include('photologue.urls')), path('', TemplateView.as_view(template_name="homepage.html"), name='homepage'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ================================================ FILE: example_project/example_project/wsgi.py ================================================ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example_project.settings") application = get_wsgi_application() ================================================ FILE: example_project/manage.py ================================================ #!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'example_project.settings') # Add parent folder to path so that we can import Photologue itself. PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0]) sys.path.append(os.path.join(PROJECT_PATH, "..")) from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) ================================================ FILE: example_project/public/.gitdirectory ================================================ Placeholder so that this directory will be added to the git repository. ================================================ FILE: example_project/public/media/.gitignore ================================================ # Ignore everything in this directory * # Except this file !.gitignore ================================================ FILE: example_project/public/static/.gitdirectory ================================================ Placeholder so that this directory will be added to the git repository. ================================================ FILE: example_project/requirements.txt ================================================ -r ../requirements.txt # The following is only required if developing for Photologue. factory-boy>=3.3.2 # Note: version that formally supports Dj5.2 not yet released. # The following is only required if you plan on using Amazon AWS S3 # -r example_storages/s3_requirements.txt ================================================ FILE: photologue/__init__.py ================================================ import os __version__ = '3.19.dev0' PHOTOLOGUE_APP_DIR = os.path.dirname(os.path.abspath(__file__)) ================================================ FILE: photologue/admin.py ================================================ from django import forms from django.conf import settings from django.contrib import admin, messages from django.contrib.admin import helpers from django.contrib.sites.models import Site from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import path from django.utils.translation import gettext_lazy as _ from django.utils.translation import ngettext from .forms import UploadZipForm from .models import Gallery, Photo, PhotoEffect, PhotoSize, Watermark MULTISITE = getattr(settings, 'PHOTOLOGUE_MULTISITE', False) class GalleryAdminForm(forms.ModelForm): class Meta: model = Gallery if MULTISITE: exclude = [] else: exclude = ['sites'] class GalleryAdmin(admin.ModelAdmin): list_display = ('title', 'date_added', 'photo_count', 'is_public') list_filter = ['date_added', 'is_public'] if MULTISITE: list_filter.append('sites') date_hierarchy = 'date_added' prepopulated_fields = {'slug': ('title',)} form = GalleryAdminForm if MULTISITE: filter_horizontal = ['sites'] if MULTISITE: actions = [ 'add_to_current_site', 'add_photos_to_current_site', 'remove_from_current_site', 'remove_photos_from_current_site' ] def formfield_for_manytomany(self, db_field, request, **kwargs): """ Set the current site as initial value. """ if db_field.name == "sites": kwargs["initial"] = [Site.objects.get_current()] return super().formfield_for_manytomany(db_field, request, **kwargs) def save_related(self, request, form, *args, **kwargs): """ If the user has saved a gallery with a photo that belongs only to different Sites - it might cause much confusion. So let them know. """ super().save_related(request, form, *args, **kwargs) orphaned_photos = form.instance.orphaned_photos() if orphaned_photos: msg = ngettext( 'The following photo does not belong to the same site(s)' ' as the gallery, so will never be displayed: %(photo_list)s.', 'The following photos do not belong to the same site(s)' ' as the gallery, so will never be displayed: %(photo_list)s.', len(orphaned_photos) ) % {'photo_list': ", ".join([photo.title for photo in orphaned_photos])} messages.warning(request, msg) def add_to_current_site(modeladmin, request, queryset): current_site = Site.objects.get_current() current_site.gallery_set.add(*queryset) msg = ngettext( "The gallery has been successfully added to %(site)s", "The galleries have been successfully added to %(site)s", len(queryset) ) % {'site': current_site.name} messages.success(request, msg) add_to_current_site.short_description = \ _("Add selected galleries to the current site") def remove_from_current_site(modeladmin, request, queryset): current_site = Site.objects.get_current() current_site.gallery_set.remove(*queryset) msg = ngettext( "The gallery has been successfully removed from %(site)s", "The selected galleries have been successfully removed from %(site)s", len(queryset) ) % {'site': current_site.name} messages.success(request, msg) remove_from_current_site.short_description = \ _("Remove selected galleries from the current site") def add_photos_to_current_site(modeladmin, request, queryset): photos = Photo.objects.filter(galleries__in=queryset) current_site = Site.objects.get_current() current_site.photo_set.add(*photos) msg = ngettext( 'All photos in gallery %(galleries)s have been successfully added to %(site)s', 'All photos in galleries %(galleries)s have been successfully added to %(site)s', len(queryset) ) % {'site': current_site.name, 'galleries': ", ".join([f"'{gallery.title}'" for gallery in queryset])} messages.success(request, msg) add_photos_to_current_site.short_description = \ _("Add all photos of selected galleries to the current site") def remove_photos_from_current_site(modeladmin, request, queryset): photos = Photo.objects.filter(galleries__in=queryset) current_site = Site.objects.get_current() current_site.photo_set.remove(*photos) msg = ngettext( 'All photos in gallery %(galleries)s have been successfully removed from %(site)s', 'All photos in galleries %(galleries)s have been successfully removed from %(site)s', len(queryset) ) % {'site': current_site.name, 'galleries': ", ".join([f"'{gallery.title}'" for gallery in queryset])} messages.success(request, msg) remove_photos_from_current_site.short_description = \ _("Remove all photos in selected galleries from the current site") admin.site.register(Gallery, GalleryAdmin) class PhotoAdminForm(forms.ModelForm): class Meta: model = Photo if MULTISITE: exclude = [] else: exclude = ['sites'] class PhotoAdmin(admin.ModelAdmin): list_display = ('title', 'date_taken', 'date_added', 'is_public', 'view_count', 'admin_thumbnail') list_filter = ['date_added', 'is_public'] if MULTISITE: list_filter.append('sites') search_fields = ['title', 'slug', 'caption'] list_per_page = 10 prepopulated_fields = {'slug': ('title',)} readonly_fields = ('date_taken',) form = PhotoAdminForm if MULTISITE: filter_horizontal = ['sites'] if MULTISITE: actions = ['add_photos_to_current_site', 'remove_photos_from_current_site'] def formfield_for_manytomany(self, db_field, request, **kwargs): """ Set the current site as initial value. """ if db_field.name == "sites": kwargs["initial"] = [Site.objects.get_current()] return super().formfield_for_manytomany(db_field, request, **kwargs) def add_photos_to_current_site(modeladmin, request, queryset): current_site = Site.objects.get_current() current_site.photo_set.add(*queryset) msg = ngettext( 'The photo has been successfully added to %(site)s', 'The selected photos have been successfully added to %(site)s', len(queryset) ) % {'site': current_site.name} messages.success(request, msg) add_photos_to_current_site.short_description = \ _("Add selected photos to the current site") def remove_photos_from_current_site(modeladmin, request, queryset): current_site = Site.objects.get_current() current_site.photo_set.remove(*queryset) msg = ngettext( 'The photo has been successfully removed from %(site)s', 'The selected photos have been successfully removed from %(site)s', len(queryset) ) % {'site': current_site.name} messages.success(request, msg) remove_photos_from_current_site.short_description = \ _("Remove selected photos from the current site") def get_urls(self): urls = super().get_urls() custom_urls = [ path('upload_zip/', self.admin_site.admin_view(self.upload_zip), name='photologue_upload_zip') ] return custom_urls + urls def upload_zip(self, request): context = { 'title': _('Upload a zip archive of photos'), 'app_label': self.model._meta.app_label, 'opts': self.model._meta, 'has_change_permission': self.has_change_permission(request) } # Handle form request if request.method == 'POST': form = UploadZipForm(request.POST, request.FILES) if form.is_valid(): form.save(request=request) return HttpResponseRedirect('..') else: form = UploadZipForm() context['form'] = form context['adminform'] = helpers.AdminForm(form, list([(None, {'fields': form.base_fields})]), {}) return render(request, 'admin/photologue/photo/upload_zip.html', context) admin.site.register(Photo, PhotoAdmin) class PhotoEffectAdmin(admin.ModelAdmin): list_display = ('name', 'description', 'color', 'brightness', 'contrast', 'sharpness', 'filters', 'admin_sample') fieldsets = ( (None, { 'fields': ('name', 'description') }), ('Adjustments', { 'fields': ('color', 'brightness', 'contrast', 'sharpness') }), ('Filters', { 'fields': ('filters',) }), ('Reflection', { 'fields': ('reflection_size', 'reflection_strength', 'background_color') }), ('Transpose', { 'fields': ('transpose_method',) }), ) admin.site.register(PhotoEffect, PhotoEffectAdmin) class PhotoSizeAdmin(admin.ModelAdmin): list_display = ('name', 'width', 'height', 'crop', 'pre_cache', 'effect', 'increment_count') fieldsets = ( (None, { 'fields': ('name', 'width', 'height', 'quality') }), ('Options', { 'fields': ('upscale', 'crop', 'pre_cache', 'increment_count') }), ('Enhancements', { 'fields': ('effect', 'watermark',) }), ) admin.site.register(PhotoSize, PhotoSizeAdmin) class WatermarkAdmin(admin.ModelAdmin): list_display = ('name', 'opacity', 'style') admin.site.register(Watermark, WatermarkAdmin) ================================================ FILE: photologue/apps.py ================================================ from django.apps import AppConfig class PhotologueConfig(AppConfig): default_auto_field = 'django.db.models.AutoField' name = 'photologue' ================================================ FILE: photologue/forms.py ================================================ import logging import os import zipfile from io import BytesIO from typing import List from zipfile import BadZipFile from django import forms from django.conf import settings from django.contrib import messages from django.contrib.messages import constants from django.contrib.sites.models import Site from django.core.files.base import ContentFile from django.template.defaultfilters import slugify from django.utils.encoding import force_str from django.utils.translation import gettext_lazy as _ from PIL import Image from .models import Gallery, Photo logger = logging.getLogger('photologue.forms') MessageSeverity = int MessageContent = str class PhotoDefaults: title: str caption: str is_public: bool def __init__(self, title: str, caption: str, is_public: bool) -> "PhotoDefaults": self.title = title self.caption = caption self.is_public = is_public class UploadMessage: severity: MessageSeverity content: MessageContent def __init__(self, severity: MessageSeverity, content: MessageContent) -> "UploadMessage": self.severity = severity self.content = content def success(content: MessageContent): return UploadMessage(severity=constants.SUCCESS, content=content) def warning(content: MessageContent): return UploadMessage(severity=constants.WARNING, content=content) class UploadZipForm(forms.Form): zip_file = forms.FileField() title = forms.CharField(label=_('Title'), max_length=250, required=False, help_text=_('All uploaded photos will be given a title made up of this title + a ' 'sequential number.
This field is required if creating a new ' 'gallery, but is optional when adding to an existing gallery - if ' 'not supplied, the photo titles will be creating from the existing ' 'gallery name.')) gallery = forms.ModelChoiceField(Gallery.objects.all(), label=_('Gallery'), required=False, help_text=_('Select a gallery to add these images to. Leave this empty to ' 'create a new gallery from the supplied title.')) caption = forms.CharField(label=_('Caption'), required=False, help_text=_('Caption will be added to all photos.')) description = forms.CharField(label=_('Description'), required=False, help_text=_('A description of this Gallery. Only required for new galleries.')) is_public = forms.BooleanField(label=_('Is public'), initial=True, required=False, help_text=_('Uncheck this to make the uploaded ' 'gallery and included photographs private.')) def clean_zip_file(self): """Open the zip file a first time, to check that it is a valid zip archive. We'll open it again in a moment, so we have some duplication, but let's focus on keeping the code easier to read! """ zip_file = self.cleaned_data['zip_file'] try: zip = zipfile.ZipFile(zip_file) except BadZipFile as e: raise forms.ValidationError(str(e)) bad_file = zip.testzip() if bad_file: zip.close() raise forms.ValidationError('"%s" in the .zip archive is corrupt.' % bad_file) zip.close() # Close file in all cases. return zip_file def clean_title(self): title = self.cleaned_data['title'] if title and Gallery.objects.filter(title=title).exists(): raise forms.ValidationError(_('A gallery with that title already exists.')) return title def clean(self): cleaned_data = super().clean() if not self['title'].errors: # If there's already an error in the title, no need to add another # error related to the same field. if not cleaned_data.get('title', None) and not cleaned_data['gallery']: raise forms.ValidationError( _('Select an existing gallery, or enter a title for a new gallery.')) return cleaned_data def save(self, request=None, zip_file=None): if not zip_file: zip_file = self.cleaned_data['zip_file'] zip = zipfile.ZipFile(zip_file) photo_defaults = PhotoDefaults( title=self.cleaned_data["title"], caption=self.cleaned_data["caption"], is_public=self.cleaned_data["is_public"]) current_site = Site.objects.get(id=settings.SITE_ID) gallery = self._reuse_or_create_gallery_in_site(current_site) upload_messages = upload_photos_to_site(current_site, zip, gallery, photo_defaults) if request: for upload_message in upload_messages: messages.add_message(request, upload_message.severity, upload_message.content, fail_silently=True) def _reuse_or_create_gallery_in_site(self, current_site): if self.cleaned_data['gallery']: logger.debug('Using pre-existing gallery.') gallery = self.cleaned_data['gallery'] else: logger.debug( force_str('Creating new gallery "{0}".').format(self.cleaned_data['title'])) gallery = create_gallery_in_site(current_site, title=self.cleaned_data['title'], description=self.cleaned_data['description'], is_public=self.cleaned_data['is_public']) return gallery def create_gallery_in_site(site: Site, title: str, description: str = "", is_public: bool = False) -> Gallery: gallery = Gallery.objects.create(title=title, slug=slugify(title), description=description, is_public=is_public) gallery.sites.add(site) return gallery def upload_photos_to_site(site: Site, zip: zipfile.ZipFile, gallery: Gallery, photo_defaults: PhotoDefaults)\ -> List[UploadMessage]: upload_messages = [] count = 1 for filename in sorted(zip.namelist()): logger.debug(f'Reading file "{filename}".') if filename.startswith('__') or filename.startswith('.'): logger.debug(f'Ignoring file "{filename}".') continue if os.path.dirname(filename): logger.warning('Ignoring file "{}" as it is in a subfolder; all images should be in the top ' 'folder of the zip.'.format(filename)) upload_messages.append(UploadMessage.warning( _('Ignoring file "{filename}" as it is in a subfolder; all images should be in the top folder of the ' 'zip.').format(filename=filename))) continue data = zip.read(filename) if not len(data): logger.debug(f'File "{filename}" is empty.') continue photo_title_root = photo_defaults.title if photo_defaults.title else gallery.title # A photo might already exist with the same slug. So it's somewhat inefficient, # but we loop until we find a slug that's available. while True: photo_title = ' '.join([photo_title_root, str(count)]) slug = slugify(photo_title) if Photo.objects.filter(slug=slug).exists(): count += 1 continue break photo = Photo(title=photo_title, slug=slug, caption=photo_defaults.caption, is_public=photo_defaults.is_public) # Basic check that we have a valid image. try: file = BytesIO(data) opened = Image.open(file) opened.verify() except Exception: # Pillow doesn't recognize it as an image. # If a "bad" file is found we just skip it. # But we do flag this both in the logs and to the user. logger.error('Could not process file "{}" in the .zip archive.'.format( filename)) upload_messages.append(UploadMessage.warning( _('Could not process file "{0}" in the .zip archive.').format(filename))) continue contentfile = ContentFile(data) photo.image.save(filename, contentfile) photo.save() photo.sites.add(site) gallery.photos.add(photo) count += 1 zip.close() upload_messages.append(UploadMessage.success( _('The photos have been added to gallery "{0}".').format(gallery.title))) return upload_messages ================================================ FILE: photologue/locale/ca/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # cubells , 2017 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2018-04-21 15:47+0000\n" "Last-Translator: cubells \n" "Language-Team: Catalan (http://www.transifex.com/richardbarran/django-photologue/language/ca/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "La següent fotografia no pertany al mateix lloc o llocs que la galeria, així que no es mostrarà mai: %(photo_list)s." msgstr[1] "Les següents fotografies no pertanyen al mateix lloc o llocs que la galeria, així que no es mostraran mai: %(photo_list)s." #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "S'ha afegit la galeria correctament a %(site)s" msgstr[1] "S'han afegit les galeries correctament a %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Afegeix les galeries seleccionades al lloc web actual" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "S'ha suprimit correctament la galeria de %(site)s" msgstr[1] "S'han suprimit correctament les galeries de %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Suprimeix les galeries seleccionades del lloc web actual" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Totes les fotos de la galeria %(galleries)s s'han afegit amb èxit a %(site)s" msgstr[1] "Totes les fotos de les galeries %(galleries)s s'han afegit amb èxit a %(site)s" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Afegeix totes les fotos de les galeries seleccionades al lloc web actual" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Totes les fotos de la galeria %(galleries)s s'han suprimit amb èxit de %(site)s" msgstr[1] "Totes les fotos de les galeries %(galleries)s s'han suprimit amb èxit de %(site)s" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Suprimeix totes les fotos de les galeries seleccionades del lloc web actual" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "La foto s'ha afegit amb èxit a %(site)s" msgstr[1] "Les fotos seleccionades s'ha afegit amb èxit a %(site)s" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Afegeix les fotografies seleccionades al lloc web actual" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "La fotografia s'ha suprimit amb èxit de %(site)s" msgstr[1] "Les fotografies seleccionades s'han suprimit amb èxit de %(site)s" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Suprimeix les fotos seleccionades del lloc web actual" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Penja un fitxer zip de fotografies" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Títol" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "A totes les fotografies penjades se li posarà un títol compost pel títol + un número seqüencial.
Aquest camp és necessari si es crea una galeria nova, però és opcional en afegir a una galeria existent - si no es posa, el títols de les fotografies es crearan del nom de la galeria existent." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galeria" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Selecciona una galeria a la qual afegir aquestes imatges. Deixa en blanc per crear una galeria nova amb el títol subministrat." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Títol" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "El títol s'afegirà a totes les fotografies." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Descripció" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Una descripció d'aquesta galeria. Solament és necessari per a noves galeries." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "És pública" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Desmarca per fer privades la galeria penjada i les fotografies incloses." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Una galeria amb aquest títol ja existeix." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Seleccioneu una galeria existent, o introduïu un títol per a la galeria nova." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "S'està ignorant el fitxer \"{filename}\" ja que està en una subcarpeta; totes les imatges haurien d'estar en la carpeta superior del fitxer zip." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "No s'ha pogut processar el fitxer \"{0}\" del fitxer zip." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Les fotografies s'han afegit a la galeria \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "Molt baixa" #: models.py:99 msgid "Low" msgstr "Baixa" #: models.py:100 msgid "Medium-Low" msgstr "Mitja-baix" #: models.py:101 msgid "Medium" msgstr "Mitjana" #: models.py:102 msgid "Medium-High" msgstr "Mitja-alta" #: models.py:103 msgid "High" msgstr "Alta" #: models.py:104 msgid "Very High" msgstr "Molt alta" #: models.py:109 msgid "Top" msgstr "Principi" #: models.py:110 msgid "Right" msgstr "Dreta" #: models.py:111 msgid "Bottom" msgstr "A baix" #: models.py:112 msgid "Left" msgstr "Esquerra" #: models.py:113 msgid "Center (Default)" msgstr "Centrada (predeterminat)" #: models.py:117 msgid "Flip left to right" msgstr "Gira d'esquerra a dreta" #: models.py:118 msgid "Flip top to bottom" msgstr "Gira de dalt a baix" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Rota 90 graus en sentit contrari al de les agulles del rellotge" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Rota 90 graus en el sentit de les agulles del rellotge" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Rota 180 graus" #: models.py:125 msgid "Tile" msgstr "Mosaic" #: models.py:126 msgid "Scale" msgstr "Escala" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Encadeneu múltiple filtres fent servir el següent patró \"FILTRE_UN->FILTRE_DOS->FILTRE_TRES\". Els filtres d'imatge s'aplicaran en ordre. Estan disponibles els filtres següents: %s." #: models.py:158 msgid "date published" msgstr "data de publicació" #: models.py:160 models.py:513 msgid "title" msgstr "títol" #: models.py:163 msgid "title slug" msgstr "url del títol" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "L'url del títol és un URL sense espais per a un objecte." #: models.py:167 models.py:596 msgid "description" msgstr "descripció" #: models.py:169 models.py:524 msgid "is public" msgstr "és pública" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Les galeries públiques es mostraran en les vistes predeterminades." #: models.py:175 models.py:536 msgid "photos" msgstr "fotos" #: models.py:177 models.py:527 msgid "sites" msgstr "llocs web" #: models.py:185 msgid "gallery" msgstr "galeria" #: models.py:186 msgid "galleries" msgstr "galeries" #: models.py:224 msgid "count" msgstr "compta" #: models.py:240 models.py:741 msgid "image" msgstr "imatge" #: models.py:243 msgid "date taken" msgstr "data en la què es va fer" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "La data en què la imatge es va fer; s'obté de la informació EXIF de la imatge." #: models.py:247 msgid "view count" msgstr "vistes" #: models.py:250 msgid "crop from" msgstr "escapça des de" #: models.py:259 msgid "effect" msgstr "efecte" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "No s'ha definit una mida de fotografia de la miniatura d'administració." #: models.py:286 msgid "Thumbnail" msgstr "Miniatura" #: models.py:516 msgid "slug" msgstr "url" #: models.py:520 msgid "caption" msgstr "títol" #: models.py:522 msgid "date added" msgstr "data en què s'ha afegit" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Les fotografies públiques es mostraran en les vistes predeterminades." #: models.py:535 msgid "photo" msgstr "foto" #: models.py:593 models.py:771 msgid "name" msgstr "nom" #: models.py:672 msgid "rotate or flip" msgstr "rota o gira" #: models.py:676 models.py:704 msgid "color" msgstr "color" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Un factor de 0.0 proporciona una imatge en blanc i negre, un factor d'1.0 proporciona la imatge original." #: models.py:680 msgid "brightness" msgstr "brillantor" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Un factor de 0.0 proporciona una imatge en negre, un factor d'1.0 proporciona la imatge original." #: models.py:684 msgid "contrast" msgstr "contrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Un factor de 0.0 proporciona una imatge en gris sòlid, un factor d'1.0 proporciona la imatge original." #: models.py:688 msgid "sharpness" msgstr "nitidesa" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Un factor de 0.0 proporciona una imatge borrosa, un factor d'1.0 proporciona la imatge original." #: models.py:692 msgid "filters" msgstr "filtres" #: models.py:696 msgid "size" msgstr "mida" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "L'alçada del reflex com un percentatge de la imatge original. Un factor de 0.0 no afegeix reflex, un factor d'1.0 afegeix un reflex igual a l'alçada de la imatge original." #: models.py:701 msgid "strength" msgstr "reforçament" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "L'opacitat inicial del gradient de reflex." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "El color de fons del gradient de reflex. Definiu això per coincidir amb el color de fons de la pàgina web." #: models.py:711 models.py:815 msgid "photo effect" msgstr "efecte" #: models.py:712 msgid "photo effects" msgstr "efectes" #: models.py:743 msgid "style" msgstr "estil" #: models.py:747 msgid "opacity" msgstr "opacitat" #: models.py:749 msgid "The opacity of the overlay." msgstr "L'opacitat de la superposició." #: models.py:752 msgid "watermark" msgstr "marca d'aigua" #: models.py:753 msgid "watermarks" msgstr "marques d'aigua" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "El nom de la mida de la foto solament deu contenir lletres, nombres i guions baixos. Exemples: \"miniatura\", \"pantalla\", \"petita\", \"giny_de_la_pagina_principal\"." #: models.py:782 msgid "width" msgstr "amplada" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Si l'amplada està definida a \"0\", la imatge s'escalarà a l'altura proporcionada." #: models.py:786 msgid "height" msgstr "alçada" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Si l'alçada està definida a \"0\", la imatge s'escalarà a l'amplada proporcionada" #: models.py:790 msgid "quality" msgstr "qualitat" #: models.py:793 msgid "JPEG image quality." msgstr "Qualitat de la imatge JPEG." #: models.py:794 msgid "upscale images?" msgstr "millorem les imatges?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Si la imatge s'escalarà el que calgui per ajustar-se a les dimensions proporcionades. Les mides escapçades s'escalaran tenint em compte aquest paràmetre. " #: models.py:800 msgid "crop to fit?" msgstr "escapcem per ajustar?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Si la imatge seleccionada s'escalarà i escapçarà per ajustar-se a les dimensions proporcionades." #: models.py:804 msgid "pre-cache?" msgstr "pre-cache?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Si se selecciona, la mida d'aquesta fotografia es posarà en la memòria cau conforme s'afegeixen." #: models.py:807 msgid "increment view count?" msgstr "incrementem el comptador de vistes?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Si se selecciona, el comptador de vistes de la imatge s'incrementarà quan la fotografia es mostre." #: models.py:821 msgid "watermark image" msgstr "imatge de la marca d'aigua" #: models.py:826 msgid "photo size" msgstr "mida de la foto" #: models.py:827 msgid "photo sizes" msgstr "mides de les fotos" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Solament es poden escapçar imatges si l'amplada i l'altura estan definides." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Penja un fitxer zip" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Inici" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Penja" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

En aquesta pàgina podeu penjar tantes fotos com tingueu, d'una sola vegada\n\t\tposeu-les totes en un fitxer zip. Les fotos es podran o bé:

\n\t\t
    \n\t\t\t
  • Afegir a una galeria existent.
  • \n\t\t\t
  • O bé, es crearà una galeria nova amb el títol que poseu.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Corregiu l'error següent." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Corregiu els error següents." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Darreres galeries" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtra pe any" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "No s'han trobat galeries" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Galeries de %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "No s'han trobat galeries." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Mostra totes les galeries per mesos" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Galeries del mes de %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtra per dia" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Mostra totes les galeries per any" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Galeries de %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtra per mes" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Mostra totes les galeries" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Publicada" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Totes les galeries" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Anterior" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t pàgina %(page_number)s de %(total_pages)s\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Següent" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Les darreres fotos" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "No s'han trobat fotos" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Fotos de%(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Mostra totes les fotos per mesos" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Fotos del mes de %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Mostra totes les fotos per any" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Fotos de %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Mostra totes les fotos" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Aquesta foto es troba en les següents galeries" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Totes les fotos" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/cs/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # Jakub Dorňák , 2013 # Jakub Dorňák , 2013 # Jakub Dorňák , 2013 # Viktor Matys , 2015 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-09-23 19:18+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Czech (http://www.transifex.com/richardbarran/django-photologue/language/cs/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: cs\n" "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Vyberte fotogalerii, do které se mají tyto obrázky přidat. Ponechte prázdné pro vytvoření nové fotogalerie s daným názvem." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Titulek bude přidán ke všem fotografiím." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Popis" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Je veřejné" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Zrušte zaškrtnutí, pokud chcete, aby byla nově nahraná fotogalerie neveřejná." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Již existuje galerie s tímto titulkem." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Vyberte existující galerii, nebo zadejte titulek pro novou galerii." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Nešlo zpracovat soubor \"{0}\" v zip archivu." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Fotografie byly přidány do galerie \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "Velmi nízká" #: models.py:99 msgid "Low" msgstr "Nízká" #: models.py:100 msgid "Medium-Low" msgstr "Nížší střední" #: models.py:101 msgid "Medium" msgstr "Střední" #: models.py:102 msgid "Medium-High" msgstr "Vyšší střední" #: models.py:103 msgid "High" msgstr "Vysoká" #: models.py:104 msgid "Very High" msgstr "Velmi vysoká" #: models.py:109 msgid "Top" msgstr "Nahoře" #: models.py:110 msgid "Right" msgstr "Vpravo" #: models.py:111 msgid "Bottom" msgstr "Dole" #: models.py:112 msgid "Left" msgstr "Vlevo" #: models.py:113 msgid "Center (Default)" msgstr "Uprostřed (výchozí)" #: models.py:117 msgid "Flip left to right" msgstr "Obrátit vodorovně" #: models.py:118 msgid "Flip top to bottom" msgstr "Obrátit svisle" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Otočit o 90 stupňů vlevo" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Otočit o 90 stupňů vpravo" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Otočit o 180 stupňů" #: models.py:125 msgid "Tile" msgstr "Dláždit" #: models.py:126 msgid "Scale" msgstr "Přizpůsobit velikost" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Zřetězte více filtrů použitím vzoru „PRVNI_FILTR->DRUHY_FILTR->TRETI_FILTR“.\nFiltry budou aplikovány v daném pořadí. K dispozici jsou tyto filtry: %s." #: models.py:158 msgid "date published" msgstr "datum zveřejnění" #: models.py:160 models.py:513 msgid "title" msgstr "název" #: models.py:163 msgid "title slug" msgstr "identifikátor" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Unikátní název, který bude použit v URL adrese (bez diakritiky)." #: models.py:167 models.py:596 msgid "description" msgstr "popis" #: models.py:169 models.py:524 msgid "is public" msgstr "veřejné" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Veřejné fotogalerie budou zobrazeny ve výchozích pohledech." #: models.py:175 models.py:536 msgid "photos" msgstr "fotografie" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "fotogalerie" #: models.py:186 msgid "galleries" msgstr "fotogalerie" #: models.py:224 msgid "count" msgstr "počet" #: models.py:240 models.py:741 msgid "image" msgstr "obrázek" #: models.py:243 msgid "date taken" msgstr "datum pořízení" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "počet zobrazení" #: models.py:250 msgid "crop from" msgstr "oříznout" #: models.py:259 msgid "effect" msgstr "efekt" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Velikost „admin_thumbnail“ není definovaná." #: models.py:286 msgid "Thumbnail" msgstr "Náhled" #: models.py:516 msgid "slug" msgstr "identifikátor" #: models.py:520 msgid "caption" msgstr "titulek" #: models.py:522 msgid "date added" msgstr "datum přidání" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Veřejné fotografie budou zobrazeny ve výchozích pohledech." #: models.py:535 msgid "photo" msgstr "fotografie" #: models.py:593 models.py:771 msgid "name" msgstr "název" #: models.py:672 msgid "rotate or flip" msgstr "obrátit nebo otočit" #: models.py:676 models.py:704 msgid "color" msgstr "barva" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Hodnota 0,0 udělá černobílý obrázek, hodnota 1,0 zachová původní barvy." #: models.py:680 msgid "brightness" msgstr "jas" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Hodnota 0,0 udělá černý obrázek, hodnota 1,0 zachová původní jas." #: models.py:684 msgid "contrast" msgstr "kontrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Hodnota 0,0 udělá šedý obrázek, hodnota 1,0 zachová původní kontrast." #: models.py:688 msgid "sharpness" msgstr "ostrost" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Hodnota 0,0 udělá rozmazaný obrázek, hodnota 1,0 zachová původní ostrost." #: models.py:692 msgid "filters" msgstr "filtry" #: models.py:696 msgid "size" msgstr "velikost" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Výška odrazu jako podíl výšky původního obrázku. Hodnota 0.0 nepřidá žádný odraz, hodnota 1.0 přidá odraz stejně vysoký, jako původní obrázek." #: models.py:701 msgid "strength" msgstr "intenzita" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Počáteční intenzita postupně slábnoucího odrazu." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Barva pozadí odrazu. Nastavte na barvu pozadí stránky." #: models.py:711 models.py:815 msgid "photo effect" msgstr "efekt" #: models.py:712 msgid "photo effects" msgstr "efekty" #: models.py:743 msgid "style" msgstr "styl" #: models.py:747 msgid "opacity" msgstr "krytí" #: models.py:749 msgid "The opacity of the overlay." msgstr "Neprůhlednost překrývajícího obrázku." #: models.py:752 msgid "watermark" msgstr "vodotisk" #: models.py:753 msgid "watermarks" msgstr "vodotisky" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Název velikosti by měl obsahovat pouze písmena, číslice a podtržítka. Například: „nahled“, „male_zobrazeni“, „velke_zobrazeni“." #: models.py:782 msgid "width" msgstr "šířka" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Pokud je šířka nastavena na 0, velikost obrázku bude upravena podle zadané výšky." #: models.py:786 msgid "height" msgstr "výška" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Pokud je výška nastavena na 0, velikost obrázku bude upravena podle zadané šířky." #: models.py:790 msgid "quality" msgstr "kvalita" #: models.py:793 msgid "JPEG image quality." msgstr "Kvalita JPEG." #: models.py:794 msgid "upscale images?" msgstr "zvětšit obrázky?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Pokud je vybráno, obrázek bude podle potřeby zvětšen, aby odpovídal požadovaným rozměrům. Pokud má být obrázek oříznutý, bude podle potřeby zvětšen bez ohledu na toto nastavení." #: models.py:800 msgid "crop to fit?" msgstr "oříznout?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Pokud je vybráno, obrázek bude oříznutý, aby odpovídal požadovaným proporcím." #: models.py:804 msgid "pre-cache?" msgstr "vytvářet předem?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Pokud je vybráno, bude pro každý obrázek vytvořena varianta v této velikosti předem, místo až v době zobrazení." #: models.py:807 msgid "increment view count?" msgstr "navyšovat počet zobrazení?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Pokud je vybráno, bude hodnota „view_count“ obrázku navyšována s každým zobrazením obrázku této velikosti." #: models.py:821 msgid "watermark image" msgstr "obrázek s vodotiskem" #: models.py:826 msgid "photo size" msgstr "velikost obrázku" #: models.py:827 msgid "photo sizes" msgstr "velikosti obrázků" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Ořezávat fotografie je možné, pouze pokud je zadána výška i šířka." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Domů" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Nahrát" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Prosím opravte chybu dole." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Prosím opravte chyby dole." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Nejnovější fotogalerie" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtrovat dle roku" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Žádné fotogalerie nebyly nalezeny" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Žádné fotogalerie nebyly nalezeny." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtovat dle dne" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtrovat dle měsíce" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Prohlédnout všechny fotogalerie" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Zveřejněné" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Všechny fotogalerie" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "předchozí" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "další" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Tato fotografie se nachází v následujících fotogaleriích" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/da/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # Michael Lind Mortensen , 2009 # Rasmus Klett , 2015 # Rasmus Klett , 2015 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-12-03 14:46+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Danish (http://www.transifex.com/richardbarran/django-photologue/language/da/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "Galleriet er blevet tilføjet til %(site)s" msgstr[1] "Gallerierne er blevet tilføjet til %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Tilføj valgte gallerier til den nuværende webside" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "Det valgte galleri er blevet fjernet fra %(site)s" msgstr[1] "De valgte gallerier er blevet fjernet fra %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Fjern valgte gallerier fra den nuværende webside" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Alle billeder i galleriet %(galleries)s er blevet tilføjet til %(site)s" msgstr[1] "Alle billeder i gallerierne %(galleries)s er blevet tilføjet til %(site)s" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Tilføj alle billeder fra de valgte gallerier til den nuværende webside" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Alle billeder i galleriet %(galleries)s er blevet slettet fra %(site)s" msgstr[1] "Alle billeder i gallerierne %(galleries)s er blevet slettet fra %(site)s" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Fjern alle billeder i valgte gallerier fra den nuværende webside" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "Billedet er blevet tilføjet til %(site)s" msgstr[1] "De valgte billeder er blevet tilføjet til %(site)s" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Tilføj valgte billeder til den nuværende webside" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "Billedet er blevet fjernet fra %(site)s" msgstr[1] "De valgte billeder er blevet fjernet fra %(site)s" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Fjern valgte billeder fra den nuværende webside" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Upload et zip-arkiv af billeder" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Titel" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galleri" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Vælg et galleri at tilføje disse billeder til. Lad feltet være tomt for at oprette et nyt galleri med den valgte title" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Billedtekst" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Billedeteksten vil blive tilføjet til alle billeder." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Beskrivelse" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Er offentlig" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Fjern afkrydsningen her for at gøre det uploadede galleri og alle inkluderede billeder private." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Et galleri med den titel eksisterer allerede" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Vælg et eksisterende galleri, eller skriv en titel til et nyt galleri" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Ignorerer fil \"{filename}\", da det er en undermappe; alle billeder bør være i topmappen af zip-filen" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Kunne ikke behandle fil \"{0}\" i zip-arkivet." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Billederne er blevet tilføjet til galleri \"{0}\"" #: models.py:98 msgid "Very Low" msgstr "Meget Lav" #: models.py:99 msgid "Low" msgstr "Lav" #: models.py:100 msgid "Medium-Low" msgstr "Medium Lav" #: models.py:101 msgid "Medium" msgstr "Medium" #: models.py:102 msgid "Medium-High" msgstr "Medium Høj" #: models.py:103 msgid "High" msgstr "Høj" #: models.py:104 msgid "Very High" msgstr "Meget Høj" #: models.py:109 msgid "Top" msgstr "Top" #: models.py:110 msgid "Right" msgstr "Højre" #: models.py:111 msgid "Bottom" msgstr "Bund" #: models.py:112 msgid "Left" msgstr "Venstre" #: models.py:113 msgid "Center (Default)" msgstr "Center (Standard)" #: models.py:117 msgid "Flip left to right" msgstr "Flip venstre til højre" #: models.py:118 msgid "Flip top to bottom" msgstr "Flip top til bund" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Roter 90 grader mod uret" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Roter 90 grader med uret" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Roter 180 grader" #: models.py:125 msgid "Tile" msgstr "Tile" #: models.py:126 msgid "Scale" msgstr "Skala" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Sæt adskillige filtre i kæde vha. følgende mønster \"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Billedefiltre vil blive påført i den anførte rækkefølge. De følgende filtre er tilgænglige: %s." #: models.py:158 msgid "date published" msgstr "dato offentliggjort" #: models.py:160 models.py:513 msgid "title" msgstr "titel" #: models.py:163 msgid "title slug" msgstr "titel slug" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "En \"slug\" er en unik URL-venlig titel for et objekt" #: models.py:167 models.py:596 msgid "description" msgstr "beskrivelse" #: models.py:169 models.py:524 msgid "is public" msgstr "er offentlig" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Offentlige gallerier vil blive vist i standard views." #: models.py:175 models.py:536 msgid "photos" msgstr "billeder" #: models.py:177 models.py:527 msgid "sites" msgstr "websider" #: models.py:185 msgid "gallery" msgstr "galleri" #: models.py:186 msgid "galleries" msgstr "gallerier" #: models.py:224 msgid "count" msgstr "tæller" #: models.py:240 models.py:741 msgid "image" msgstr "billede" #: models.py:243 msgid "date taken" msgstr "dato taget" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "set tæller" #: models.py:250 msgid "crop from" msgstr "beskær fra" #: models.py:259 msgid "effect" msgstr "effekt" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "En \"admin_thumbnail\" billedestørrelse er ikke blevet defineret." #: models.py:286 msgid "Thumbnail" msgstr "Thumbnail" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "billedetekst" #: models.py:522 msgid "date added" msgstr "dato tilføjet" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Offentlige billeder vil blive vist i standard views." #: models.py:535 msgid "photo" msgstr "billede" #: models.py:593 models.py:771 msgid "name" msgstr "navn" #: models.py:672 msgid "rotate or flip" msgstr "roter eller flip" #: models.py:676 models.py:704 msgid "color" msgstr "farve" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "En faktor af 0.0 giver et sort og hvidt billede, en faktor af 1.0 giver det originale billede." #: models.py:680 msgid "brightness" msgstr "lysstyrke" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "En faktor af 0.0 giver et sort billede, en faktor af 1.0 giver det originale billede." #: models.py:684 msgid "contrast" msgstr "kontrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "En faktor af 0.0 giver et solidt gråt billede, en faktor af 1.0 giver det originale billede." #: models.py:688 msgid "sharpness" msgstr "skarphed" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "En faktor af 0.0 giver et sløret billede, en faktor af 1.0 giver det originale billede." #: models.py:692 msgid "filters" msgstr "filtre" #: models.py:696 msgid "size" msgstr "størrelse" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Højden af reflektionen som en procentdel af det originale billede. En faktor af 0.0 tilføjer ingen reflektion, en faktor af 1.0 tilføjer en reflektion lig med højden af det oprindelige billede." #: models.py:701 msgid "strength" msgstr "styrke" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Den initielle uigennemsigtighed af den reflektive gradient." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Baggrundsfarven af den reflektive gradient. Sæt dette til at passe med baggrundsfarven af din side." #: models.py:711 models.py:815 msgid "photo effect" msgstr "billedeeffekt" #: models.py:712 msgid "photo effects" msgstr "billedeeffekter" #: models.py:743 msgid "style" msgstr "stil" #: models.py:747 msgid "opacity" msgstr "uigennemsigtighed" #: models.py:749 msgid "The opacity of the overlay." msgstr "Uigennemsigtigheden af overlaget." #: models.py:752 msgid "watermark" msgstr "vandmærke" #: models.py:753 msgid "watermarks" msgstr "vandmærker" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Billede størrelse navn må kun indeholde bogstaver, numre og underscores. Eksempler: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "bredde" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Hvis bredden er sat til \"0\" vil billede blive skaleret til den givne højde." #: models.py:786 msgid "height" msgstr "højde" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Hvis højden er sat til \"0\" vil billede blive skaleret til den givne bredde." #: models.py:790 msgid "quality" msgstr "kvalitet" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG billedekvalitet" #: models.py:794 msgid "upscale images?" msgstr "opskaler billeder?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Hvis valgt, vil billedet blive skaleret op såfremt det er nødvendigt for at passe til de givne dimensioner. Beskårede størrelser vil blive opskaleret uanset denne indstilling." #: models.py:800 msgid "crop to fit?" msgstr "beskær til at passe?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Hvis valgt, vil billedet blive skaleret og beskåret for at passe til de givne dimensioner." #: models.py:804 msgid "pre-cache?" msgstr "pre-cache?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Hvis valgt, vil dette billedes størrelse blive pre-cached som billeder bliver tilføjet." #: models.py:807 msgid "increment view count?" msgstr "inkrementer set tæller?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Hvis valgt, vil billedets \"view_count\" blive inkrementeret når billedets størrelse vises." #: models.py:821 msgid "watermark image" msgstr "vandmærkebillede" #: models.py:826 msgid "photo size" msgstr "billedestørrelse" #: models.py:827 msgid "photo sizes" msgstr "billedestørrelser" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Kan kun beskære billeder hvis både bedde og højde er specificeret." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Upload et zip-arkiv" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Hjem" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Upload" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

På denne side can du uploade flere billeder på én gang, så længe du har\n\t\tsamlet dem i et zip-arkiv. Billederne kan enten blive:

\n\t\t
    \n\t\t\t
  • Tilføjet til et eksisterende galleri.
  • \n\t\t\t
  • Ellers bliver et nyt galleri oprettet med den valgte titel.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Ret venligst fejlen nedenfor" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Ret venligst fejlene nedenfor" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Seneste billedgallerier" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtrer efter år" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Ingen gallerier fundet" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Gallerier for %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Ingen gallerier fundet" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Se alle gallerier i måned" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Gallerier i %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtrer efter dag" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Se alle gallerier i året" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Gallerier i %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtrer efter måned" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Se alle gallerier" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Offentliggjort" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Alle gallerier" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Forrige" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t side %(page_number)s af %(total_pages)s\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Næste" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Seneste billeder" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Ingen billeder fundet" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Billeder for %(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Se alle billeder i måned" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Billeder i %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Se alle billeder i år" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Billeder i %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Se alle billeder" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Dette billede findes i følgende gallerier" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Alle billeder" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/de/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # FIRST AUTHOR , 2009 # Jannis, 2012 # Jannis Š, 2012 # Jannis Vajen, 2012-2013 # Jannis Vajen, 2012 # Jannis Vajen, 2012,2015 # Jannis Vajen, 2015-2016 # Martin Darmüntzel , 2014 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-12-03 14:47+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: German (http://www.transifex.com/richardbarran/django-photologue/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "Dieses Foto gehört nicht zur selben Seite wie seine Galerie und wird daher nie angezeigt werden: %(photo_list)s." msgstr[1] "Diese Fotos gehören nicht zur selben Seite wie ihre Galerie und werden daher nie angezeigt werden: %(photo_list)s." #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "Die Galerie wurden erfolgreich zu %(site)s hinzugefügt." msgstr[1] "Die Galerien wurden erfolgreich zu %(site)s hinzugefügt." #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Ausgewählte Galerien zur aktuellen Site hinzufügen" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "Die ausgewählte Galerie wurde erfolgreich von %(site)s entfernt." msgstr[1] "Die ausgewählten Galerien wurden erfolgreich von %(site)s entfernt." #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Entferne ausgewählte Galerien von der aktuellen Site." #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Alle Fotos der Galerie %(galleries)s wurden zu %(site)s hinzugefügt." msgstr[1] "Alle Fotos der Galerien %(galleries)s wurden zu %(site)s hinzugefügt." #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Alle Fotos der ausgewählten Galerien zur aktuellen Site hinzufügen." #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Alle Fotos der Galerie %(galleries)s wurden erfolgreich von %(site)s entfernt." msgstr[1] "Alle Fotos der Galerien %(galleries)s wurden erfolgreich von %(site)s entfernt." #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Entferne alle Fotos der ausgewählten Gallerien von der aktuellen Seite" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "Das Foto wurde erfolgreich zu %(site)s hinzugefügt." msgstr[1] "Die gewählten Fotos wurden erfolgreich zu %(site)s hinzugefügt." #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Füge ausgewählte Fotos zur aktuellen Seite hinzu" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "Das Foto wurde erfolgreich von %(site)s entfernt." msgstr[1] "Die gewählten Fotos wurden erfolgreich von %(site)s entfernt" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Entferne ausgewählte Fotos von der aktuellen Seite" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Lade ein Zip-Archiv an Fotos hoch" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Titel" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "Für alle hochgeladenen Fotos wird ein Titel aus diesem Titel und einer fortlaufenden Nummer generiert.
Dieses Feld muss nur ausgefüllt werden, wenn eine neue Galerie angelegt wird, andernfalls ist es optional – wenn keine Angabe getätigt wird der Name der Galerie als Titel für die Einzelbilder herangezogen." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galerie" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Wähle eine Galerie aus, zu der diese Bilder hinzugefügt werden sollen. Lasse dieses Feld leer, um eine neue Galerie mit dem angegeben Titel zu erzeugen." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Bildunterschrift" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Die Bildunterschrift wird allen Fotos hinzugefügt." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Beschreibung" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Eine Beschreibung dieser Galerie. Nur erforderlich bei neuen Galerien." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Ist öffentlich" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Schalte dies aus, um die hochgeladene Galerie und alle enthaltenen Bilder privat zu machen." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Es existiert bereits eine Gallerie mit diesem Titel." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Wähle eine existierende Galerie aus oder gib einen Titel für eine neue Galerie ein." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Ignoriere die Datei \"{filename}\", da sie sich in einem Unterordner befindet; alle Bilder sollten sich im Wurzelverzeichnis der Zip-Datei befinden." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Konnte die Datei \"{0}\" aus dem Zip-Archiv nicht verarbeiten." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Die Fotos wurden zur Galerie \"{0}\" hinzugefügt." #: models.py:98 msgid "Very Low" msgstr "Sehr niedrig" #: models.py:99 msgid "Low" msgstr "Niedrig" #: models.py:100 msgid "Medium-Low" msgstr "Mittel-niedrig" #: models.py:101 msgid "Medium" msgstr "Mittel" #: models.py:102 msgid "Medium-High" msgstr "Mittel-hoch" #: models.py:103 msgid "High" msgstr "Hoch" #: models.py:104 msgid "Very High" msgstr "Sehr hoch" #: models.py:109 msgid "Top" msgstr "Oben" #: models.py:110 msgid "Right" msgstr "Rechts" #: models.py:111 msgid "Bottom" msgstr "Unten" #: models.py:112 msgid "Left" msgstr "Links" #: models.py:113 msgid "Center (Default)" msgstr "Mitte (Standard)" #: models.py:117 msgid "Flip left to right" msgstr "Horizontal spiegeln" #: models.py:118 msgid "Flip top to bottom" msgstr "Vertikal spiegeln" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Um 90° nach links drehen" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Um 90° nach rechts drehen" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Um 180° drehen" #: models.py:125 msgid "Tile" msgstr "Kacheln" #: models.py:126 msgid "Scale" msgstr "Skalieren" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Verkette mehrere Filter in der Art \"FILTER_EINS->FILTER_ZWEI->FILTER_DREI\". Bildfilter werden nach der Reihe angewendet. Folgende Filter sind verfügbar: %s." #: models.py:158 msgid "date published" msgstr "Veröffentlichungsdatum" #: models.py:160 models.py:513 msgid "title" msgstr "Titel" #: models.py:163 msgid "title slug" msgstr "Kurztitel" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Ein Kurztitel (\"slug\") ist ein eindeutiger, URL-geeigneter Titel für ein Objekt." #: models.py:167 models.py:596 msgid "description" msgstr "Beschreibung" #: models.py:169 models.py:524 msgid "is public" msgstr "ist öffentlich" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Öffentliche Galerien werden in den Standard-Views angezeigt." #: models.py:175 models.py:536 msgid "photos" msgstr "Fotos" #: models.py:177 models.py:527 msgid "sites" msgstr "Seiten" #: models.py:185 msgid "gallery" msgstr "Galerie" #: models.py:186 msgid "galleries" msgstr "Galerien" #: models.py:224 msgid "count" msgstr "Anzahl" #: models.py:240 models.py:741 msgid "image" msgstr "Bild" #: models.py:243 msgid "date taken" msgstr "Aufnahmedatum" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "Datum, an dem das Foto geschossen wurde; ausgelesen aus den EXIF-Daten." #: models.py:247 msgid "view count" msgstr "Anzahl an Aufrufen" #: models.py:250 msgid "crop from" msgstr "Beschneiden von" #: models.py:259 msgid "effect" msgstr "Effekt" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Es ist keine Fotogröße \"admin_thumbnail\" definiert." #: models.py:286 msgid "Thumbnail" msgstr "Vorschaubild" #: models.py:516 msgid "slug" msgstr "Kurztitel" #: models.py:520 msgid "caption" msgstr "Bildunterschrift" #: models.py:522 msgid "date added" msgstr "Datum des Eintrags" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Öffentliche Fotos werden in den Standard-Views angezeigt." #: models.py:535 msgid "photo" msgstr "Foto" #: models.py:593 models.py:771 msgid "name" msgstr "Name" #: models.py:672 msgid "rotate or flip" msgstr "drehen oder spiegeln" #: models.py:676 models.py:704 msgid "color" msgstr "Farbe" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Ein Faktor von 0.0 erzeugt ein Schwarzweißbild, ein Faktor von 1.0 erhält das Originalbild." #: models.py:680 msgid "brightness" msgstr "Helligkeit" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Ein Faktor von 0.0 erzeugt ein schwarzes Bild, ein Faktor von 1.0 erhält das Originalbild." #: models.py:684 msgid "contrast" msgstr "Kontrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Ein Faktor von 0.0 erzeugt ein opak graues Bild, ein Faktor von 1.0 erhält das Originalbild." #: models.py:688 msgid "sharpness" msgstr "Schärfe" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Ein Faktor von 0.0 erzeugt ein sehr unscharfes Bild, ein Faktor von 1.0 erhält das Originalbild." #: models.py:692 msgid "filters" msgstr "Filter" #: models.py:696 msgid "size" msgstr "Größe" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Die Höhe der Reflexion als Prozentwert des Originalbildes. Ein Faktor von 0.0 erzeugt keine Reflexion, ein Faktor von 1.0 ergibt eine Reflexion von der Höhe des Originalbildes." #: models.py:701 msgid "strength" msgstr "Stärke" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Die Anfangs-Deckung des Reflexions-Verlaufs." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Die Hintergrundfarbe des Reflexions-Verlaufs. Setze dies auf die Hintergrundfarbe deiner Seite." #: models.py:711 models.py:815 msgid "photo effect" msgstr "Foto-Effekt" #: models.py:712 msgid "photo effects" msgstr "Foto-Effekte" #: models.py:743 msgid "style" msgstr "Stil" #: models.py:747 msgid "opacity" msgstr "Deckung" #: models.py:749 msgid "The opacity of the overlay." msgstr "Deckung (Opazität) der Überlagerung" #: models.py:752 msgid "watermark" msgstr "Wasserzeichen" #: models.py:753 msgid "watermarks" msgstr "Wasserzeichen" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Der Name der Fotogröße darf nur Buchstaben, Zahlen und Unterstriche enthalten. Beispiele: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "Breite" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Wenn die Breite auf \"0\" gesetzt ist, wird das Bild proportional auf die angebene Höhe skaliert." #: models.py:786 msgid "height" msgstr "Höhe" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Wenn die Höhe auf \"0\" gesetzt ist, wird das Bild proportional auf die angebene Breite skaliert." #: models.py:790 msgid "quality" msgstr "Qualität" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG-Bildqualität" #: models.py:794 msgid "upscale images?" msgstr "Bilder hochskalieren?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Soll das Bild hochskaliert werden, um das angegebene Format zu erreichen? Beschnittene Größen werden unabhängig von dieser Einstellung bei Bedarf hochskaliert." #: models.py:800 msgid "crop to fit?" msgstr "Zuschneiden?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Soll das Bild auf das angegebene Format skaliert und beschnitten werden?" #: models.py:804 msgid "pre-cache?" msgstr "Vorausspeichern?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Soll diese Bildgröße im Voraus gespeichert (pre-cached) werden, wenn Fotos hinzugefügt werden?" #: models.py:807 msgid "increment view count?" msgstr "Bildzähler?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Soll der Ansichts-Zähler (view-count) hochgezählt werden, wenn ein Foto dieser Größe angezeigt wird?" #: models.py:821 msgid "watermark image" msgstr "Wasserzeichen-Bild" #: models.py:826 msgid "photo size" msgstr "Foto-Größe" #: models.py:827 msgid "photo sizes" msgstr "Foto-Größen" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Fotos können nur zugeschnitten werden, wenn Breite und Höhe angegeben sind." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Lade ein Zip-Archiv hoch" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Start" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Hochladen" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n

Auf dieser Seite können mehrere Fotos auf einmal hochgeladen werden, sofern sie alle in einem Zip-Archiv vorliegen. Die Fotos können entweder:

\n
    \n
  • einer existierenden Galerie zugeordnet werden
  • \n
  • oder eine neue Galerie wird durch Angabe eines Titels angelegt
  • \n
" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Bitte korrigiere den unten aufgeführten Fehler." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Bitte korrigiere die unten aufgeführten Fehler." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Aktuelle Fotogalerien" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtere nach Jahr" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Es wurden keine Galerien gefunden." #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Gallerien vom %(show_day)s." #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Es wurden keine Galerien gefunden." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Zeige alle Gallerien vom Monat" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Gallerien von %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtere nach Tag" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Zeige alle Gallerien vom Jahr" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Gallerien von %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtere nach Monat" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Zeige alle Galerien." #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Veröffentlicht" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Alle Galerien" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Vorherige" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\nSeite %(page_number)s von %(total_pages)s" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Nächste" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Aktuelle Fotos" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Keine Fotos gefunden" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Fotos vom %(show_day)s." #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Zeige alle Fotos vom Monat" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Fotos von %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Zeige alle Fotos vom Jahr" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Fotos von %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Zeige alle Fotos" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Dieses Foto befindet sich in folgenden Galerien" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Alle Fotos" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/en/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2015-12-23 14:50+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: English (http://www.transifex.com/richardbarran/django-photologue/language/en/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: en\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "" #: forms.py:43 #| msgid "description" msgid "Description" msgstr "" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "" #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "" #: models.py:99 msgid "Low" msgstr "" #: models.py:100 msgid "Medium-Low" msgstr "" #: models.py:101 msgid "Medium" msgstr "" #: models.py:102 msgid "Medium-High" msgstr "" #: models.py:103 msgid "High" msgstr "" #: models.py:104 msgid "Very High" msgstr "" #: models.py:109 msgid "Top" msgstr "" #: models.py:110 msgid "Right" msgstr "" #: models.py:111 msgid "Bottom" msgstr "" #: models.py:112 msgid "Left" msgstr "" #: models.py:113 msgid "Center (Default)" msgstr "" #: models.py:117 msgid "Flip left to right" msgstr "" #: models.py:118 msgid "Flip top to bottom" msgstr "" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "" #: models.py:121 msgid "Rotate 180 degrees" msgstr "" #: models.py:125 msgid "Tile" msgstr "" #: models.py:126 msgid "Scale" msgstr "" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "" #: models.py:158 msgid "date published" msgstr "" #: models.py:160 models.py:513 msgid "title" msgstr "" #: models.py:163 msgid "title slug" msgstr "" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "" #: models.py:167 models.py:596 msgid "description" msgstr "" #: models.py:169 models.py:524 msgid "is public" msgstr "" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "" #: models.py:175 models.py:536 msgid "photos" msgstr "" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "" #: models.py:186 msgid "galleries" msgstr "" #: models.py:224 msgid "count" msgstr "" #: models.py:240 models.py:741 msgid "image" msgstr "" #: models.py:243 msgid "date taken" msgstr "" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "" #: models.py:259 msgid "effect" msgstr "" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "" #: models.py:286 msgid "Thumbnail" msgstr "" #: models.py:516 msgid "slug" msgstr "" #: models.py:520 msgid "caption" msgstr "" #: models.py:522 msgid "date added" msgstr "" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "" #: models.py:535 msgid "photo" msgstr "" #: models.py:593 models.py:771 msgid "name" msgstr "" #: models.py:672 msgid "rotate or flip" msgstr "" #: models.py:676 models.py:704 msgid "color" msgstr "" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "" #: models.py:680 msgid "brightness" msgstr "" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "" #: models.py:684 msgid "contrast" msgstr "" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "" #: models.py:688 msgid "sharpness" msgstr "" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "" #: models.py:692 msgid "filters" msgstr "" #: models.py:696 msgid "size" msgstr "" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "" #: models.py:701 msgid "strength" msgstr "" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "" #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "" #: models.py:711 models.py:815 msgid "photo effect" msgstr "" #: models.py:712 msgid "photo effects" msgstr "" #: models.py:743 msgid "style" msgstr "" #: models.py:747 msgid "opacity" msgstr "" #: models.py:749 msgid "The opacity of the overlay." msgstr "" #: models.py:752 msgid "watermark" msgstr "" #: models.py:753 msgid "watermarks" msgstr "" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "" #: models.py:782 msgid "width" msgstr "" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "" #: models.py:786 msgid "height" msgstr "" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "" #: models.py:790 msgid "quality" msgstr "" #: models.py:793 msgid "JPEG image quality." msgstr "" #: models.py:794 msgid "upscale images?" msgstr "" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "" #: models.py:800 msgid "crop to fit?" msgstr "" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "" #: models.py:804 msgid "pre-cache?" msgstr "" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "" #: models.py:807 msgid "increment view count?" msgstr "" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "" #: models.py:821 msgid "watermark image" msgstr "" #: models.py:826 msgid "photo size" msgstr "" #: models.py:827 msgid "photo sizes" msgstr "" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/en_US/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2013-11-20 11:06+0000\n" "Last-Translator: richardbarran \n" "Language-Team: English (United States) (http://www.transifex.com/projects/p/" "django-photologue/language/en_US/)\n" "Language: en_US\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #, fuzzy #| msgid "title" msgid "Title" msgstr "title" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #, fuzzy #| msgid "gallery" msgid "Gallery" msgstr "gallery" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." #: forms.py:40 #, fuzzy #| msgid "caption" msgid "Caption" msgstr "caption" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Caption will be added to all photos." #: forms.py:43 #, fuzzy #| msgid "description" msgid "Description" msgstr "description" #: forms.py:45 #, fuzzy #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "A description of this Gallery." #: forms.py:46 #, fuzzy #| msgid "is public" msgid "Is public" msgstr "is public" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "" "Uncheck this to make the uploaded gallery and included photographs private." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #, fuzzy #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Select a .zip file of images to upload into a new Gallery." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "Very Low" #: models.py:99 msgid "Low" msgstr "Low" #: models.py:100 msgid "Medium-Low" msgstr "Medium-Low" #: models.py:101 msgid "Medium" msgstr "Medium" #: models.py:102 msgid "Medium-High" msgstr "Medium-High" #: models.py:103 msgid "High" msgstr "High" #: models.py:104 msgid "Very High" msgstr "Very High" #: models.py:109 msgid "Top" msgstr "Top" #: models.py:110 msgid "Right" msgstr "Right" #: models.py:111 msgid "Bottom" msgstr "Bottom" #: models.py:112 msgid "Left" msgstr "Left" #: models.py:113 msgid "Center (Default)" msgstr "Center (Default)" #: models.py:117 msgid "Flip left to right" msgstr "Flip left to right" #: models.py:118 msgid "Flip top to bottom" msgstr "Flip top to bottom" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Rotate 90 degrees counter-clockwise" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Rotate 90 degrees clockwise" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Rotate 180 degrees" #: models.py:125 msgid "Tile" msgstr "Tile" #: models.py:126 msgid "Scale" msgstr "Scale" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern \"FILTER_ONE->FILTER_TWO-" ">FILTER_THREE\". Image filters will be applied in order. The following " "filters are available: %s." msgstr "" "Chain multiple filters using the following pattern \"FILTER_ONE->FILTER_TWO-" ">FILTER_THREE\". Image filters will be applied in order. The following " "filters are available: %s." #: models.py:158 msgid "date published" msgstr "date published" #: models.py:160 models.py:513 msgid "title" msgstr "title" #: models.py:163 msgid "title slug" msgstr "title slug" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "A \"slug\" is a unique URL-friendly title for an object." #: models.py:167 models.py:596 msgid "description" msgstr "description" #: models.py:169 models.py:524 msgid "is public" msgstr "is public" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Public galleries will be displayed in the default views." #: models.py:175 models.py:536 msgid "photos" msgstr "photos" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "gallery" #: models.py:186 msgid "galleries" msgstr "galleries" #: models.py:224 msgid "count" msgstr "count" #: models.py:240 models.py:741 msgid "image" msgstr "image" #: models.py:243 msgid "date taken" msgstr "date taken" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "view count" #: models.py:250 msgid "crop from" msgstr "crop from" #: models.py:259 msgid "effect" msgstr "effect" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "An \"admin_thumbnail\" photo size has not been defined." #: models.py:286 msgid "Thumbnail" msgstr "Thumbnail" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "caption" #: models.py:522 msgid "date added" msgstr "date added" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Public photographs will be displayed in the default views." #: models.py:535 msgid "photo" msgstr "photo" #: models.py:593 models.py:771 msgid "name" msgstr "name" #: models.py:672 msgid "rotate or flip" msgstr "rotate or flip" #: models.py:676 models.py:704 msgid "color" msgstr "color" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." #: models.py:680 msgid "brightness" msgstr "brightness" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." #: models.py:684 msgid "contrast" msgstr "contrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original " "image." msgstr "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original " "image." #: models.py:688 msgid "sharpness" msgstr "sharpness" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." #: models.py:692 msgid "filters" msgstr "filters" #: models.py:696 msgid "size" msgstr "size" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." #: models.py:701 msgid "strength" msgstr "strength" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "The initial opacity of the reflection gradient." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "" "The background color of the reflection gradient. Set this to match the " "background color of your page." #: models.py:711 models.py:815 msgid "photo effect" msgstr "photo effect" #: models.py:712 msgid "photo effects" msgstr "photo effects" #: models.py:743 msgid "style" msgstr "style" #: models.py:747 msgid "opacity" msgstr "opacity" #: models.py:749 msgid "The opacity of the overlay." msgstr "The opacity of the overlay." #: models.py:752 msgid "watermark" msgstr "watermark" #: models.py:753 msgid "watermarks" msgstr "watermarks" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "width" #: models.py:785 msgid "" "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "" "If width is set to \"0\" the image will be scaled to the supplied height." #: models.py:786 msgid "height" msgstr "height" #: models.py:789 msgid "" "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "" "If height is set to \"0\" the image will be scaled to the supplied width" #: models.py:790 msgid "quality" msgstr "quality" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG image quality." #: models.py:794 msgid "upscale images?" msgstr "upscale images?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." #: models.py:800 msgid "crop to fit?" msgstr "crop to fit?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." #: models.py:804 msgid "pre-cache?" msgstr "pre-cache?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "If selected this photo size will be pre-cached as photos are added." #: models.py:807 msgid "increment view count?" msgstr "increment view count?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." #: models.py:821 msgid "watermark image" msgstr "watermark image" #: models.py:826 msgid "photo size" msgstr "photo size" #: models.py:827 msgid "photo sizes" msgstr "photo sizes" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Can only crop photos if both width and height dimensions are set." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 #, fuzzy msgid "Latest photo galleries" msgstr "Latest Photo Galleries" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "No galleries were found" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 #, fuzzy msgid "No galleries were found." msgstr "No galleries were found" #: templates/photologue/gallery_archive_day.html:22 #, fuzzy msgid "View all galleries for month" msgstr "View all galleries" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 #, fuzzy msgid "View all galleries for year" msgstr "View all galleries" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "View all galleries" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Published" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 #, fuzzy msgid "All galleries" msgstr "All Galleries" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Previous" #: templates/photologue/includes/paginator.html:11 #, fuzzy, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Next" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 #, fuzzy msgid "Latest photos" msgstr "Latest Photo Galleries" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 #, fuzzy msgid "No photos were found" msgstr "No galleries were found" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 #, fuzzy msgid "View all photos" msgstr "View all galleries" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "This photo is found in the following galleries" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 #, fuzzy msgid "All photos" msgstr "photos" #, fuzzy #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery " #~ "title + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/es_ES/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # dmalisani , 2014 # dmalisani , 2014 # Rafa Muñoz Cárdenas , 2009 # salvador ortiz , 2017 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-12-03 14:46+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Spanish (Spain) (http://www.transifex.com/richardbarran/django-photologue/language/es_ES/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: es_ES\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "La galería ha sido agregada exitosamente a %(site)s" msgstr[1] "Las galerías han sido agregadas exitosamente a %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Agregar galerías al sitio" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "La galería ha sido eliminada correctamente de %(site)s" msgstr[1] "Las galerías seleccionadas han sido eliminadas correctamente de %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Eliminar las galerías seleccionadas del sitio actual" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Todas las fotos en la galería %(galleries)s han sido correctamente agregadas a %(site)s" msgstr[1] "Todas las fotos en las galerías %(galleries)s han sido correctamente agregadas a %(site)s" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Agregar todas las fotos de las galerías seleccionadas al sitio actual" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Todas las fotos en la galería %(galleries)s han sido correctamente eliminadas de %(site)s" msgstr[1] "Todas las fotos en las galerías %(galleries)s han sido correctamente eliminadas de %(site)s" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Eliminar todas las fotos seleccionadas en las galerías del sito actual" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "La foto a sido agregada correctamente a %(site)s" msgstr[1] "Las fotos seleccionadas han sido agregadas correctamente a %(site)s" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Agregar las fotos seleccionadas al sitio actual" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "La foto ha sido eliminada correctamente de %(site)s" msgstr[1] "Las fotos han sido correctamente eliminadas de %(site)s" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Eliminar la foto seleccionada del sitio actual" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Subir un archivo ZIP de fotos" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Titulo" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galería" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Seleccione una galería para agregarle estas imágenes. Déjelo vacío para crear una nueva galería a partir de este título." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Pie de foto" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "El pie de foto se añadirá a todas las fotos." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Descripción" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Una descripción para esta galería. Solo es requerido para nuevas galerías." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Es público" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Desactive esto para hacer que la galería subida y fotos incluidas sean privadas." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Ya existe una galería con ese título." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Seleccione una galería existente o ingrese un nuevo nombre para la galería." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Ignorando archivos \"{filename}\" por estar en subcarpetas, todas las imágenes deben estar en la carpeta de primer nivel del zip." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "No se pudo procesar el archivo \"{0}\" en el archivo zip." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "La foto a sido agregada correctamente a \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "Muy bajo" #: models.py:99 msgid "Low" msgstr "Bajo" #: models.py:100 msgid "Medium-Low" msgstr "Medio-bajo" #: models.py:101 msgid "Medium" msgstr "Medio" #: models.py:102 msgid "Medium-High" msgstr "Medio-alto" #: models.py:103 msgid "High" msgstr "Alto" #: models.py:104 msgid "Very High" msgstr "Muy alto" #: models.py:109 msgid "Top" msgstr "Arriba" #: models.py:110 msgid "Right" msgstr "Derecha" #: models.py:111 msgid "Bottom" msgstr "Abajo" #: models.py:112 msgid "Left" msgstr "Izquierda" #: models.py:113 msgid "Center (Default)" msgstr "Centro (por defecto)" #: models.py:117 msgid "Flip left to right" msgstr "Voltear de izquerda a derecha" #: models.py:118 msgid "Flip top to bottom" msgstr "Voltear de arriba a abajo" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Rotar 90 grados en sentido horario" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Rotar 90 grados en sentido antihorario" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Rotar 180 grados" #: models.py:125 msgid "Tile" msgstr "Mosaico" #: models.py:126 msgid "Scale" msgstr "Escalar" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Encadene múltiples filtros usando el siguiente patrón \"FILTRO_UNO->FILTRO_DOS->FILTRO_TRES\". Los filtros de imagen se aplicarán en orden. Los siguientes filtros están disponibles: %s." #: models.py:158 msgid "date published" msgstr "fecha de publicación" #: models.py:160 models.py:513 msgid "title" msgstr "título" #: models.py:163 msgid "title slug" msgstr "título slug" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Un \"slug\" es un único título URL-amigable para un objeto." #: models.py:167 models.py:596 msgid "description" msgstr "descripción" #: models.py:169 models.py:524 msgid "is public" msgstr "es público" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Las galerías públicas serán mostradas en las vistas por defecto." #: models.py:175 models.py:536 msgid "photos" msgstr "fotos" #: models.py:177 models.py:527 msgid "sites" msgstr "sitios" #: models.py:185 msgid "gallery" msgstr "galería" #: models.py:186 msgid "galleries" msgstr "galerías" #: models.py:224 msgid "count" msgstr "contar" #: models.py:240 models.py:741 msgid "image" msgstr "imagen" #: models.py:243 msgid "date taken" msgstr "fecha en la que se tomó" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "La fecha de la imagen fue obtenida por información EXIF de la imagen." #: models.py:247 msgid "view count" msgstr "Contador de visitas" #: models.py:250 msgid "crop from" msgstr "Recortar desde" #: models.py:259 msgid "effect" msgstr "efecto" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "El tamaño de foto de \"miniatura de admin\" no ha sido definido." #: models.py:286 msgid "Thumbnail" msgstr "Miniatura" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "pie de foto" #: models.py:522 msgid "date added" msgstr "fecha añadida" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Las fotos públicas serán mostradas en las vistas por defecto." #: models.py:535 msgid "photo" msgstr "foto" #: models.py:593 models.py:771 msgid "name" msgstr "nombre" #: models.py:672 msgid "rotate or flip" msgstr "rotar o voltear" #: models.py:676 models.py:704 msgid "color" msgstr "color" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Un factor de 0.0 proporciona una imagen blanca y negra. Un factor de 1.0 proporciona la imagen original." #: models.py:680 msgid "brightness" msgstr "iluminación" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Un factor de 0.0 proporciona una imagen negra. Un factor de 1.0 proporciona la imagen original." #: models.py:684 msgid "contrast" msgstr "contraste" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Un factor de 0.0 proporciona una imagen sólida gris. Un factor de 1.0 proporciona la imagen original." #: models.py:688 msgid "sharpness" msgstr "Resaltado" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Un factor de 0.0 proporciona una imagen desenfocada, un factor de 1.0 proporciona la imagen original." #: models.py:692 msgid "filters" msgstr "filtros" #: models.py:696 msgid "size" msgstr "tamaño" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "La altura de la reflexión como porcentaje de la imagen original. Un factor de 0.0 no da ninguna reflexión, un factor de 1.0 añade una reflexión igual a la altura de la imagen original." #: models.py:701 msgid "strength" msgstr "fortaleza" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "La opacidad inicial del gradiente de reflexión." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "El color de fondo del gradiente de reflexión. Establezca esto para hacer coincidir el color de fondo con el color de tu página." #: models.py:711 models.py:815 msgid "photo effect" msgstr "efecto de foto" #: models.py:712 msgid "photo effects" msgstr "efectos de foto" #: models.py:743 msgid "style" msgstr "estilo" #: models.py:747 msgid "opacity" msgstr "opacidad" #: models.py:749 msgid "The opacity of the overlay." msgstr "La opacidad de la superposición" #: models.py:752 msgid "watermark" msgstr "marca de agua" #: models.py:753 msgid "watermarks" msgstr "marcas de agua" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "El nombre del tamaño solo puede contener letras, números y subrayados. Por ejemplo:\"miniaturas\", \"muestra\", \"muestra_principal\"." #: models.py:782 msgid "width" msgstr "anchura" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Si la anchura se establece a \"0\" la imagen será escalada hasta la altura proporcionada" #: models.py:786 msgid "height" msgstr "altura" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Si la altura se establece a \"0\" la imagen será escalada hasta la anchura proporcionada" #: models.py:790 msgid "quality" msgstr "calidad" #: models.py:793 msgid "JPEG image quality." msgstr "Calidad de imagen JPEG." #: models.py:794 msgid "upscale images?" msgstr "¿Aumentar imágenes?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Si se selecciona la imagen será aumentada si es necesario para ajustarse a las dimensiones proporcionadas. Los tamaños recortados serán aumentados de acuerdo a esta opción." #: models.py:800 msgid "crop to fit?" msgstr "¿Recortar hasta ajustar?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Si se selecciona la imagen será escalada y recortada para ajustarse a las dimensiones proporcionadas." #: models.py:804 msgid "pre-cache?" msgstr "¿pre-cachear?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Si se selecciona, este tamaño de foto será pre-cacheado cuando se añadan nuevas fotos." #: models.py:807 msgid "increment view count?" msgstr "¿incrementar contador de visualizaciones?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Si se selecciona el \"contador de visualizaciones\" se incrementará cuando esta foto sea visualizada." #: models.py:821 msgid "watermark image" msgstr "marca de agua" #: models.py:826 msgid "photo size" msgstr "tamaño de foto" #: models.py:827 msgid "photo sizes" msgstr "tamaños de foto" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Solo puede recortar las fotos si ancho y alto están establecidos." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Subir archivo ZIP" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Inicio" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Subir" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

En esta página puedes subir las fotos que gustes al mismo tiempo, siemprew y cuando tengas\n\t\tponer todas en un archivo zip. las fotos pueden ser:

\n\t\t
    \n\t\t\t
  • Agregadas a una galería existente.
  • \n\t\t\t
  • O, crear una nueva galería con un titulo.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Favor de corregir los errores." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Favor de corregir los errores." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Fotos de galerías mas recientes" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtrar por año" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "No se encontraron galerías" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Galerías por %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "No se encontraron galerías" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Ver todas las galerías por mes" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Galerías para %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtrar por día" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Ver todas las galerías por año" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Galerías por %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtrar por mes" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Ver todas las galerías" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Publicado" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Todas las Galerías" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Anterior" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t página %(page_number)s de %(total_pages)s\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Próximo" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Fotos más recientes" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "No se encontraron fotos" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Fotos por %(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Ver todas las fotos por mes" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Fotos por %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Ver todas las fotos por año" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Fotos por %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Ver todas las fotos" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Esta foto se encontró en las siguientes galerías" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Todas las fotos" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/eu/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # Urtzi Odriozola , 2016,2018 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2018-03-15 09:14+0000\n" "Last-Translator: Urtzi Odriozola \n" "Language-Team: Basque (http://www.transifex.com/richardbarran/django-photologue/language/eu/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: eu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "Galeria arrakastaz gehitu da %(site)s-(e)n" msgstr[1] "Galeriak arrakastaz gehitu dira %(site)s-(e)n" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Gehitu aukeratutako galeriak uneko webgunera" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "Aukeratutako galeria arrakastaz ezabatu da %(site)s-(e)tik" msgstr[1] "Aukeratutako galeriak arrakastaz ezabatu dira %(site)s-(e)tik" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Ezabatu aukeratutako galeriak uneko webgunetik" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "%(galleries)s galeriako argazki guztiak arrakastaz gehitu dira %(site)s-(e)ra" msgstr[1] "%(galleries)s galerietako argazki guztiak arrakastaz gehitu dira %(site)s-(e)ra" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Gehitu aukeratutako gealerietako argazki guztiak uneko webgunera" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "%(galleries)s galeriako argazki guztiak arrakastaz ezabatu dira %(site)s-(e)tik" msgstr[1] "%(galleries)s galerietako argazki guztiak arrakastaz ezabatu dira %(site)s-(e)tik" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Ezabatu aukeratutako galeriako argazki guztiak uneko webgunetik " #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "Argazkia arrakastaz gehitu da %(site)s-(e)n" msgstr[1] "Aukeratutako argazkiak arrakastaz gehitu dira %(site)s-(e)n" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Gehitu aukeratutako argazkiak uneko webgunera" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "Argazkia arrakastaz ezabatu da %(site)s-(e)tik" msgstr[1] "Aukeratutako argazkiak arrakastaz ezabatu dira %(site)s-(e)tik" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Ezabatu aukeratutako argazkiak uneko webgunetik." #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Igo argazkien zip artxiboa" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Izenburua" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galeria" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Aukeratu irudi hau gehitzeko galeria. Utzi hau hutsik emandako izenburutik galeria berri bat sortzeko." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Irudi testua" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Irudi testua argazki guztiei gehituko zaie." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Deskribapena" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Galeria honen deskribapena. Galeria berrientzat bakarrik da beharrezkoa." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Publikoa da" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Ez markatu hau igotako galeria eta bertako argazkiak pribatu izatea nahi baduzu." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Izenburu hori duen galeria existitzen da." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Aukeratu existitzen den galeria edo sartu galeria berri baten izenburua." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Ezin izan da .zip artxiboko \"{0}\" fitxategia prozesatu." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Argazkiak \"{0}\" galeriara gehitu dira." #: models.py:98 msgid "Very Low" msgstr "Oso baxua" #: models.py:99 msgid "Low" msgstr "Baxua" #: models.py:100 msgid "Medium-Low" msgstr "Ertaina-Baxua" #: models.py:101 msgid "Medium" msgstr "Ertaina" #: models.py:102 msgid "Medium-High" msgstr "Ertaina-Altua" #: models.py:103 msgid "High" msgstr "Altua" #: models.py:104 msgid "Very High" msgstr "Oso altua" #: models.py:109 msgid "Top" msgstr "Goia" #: models.py:110 msgid "Right" msgstr "Eskuina" #: models.py:111 msgid "Bottom" msgstr "Behea" #: models.py:112 msgid "Left" msgstr "Ezkerra" #: models.py:113 msgid "Center (Default)" msgstr "Erdia (Lehenetsia)" #: models.py:117 msgid "Flip left to right" msgstr "Itzuli eskerretik eskuinera" #: models.py:118 msgid "Flip top to bottom" msgstr "Itzuli goitik behera" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Biratu 90 gradu erlojuaren kontrako norantzan" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Biratu 90 gradu erloju norantzan" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Biratu 180 gradu" #: models.py:125 msgid "Tile" msgstr "Lauza" #: models.py:126 msgid "Scale" msgstr "Tamaina" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "" #: models.py:158 msgid "date published" msgstr "argitaratze data" #: models.py:160 models.py:513 msgid "title" msgstr "izenburua" #: models.py:163 msgid "title slug" msgstr "izenburuaren sluga" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "" #: models.py:167 models.py:596 msgid "description" msgstr "deskribapena" #: models.py:169 models.py:524 msgid "is public" msgstr "publikoa da" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "" #: models.py:175 models.py:536 msgid "photos" msgstr "argazkiak" #: models.py:177 models.py:527 msgid "sites" msgstr "webguneak" #: models.py:185 msgid "gallery" msgstr "galeria" #: models.py:186 msgid "galleries" msgstr "galeriak" #: models.py:224 msgid "count" msgstr "zenbatu" #: models.py:240 models.py:741 msgid "image" msgstr "irudia" #: models.py:243 msgid "date taken" msgstr "" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "Irudia atera zeneko data; irudiaren EXIF datutik hartzen da." #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "moztu hemendik" #: models.py:259 msgid "effect" msgstr "efektua" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "" #: models.py:286 msgid "Thumbnail" msgstr "" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "irudi testua" #: models.py:522 msgid "date added" msgstr "" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "" #: models.py:535 msgid "photo" msgstr "argazkia" #: models.py:593 models.py:771 msgid "name" msgstr "izena" #: models.py:672 msgid "rotate or flip" msgstr "biratu edo itzuli" #: models.py:676 models.py:704 msgid "color" msgstr "kolorea" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "" #: models.py:680 msgid "brightness" msgstr "dizdira" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "" #: models.py:684 msgid "contrast" msgstr "kontrastea" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "" #: models.py:688 msgid "sharpness" msgstr "zorroztasuna" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "" #: models.py:692 msgid "filters" msgstr "filtroak" #: models.py:696 msgid "size" msgstr "tamaina" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "" #: models.py:701 msgid "strength" msgstr "indarra" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "" #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "" #: models.py:711 models.py:815 msgid "photo effect" msgstr "argazki efektua" #: models.py:712 msgid "photo effects" msgstr "argazki efektuak" #: models.py:743 msgid "style" msgstr "estiloa" #: models.py:747 msgid "opacity" msgstr "opakutasun" #: models.py:749 msgid "The opacity of the overlay." msgstr "Estalkiaren opakutasuna." #: models.py:752 msgid "watermark" msgstr "ur marka" #: models.py:753 msgid "watermarks" msgstr "ur markak" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Irudiaren tamaina izenak hizkiak, zenbakiak eta beheko marrak bakarrik izan ditzake. Adibidez: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "zabalera" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Zabaleran \"0\" jarriz gero, irudiaren tamaina altueraren arabera ezarriko da." #: models.py:786 msgid "height" msgstr "altuera" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Altueran \"0\" jarriz gero, irudiaren tamaina zabaleraren arabera ezarriko da." #: models.py:790 msgid "quality" msgstr "kalitatea" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG irudi kalitatea." #: models.py:794 msgid "upscale images?" msgstr "irudiak handitu?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "" #: models.py:800 msgid "crop to fit?" msgstr "neurrira moztu?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "" #: models.py:804 msgid "pre-cache?" msgstr "aurrez katxeatu?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "" #: models.py:807 msgid "increment view count?" msgstr "ikustaldi kopurua zenbatu?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "" #: models.py:821 msgid "watermark image" msgstr "jarri ur marka irudiari" #: models.py:826 msgid "photo size" msgstr "argazki tamaina" #: models.py:827 msgid "photo sizes" msgstr "argazki tamainak" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Zabalera eta altuera definituta badaude bakarrik moztu daitezke irudiak." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Igo zip fitxategia" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Sarrera" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Igo" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Mesedez zuzendu beheko errorea." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Mesedez zuzendu beheko erroreak." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Azken argazki galeriak" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtratu urteka" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Ez da galeriarik aurkitu" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Galeriak %(show_day)s egunetan" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Ez da galeriarik aurkitu." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Ikusi hilabeteko galeria guztiak" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Galeriak %(show_month)s hilabetetan" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtratu eguneka" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Ikusi urteko galeria guztiak" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Galeriak %(show_year)s urtetan" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtratu hilabeteka" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Ikusi galeria guztiak" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Argitaratuta" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Galeria guztiak" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Aurrekoa" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t %(page_number)s/%(total_pages)s orri\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Hurrengoa" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Azken argazkiak" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Ez da argazkirik aurkitu" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Argazkiak %(show_day)s egunetan" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Ikusi hilabeteko argazki guztiak" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Argazkiak %(show_month)s hilabetetan" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Ikusi urteko argazki guztiak" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Argazkiak %(show_year)s urtetan" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Ikusi argazki guztiak" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Argazki hau ondorengo galerietan aurkitu da" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Argazki guztiak" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/fr/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # Matthieu Payet , 2017 # Théophane Hufschmitt , 2014 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-12-03 14:47+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: French (http://www.transifex.com/richardbarran/django-photologue/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "La photo suivante ne provient pas du même site(s) que la galerie et donc ne sera pas affichée : %(photo_list)s." msgstr[1] "Les photos suivantes n’appartiennent pas au même site(s) que la galerie et donc ne seront pas affichées : %(photo_list)s." #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "La gallerie a été ajoutée avec succès à %(site)s" msgstr[1] "Les galeries ont été ajoutées avec succès à %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Ajouter les galeries sélectionnées au site actuel" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "La galerie a été supprimée avec succès de %(site)s" msgstr[1] "Les galeries ont été supprimées avec succès de %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Supprimer les galeries sélectionnées du site courant" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Toutes les photos dans la gallerie %(galleries)s ont été ajoutées avec succès à %(site)s" msgstr[1] "Toutes les photos dans les galeries %(galleries)s ont été ajoutées avec succès à %(site)s" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Ajouter les photos de la galerie sélectionnée au site courant" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Toutes les photos dans la gallerie %(galleries)s ont été supprimées avec succès de %(site)s" msgstr[1] "Toutes les photos dans les galeries %(galleries)s ont été supprimées avec succès de %(site)s" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Supprimer toutes les photos dans la galerie sélectionnée du site courant" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "La photo a été ajoutée avec succès à %(site)s" msgstr[1] "Les photos sélectionnées ont été ajoutées avec succès à %(site)s" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Ajouter les photos sélectionnées au site courant" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "La photo a été supprimée avec succès de %(site)s" msgstr[1] "Les photos ont été supprimées avec succès de %(site)s" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Supprimer les photos séléctionnées du site courant" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Télécharger une archive de photos au format *.zip" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Titre" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "Ce titre + un nombre incrémental sera donné à toutes les photos téléchargées.
Ce champ est requis lors de la création d'une nouvelle galerie mais est facultatif lors d'un ajout à une galerie existante. S'il n'est pas fourni, les titres des photos seront créés à partir du nom de la galerie existante." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galerie" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Sélectionner une galerie à laquelle ajouter ces images. Laisser ce champ vide pour créer une nouvelle galerie à partir du titre indiqué." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Légende" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "La légende sera ajoutée a toutes les photos." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Description" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Une description de cette galerie. Requise seulement pour les nouvelles galeries." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Est publique" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Décochez cette case pour rendre la galerie des photos envoyées sur le serveur et son contenu privés." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Une galerie portant ce nom existe déjà." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Sélectionner une galerie existante ou entrer un titre pour une nouvelle galerie." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Fichier \"{filename}\" ignoré car il apparaît dans un sous-dossier. Toutes les images doivent être à la racine du fichier zip." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Impossible de traîter le fichier \"{0}\" dans l'archive zip." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Les photos ont été ajoutés à la galerie \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "Très Bas" #: models.py:99 msgid "Low" msgstr "Bas" #: models.py:100 msgid "Medium-Low" msgstr "Moyen-Bas" #: models.py:101 msgid "Medium" msgstr "Moyen" #: models.py:102 msgid "Medium-High" msgstr "Moyen-Haut" #: models.py:103 msgid "High" msgstr "Haut" #: models.py:104 msgid "Very High" msgstr "Très Haut" #: models.py:109 msgid "Top" msgstr "Sommet" #: models.py:110 msgid "Right" msgstr "Droite" #: models.py:111 msgid "Bottom" msgstr "Bas" #: models.py:112 msgid "Left" msgstr "Gauche" #: models.py:113 msgid "Center (Default)" msgstr "Centré (par défaut)" #: models.py:117 msgid "Flip left to right" msgstr "Inversion de gauche à droite" #: models.py:118 msgid "Flip top to bottom" msgstr "Inversion de haut en bas" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Rotation de 90 degrés dans le sens anti-horloger" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Rotation de 90 degrés dans le sens horloger" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Rotation de 180 degrés" #: models.py:125 msgid "Tile" msgstr "Mosaïque" #: models.py:126 msgid "Scale" msgstr "Redimensionner" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Faite suivre de multiple filtres en utilisant la forme suivante \"FILTRE_UN->FILTRE_DEUX->FILTRE_TROIS\". Les filtres d'image seront appliqués dans l'ordre. Les filtres suivants sont disponibles: %s." #: models.py:158 msgid "date published" msgstr "date de publication" #: models.py:160 models.py:513 msgid "title" msgstr "titre" #: models.py:163 msgid "title slug" msgstr "version abrégée du titre" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Un \"slug\" est un titre abrégé et unique, compatible avec les URL, pour un objet." #: models.py:167 models.py:596 msgid "description" msgstr "description" #: models.py:169 models.py:524 msgid "is public" msgstr "est public" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Les galeries publiques seront affichée dans les vues par défaut." #: models.py:175 models.py:536 msgid "photos" msgstr "photos" #: models.py:177 models.py:527 msgid "sites" msgstr "sites" #: models.py:185 msgid "gallery" msgstr "galerie" #: models.py:186 msgid "galleries" msgstr "galleries" #: models.py:224 msgid "count" msgstr "nombre" #: models.py:240 models.py:741 msgid "image" msgstr "image" #: models.py:243 msgid "date taken" msgstr "date de prise de vue" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "La date à laquelle l'image a été prise ; obtenue à partir des données EXIF de l'image." #: models.py:247 msgid "view count" msgstr "nombre" #: models.py:250 msgid "crop from" msgstr "découper à partir de" #: models.py:259 msgid "effect" msgstr "effet" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Une taille de photo \"admin_thumbnail\" n'a pas encore été définie." #: models.py:286 msgid "Thumbnail" msgstr "Miniature" #: models.py:516 msgid "slug" msgstr "libellé court" #: models.py:520 msgid "caption" msgstr "légende" #: models.py:522 msgid "date added" msgstr "date d'ajout" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Les photographies publique seront affichées dans les vues par défaut." #: models.py:535 msgid "photo" msgstr "photo" #: models.py:593 models.py:771 msgid "name" msgstr "nom" #: models.py:672 msgid "rotate or flip" msgstr "rotation ou inversion" #: models.py:676 models.py:704 msgid "color" msgstr "couleur" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Un facteur de 0.0 donne une image en noir et blanc, un facteur de 1.0 donne l'image originale." #: models.py:680 msgid "brightness" msgstr "brillance" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Un facteur de 0.0 donne une image noire, un facteur de 1.0 donne l'image originale." #: models.py:684 msgid "contrast" msgstr "contraste" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Un facteur de 0.0 donne une image grise, un facteur de 1.0 donne l'image originale." #: models.py:688 msgid "sharpness" msgstr "netteté" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Une facteur de 0.0 donne une image floue, un facteur de 1.0 donne l'image d'origine." #: models.py:692 msgid "filters" msgstr "filtres" #: models.py:696 msgid "size" msgstr "taille" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "La hauteur de la réflection sous la forme d'un pourcentage de l'image d'origine. Un facteur de 0.0 n'ajoute aucune réflection, un facteur de 1.0 ajoute une réflection égale à la hauteur de l'image d'origine." #: models.py:701 msgid "strength" msgstr "force" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "L'opacité initial du gradient de reflet." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "La couleur de fond du gradient de reflet. Faites correspondre ce paramètre avec la couleur de fond de votre page." #: models.py:711 models.py:815 msgid "photo effect" msgstr "effet photo" #: models.py:712 msgid "photo effects" msgstr "effets photo" #: models.py:743 msgid "style" msgstr "style" #: models.py:747 msgid "opacity" msgstr "opacité" #: models.py:749 msgid "The opacity of the overlay." msgstr "L'opacité de la surcouche." #: models.py:752 msgid "watermark" msgstr "filigrane" #: models.py:753 msgid "watermarks" msgstr "filigranes" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Le nom de la taille de la photo ne doit contenir que des lettres, des chiffres et des caractères de soulignement. Exemples: \"miniature\", \"affichage\", \"petit\", \"widget_page_principale\"." #: models.py:782 msgid "width" msgstr "largeur" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Si la largeur est réglée à \"0\" l l'image sera redimensionnée par rapport à la hauteur fournie." #: models.py:786 msgid "height" msgstr "hauteur" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Si la hauteur est réglée à \"0\" l l'image sera redimensionnée par rapport à la largeur fournie." #: models.py:790 msgid "quality" msgstr "qualité" #: models.py:793 msgid "JPEG image quality." msgstr "Qualité JPEG de l'image." #: models.py:794 msgid "upscale images?" msgstr "agrandir les images ?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Si sélectionné l'image sera agrandie si nécessaire pour coïncider avec les dimensions fournies. Les dimensions ajustées seront agrandies sans prendre en compte ce paramètre." #: models.py:800 msgid "crop to fit?" msgstr "découper pour adapter à la taille ?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Si sélectionné l'image sera redimensionnée et recadrée pour coïncider avec les dimensions fournies." #: models.py:804 msgid "pre-cache?" msgstr "mise en cache ?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Si sélectionné cette taille de photo sera mise en cache au moment au les photos sont ajoutées." #: models.py:807 msgid "increment view count?" msgstr "incrémenter le nombre d'affichages ?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Si sélectionné le \"view_count\" (nombre d'affichage) de l'image sera incrémenté quand cette taille de photo sera affichée." #: models.py:821 msgid "watermark image" msgstr "placer un filigrane sur l'image" #: models.py:826 msgid "photo size" msgstr "taille de la photo" #: models.py:827 msgid "photo sizes" msgstr "tailles des photos" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "La hauteur et la largeur doivent être toutes les deux définies pour retailler des photos." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Télécharger une archive au format *.zip" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Accueil" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Télécharger" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n⇥⇥

Sur cette page vous pouvez télécharger plusieurs photos à la fois, du moment\n⇥⇥qu'elles sont rassemblées dans une archive au format *.zip. Les photos peuvent être soit :

\n⇥⇥
    \n⇥⇥⇥
  • Ajoutées à une galerie existante,
  • \n⇥⇥⇥
  • sinon, une nouvelle galerie est créée avec le titre fourni.
  • \n⇥⇥
\n⇥" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Veuillez corriger l'erreur ci-dessous, svp." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Veuillez corriger les erreurs ci-dessous, svp." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Dernières galeries de photos" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtrer par année" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Aucune galerie trouvée" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Galeries du %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Aucune galerie trouvée." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Afficher toutes les galeries du mois" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Galeries de %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtrer par date" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Afficher toutes les galeries de l'année" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Galeries de %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtrer par mois" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Afficher toutes les galeries" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Publiée le" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Toutes les galeries" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Précedent" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n⇥⇥⇥⇥ page %(page_number)s sur %(total_pages)s\n⇥⇥⇥⇥" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Suivant" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Dernières photos" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Aucune photo trouvée" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Photos du %(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Afficher toutes les photos du mois" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Photos du %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Afficher toutes les photos de l'année" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Photos de %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Afficher toutes les photos" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Cette photo se trouve dans les galeries suivantes" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Toutes les photos" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/hu/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # David Smith, 2015 # David Smith, 2015-2016 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-12-03 14:47+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Hungarian (http://www.transifex.com/richardbarran/django-photologue/language/hu/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: hu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "A következő fot nem ugyanahhoz a webhely(ek)hez tartozik, mint az album, ezért soha nem fog megjelenni: %(photo_list)s" msgstr[1] "A következő fotók nem ugyanahhoz a webhely(ek)hez tartoznak, mint az album, ezért soha nem fognak megjelenni: %(photo_list)s" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "Az album sikeresen hozzáadva a(z) %(site)s webhelyhez" msgstr[1] "Az albumok sikeresen hozzáadva a(z) %(site)s webhelyhez" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Kiválasztott albumok hozzáadása jelen webhelyhez" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "Album sikeresen eltávolítva a(z) %(site)s webhelyről" msgstr[1] "Kiválasztott albumok sikeresen eltávolítva a(z) %(site)s webhelyről" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Kiválasztott albumok eltávolítása jelen webhelyről" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "%(galleries)s album összes fotója sikeresen hozzáadva a(z) %(site)s webhelyhez" msgstr[1] "%(galleries)s albumok összes fotója sikeresen hozzáadva a(z) %(site)s webhelyhez" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Kiválasztott albumok összes fotójának hozzáadása jelen webhelyhez" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "%(galleries)s album összes fotója sikeresen eltávolítva a(z) %(site)s webhelyről" msgstr[1] "%(galleries)s albumok összes fotója sikeresen eltávolítva a(z) %(site)s webhelyről" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Kiválasztott albumok összes fotójának törlése jelen webhelyről" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "Fotó sikeresen hozzáadva a(z) %(site)s webhelyhez" msgstr[1] "Kiválasztott fotók sikeresen hozzáadva a(z) %(site)s webhelyhez" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Kiválasztott fotók hozzáadása jelen webhelyhez" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "Fotó sikeresen eltávolítva a(z) %(site)s webhelyről" msgstr[1] "Kiválasztott fotók sikeresen eltávolítva a(z) %(site)s webhelyről" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Kiválasztott fotók eltávolítása jelen webhelyről" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Fotókat tartalmazó zip fájl feltöltése" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Cím" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "Az összes feltöltött fotó címe ebből a címből + egy sorszámból fog állni.
Új album létrehozása esetén ezt a mezőt kötelező kitölteni, meglévő album esetén elhagyható - utóbbi esetben a fotók címe a meglévő album nevéből fog képződni." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Album" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Válasszon ki egy albumot, amelyhez a fotók hozzáadásra kerüljenek! Hagyja üresen, ha új albumot akar létrehozni a megadott címmel!" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Képaláírás" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "A képaláírás minden új fotóra érvényes lesz." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Leírás" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Album leírása. Csak új albumok esetén kötelező." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Nyilvános" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Vegye ki a pipát, ha a feltöltött albumot és a benne lévő fotókat priváttá akarja tenni." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Ezzel a címmel már létezik album." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Válasszon egy meglévő albumot, vagy írjon be egy címet új album létrehozásához." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "„{filename}” fájl mellőzve lett, mivel valamely mappában van. A fotóknak közvetlenül kell a zip fájlban lenniük." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "zip fájlban lévő „{0}” fájl feldolgozása sikertelen." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Fotók hozzáadva a(z) „{0}” albumhoz." #: models.py:98 msgid "Very Low" msgstr "Nagyon alacsony" #: models.py:99 msgid "Low" msgstr "Alacsony" #: models.py:100 msgid "Medium-Low" msgstr "Közepesen alacsony" #: models.py:101 msgid "Medium" msgstr "Közepes" #: models.py:102 msgid "Medium-High" msgstr "Közepesen magas" #: models.py:103 msgid "High" msgstr "Magas" #: models.py:104 msgid "Very High" msgstr "Nagyon magas" #: models.py:109 msgid "Top" msgstr "Teteje" #: models.py:110 msgid "Right" msgstr "Jobb oldala" #: models.py:111 msgid "Bottom" msgstr "Alja" #: models.py:112 msgid "Left" msgstr "Bal oldala" #: models.py:113 msgid "Center (Default)" msgstr "Közepe (Alapértelmezett)" #: models.py:117 msgid "Flip left to right" msgstr "Függőleges tengely mentén tükrözés" #: models.py:118 msgid "Flip top to bottom" msgstr "Vízszintes tengely mentén tükrözés" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Óramutató járásával ellenkező irányba 90 fok forgatása" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Óramutató járásával megegyező irányba 90 fok forgatás" #: models.py:121 msgid "Rotate 180 degrees" msgstr "180 fokos forgtás" #: models.py:125 msgid "Tile" msgstr "Cím" #: models.py:126 msgid "Scale" msgstr "Méretezés" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Több szűrőt is alkalmazhat egymás után a következő mintára: „SZŰRŐ_EGY->SZŰRŐ_KETTŐ->SZŰRŐ_HÁROM”. A szűrők a megadott sorrendben, egymás után lesznek a képre alkalmazva. A következő szűrők állnak rendelkezésére: %s" #: models.py:158 msgid "date published" msgstr "publikálás dátuma" #: models.py:160 models.py:513 msgid "title" msgstr "cím" #: models.py:163 msgid "title slug" msgstr "cím slug" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "A \"slug\" egy objektum egyedi, URL-be ágyazható leírása." #: models.py:167 models.py:596 msgid "description" msgstr "leírás" #: models.py:169 models.py:524 msgid "is public" msgstr "nyilvános" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Nyilvános albumok láthatóak lesznek az alapértelmezett nézetekben." #: models.py:175 models.py:536 msgid "photos" msgstr "fotók" #: models.py:177 models.py:527 msgid "sites" msgstr "webhelyek" #: models.py:185 msgid "gallery" msgstr "album" #: models.py:186 msgid "galleries" msgstr "albumok" #: models.py:224 msgid "count" msgstr "számláló" #: models.py:240 models.py:741 msgid "image" msgstr "kép" #: models.py:243 msgid "date taken" msgstr "készítés dátuma" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "Fotó készítésének dátuma (kép EXIF adataiból kinyerve)." #: models.py:247 msgid "view count" msgstr "nézettségi számláló" #: models.py:250 msgid "crop from" msgstr "kivágás" #: models.py:259 msgid "effect" msgstr "szűrő" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Nincs definiálva \"admin_thumbnail\" fotóméret." #: models.py:286 msgid "Thumbnail" msgstr "Kicsinyített kép" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "képaláírás" #: models.py:522 msgid "date added" msgstr "hozzáadva" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Nyilvános fotók láthatóak lesznek az alapértelmezett nézetekben." #: models.py:535 msgid "photo" msgstr "fotó" #: models.py:593 models.py:771 msgid "name" msgstr "név" #: models.py:672 msgid "rotate or flip" msgstr "forgatás vagy türközés" #: models.py:676 models.py:704 msgid "color" msgstr "szín" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "A 0.0-ás érték fekete-fehér képet, az 1.0-ás pedig az eredeti, színes képet eredményezi" #: models.py:680 msgid "brightness" msgstr "fényerő" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "A 0.0-ás érték egy fekete képet, az 1.0-ás pedig az eredeti képet eredményezi." #: models.py:684 msgid "contrast" msgstr "kontraszt" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "A 0.0-ás érték egy egyszínű, szürke képet, az 1.0-ás érték pedig az eredeti képet eredményezi." #: models.py:688 msgid "sharpness" msgstr "élesség" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "A 0.0-ás érték egy elmosott képet, az 1.0-ás érték pedig az eredeti képet eredményezi." #: models.py:692 msgid "filters" msgstr "szűrők" #: models.py:696 msgid "size" msgstr "méret" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "A tükröződés magasságát az eredeti kép magasságának százalékában kell megadni. A 0.0-ás érték egy tükröződés nélküli képet, az 1.0-ás érték pedig egy, Az eredeti kép magasságával megegyező magasságú tükröződést tartalmazó képet eremdényez." #: models.py:701 msgid "strength" msgstr "erősség" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "A tükröződés elhalványodásának kezdő átlátszósága." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "A tükröződés színátmenetének háttérszíne. Állítsa be olyan színűre, amilyen színű háttérre kerül a kép!" #: models.py:711 models.py:815 msgid "photo effect" msgstr "fotó effekt" #: models.py:712 msgid "photo effects" msgstr "fotó effektek" #: models.py:743 msgid "style" msgstr "stílus" #: models.py:747 msgid "opacity" msgstr "átlátszóság" #: models.py:749 msgid "The opacity of the overlay." msgstr "A felső réteg átlátszósága." #: models.py:752 msgid "watermark" msgstr "vízjel" #: models.py:753 msgid "watermarks" msgstr "vízjelek" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "A fotóméretek neve csak kis betűket, számokat és aláhúzásjeleket tartalmazhat. Pl.: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "szélesség" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Ha a szélességet 0-ra állítja, a kép a megadott magasság alapján arányosan fog méreteződni." #: models.py:786 msgid "height" msgstr "magasság" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Ha a magasságot 0-ra állítja, a kép a megadott magasság alapján arányosan fog méreteződni." #: models.py:790 msgid "quality" msgstr "minőség" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG minőség" #: models.py:794 msgid "upscale images?" msgstr "képek felméretezése?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Ha be van állítva, akkor a megadott méretnél kisebb képek fel lesznek nagyítva, hogy kitöltsék a rendelkezésre álló helyet. Képkivágás esetén ettől az opciótól függetlenül mindenképpen fel lesznek nagyítva a képek szükség esetén." #: models.py:800 msgid "crop to fit?" msgstr "képkivágás?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Ha be van állítva, akkor a képek úgy lesznek átméretezve a megadott képarárnyra, hogy egy részük le lesz vágva." #: models.py:804 msgid "pre-cache?" msgstr "előre generálás?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Ha be van állítva, akkor a hozzáadáskor előre le lesz generálva a fotó erre a méretre." #: models.py:807 msgid "increment view count?" msgstr "nézettségi számláló növelése?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Ha be van állítva, akkor a kép „nézettségi számláló” mezőjében lévő érték minden megjelenítés után egyel növekedni fog." #: models.py:821 msgid "watermark image" msgstr "vízjelhez felhasznált kép" #: models.py:826 msgid "photo size" msgstr "fotóméret" #: models.py:827 msgid "photo sizes" msgstr "fotóméretek" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Képkivágás csak szélesség és magasság megadása után lehetséges." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Zip fájl feltöltése" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Kezdőlap" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Feltölt" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

Ezen az oldalon egyszerre több fotó tölthető fel, amennyiben azok\n\t\tegy zip fájlba lettek csomagolva. A fotókat:

\n\t\t
    \n\t\t\t
  • Meglévő albumba lehet tenni.
  • \n\t\t\t
  • Vagy a megadott címmel új album is létrehozható.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Kérem, javítsa ki az alábbi hibát." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Kérem, javítsa ki az alábbi hibákat." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Legfrissebb albumok" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Szűrés év szerint" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Nem található album" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "%(show_day)s albumai" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Nem található album" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Hónap összes albuma" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "%(show_month)s albumai" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Szűrés nap szerint" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Év összes albuma" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "%(show_year)s albumai" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Szűrés hónap szerint" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Összes album" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Publikálva" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Összes album" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Előző" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t %(page_number)s/%(total_pages)s. oldal \n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Következő" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Legfrissebb fotók" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Nem található fotó" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "%(show_day)s fotói" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Hónap összes fotója" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "%(show_month)s fotói" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Év összes fotója" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "%(show_year)s fotói" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Összes fotó" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "A fotó a következő albumokban található meg" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Összes fotó" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/it/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-09-19 14:01+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Italian (http://www.transifex.com/richardbarran/django-photologue/language/it/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "La didascalia verrà aggiunta a tutte le foto" #: forms.py:43 #| msgid "description" msgid "Description" msgstr "" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Deseleziona l'opzione per rendere private le immagini e la galleria una volta caricata." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "Molto Bassa" #: models.py:99 msgid "Low" msgstr "Bassa" #: models.py:100 msgid "Medium-Low" msgstr "Medio-Bassa" #: models.py:101 msgid "Medium" msgstr "Media" #: models.py:102 msgid "Medium-High" msgstr "Medio-Alta" #: models.py:103 msgid "High" msgstr "Alta" #: models.py:104 msgid "Very High" msgstr "Molto Alta" #: models.py:109 msgid "Top" msgstr "In alto" #: models.py:110 msgid "Right" msgstr "A destra" #: models.py:111 msgid "Bottom" msgstr "In basso" #: models.py:112 msgid "Left" msgstr "A sinistra" #: models.py:113 msgid "Center (Default)" msgstr "Al centro (Default)" #: models.py:117 msgid "Flip left to right" msgstr "Inverti destra con sinistra" #: models.py:118 msgid "Flip top to bottom" msgstr "Inverti alto con basso" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Ruota di 90 gradi in senso anti-orario" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Ruota di 90 gradi in senso orario" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Ruota di 180 gradi" #: models.py:125 msgid "Tile" msgstr "Affianca" #: models.py:126 msgid "Scale" msgstr "Ridimensiona" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Collega filtri multipli in cascata con il seguente schema \"FILTRO_UNO->FILTRO_DUE->FILTER_TRE\". I filtri saranno applicati in ordine alle immagini. I seguenti filtri sono disponibili: %s." #: models.py:158 msgid "date published" msgstr "data di pubblicazione" #: models.py:160 models.py:513 msgid "title" msgstr "titolo" #: models.py:163 msgid "title slug" msgstr "slug" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Uno \"Slug\" è un titolo univoco per un oggetto, usabile come URL." #: models.py:167 models.py:596 msgid "description" msgstr "descrizione" #: models.py:169 models.py:524 msgid "is public" msgstr "è pubblica" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Le gallerie pubbliche verranno visualizzate nelle viste di default." #: models.py:175 models.py:536 msgid "photos" msgstr "foto" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "galleria" #: models.py:186 msgid "galleries" msgstr "gallerie" #: models.py:224 msgid "count" msgstr "numero" #: models.py:240 models.py:741 msgid "image" msgstr "immagine" #: models.py:243 msgid "date taken" msgstr "data dello scatto" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "ritagliata da" #: models.py:259 msgid "effect" msgstr "effetto" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "La dimensione \"admin_thumbnail\" non è ancora stata creata." #: models.py:286 msgid "Thumbnail" msgstr "Miniatura" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "didascalia" #: models.py:522 msgid "date added" msgstr "data di inserimento" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Le fotografie pubbliche verranno visualizzate nelle viste di default." #: models.py:535 msgid "photo" msgstr "fotografia" #: models.py:593 models.py:771 msgid "name" msgstr "nome" #: models.py:672 msgid "rotate or flip" msgstr "ruota o inverti" #: models.py:676 models.py:704 msgid "color" msgstr "colore" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Un fattore di 0.0 restituisce un'immagine in bianco e nero, un fattore di 1.0 restituisce l'immagine originale." #: models.py:680 msgid "brightness" msgstr "luminosità" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Un fattore di 0.0 restituisce un'immagine nera, un fattore di 1.0 restituisce l'immagine originale." #: models.py:684 msgid "contrast" msgstr "contrasto" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Un fattore di 0.0 restituisce un'immagine grigia, un fattore di 1.0 restituisce l'immagine originale." #: models.py:688 msgid "sharpness" msgstr "nitidezza" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Un fattore di 0.0 restituisce un'immagine sfuocata, un fattore di 1.0 restituisce l'immagine originale." #: models.py:692 msgid "filters" msgstr "filtri" #: models.py:696 msgid "size" msgstr "dimensione" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "L'altezza del riflesso come percentuale dell'immagine originale. Un fattore di 0.0 non aggiunge nessun riflesso, un fattore di 1.0 aggiunge un riflesso della stessa altezza dell'immagine originale." #: models.py:701 msgid "strength" msgstr "intensità" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Opacità iniziale del gradiente del riflesso." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Il colore di sfondo del gradiente di riflesso. Sceglilo in modo che corrisponda al colore dello sfondo della tua immagine." #: models.py:711 models.py:815 msgid "photo effect" msgstr "effetto fotografico" #: models.py:712 msgid "photo effects" msgstr "effetti fotografici" #: models.py:743 msgid "style" msgstr "stile" #: models.py:747 msgid "opacity" msgstr "opacità" #: models.py:749 msgid "The opacity of the overlay." msgstr "Opacità della copertura" #: models.py:752 msgid "watermark" msgstr "watermark" #: models.py:753 msgid "watermarks" msgstr "watermark" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Le dimensioni fotografiche devono contenere solo lettere, numeri o caratteri di sottolineatura. Per esempio: : \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "larghezza" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Se la dimensione è \"0\", l'immagine verrà ridimensionata all'altezza specificata." #: models.py:786 msgid "height" msgstr "altezza" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Se l'altezza è \"0\", l'immagine verrà ridimensionata alla larghezza specificata." #: models.py:790 msgid "quality" msgstr "qualità" #: models.py:793 msgid "JPEG image quality." msgstr "qualità dell'immagine JPEG" #: models.py:794 msgid "upscale images?" msgstr "ingrandisco le immagini?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Se selezionato, l'immagine verrà ingrandita (se necessario) per corrispondere alle dimensioni specificate. Dimensioni ritagliate verranno ridimensionate senza tenere conto di questa configurazione." #: models.py:800 msgid "crop to fit?" msgstr "Ritaglio per stare nelle dimensioni?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Se selezionato, l'immagine verrà ridimensionata e ritagliata per rientrare nelle dimensioni specificate." #: models.py:804 msgid "pre-cache?" msgstr "pre-cache?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Se selezionato, questa dimensione di foto verrà pre-salvata mentre le foto sono inserite." #: models.py:807 msgid "increment view count?" msgstr "incrementa il contatore di visualizzazioni?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Se selezionato, il \"contatore di visualizzazioni\" dell'immagine sarà incrementato ad ogni visualizzazione dell'immagine." #: models.py:821 msgid "watermark image" msgstr "immagine di watermark" #: models.py:826 msgid "photo size" msgstr "dimensione della foto" #: models.py:827 msgid "photo sizes" msgstr "dimensioni delle foto" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/nl/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # Peter-Paul van Gemerden , 2009 # Reint T. Kamp , 2015 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2020-07-30 19:09+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Dutch (http://www.transifex.com/richardbarran/django-photologue/language/nl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "De volgende foto hoort niet tot dezelfde site(s) als de galerij, dus zal nooit getoond worden: %(photo_list)s." msgstr[1] "De volgende foto's horen niet tot dezelfde site(s) als de galerij, dus zullen nooit getoond worden: %(photo_list)s." #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "De galerij is met succes toegevoegd aan %(site)s" msgstr[1] "De galerijen zijn met succes toegevoegd aan %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Voeg geselecteerde galerij toe aan de huidige pagina" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "De geselecteerde galerij is met succes verwijderd van %(site)s" msgstr[1] "De geselecteerde galerijen zijn met succes verwijderd van %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Verwijder geselecteerde galerijen van de huidige pagina" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Alle foto's in galerij %(galleries)s zijn met succes toegevoegd aan %(site)s" msgstr[1] "Alle foto's in galerijen %(galleries)s zijn met succes toegevoegd aan %(site)s" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Voeg alle foto's van de gelecteerde galerij toe aan de huidige pagina" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Alle foto's in galerij %(galleries)s zijn met succes verwijderd van %(site)s" msgstr[1] "Alle foto's in galerijen %(galleries)s zijn met succes verwijderd van %(site)s" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Verwijder alle foto's in de geselecteerde galerijen van de huidige pagina" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "De foto is met succes toegevoegd aan %(site)s" msgstr[1] "De geselecteerde foto's zijn met succes toegevoegd aan %(site)s" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Voeg geselecteerde foto's toe aan de huidige pagina" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "De foto is met succes verwijderd van %(site)s" msgstr[1] "De geselecteerde foto's zijn met succes verwijderd van %(site)s" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Verwijder geselecteerde foto van de huidige pagina" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Upload een zip-archief met foto's" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Titel" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "Alle geüploade foto's krijgen een titel gevormd door deze titel + een nummer.
Dit veld is verplicht als je een nieuwe galerij aanmaakt, maar optioneel bij het toevoegen aan een bestaande galerij. Indien niet ingevuld, krijgen alle foto's een titel gebaseerd op de bestaande galerij-naam." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galerij" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Selecteer een galerij om deze foto's aan toe te voegen. Laat dit leeg om een nieuwe galerij aan te maken met de gegeven titel. " #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Onderschrift" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Onderschrift wordt toegevoegd aan alle foto's." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Omschrijving" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Een beschrijving van deze galerij. Enkel verplicht voor nieuwe galerijen." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Is publiek toegankelijk" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Haal dit vinkje weg om de geüploade galerij en foto's privé te maken." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Een galerij met deze titel bestaat al." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Selecteer een bestaande galerij of vul de titel in van een nieuwe galerij" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Bestand \"{filename}\" ligt in een onderliggende map. Alleen afbeeldingen in de bovenste folder van de zip worden gebruikt. " #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Kon bestand \"{0}\" in het zip-archief niet verwerken." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "De foto's zijn toegevoegd aan galerij \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "Zeer laag" #: models.py:99 msgid "Low" msgstr "Laag" #: models.py:100 msgid "Medium-Low" msgstr "Middel-laag" #: models.py:101 msgid "Medium" msgstr "Gemiddeld" #: models.py:102 msgid "Medium-High" msgstr "Middel-hoog" #: models.py:103 msgid "High" msgstr "Hoog" #: models.py:104 msgid "Very High" msgstr "Zeer hoog" #: models.py:109 msgid "Top" msgstr "Boven" #: models.py:110 msgid "Right" msgstr "Rechts" #: models.py:111 msgid "Bottom" msgstr "Onder" #: models.py:112 msgid "Left" msgstr "Links" #: models.py:113 msgid "Center (Default)" msgstr "Midden (standaard)" #: models.py:117 msgid "Flip left to right" msgstr "Spiegel horizontaal" #: models.py:118 msgid "Flip top to bottom" msgstr "Spiegel verticaal" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Roteer 90 graden tegen de klok in" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Roteer 90 graden met de klok mee" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Roteer 180 graden" #: models.py:125 msgid "Tile" msgstr "Tegelen" #: models.py:126 msgid "Scale" msgstr "Schalen" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Keten meerdere filters aan elkaar met het patroon: \"FILTER_EEN->FILTER_TWEE->FILTER_DRIE\". Afbeeldingsfilters worden in volgorde toegepast. De volgende filters zijn beschikbaar: %s." #: models.py:158 msgid "date published" msgstr "datum gepubliceerd" #: models.py:160 models.py:513 msgid "title" msgstr "titel" #: models.py:163 msgid "title slug" msgstr "titel 'zetsel'" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Een \"zetsel\" is een unieke URL-vriendelijke titel voor een object." #: models.py:167 models.py:596 msgid "description" msgstr "beschrijving" #: models.py:169 models.py:524 msgid "is public" msgstr "is openbaar" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Openbare galerijen worden weergegeven in de standaardviews." #: models.py:175 models.py:536 msgid "photos" msgstr "foto's" #: models.py:177 models.py:527 msgid "sites" msgstr "sites" #: models.py:185 msgid "gallery" msgstr "galerij" #: models.py:186 msgid "galleries" msgstr "galerijen" #: models.py:224 msgid "count" msgstr "aantal" #: models.py:240 models.py:741 msgid "image" msgstr "afbeelding" #: models.py:243 msgid "date taken" msgstr "datum genomen" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "Datum afbeelding is ingenomen; is verkregen van de afbeelding zijn EXIF data." #: models.py:247 msgid "view count" msgstr "weergave teller" #: models.py:250 msgid "crop from" msgstr "afknippen vanaf" #: models.py:259 msgid "effect" msgstr "effect" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Er is geen \"admin_thumbnail\" foto-maat vastgelegd." #: models.py:286 msgid "Thumbnail" msgstr "Miniatuur" #: models.py:516 msgid "slug" msgstr "zetsel" #: models.py:520 msgid "caption" msgstr "onderschrift" #: models.py:522 msgid "date added" msgstr "datum toegevoegd" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Openbare foto's worden weergegeven in de standaardviews." #: models.py:535 msgid "photo" msgstr "foto" #: models.py:593 models.py:771 msgid "name" msgstr "naam" #: models.py:672 msgid "rotate or flip" msgstr "roteer of spiegel" #: models.py:676 models.py:704 msgid "color" msgstr "kleur" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Een factor van 0.0 geeft een zwart-wit afbeelding, een factor van 1.0 geeft de originele afbeelding." #: models.py:680 msgid "brightness" msgstr "helderheid" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Een factor van 0.0 geeft een zwarte afbeelding, een factor van 1.0 geeft de originele afbeelding." #: models.py:684 msgid "contrast" msgstr "contrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Een factor van 0.0 geeft een egaal grijze afbeelding, een factor van 1.0 geeft de originele afbeelding." #: models.py:688 msgid "sharpness" msgstr "scherpte" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Een factor van 0.0 geeft een vervaagde afbeelding, een factor van 1.0 geeft de originele afbeelding." #: models.py:692 msgid "filters" msgstr "filters" #: models.py:696 msgid "size" msgstr "afmeting" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "De hoogte van de reflectie als precentage van de originele afbeelding. Een factor van 0.0 voegt geen reflectie toe, een factor van 1.0 voegt een reflectie toe met een gelijke hoogte als de originele afbeelding." #: models.py:701 msgid "strength" msgstr "sterkte" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "De initiële doorzichtigheid van de reflectie-gradatie." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "De achtergrondkleur van de reflectie-gradatie. Stel dit in als hetzelfde als de achtergrondkleur van je pagina." #: models.py:711 models.py:815 msgid "photo effect" msgstr "foto-effect" #: models.py:712 msgid "photo effects" msgstr "foto-effecten" #: models.py:743 msgid "style" msgstr "stijl" #: models.py:747 msgid "opacity" msgstr "doorzichtigheid" #: models.py:749 msgid "The opacity of the overlay." msgstr "De doorzichtigheid van overliggende afbeelding." #: models.py:752 msgid "watermark" msgstr "watermerk" #: models.py:753 msgid "watermarks" msgstr "watermerken" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "De naam van de foto-maat mag alleen letters, nummers en underscores bevatten. Voorbeelden: \"miniatuur\", \"weergave\", \"klein\", \"hoofdpagina_zijbalk_miniatuur\"." #: models.py:782 msgid "width" msgstr "breedte" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Als de breedte op \"0\" wordt gezet zal de afbeelding geschaald worden naar de opgegeven hoogte." #: models.py:786 msgid "height" msgstr "hoogte" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Als de hoogte op \"0\" wordt gezet zal de afbeelding geschaald worden naar de opgegeven breedte." #: models.py:790 msgid "quality" msgstr "kwaliteit" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG afbeeldingskwaliteit" #: models.py:794 msgid "upscale images?" msgstr "afbeeldingen opschalen?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Als dit is gekozen, zal de afbeelding, indien nodig, opgeschaald worden naar opgegeven afmetingen. Afgeknipte maten worden altijd opgeschaald, ongeacht deze instelling." #: models.py:800 msgid "crop to fit?" msgstr "gepast afknippen?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Als dit is gekozen, zal de afbeelding geschaald en afgeknipt worden naar de opgegeven afmetingen." #: models.py:804 msgid "pre-cache?" msgstr "vooraf cachen?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Als dit is gekozen, zullen foto's met deze foto-maat van te voren worden gecached wanneer ze worden toegevoegd." #: models.py:807 msgid "increment view count?" msgstr "aantal vertoningen ophogen?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Als dit is gekozen, zal het aantal vertoningen van de afbeelding worden opgehoogd wanneer deze foto-maat wordt weergegeven." #: models.py:821 msgid "watermark image" msgstr "watermerk-afbeelding" #: models.py:826 msgid "photo size" msgstr "foto-maat" #: models.py:827 msgid "photo sizes" msgstr "foto-maten" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Kan alleen foto's uitsnijden als zowel de waarde van de breedte en de hoogte zijn ingesteld." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Upload een zip-archief" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Home" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Upload" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

Op deze pagina kun je meerdere foto's tegelijk uploaden indien ze allen\n\t\tin een zip-archief zitten. De foto's kunnen:

\n\t\t
    \n\t\t\t
  • Toegevoegd worden aan een bestaande galerij
  • \n\t\t\t
  • Of er wordt een galerij aangemaakt met de gegeven titel.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Gelieve de fout hieronder te verbeteren." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Gelieve de fouten hieronder te verbeteren." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Meest recente fotogalerijen" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filter op jaar" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Er zijn geen galerijen gevonden" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Galerijen van %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Er zijn geen galerijen gevonden." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Bekijk alle galerijen uit maand" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Galerijen uit %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filter op dag" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Bekijk all galerijen uit jaar" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Galerijen uit %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filter op maand" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Bekijk alle galerijen" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Gepubliceerd" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Alle galerijen" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Vorige" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t pagina %(page_number)s van %(total_pages)s\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Volgende" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Laatste foto's" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Er zijn geen foto's gevonden" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Foto's van %(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Bekijk alle foto's van maand" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Foto's van %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Bekijk alle foto's uit het jaar" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Foto's uit %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Bekijk alle foto's" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Deze foto staat in de volgende galerijen" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Alle foto's" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/no/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-09-19 14:01+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Norwegian (http://www.transifex.com/richardbarran/django-photologue/language/no/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: no\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Undertitler blir lagt til på alle bilder." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Avmarker dette for å gjøre galleriet og dets bilder private." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "Veldig lav" #: models.py:99 msgid "Low" msgstr "Lav" #: models.py:100 msgid "Medium-Low" msgstr "Middels-lav" #: models.py:101 msgid "Medium" msgstr "Middels" #: models.py:102 msgid "Medium-High" msgstr "Middels-høy" #: models.py:103 msgid "High" msgstr "Høy" #: models.py:104 msgid "Very High" msgstr "Veldig høy" #: models.py:109 msgid "Top" msgstr "Topp" #: models.py:110 msgid "Right" msgstr "Høyre" #: models.py:111 msgid "Bottom" msgstr "Bunn" #: models.py:112 msgid "Left" msgstr "Venstre" #: models.py:113 msgid "Center (Default)" msgstr "Senter (forhåndsvalgt)" #: models.py:117 msgid "Flip left to right" msgstr "Snu venstre mot høyre" #: models.py:118 msgid "Flip top to bottom" msgstr "Snu topp mot bunn" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Rotér 90 grader mot klokka" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Rotér 90 grader med klokka" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Rotér 180 grader" #: models.py:125 msgid "Tile" msgstr "Flislegg" #: models.py:126 msgid "Scale" msgstr "Skalér" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "" #: models.py:158 msgid "date published" msgstr "publiseringsdato" #: models.py:160 models.py:513 msgid "title" msgstr "tittel" #: models.py:163 msgid "title slug" msgstr "tittel (slug)" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "En \"slug\" er en unik URL-vennlig tittel for et objekt." #: models.py:167 models.py:596 msgid "description" msgstr "beskrivelse" #: models.py:169 models.py:524 msgid "is public" msgstr "publisert" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Publiserte gallerier vil bli vist på vanlig vis." #: models.py:175 models.py:536 msgid "photos" msgstr "bilder" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "galleri" #: models.py:186 msgid "galleries" msgstr "gallerier" #: models.py:224 msgid "count" msgstr "visninger" #: models.py:240 models.py:741 msgid "image" msgstr "bilde" #: models.py:243 msgid "date taken" msgstr "dato tatt" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "kutt fra" #: models.py:259 msgid "effect" msgstr "effekt" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "En \"admin_thumbnail\"-bildestørrelse har ikke blitt opprettet." #: models.py:286 msgid "Thumbnail" msgstr "Miniatyrbilde" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "undertittel" #: models.py:522 msgid "date added" msgstr "opplastingsdato" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Publiserte bilder vil bli vist på vanlig måte." #: models.py:535 msgid "photo" msgstr "bilde" #: models.py:593 models.py:771 msgid "name" msgstr "navn" #: models.py:672 msgid "rotate or flip" msgstr "rotér og snu" #: models.py:676 models.py:704 msgid "color" msgstr "farge" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "En verdi på 0.0 gir et sort/hvitt-bilde, en verdi på 1.0 gir originalbildet." #: models.py:680 msgid "brightness" msgstr "lyshet" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "En verdi på 0.0 gir et sort bilde, en verdi på 1.0 gir originalbildet." #: models.py:684 msgid "contrast" msgstr "kontrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "En verdi på 0.0 gir et grått bilde, en verdi på 1.0 gir originalbildet." #: models.py:688 msgid "sharpness" msgstr "skarphet" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "En verdi på 0.0 gir et utydlig bilde, en verdi på 1.0 gir originalbildet." #: models.py:692 msgid "filters" msgstr "filter" #: models.py:696 msgid "size" msgstr "størrelse" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Høyden av refleksjonen som prosent av originalbildet. En verdi på 0.0 gir ingen refleksjon, en verdi på 1.0 gir en refleksjon tilsvarende høyden på originalbildet." #: models.py:701 msgid "strength" msgstr "styrke" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "" #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "" #: models.py:711 models.py:815 msgid "photo effect" msgstr "bildeeffekt" #: models.py:712 msgid "photo effects" msgstr "bildeeffekter" #: models.py:743 msgid "style" msgstr "stil" #: models.py:747 msgid "opacity" msgstr "gjennomsiktighet" #: models.py:749 msgid "The opacity of the overlay." msgstr "Gjennomsiktigheten av overlegget." #: models.py:752 msgid "watermark" msgstr "vannmerke" #: models.py:753 msgid "watermarks" msgstr "vannmerker" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Navn på bildestørrelse kan kun inneholde bokstaver, tall og understreker. Eksempler: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "bredde" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Hvis bredden er satt til \"0\" blir bildet skalert til den oppgitte høyden." #: models.py:786 msgid "height" msgstr "høyde" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Hvis høyden er satt til \"0\" blir bildet skalert til den oppgitte bredden." #: models.py:790 msgid "quality" msgstr "kvalitet" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG bildekvalitet" #: models.py:794 msgid "upscale images?" msgstr "oppskalér bilder?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Hvis valgt, blir bildet vil bli skalert opp om det er nødvendig. Kuttede størrelser vil bli oppskalert uansett innstilling." #: models.py:800 msgid "crop to fit?" msgstr "kutt for tilpasning?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Hvis valgt blir bildet skalert og kuttet for å passe med den oppgitte størrelsen." #: models.py:804 msgid "pre-cache?" msgstr "mellomlagre på forhånd?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Hvis valgt blir denne bildestørrelsen mellomlagret på forhånd når nye bilder blir lagt til." #: models.py:807 msgid "increment view count?" msgstr "øke visningstelleren?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Hvis valgt vil \"visningstelleren\" øke hver gang denne bildestørrelsen vises." #: models.py:821 msgid "watermark image" msgstr "vannmerke på bilde" #: models.py:826 msgid "photo size" msgstr "bildestørrelse" #: models.py:827 msgid "photo sizes" msgstr "bildestørrelser" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/pl/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-09-19 14:01+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Polish (http://www.transifex.com/richardbarran/django-photologue/language/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Podpis będzie dodany do wszystkich zdjęć." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Odznacz aby uczynić wrzucaną galerię oraz zawarte w niej zdjęcia prywatnymi." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "Bardzo niska" #: models.py:99 msgid "Low" msgstr "Niska" #: models.py:100 msgid "Medium-Low" msgstr "Niższa średnia" #: models.py:101 msgid "Medium" msgstr "Średnia" #: models.py:102 msgid "Medium-High" msgstr "Wyższa średnia" #: models.py:103 msgid "High" msgstr "Wysoka" #: models.py:104 msgid "Very High" msgstr "Bardzo wysoka" #: models.py:109 msgid "Top" msgstr "Góra" #: models.py:110 msgid "Right" msgstr "Prawo" #: models.py:111 msgid "Bottom" msgstr "Dół" #: models.py:112 msgid "Left" msgstr "Lewo" #: models.py:113 msgid "Center (Default)" msgstr "Środek (Domyślnie)" #: models.py:117 msgid "Flip left to right" msgstr "Odbij w poziomie" #: models.py:118 msgid "Flip top to bottom" msgstr "Odbij w pionie" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Odwróć 90 stopni w lewo" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Odwróć 90 stopni w prawo" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Obróć o 180 stopni" #: models.py:125 msgid "Tile" msgstr "Kafelki" #: models.py:126 msgid "Scale" msgstr "Skaluj" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "" #: models.py:158 msgid "date published" msgstr "data publikacji" #: models.py:160 models.py:513 msgid "title" msgstr "tytuł" #: models.py:163 msgid "title slug" msgstr "tytuł - slug " #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "\"Slug\" jest unikalnym, zgodnym z formatem dla URL-i tytułem obiektu." #: models.py:167 models.py:596 msgid "description" msgstr "opis" #: models.py:169 models.py:524 msgid "is public" msgstr "jest publiczna" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Galerie publiczne będą wyświetlana w domyślnych widokach." #: models.py:175 models.py:536 msgid "photos" msgstr "zdjęcia" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "galeria" #: models.py:186 msgid "galleries" msgstr "galerie" #: models.py:224 msgid "count" msgstr "ilość" #: models.py:240 models.py:741 msgid "image" msgstr "obraz" #: models.py:243 msgid "date taken" msgstr "data wykonania" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "obetnij z" #: models.py:259 msgid "effect" msgstr "efekt" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Rozmiar zdjęcia \"admin_thumbnail\" nie został zdefiniowany." #: models.py:286 msgid "Thumbnail" msgstr "Miniaturka" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "podpis" #: models.py:522 msgid "date added" msgstr "data dodania" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Publiczne zdjęcia będą wyświetlane w domyślnych widokach." #: models.py:535 msgid "photo" msgstr "zdjęcie" #: models.py:593 models.py:771 msgid "name" msgstr "nazwa" #: models.py:672 msgid "rotate or flip" msgstr "obróć lub odbij" #: models.py:676 models.py:704 msgid "color" msgstr "kolor" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Współczynnik 0.0 daje czarno-biały obraz, współczynnik 1.0 daje obraz oryginalny." #: models.py:680 msgid "brightness" msgstr "jasność" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Współczynnik 0.0 daje czarny obraz, współczynnik 1.0 daje obraz oryginalny." #: models.py:684 msgid "contrast" msgstr "kontrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Współczynnik 0.0 daje jednolity szary obraz, współczynnik 1.0 daje obraz oryginalny." #: models.py:688 msgid "sharpness" msgstr "ostrość" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Współczynnik 0.0 daje rozmazany obraz, współczynnik 1.0 daje obraz oryginalny." #: models.py:692 msgid "filters" msgstr "filtry" #: models.py:696 msgid "size" msgstr "rozmiar" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Wysokość odbicia jako procent oryginalnego obrazu. Współczynnik 0.0 nie dodaje odbicia, współczynnik 1.0 dodaje odbicie równe wysokości oryginalnego obrazu." #: models.py:701 msgid "strength" msgstr "intensywność" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "" #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "" #: models.py:711 models.py:815 msgid "photo effect" msgstr "efekt zdjęcia" #: models.py:712 msgid "photo effects" msgstr "efekty zdjęć" #: models.py:743 msgid "style" msgstr "styl" #: models.py:747 msgid "opacity" msgstr "przeźroczystość" #: models.py:749 msgid "The opacity of the overlay." msgstr "Poziom przezroczystości" #: models.py:752 msgid "watermark" msgstr "znak wodny" #: models.py:753 msgid "watermarks" msgstr "znaki wodne" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Nazwa rozmiaru zdjęcia powinna zawierać tylko litery, cyfry i podkreślenia. Przykłady: \"miniatura\", \"wystawa\", \"male\", \"widget_strony_glownej\"." #: models.py:782 msgid "width" msgstr "szerokość" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Jeśli szerokość jest ustawiona na \"0\" to obraz będzie skalowany do podanej wysokości." #: models.py:786 msgid "height" msgstr "wysokość" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Jeśli wysokość jest ustawiona na \"0\" to obraz będzie skalowany do podanej szerokości." #: models.py:790 msgid "quality" msgstr "jakość" #: models.py:793 msgid "JPEG image quality." msgstr "Jakość obrazu JPEG" #: models.py:794 msgid "upscale images?" msgstr "skalować obrazy w górę?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Jeśli zaznaczone to obraz będzie skalowany w górę tak aby pasował do podanych wymiarów. Obcinane rozmiary będą skalowane niezależnie od tego ustawienia." #: models.py:800 msgid "crop to fit?" msgstr "przyciąć aby pasował?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Jeśli zaznaczone to obraz będzie skalowany i przycinany tak aby pasował do podanych wymiarów." #: models.py:804 msgid "pre-cache?" msgstr "wstępnie cachować?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Jesli zaznaczone to ten rozmiar zdjęć będzie wstępnie cachowany przy dodawaniu zdjęć." #: models.py:807 msgid "increment view count?" msgstr "zwiększyć licznik odsłon?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Jeśli zaznaczone to \"licznik_odslon\" będzie zwiększany gdy ten rozmiar zdjęcia będzie wyświetlany." #: models.py:821 msgid "watermark image" msgstr "oznacz kluczem wodnym" #: models.py:826 msgid "photo size" msgstr "rozmiar zdjęcia" #: models.py:827 msgid "photo sizes" msgstr "rozmiary zdjęć" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/pt/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # David Kwast , 2009 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-09-19 14:01+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Portuguese (http://www.transifex.com/richardbarran/django-photologue/language/pt/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "A legenda será adicionada para todas as fotos" #: forms.py:43 #| msgid "description" msgid "Description" msgstr "" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Desmarque esta opção para tornar a galeria, incluindo suas fotos, não pública." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "Muito Baixa" #: models.py:99 msgid "Low" msgstr "Baixa" #: models.py:100 msgid "Medium-Low" msgstr "Média-Baixa" #: models.py:101 msgid "Medium" msgstr "Média" #: models.py:102 msgid "Medium-High" msgstr "Média-Alta" #: models.py:103 msgid "High" msgstr "Alta" #: models.py:104 msgid "Very High" msgstr "Muito Alta" #: models.py:109 msgid "Top" msgstr "Cima" #: models.py:110 msgid "Right" msgstr "Direita" #: models.py:111 msgid "Bottom" msgstr "Baixo" #: models.py:112 msgid "Left" msgstr "Esquerda" #: models.py:113 msgid "Center (Default)" msgstr "Centro (Padrão)" #: models.py:117 msgid "Flip left to right" msgstr "Inverter da direita para a esquerda" #: models.py:118 msgid "Flip top to bottom" msgstr "Inverter de cima para baixo" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Rotacionar 90 graus no sentido anti-horário" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Rotacionar 90 graus no sentido horário" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Rotacionar 180 graus" #: models.py:125 msgid "Tile" msgstr "Título" #: models.py:126 msgid "Scale" msgstr "Escala" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Encadeie multiplos filtros usando o seguinte padrão \"FILTRO_UM->FILTRO_DOIS->FILTRO_TRÊS\". Os filtors serão aplicados na ordem em que foram encadeados. Os seguintes filtros estão disponíveis: %s." #: models.py:158 msgid "date published" msgstr "data de publicação" #: models.py:160 models.py:513 msgid "title" msgstr "título" #: models.py:163 msgid "title slug" msgstr "slug do título" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Um \"slug\" é um título único compatível com uma URL." #: models.py:167 models.py:596 msgid "description" msgstr "descrição" #: models.py:169 models.py:524 msgid "is public" msgstr "é publico" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Galerias públicas serão mostradas nas views padrões." #: models.py:175 models.py:536 msgid "photos" msgstr "fotos" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "Galeria" #: models.py:186 msgid "galleries" msgstr "Galerias" #: models.py:224 msgid "count" msgstr "contagem" #: models.py:240 models.py:741 msgid "image" msgstr "imagem" #: models.py:243 msgid "date taken" msgstr "data em que a foto foi tirada" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "cortar" #: models.py:259 msgid "effect" msgstr "efeito" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Um tamanho para a foto do \"admin_thumbnail\" ainda não foi definido." #: models.py:286 msgid "Thumbnail" msgstr "Thumbnail" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "legenda" #: models.py:522 msgid "date added" msgstr "data que foi adicionado(a)" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Fotos públicas serão mostradas nas views padrões." #: models.py:535 msgid "photo" msgstr "foto" #: models.py:593 models.py:771 msgid "name" msgstr "nome" #: models.py:672 msgid "rotate or flip" msgstr "rotacionar ou inverter" #: models.py:676 models.py:704 msgid "color" msgstr "cor" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "O valor 0.0 deixará a imagem em preto e branco, o fator 1.0 não alterará a mesma.A factor of 0.0 gives a black and white image, a factor of 1.0 gives the original image." #: models.py:680 msgid "brightness" msgstr "brilho" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "O valor 0.0 deixará a imagem totalmente preta, o valor 1.0 não alterará a mesma." #: models.py:684 msgid "contrast" msgstr "contraste" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "O valor 0.0 deixará a imagem totalmente cinza, o valor 1.0 não alterará a mesma." #: models.py:688 msgid "sharpness" msgstr "nitidez" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "O valor 0.0 deixará a imagem embaçada, o valor 1.0 não alterará a mesma." #: models.py:692 msgid "filters" msgstr "filtros" #: models.py:696 msgid "size" msgstr "tamanho" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Valor entre 0 e 1. O reflexo será proporcional a altura da imagem. O valor 0.0 não produzirá um reflexo e o valor 1.0 produzirá um reflexo com a mesma altura da imagem original." #: models.py:701 msgid "strength" msgstr "força" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "O valor inicial da opacidade do gradiente de reflexão." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "A cor de fundo do gradiente de reflexão. Ajuste de acordo com a cor de fundo de sua página." #: models.py:711 models.py:815 msgid "photo effect" msgstr "efeito de foto" #: models.py:712 msgid "photo effects" msgstr "efeitos de foto" #: models.py:743 msgid "style" msgstr "estilo" #: models.py:747 msgid "opacity" msgstr "opacidade" #: models.py:749 msgid "The opacity of the overlay." msgstr "A opacidade da sobre-imagem (overlay)" #: models.py:752 msgid "watermark" msgstr "marca d'água" #: models.py:753 msgid "watermarks" msgstr "marcas d'água" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "O nome do tamanho da foto somente poderá conter letras, números e underscores. Exemplos: \"thumbnail\", \"tela\", \"pequeno\", \"grande\"." #: models.py:782 msgid "width" msgstr "largura" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Se o valor da largura for \"0\", a imagem será redimensionada de acordo com a altura informada" #: models.py:786 msgid "height" msgstr "altura" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Se o valor da altura for \"0\", a imagem será redimensionada de acordo com a largura informada" #: models.py:790 msgid "quality" msgstr "qualidade" #: models.py:793 msgid "JPEG image quality." msgstr "qualidade da imagem JPEG" #: models.py:794 msgid "upscale images?" msgstr "Aumentar a dimensão das imagens?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Se selecionado, a imagem terá sua dimensão aumentada. Imagens cortadas serão redimensionadas independentemente desta configuração." #: models.py:800 msgid "crop to fit?" msgstr "cortar para conformar?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Se selecionado, a imagem será redimensionada e cortada para se conformar de acordo com as dimensões fornecidas." #: models.py:804 msgid "pre-cache?" msgstr "pré-cachear?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Se selecionado, o tamanho da foto será pré-cacheado logo após sua inclusão." #: models.py:807 msgid "increment view count?" msgstr "Incrementar o contador de visualizações?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Se selecionado, o \"view_count\" desta imagem será incrementado quando o tamanho da mesma for mostrado." #: models.py:821 msgid "watermark image" msgstr "imagem para marca d'água" #: models.py:826 msgid "photo size" msgstr "tamanho da foto" #: models.py:827 msgid "photo sizes" msgstr "tamanhos das fotos" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/pt_BR/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # David Kwast , 2009 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-09-19 14:01+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/richardbarran/django-photologue/language/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "A legenda será adicionada para todas as fotos" #: forms.py:43 #| msgid "description" msgid "Description" msgstr "" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Desmarque esta opção para tornar a galeria, incluindo suas fotos, não pública." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "Muito Baixa" #: models.py:99 msgid "Low" msgstr "Baixa" #: models.py:100 msgid "Medium-Low" msgstr "Média-Baixa" #: models.py:101 msgid "Medium" msgstr "Média" #: models.py:102 msgid "Medium-High" msgstr "Média-Alta" #: models.py:103 msgid "High" msgstr "Alta" #: models.py:104 msgid "Very High" msgstr "Muito Alta" #: models.py:109 msgid "Top" msgstr "Cima" #: models.py:110 msgid "Right" msgstr "Direita" #: models.py:111 msgid "Bottom" msgstr "Baixo" #: models.py:112 msgid "Left" msgstr "Esquerda" #: models.py:113 msgid "Center (Default)" msgstr "Centro (Padrão)" #: models.py:117 msgid "Flip left to right" msgstr "Inverter da direita para a esquerda" #: models.py:118 msgid "Flip top to bottom" msgstr "Inverter de cima para baixo" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Rotacionar 90 graus no sentido anti-horário" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Rotacionar 90 graus no sentido horário" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Rotacionar 180 graus" #: models.py:125 msgid "Tile" msgstr "Título" #: models.py:126 msgid "Scale" msgstr "Escala" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Encadeie multiplos filtros usando o seguinte padrão \"FILTRO_UM->FILTRO_DOIS->FILTRO_TRÊS\". Os filtors serão aplicados na ordem em que foram encadeados. Os seguintes filtros estão disponíveis: %s." #: models.py:158 msgid "date published" msgstr "data de publicação" #: models.py:160 models.py:513 msgid "title" msgstr "título" #: models.py:163 msgid "title slug" msgstr "slug do título" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "Um \"slug\" é um título único compatível com uma URL." #: models.py:167 models.py:596 msgid "description" msgstr "descrição" #: models.py:169 models.py:524 msgid "is public" msgstr "é publico" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Galerias públicas serão mostradas nas views padrões." #: models.py:175 models.py:536 msgid "photos" msgstr "fotos" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "Galeria" #: models.py:186 msgid "galleries" msgstr "Galerias" #: models.py:224 msgid "count" msgstr "contagem" #: models.py:240 models.py:741 msgid "image" msgstr "imagem" #: models.py:243 msgid "date taken" msgstr "data em que a foto foi tirada" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "cortar" #: models.py:259 msgid "effect" msgstr "efeito" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Um tamanho para a foto do \"admin_thumbnail\" ainda não foi definido." #: models.py:286 msgid "Thumbnail" msgstr "Thumbnail" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "legenda" #: models.py:522 msgid "date added" msgstr "data que foi adicionado(a)" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Fotos públicas serão mostradas nas views padrões." #: models.py:535 msgid "photo" msgstr "foto" #: models.py:593 models.py:771 msgid "name" msgstr "nome" #: models.py:672 msgid "rotate or flip" msgstr "rotacionar ou inverter" #: models.py:676 models.py:704 msgid "color" msgstr "cor" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "O valor 0.0 deixará a imagem em preto e branco, o fator 1.0 não alterará a mesma.A factor of 0.0 gives a black and white image, a factor of 1.0 gives the original image." #: models.py:680 msgid "brightness" msgstr "brilho" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "O valor 0.0 deixará a imagem totalmente preta, o valor 1.0 não alterará a mesma." #: models.py:684 msgid "contrast" msgstr "contraste" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "O valor 0.0 deixará a imagem totalmente cinza, o valor 1.0 não alterará a mesma." #: models.py:688 msgid "sharpness" msgstr "nitidez" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "O valor 0.0 deixará a imagem embaçada, o valor 1.0 não alterará a mesma." #: models.py:692 msgid "filters" msgstr "filtros" #: models.py:696 msgid "size" msgstr "tamanho" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Valor entre 0 e 1. O reflexo será proporcional a altura da imagem. O valor 0.0 não produzirá um reflexo e o valor 1.0 produzirá um reflexo com a mesma altura da imagem original." #: models.py:701 msgid "strength" msgstr "força" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "O valor inicial da opacidade do gradiente de reflexão." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "A cor de fundo do gradiente de reflexão. Ajuste de acordo com a cor de fundo de sua página." #: models.py:711 models.py:815 msgid "photo effect" msgstr "efeito de foto" #: models.py:712 msgid "photo effects" msgstr "efeitos de foto" #: models.py:743 msgid "style" msgstr "estilo" #: models.py:747 msgid "opacity" msgstr "opacidade" #: models.py:749 msgid "The opacity of the overlay." msgstr "A opacidade da sobre-imagem (overlay)" #: models.py:752 msgid "watermark" msgstr "marca d'água" #: models.py:753 msgid "watermarks" msgstr "marcas d'água" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "O nome do tamanho da foto somente poderá conter letras, números e underscores. Exemplos: \"thumbnail\", \"tela\", \"pequeno\", \"grande\"." #: models.py:782 msgid "width" msgstr "largura" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Se o valor da largura for \"0\", a imagem será redimensionada de acordo com a altura informada" #: models.py:786 msgid "height" msgstr "altura" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Se o valor da altura for \"0\", a imagem será redimensionada de acordo com a largura informada" #: models.py:790 msgid "quality" msgstr "qualidade" #: models.py:793 msgid "JPEG image quality." msgstr "qualidade da imagem JPEG" #: models.py:794 msgid "upscale images?" msgstr "Aumentar a dimensão das imagens?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Se selecionado, a imagem terá sua dimensão aumentada. Imagens cortadas serão redimensionadas independentemente desta configuração." #: models.py:800 msgid "crop to fit?" msgstr "cortar para conformar?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Se selecionado, a imagem será redimensionada e cortada para se conformar de acordo com as dimensões fornecidas." #: models.py:804 msgid "pre-cache?" msgstr "pré-cachear?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Se selecionado, o tamanho da foto será pré-cacheado logo após sua inclusão." #: models.py:807 msgid "increment view count?" msgstr "Incrementar o contador de visualizações?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Se selecionado, o \"view_count\" desta imagem será incrementado quando o tamanho da mesma for mostrado." #: models.py:821 msgid "watermark image" msgstr "imagem para marca d'água" #: models.py:826 msgid "photo size" msgstr "tamanho da foto" #: models.py:827 msgid "photo sizes" msgstr "tamanhos das fotos" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/ru/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # AduchiMergen , 2016 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-09-19 14:01+0000\n" "Last-Translator: AduchiMergen \n" "Language-Team: Russian (http://www.transifex.com/richardbarran/django-photologue/language/ru/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ru\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Загрузка Zip архива с фотографиями" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Название" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "Всем загруженным фотографиям будет присвоено название составленное из этого названия и порядкового номера изображения.
Это поле является обязательным, для создания новой галереи, но не является обязательным при добавлении к существующей галерее - если не указано, названия фото будут созданы из имени галереи." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Галерея" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Выберете галерею для загрузки фотографий. Оставьте поле пустым для создания новой галереи с соответствующим названием." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Описание" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Описание будет добавлено ко всем фотографиям." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Описание галереи" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Описание для этой галереи. Необходимо только для новой галереи." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Опубликовать" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Снимите эту галку, чтобы сделать загруженную галерею и включенные в нее фотографии приватными." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Уже существует галерея с таким названием" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Выберете существующую галерею, или введите название новой галереи" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Файл \"{filename}\" пропущен, так как находится в поддиректории; все изображения должны находиться в корневой директории архива." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Не удалось обработать файл \"{0}\" в .zip архиве." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Фотографии были добавлены в галерею \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "Очень низкое" #: models.py:99 msgid "Low" msgstr "Низкое" #: models.py:100 msgid "Medium-Low" msgstr "Чуть хуже среднего" #: models.py:101 msgid "Medium" msgstr "Среднее" #: models.py:102 msgid "Medium-High" msgstr "Чуть лучше среднего" #: models.py:103 msgid "High" msgstr "Высокое" #: models.py:104 msgid "Very High" msgstr "Очень высокое" #: models.py:109 msgid "Top" msgstr "Верхняя сторона" #: models.py:110 msgid "Right" msgstr "Правая сторона" #: models.py:111 msgid "Bottom" msgstr "Нижняя сторона" #: models.py:112 msgid "Left" msgstr "Левая сторона" #: models.py:113 msgid "Center (Default)" msgstr "Центр (По-умолчанию)" #: models.py:117 msgid "Flip left to right" msgstr "Зеркально отобразить слева направо" #: models.py:118 msgid "Flip top to bottom" msgstr "Зеркально отобразить сверху вниз" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Повернуть на 90 градусов против часовой стрелке" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Повернуть на 90 градусов по часовой стрелке" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Повернуть на 180 градусов" #: models.py:125 msgid "Tile" msgstr "Разместить мозайкой" #: models.py:126 msgid "Scale" msgstr "Масштабировать" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Цепочка фильтров для изображений (\"ФИЛЬТР_1->ФИЛЬТР_2->ФИЛЬТР_3\"). Фильтры будут применены по порядку. Доступны следующие фильтры: %s." #: models.py:158 msgid "date published" msgstr "дата публикации" #: models.py:160 models.py:513 msgid "title" msgstr "название" #: models.py:163 msgid "title slug" msgstr "слаг название" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "\"слаг\" - это уникальное читаемое название для объекта в адресной строке." #: models.py:167 models.py:596 msgid "description" msgstr "описание" #: models.py:169 models.py:524 msgid "is public" msgstr "публично" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Публичные галереи будут отображены в представлениях по-умолчанию." #: models.py:175 models.py:536 msgid "photos" msgstr "фотографии" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "галерея" #: models.py:186 msgid "galleries" msgstr "галереи" #: models.py:224 msgid "count" msgstr "количество" #: models.py:240 models.py:741 msgid "image" msgstr "изображение" #: models.py:243 msgid "date taken" msgstr "дата наложения" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "кол-во просмотров" #: models.py:250 msgid "crop from" msgstr "обрезанный из" #: models.py:259 msgid "effect" msgstr "эффект" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Размер миниатюры \"admin_thumbnail\" не определен." #: models.py:286 msgid "Thumbnail" msgstr "Миниатюра" #: models.py:516 msgid "slug" msgstr "слаг" #: models.py:520 msgid "caption" msgstr "Описание" #: models.py:522 msgid "date added" msgstr "дата добавления" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Публичные фотографии будут отображены в используемых представлениях по умолчанию." #: models.py:535 msgid "photo" msgstr "фотография" #: models.py:593 models.py:771 msgid "name" msgstr "имя" #: models.py:672 msgid "rotate or flip" msgstr "повернуть или зеркально отобразить" #: models.py:676 models.py:704 msgid "color" msgstr "цвет" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Значение коэффициента 0.0 дает черно-белое изображение, а значение коэффициента 1.0 дает оригинальное изображение." #: models.py:680 msgid "brightness" msgstr "яркость" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Значение коэффициента 0.0 дает черное изображение, а значение коэффициента 1.0 дает оригинальное изображение." #: models.py:684 msgid "contrast" msgstr "контраст" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Значение коэффициента 0.0 дает сплошное серое изображение, а значение коэффициента 1.0 дает оригинальное изображение." #: models.py:688 msgid "sharpness" msgstr "резкость" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Значение коэффициента 0.0 дает расплывчатое изображение, а значение коэффициента 1.0 дает оригинальное изображение." #: models.py:692 msgid "filters" msgstr "фильтры" #: models.py:696 msgid "size" msgstr "размер" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Высота отражения как процент от оригинального изображения. Значение коэффициента 0.0 не добавляет отображения, а значение коэффициента 1.0 добавляет отражение равное высоте оригинального изображения." #: models.py:701 msgid "strength" msgstr "сила" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Начальная непрозрачность градиента отражения." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Цвет фона градиента отражения. Отметьте это для соответствия цвету фона Вашей страницы." #: models.py:711 models.py:815 msgid "photo effect" msgstr "фотоэффект" #: models.py:712 msgid "photo effects" msgstr "фотоэффекты" #: models.py:743 msgid "style" msgstr "стиль" #: models.py:747 msgid "opacity" msgstr "непрозрачность" #: models.py:749 msgid "The opacity of the overlay." msgstr "Непрозрачность подложки." #: models.py:752 msgid "watermark" msgstr "водяной знак" #: models.py:753 msgid "watermarks" msgstr "водяные знаки" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Название размера фотографии должно содержать только буквы, числа и символы подчеркивания. Примеры: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "ширина" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Если ширина выставлена в \"0\", то изображение будет мастштабировано по высоте." #: models.py:786 msgid "height" msgstr "высота" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Если высота выставлена в \"0\", то изображение будет мастштабировано по ширине" #: models.py:790 msgid "quality" msgstr "качество" #: models.py:793 msgid "JPEG image quality." msgstr "качество JPEG изображения." #: models.py:794 msgid "upscale images?" msgstr "увеличивать изображения?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Если выбранно, то изображение будет масштабировано в случае необходимости, чтобы соответствовать габаритам. Обрезанные размеры будут увеличены в масштабе независимо от этой настройки." #: models.py:800 msgid "crop to fit?" msgstr "обрезать?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Если выбранно, то изображение будет масштабировано и обрезано, чтобы подходить по габаритам." #: models.py:804 msgid "pre-cache?" msgstr "кэшировать?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Если выбранно, то размер фотографии будет закэширован при добавлении фотографий" #: models.py:807 msgid "increment view count?" msgstr "увеличивать счетчик просмотров?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Если выбрано, то \"view_count\" изображения будет увеличено когда показывается этот размер фотографии." #: models.py:821 msgid "watermark image" msgstr "изображение водяного знака" #: models.py:826 msgid "photo size" msgstr "размер фотографии" #: models.py:827 msgid "photo sizes" msgstr "размеры фотографий" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Можно обрезать фото только если установленны длинна и ширина." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Загрузить zip архив" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Главная" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Загрузить" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n

На этой странице вы можете загрузить несколько изображений за один раз, положив их все в zip архив. Вы можете:

\n
    \n
  • Добавить фото в новую галерею.
  • \n
  • Или, создать новую галерею с указанным названием.
  • \n
" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Пожалуйста исправьте ошибку ниже." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Пожалуйста исправьте ошибки ниже." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Последнии фото-галереи" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Фильтр по годам" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Галереи не найдены" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Галереи за %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Галереи не найдены" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Посмотреть все галереи за месяц" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Галереи за %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Фильтр по дням" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Посмотреть все галереи за год" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Галереи за %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Фильтр по месяцам" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Посмотреть все галереи" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Опубликованно" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Все галереи" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Предыдущая" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\nстраница %(page_number)s из %(total_pages)s" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Следующая" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Последнии фотографии" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Фотографии не найдены" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Фотографии за %(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Все фотографии за месяц" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Фотографии за %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Все фотографии за год" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Фотографии за %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Посмотреть все фотографии" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Эта фотография найдена в следующих галереях" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Все фотографии" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/sk/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # 18f25ad6fa9930fc67cb11aca9d16a27, 2012-2013 # saboter , 2014 # saboter , 2014 # saboter , 2014 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-12-03 14:47+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Slovak (http://www.transifex.com/richardbarran/django-photologue/language/sk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: sk\n" "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "Galéria bola úspešne pridaná na %(site)s" msgstr[1] "Galérie boli úspešne pridané na %(site)s" msgstr[2] "Galérie boli úspešne pridané na %(site)s" msgstr[3] "Galérie boli úspešne pridané na %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Pridať vybrané galérie na aktuálnu stránku" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "Galéria bola úspešne odobratá zo %(site)s" msgstr[1] "Označené galérie boli úspešne odobrané zo %(site)s" msgstr[2] "Označené galérie boli úspešne odobrané zo %(site)s" msgstr[3] "Označené galérie boli úspešne odobrané zo %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Odobrať označené galérie z aktuálnej stránky" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Všetky fotografie z galérie %(galleries)s boli úspešne pridané na stránku %(site)s" msgstr[1] "Všetky fotografie z galérií %(galleries)s boli úspešne pridané na stránku %(site)s" msgstr[2] "Všetky fotografie z galérií %(galleries)s boli úspešne pridané na stránku %(site)s" msgstr[3] "Všetky fotografie z galérií %(galleries)s boli úspešne pridané na stránku %(site)s" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Pridať všetky fotografie z označených galérií do aktuálnej stránky" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Všetky fotografie z galérie %(galleries)s boli úspešne odobraté zo stránky %(site)s" msgstr[1] "Všetky fotografie z galérií %(galleries)s boli úspešne odobraté zo stránky %(site)s" msgstr[2] "Všetky fotografie z galérií %(galleries)s boli úspešne odobraté zo stránky %(site)s" msgstr[3] "Všetky fotografie z galérií %(galleries)s boli úspešne odobraté zo stránky %(site)s" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Odobrať všetky fotografie z vybraných galérií z aktuálnej stránky" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "Fotografia bola úspešne pridaná na %(site)s" msgstr[1] "Označené fotografie boli úspešne pridané na %(site)s" msgstr[2] "Označené fotografie boli úspešne pridané na %(site)s" msgstr[3] "Označené fotografie boli úspešne pridané na %(site)s" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Pridať označené fotografie na aktuálnu stránku" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "Fotografia bola úspešne odobratá zo %(site)s" msgstr[1] "Označené fotografie boli úspešne odobraté zo %(site)s" msgstr[2] "Označené fotografie boli úspešne odobraté zo %(site)s" msgstr[3] "Označené fotografie boli úspešne odobraté zo %(site)s" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr " Odobrať označené fotografie z aktuálnej stránky" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Nahrať ZIP archív s fotkami" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Titulok" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galéria" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Vyberte galériu do ktorej chcete pridať tieto obrázky. Pre vytvorenie novej galérie so zadaným názvom ponechajte toto pole prázdne." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Titulok" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Titulok bude pridaný do všetkých fotografií." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Popis" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Je verejná" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Odškrtnite, aby odovzdané galérie a zahrnuté fotografie boli súkromné." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Galéria s týmto názvom už existuje." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Vyberte existujúcu galériu, alebo vyplnte názov pre novú." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Ignorujem súbor \"{filename}\" nakoľko je v podadresári, všetky obrázky by mali byť priamo v zip archíve bez vnorenej adresárovej štruktúry." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Nepodarilo sa spracovať súbor \"{0}\" v .zip archíve." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Fotografie boli pridané do galérie \"{0}\". " #: models.py:98 msgid "Very Low" msgstr "Veľmi Nízka" #: models.py:99 msgid "Low" msgstr "Nízka" #: models.py:100 msgid "Medium-Low" msgstr "Stredne-Nízka" #: models.py:101 msgid "Medium" msgstr "Stredná" #: models.py:102 msgid "Medium-High" msgstr "Stredne-Vysoká" #: models.py:103 msgid "High" msgstr "Vysoká" #: models.py:104 msgid "Very High" msgstr "Veľmi Vysoká" #: models.py:109 msgid "Top" msgstr "Hore" #: models.py:110 msgid "Right" msgstr "Vpravo" #: models.py:111 msgid "Bottom" msgstr "Dole" #: models.py:112 msgid "Left" msgstr "Vľavo" #: models.py:113 msgid "Center (Default)" msgstr "Stred (Štandardne)" #: models.py:117 msgid "Flip left to right" msgstr "Prevrátiť zľava doprava" #: models.py:118 msgid "Flip top to bottom" msgstr "Prevrátiť zhora nadol" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Otočiť o 90 stupňov proti smeru hodinových ručičiek" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Otočiť o 90 stupňov v smere hodinových ručičiek" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Otočiť o 180 stupňov" #: models.py:125 msgid "Tile" msgstr "Dláždiť" #: models.py:126 msgid "Scale" msgstr "Dodržať mierku" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Zreťazte viac filtrov pomocou nasledovného vzoru \"FILTER_JEDNA->FILTER_DVA->FILTER_TRI\". Obrázkové filtre budú použité v poradí. Nasledujúce filtre sú k dispozícii: %s." #: models.py:158 msgid "date published" msgstr "dátum zverejnenia" #: models.py:160 models.py:513 msgid "title" msgstr "názov" #: models.py:163 msgid "title slug" msgstr "identifikátor názvu" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "\"Identifikátor\" je unikátny názov objektu vhodný pre použitie v URL." #: models.py:167 models.py:596 msgid "description" msgstr "popis" #: models.py:169 models.py:524 msgid "is public" msgstr "je verejný" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Verejné galérie budú zobrazené v štandardných zobrazeniach." #: models.py:175 models.py:536 msgid "photos" msgstr "fotografie" #: models.py:177 models.py:527 msgid "sites" msgstr "stránky" #: models.py:185 msgid "gallery" msgstr "galéria" #: models.py:186 msgid "galleries" msgstr "galérie" #: models.py:224 msgid "count" msgstr "počet" #: models.py:240 models.py:741 msgid "image" msgstr "obrázok" #: models.py:243 msgid "date taken" msgstr "dátum odfotenia" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "počet zobrazení" #: models.py:250 msgid "crop from" msgstr "orezať od" #: models.py:259 msgid "effect" msgstr "efekt" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Veľkosť fotografie \"admin_thumbnail\" nebola definovaná." #: models.py:286 msgid "Thumbnail" msgstr "Náhľad" #: models.py:516 msgid "slug" msgstr "identifikátor" #: models.py:520 msgid "caption" msgstr "titulok" #: models.py:522 msgid "date added" msgstr "dátum pridania" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Verejné fotografie budú zobrazené v štandardných zobrazeniach." #: models.py:535 msgid "photo" msgstr "fotografia" #: models.py:593 models.py:771 msgid "name" msgstr "meno" #: models.py:672 msgid "rotate or flip" msgstr "otočiť alebo prevrátiť" #: models.py:676 models.py:704 msgid "color" msgstr "farba" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Faktor 0.0 dáva čiernobiely obrázok, faktor 1.0 dáva pôvodný obrázok." #: models.py:680 msgid "brightness" msgstr "jas" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Faktor 0.0 dáva čierny obrázok, faktor 1.0 dáva pôvodný obrázok." #: models.py:684 msgid "contrast" msgstr "kontrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Faktor 0.0 dáva šedý obrázok, faktor 1.0 dáva pôvodný obrázok." #: models.py:688 msgid "sharpness" msgstr "ostrosť" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Faktor 0.0 dáva rozmazaný obrázok, faktor 1.0 dáva pôvodný obrázok." #: models.py:692 msgid "filters" msgstr "filtre" #: models.py:696 msgid "size" msgstr "veľkosť" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Výška odrazu v percentách pôvodného obrázku. Faktor 0.0 nepridáva žiadny odraz, faktor 1.0 pridáva odraz rovný výśke pôvodného obrázku." #: models.py:701 msgid "strength" msgstr "intenzita" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Počiatočná presvitnosť odrazového gradientu." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Farba pozadia odrazového gradientu. Túto položku nastavte tak, aby sa zhodovala s farbou pozadia vašej stránky." #: models.py:711 models.py:815 msgid "photo effect" msgstr "efekt fotografie" #: models.py:712 msgid "photo effects" msgstr "efekty fotografie" #: models.py:743 msgid "style" msgstr "štýl" #: models.py:747 msgid "opacity" msgstr "priesvitnosť" #: models.py:749 msgid "The opacity of the overlay." msgstr "Priesvitnosť prekrytia." #: models.py:752 msgid "watermark" msgstr "vodoznak" #: models.py:753 msgid "watermarks" msgstr "vodoznaky" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Názov veľkosti fotografie by mal obsahovať len písmená, čísla a podčiarky. Príklady: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "šírka" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Ak je šírka nastavená na \"0\" obrázok bude podľa mierky upravený na zadanú výšku." #: models.py:786 msgid "height" msgstr "výška" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Ak je výška nastavená na \"0\" obrázok bude podľa mierky upravený na zadanú šírku" #: models.py:790 msgid "quality" msgstr "kvalita" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG kvalita obrázku." #: models.py:794 msgid "upscale images?" msgstr "prispôsobiť obzázky?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Ak je táto položka vybratá a je to potrebné, obrázok bude prispôsobený tak, aby sa zmestil do zadaných rozmerov." #: models.py:800 msgid "crop to fit?" msgstr "orezať ak je to potrebné ?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Ak je táto položka vybratá, obrázok bude upravený a orezaný, aby sa zmestil do zadaných rozmerov." #: models.py:804 msgid "pre-cache?" msgstr "pred-generovať ?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Ak je táto položka vybratá, veľkosť fotografie bude pred-generovaná počas pridávania fotografií." #: models.py:807 msgid "increment view count?" msgstr "zvýšiť počet zobrazení?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Ak je táto položka vybratá, \"view_count\" obrázku bude zvýšený, keď sa zobrazí veľkosť tohto obrázku." #: models.py:821 msgid "watermark image" msgstr "použiť vodoznak na obrázok" #: models.py:826 msgid "photo size" msgstr "veľkosť fotografie" #: models.py:827 msgid "photo sizes" msgstr "veľkosti fotografie" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Fotky môžete orezať len vtedy, ak je nastavená šírka a výška." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Nahrať ZIP archív" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Domov" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Nahrať" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

Na tejto stránke môžete nahrať viacero fotiek naraz, pokiaľ ich\n\t\tumiestnite do jedného ZIP archívu. Fotografie môžu byť:

\n\t\t
    \n\t\t\t
  • Pridané do existujúcej galérie.
  • \n\t\t\t
  • Alebo bude vytvorená nová galérie so zadaným názvom.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Prosím opravte chybu uvedenú nižšie." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Prosím opravte chyby uvedené nižšie." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Nedávno pridané galérie" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Filtrovať podľa roku" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Neboli nájdené žiadne galérie" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Galérie pre %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Nenašli sa žiadne galérie." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Zobraziť všetky galérie pre daný mesiac" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Galérie pre %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Filtrovať podľa dní" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Zobraziť všetky galérie pre rok" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Galérie pre %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Filtrovať po mesiacoch" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Zobraziť všetky galérie" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Zverejnené" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Všetky galérie" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Predchádzajúci" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t stránka %(page_number)s z %(total_pages)s\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Nasledujúci" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Nedávno pridané fotografie" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Nenašli sa žiadne fotografie" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Fotografie pre %(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Zobraziť všetky fotografie pre mesiac" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Fotografie pre %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Zobraziť všetky fotografie pre rok" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Fotografie pre %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Zobraziť všetky fotografie" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Táto fotka sa nachádza v nasledujúcich galériách" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Všetky fotografie" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/tr/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # abc Def , 2020 # ali rıza keleş , 2009 # ali rıza keleş , 2009,2014 # ali rıza keleş , 2009 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2020-04-15 19:14+0000\n" "Last-Translator: abc Def \n" "Language-Team: Turkish (http://www.transifex.com/richardbarran/django-photologue/language/tr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "Galeri başarıyla şu siteye yüklendi: %(site)s" msgstr[1] "Galeriler başarıyla şu siteye yüklendi: %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Seçili galerileri mevcut siteye ekle" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "Galeri şu sitelerden başarıyla silindi: %(site)s" msgstr[1] "Seçili galeriler şu sitelerden başarıyla silindi: %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Seçili galerileri mevcut siteden çıkar" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Seçili galerilerin tüm fotolarını mevcut siteye ekle" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Seçili galerilerin tüm fotolarını mevcut siteden çıkar" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Seçili fotoları mevcut siteye ekle" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Seçili fotoları siteden kaldır" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Başlık" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Galeri" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Bu resimleri eklemek için bir galeri seçin. Verilen başlıktan yeni bir galeri oluşturmak için boş bırakın." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Altbaşlık" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Altyazı tüm fotolara eklenecektir." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Tanım" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Halka açık" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Yüklenen bu galeriyi ve içerisindeki tüm fotoları özel yapmak için işaretlemeyin." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Bu başlıkta bir galeri zaten var." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Mevcut bir galeriyi seçin veya yeni bir galeri için bir başlık girin." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "\"{filename}\" alt bir klasör içinde olduğu için gözardı edilecek; zip içindeki tüm fotolar en üst klasörde yer almalı. " #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Zip arşivindeki \"{0}\" dosyası işlenemedi." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "Çok düşük" #: models.py:99 msgid "Low" msgstr "Düşük" #: models.py:100 msgid "Medium-Low" msgstr "Orta-Düşük" #: models.py:101 msgid "Medium" msgstr "Orta" #: models.py:102 msgid "Medium-High" msgstr "Orta-Yüksek" #: models.py:103 msgid "High" msgstr "Yüksek" #: models.py:104 msgid "Very High" msgstr "Çok Yüksek" #: models.py:109 msgid "Top" msgstr "Üst" #: models.py:110 msgid "Right" msgstr "Sağ" #: models.py:111 msgid "Bottom" msgstr "Alt" #: models.py:112 msgid "Left" msgstr "Sol" #: models.py:113 msgid "Center (Default)" msgstr "Merkez (Varsayılan)" #: models.py:117 msgid "Flip left to right" msgstr "Soldan sağa ayna aksi" #: models.py:118 msgid "Flip top to bottom" msgstr "Yukardan aşağıya ayna aksi" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "90 derece saat yönü tersine döndür" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "90 derece saat yönüne döndür" #: models.py:121 msgid "Rotate 180 degrees" msgstr "180 derece döndür" #: models.py:125 msgid "Tile" msgstr "Kutu-kutu, kiremit tarzı" #: models.py:126 msgid "Scale" msgstr "Ölçekle" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Birden çok filtreyi şu şekilde uygulayabilirsin: \"ILK_FILTRE->IKINCI_FILTRE->UCUNCU_FILTRE\". Filtreler sırayla uygulanacaktır. Etkin filtreler: %s" #: models.py:158 msgid "date published" msgstr "yayınlama tarihi" #: models.py:160 models.py:513 msgid "title" msgstr "başlık" #: models.py:163 msgid "title slug" msgstr "başlık slug" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "\"Slug\" bir nesne için url dostu eşsiz bir başlıktır." #: models.py:167 models.py:596 msgid "description" msgstr "tanım" #: models.py:169 models.py:524 msgid "is public" msgstr "Görünür mü?" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Görülebilir galeriler varsayılan görünümlerde sergilenirler." #: models.py:175 models.py:536 msgid "photos" msgstr "fotolar" #: models.py:177 models.py:527 msgid "sites" msgstr "siteler" #: models.py:185 msgid "gallery" msgstr "galeri" #: models.py:186 msgid "galleries" msgstr "galeriler" #: models.py:224 msgid "count" msgstr "sayaç" #: models.py:240 models.py:741 msgid "image" msgstr "imaj" #: models.py:243 msgid "date taken" msgstr "çekilme tarihi" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "görüntüleme sayısı" #: models.py:250 msgid "crop from" msgstr "şuradan kes" #: models.py:259 msgid "effect" msgstr "efekt" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Bir \"admin_thumbnail\" foto ölçüleri tanımlanmamış." #: models.py:286 msgid "Thumbnail" msgstr "Minyatür" #: models.py:516 msgid "slug" msgstr "slug" #: models.py:520 msgid "caption" msgstr "alt yazı" #: models.py:522 msgid "date added" msgstr "eklenme tarihi" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Görülebilir fotolar varsayılan görünümlerde sergilenirler." #: models.py:535 msgid "photo" msgstr "foto" #: models.py:593 models.py:771 msgid "name" msgstr "isim" #: models.py:672 msgid "rotate or flip" msgstr "döndür ya da ayna aksi" #: models.py:676 models.py:704 msgid "color" msgstr "renk" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "0.0 siyah beyaz bir imaj, 1.0 orjinal imajı verir." #: models.py:680 msgid "brightness" msgstr "parlaklık" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "0.0 siyah bir imaj, 1.0 orjinal imajı verir." #: models.py:684 msgid "contrast" msgstr "kontrast" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "0.0 katı gri bir imaj, 1.0 orjinal imajı verir." #: models.py:688 msgid "sharpness" msgstr "keskinlik" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "0.0 blanık bir imaj, 1.0 orjinal imajı verir." #: models.py:692 msgid "filters" msgstr "filtreler" #: models.py:696 msgid "size" msgstr "boyutlar" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Yansımanın yüksekliği, orjinal imajın yüzdelik oranıdır. 0.0 hiç yansıma vermezken, 1.0 orjinal imaj yüksekliği kadar bir yansıma sağlar." #: models.py:701 msgid "strength" msgstr "gerilim" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Yansıma gradyantının başlangıç opaklığı." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Yansıma gradyantının arkaplan rengi. Bu ayarı sayfanızın arka plan rengine eş seçin." #: models.py:711 models.py:815 msgid "photo effect" msgstr "foto efekti" #: models.py:712 msgid "photo effects" msgstr "foto efektleri" #: models.py:743 msgid "style" msgstr "tarz" #: models.py:747 msgid "opacity" msgstr "opaklık" #: models.py:749 msgid "The opacity of the overlay." msgstr "Katmanın opaklığı." #: models.py:752 msgid "watermark" msgstr "su damga" #: models.py:753 msgid "watermarks" msgstr "su damgaları" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Foto ebat isimleri sadece hafler, rakamlar ve alt tireler içerebilir. Örnekler: \"minyaturler\", \"sergi\", \"kucuk\", \"ana_sayfa_vinyeti\"." #: models.py:782 msgid "width" msgstr "genişlik" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Eğer genişlik 0 verilirse, verilen yüksekliğe göre ölçeklenecek." #: models.py:786 msgid "height" msgstr "yükseklik" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Eğer yükseklik 0 verilirse, verilen genişliğe göre ölçeklenecek. " #: models.py:790 msgid "quality" msgstr "kalite" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG kalitesi" #: models.py:794 msgid "upscale images?" msgstr "imajı büyüt?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Eğer seçilirse, imaj verilen ölçülere göre gerekli ise büyütülecek." #: models.py:800 msgid "crop to fit?" msgstr "sığdırmak için kes?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Eğer seçilirse imaj ölçeklenecek ve verilen ebatlara sığdırmak için ölçeklenecek." #: models.py:804 msgid "pre-cache?" msgstr "wstępnie cachować?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Eğer seçilirse, fotolar eklenirken, ön belleklenecek." #: models.py:807 msgid "increment view count?" msgstr "görüntüleme sayısını arttır?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Eğer seçilirse, imajın \"görüntülenme sayısı\", foto görüntülendikçe artacak." #: models.py:821 msgid "watermark image" msgstr "su damgası imajı" #: models.py:826 msgid "photo size" msgstr "photo ebadı" #: models.py:827 msgid "photo sizes" msgstr "photo ebadları" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Eğer hem yükseklik hem de genişlik belirtilirse fotoğraf kırpılır." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Anasayfa" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Yükle" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Lütfen aşağıdaki hatayı düzeltin." #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Lütfen aşağıdaki hataları düzeltin." #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Son foto galeriler" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Yıla göre filtrele" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Hiç galeri bulunamadı" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "%(show_day)s galerileri" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Hiç galeri bulunamadı." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Ayın tüm galerileri" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "%(show_month)s galerileri" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Güne göre filtrele" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Yılın tüm galerilerini görüntüle" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "%(show_year)s galerileri" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Aya göre filtrele" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Tüm galerileri görüntüle" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Yayında" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Tüm galeriler" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Önceki" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t sayfa %(page_number)s / %(total_pages)s\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Sonraki" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Son fotolar" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Foto bulunamadı" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "%(show_day)s galerileri" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Ayın tüm fotoları" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "%(show_month)s fotoları" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Yılın tüm fotoları" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "%(show_year)s fotoları" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Tüm fotoları görüntüle" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Bu fotonun bulunduğu galeriler" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Tüm fotolar" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/tr_TR/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2012-09-03 20:28+0000\n" "Last-Translator: richardbarran \n" "Language-Team: Turkish (Turkey) (http://www.transifex.com/richardbarran/django-photologue/language/tr_TR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: tr_TR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" msgstr[1] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" msgstr[1] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "" #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "" #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "" #: forms.py:43 #| msgid "description" msgid "Description" msgstr "" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "" #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "" #: forms.py:72 msgid "A gallery with that title already exists." msgstr "" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "" #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "" #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "" #: models.py:98 msgid "Very Low" msgstr "" #: models.py:99 msgid "Low" msgstr "" #: models.py:100 msgid "Medium-Low" msgstr "" #: models.py:101 msgid "Medium" msgstr "" #: models.py:102 msgid "Medium-High" msgstr "" #: models.py:103 msgid "High" msgstr "" #: models.py:104 msgid "Very High" msgstr "" #: models.py:109 msgid "Top" msgstr "" #: models.py:110 msgid "Right" msgstr "" #: models.py:111 msgid "Bottom" msgstr "" #: models.py:112 msgid "Left" msgstr "" #: models.py:113 msgid "Center (Default)" msgstr "" #: models.py:117 msgid "Flip left to right" msgstr "" #: models.py:118 msgid "Flip top to bottom" msgstr "" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "" #: models.py:121 msgid "Rotate 180 degrees" msgstr "" #: models.py:125 msgid "Tile" msgstr "" #: models.py:126 msgid "Scale" msgstr "" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "" #: models.py:158 msgid "date published" msgstr "" #: models.py:160 models.py:513 msgid "title" msgstr "" #: models.py:163 msgid "title slug" msgstr "" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "" #: models.py:167 models.py:596 msgid "description" msgstr "" #: models.py:169 models.py:524 msgid "is public" msgstr "" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "" #: models.py:175 models.py:536 msgid "photos" msgstr "" #: models.py:177 models.py:527 msgid "sites" msgstr "" #: models.py:185 msgid "gallery" msgstr "" #: models.py:186 msgid "galleries" msgstr "" #: models.py:224 msgid "count" msgstr "" #: models.py:240 models.py:741 msgid "image" msgstr "" #: models.py:243 msgid "date taken" msgstr "" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "" #: models.py:247 msgid "view count" msgstr "" #: models.py:250 msgid "crop from" msgstr "" #: models.py:259 msgid "effect" msgstr "" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "" #: models.py:286 msgid "Thumbnail" msgstr "" #: models.py:516 msgid "slug" msgstr "" #: models.py:520 msgid "caption" msgstr "" #: models.py:522 msgid "date added" msgstr "" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "" #: models.py:535 msgid "photo" msgstr "" #: models.py:593 models.py:771 msgid "name" msgstr "" #: models.py:672 msgid "rotate or flip" msgstr "" #: models.py:676 models.py:704 msgid "color" msgstr "" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "" #: models.py:680 msgid "brightness" msgstr "" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "" #: models.py:684 msgid "contrast" msgstr "" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "" #: models.py:688 msgid "sharpness" msgstr "" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "" #: models.py:692 msgid "filters" msgstr "" #: models.py:696 msgid "size" msgstr "" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "" #: models.py:701 msgid "strength" msgstr "" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "" #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "" #: models.py:711 models.py:815 msgid "photo effect" msgstr "" #: models.py:712 msgid "photo effects" msgstr "" #: models.py:743 msgid "style" msgstr "" #: models.py:747 msgid "opacity" msgstr "" #: models.py:749 msgid "The opacity of the overlay." msgstr "" #: models.py:752 msgid "watermark" msgstr "" #: models.py:753 msgid "watermarks" msgstr "" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "" #: models.py:782 msgid "width" msgstr "" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "" #: models.py:786 msgid "height" msgstr "" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "" #: models.py:790 msgid "quality" msgstr "" #: models.py:793 msgid "JPEG image quality." msgstr "" #: models.py:794 msgid "upscale images?" msgstr "" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "" #: models.py:800 msgid "crop to fit?" msgstr "" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "" #: models.py:804 msgid "pre-cache?" msgstr "" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "" #: models.py:807 msgid "increment view count?" msgstr "" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "" #: models.py:821 msgid "watermark image" msgstr "" #: models.py:826 msgid "photo size" msgstr "" #: models.py:827 msgid "photo sizes" msgstr "" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/uk/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: # Dmytro Litvinov , 2017 msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2017-12-03 14:47+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Ukrainian (http://www.transifex.com/richardbarran/django-photologue/language/uk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: uk\n" "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "Наступна фотографія не відноситься до того ж сайту(сайтам), що і галерея, то ж вона не буде відображена %(photo_list)s" msgstr[1] "Наступні фотографії не відносяться до того ж сайту(сайтам), що і галерея, то ж вони не будуть відображені %(photo_list)s." msgstr[2] "Наступні фотографії не відносяться до того ж сайту(сайтам), що і галерея, то ж вони не будуть відображені %(photo_list)s" msgstr[3] "Наступні фотографії не відносяться до того ж сайту(сайтам), що і галерея, то ж вони не будуть відображені %(photo_list)s" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "Галерея була успішно додана до %(site)s" msgstr[1] "Галереї були успішно додані до%(site)s" msgstr[2] "Галереї були успішно додані до %(site)s" msgstr[3] "Галереї були успішно додані до %(site)s" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "Додати вибрані галереї до поточного сайту" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "Галерея була успішно видалена з %(site)s" msgstr[1] "Вибрані галереї були успішно видалені з %(site)s" msgstr[2] "Вибрані галереї були успішно видалені з %(site)s" msgstr[3] "Вибрані галереї були успішно видалені з %(site)s" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "Видалити вибрані галереї з поточного сайту" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "Всі фото в галереї %(galleries)s були успішно додані до %(site)s" msgstr[1] "Всі фото в галереях %(galleries)sбули успішно додані до %(site)s" msgstr[2] "Всі фото в галереях %(galleries)s були успішно додані до %(site)s" msgstr[3] "Всі фото в галереях %(galleries)s були успішно додані до %(site)s" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "Додати всі фото з вибраних галерей до поточного сайту" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "Усі фото з галереї %(galleries)s були упішно видели з%(site)s" msgstr[1] "Усі фото в галереях %(galleries)s були успішно видалені з %(site)s" msgstr[2] "Усі фото в галереях %(galleries)s були успішно видалені з %(site)s" msgstr[3] "Усі фото в галереях %(galleries)s були успішно видалені з %(site)s" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "Видалити всі фото у вибраних галереях з поточного сайту" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "Вибрані фото були успішно додані до сайту %(site)s" msgstr[1] "Вибрані фото були успішно додані до сайтів %(site)s" msgstr[2] "Вибрані фото були успішно додані до сайтів %(site)s" msgstr[3] "Вибрані фото були успішно додані до сайтів %(site)s" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "Додати вибрані фото до поточного сайту" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "Фото було успішно видалено з %(site)s" msgstr[1] "Вибрані фотографії було успішно видалено з %(site)s" msgstr[2] "Вибрані фотографії було успішно видалено з %(site)s" msgstr[3] "Вибрані фотографії було успішно видалено з %(site)s" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "Видатили вибрані фото з поточного сайту" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "Завантажити Zip архів з фотографіями" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "Назва" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "Всім завантаженим фото отримають назву, яка складається з цієї назви + послідовний номер. Це поле необхідне для створення нової галереї, але воно необов'язкове, коли додаєшь до існуючої галереї - якщо назва не вказана, назва фотографій буде складана з існюючого ім'я галереї." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "Галерея" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "Виберіть галерею для завантаження фотографій. Залиште поле пустим, щоб створити нову галерею з відповідною назвою." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "Підпис" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "Підпис був додав до всіх фотографій." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "Опис" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "Опис цієї Галереї. Необхідно тільки для нових галерей." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "Чи є загальнодоступним" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "Зніміть цю галку, щоб зробити завантажену галерею і всі фото в ній приватними." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "Вже є така галерея з такою назвою." #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "Виберіть існуюючу галерею чи введіть назву для нової галереї." #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "Файл \"{filename}\" був пропущений, так як знаходиться в піддиректорії; всі фото повинні бути в кореневій директорії архіву." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "Не вдалось опрацювати файл \"{0}\" в .zip архіві." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "Фото були додані до галереї \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "Дуже низьке" #: models.py:99 msgid "Low" msgstr "Низьке" #: models.py:100 msgid "Medium-Low" msgstr "Чуть гірше за середнє" #: models.py:101 msgid "Medium" msgstr "Середнє" #: models.py:102 msgid "Medium-High" msgstr "Чуть краще середнього" #: models.py:103 msgid "High" msgstr "Високе" #: models.py:104 msgid "Very High" msgstr "Дуже високе" #: models.py:109 msgid "Top" msgstr "Верхня сторона" #: models.py:110 msgid "Right" msgstr "Права сторона" #: models.py:111 msgid "Bottom" msgstr "Нижня сторона" #: models.py:112 msgid "Left" msgstr "Ліва сторона" #: models.py:113 msgid "Center (Default)" msgstr "Центр (за замовчуванням)" #: models.py:117 msgid "Flip left to right" msgstr "Зеркально відобразити зліва направо" #: models.py:118 msgid "Flip top to bottom" msgstr "Зеркально відобразити зверху вниз" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "Повернути на 90 градусів проти годинникової стрілки" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "Повернути на 90 градусів за годинниковою стрілкою" #: models.py:121 msgid "Rotate 180 degrees" msgstr "Повернути на 180 градусів" #: models.py:125 msgid "Tile" msgstr "Розмістити мозайкою" #: models.py:126 msgid "Scale" msgstr "Масштабувати" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "Ланцюг з багатьма фільтрами використовує наступний шаблон \"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Фільтри для зображень будуть прийматись у порядку черги. Наступні фільтри доступні: %s" #: models.py:158 msgid "date published" msgstr "дата публікації" #: models.py:160 models.py:513 msgid "title" msgstr "назва" #: models.py:163 msgid "title slug" msgstr "слаг назви" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "\"слаг\" - унікальна читабельна назва для об'єкта в адресній стрічці." #: models.py:167 models.py:596 msgid "description" msgstr "опис" #: models.py:169 models.py:524 msgid "is public" msgstr "публічно" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "Публічні галереї будуть відображенні на сторінках по замовчуванням." #: models.py:175 models.py:536 msgid "photos" msgstr "фотографії" #: models.py:177 models.py:527 msgid "sites" msgstr "сайти" #: models.py:185 msgid "gallery" msgstr "галерея" #: models.py:186 msgid "galleries" msgstr "галереї" #: models.py:224 msgid "count" msgstr "кількість" #: models.py:240 models.py:741 msgid "image" msgstr "зображення" #: models.py:243 msgid "date taken" msgstr "вибрана дата" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "Дані зображення були використані; воно утриється із зображення EXIF даних." #: models.py:247 msgid "view count" msgstr "кількість просмотрів" #: models.py:250 msgid "crop from" msgstr "обрізаний з" #: models.py:259 msgid "effect" msgstr "ефект" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "Розмір \"admin_thumbnal\" не визначен." #: models.py:286 msgid "Thumbnail" msgstr "Мініатюра" #: models.py:516 msgid "slug" msgstr "слаг" #: models.py:520 msgid "caption" msgstr "підпис" #: models.py:522 msgid "date added" msgstr "дата завантаження" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "Публічні фотографії будуть відображатись у використовуваємих уявленнях по замовчуванню." #: models.py:535 msgid "photo" msgstr "фото" #: models.py:593 models.py:771 msgid "name" msgstr "ім'я" #: models.py:672 msgid "rotate or flip" msgstr "повернути чи зеркально відобразити" #: models.py:676 models.py:704 msgid "color" msgstr "колір" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "Значення 0.0 дає чорно-біле відображення, а 1.0 віддає оригінальне зображення." #: models.py:680 msgid "brightness" msgstr "яскравість" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "Значення 0.0 дає чорне зображення, а 1.0 - оригінальне зображення." #: models.py:684 msgid "contrast" msgstr "контраст" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "Значення 0.0 дає суцільно сіре відображення, а 1.0 віддає оригінальне зображення." #: models.py:688 msgid "sharpness" msgstr "різкість" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "Значення 0.0 дає розмите відображення, а 1.0 віддає оригінальне зображення." #: models.py:692 msgid "filters" msgstr "фільтри" #: models.py:696 msgid "size" msgstr "розмір" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "Висота відбиття у відсотках від оригінального зображення. Коефіцієнт 0.0 не додає відбиття, коефіціент 1.0 додає відбиття рівний висоті оригінального зображення. " #: models.py:701 msgid "strength" msgstr "сила" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "Початкова непрозорість градієнта відблиска." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "Колір фона градієнта відображення. Відмітьте це для відповідності кольора фона вашої сторінки." #: models.py:711 models.py:815 msgid "photo effect" msgstr "фото-ефект" #: models.py:712 msgid "photo effects" msgstr "фото-ефекти" #: models.py:743 msgid "style" msgstr "стиль" #: models.py:747 msgid "opacity" msgstr "непрозорість" #: models.py:749 msgid "The opacity of the overlay." msgstr "Непрозорість накладення." #: models.py:752 msgid "watermark" msgstr "водяний знак" #: models.py:753 msgid "watermarks" msgstr "водяні знаки" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "Название размера фотографии должно содержать только буквы, числа и символы подчеркивания. Примеры: \\\"thumbnail\\\", \\\"display\\\", \\\"small\\\", \\\"main_page_widget\\\n\nНазва розміра фотографії повинно мати тільки букви, числа та символи підкреслення. Наприклад: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "ширина" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "Якщо ширина виставлено в \"0\", то зображення буде масштабоване по висоті." #: models.py:786 msgid "height" msgstr "висота" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "Якщо висота виставлено в \"0\", то зображення буде масштабоване по ширині" #: models.py:790 msgid "quality" msgstr "якість" #: models.py:793 msgid "JPEG image quality." msgstr "якість JPEG зображення" #: models.py:794 msgid "upscale images?" msgstr "збільшити фото?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "Якщо вибрано, то зображення буде масштабоване у випадку необхідності, щоб відповідати розмірам. Обрізані розміри будуть масшабовані незалежно від цієї настройки." #: models.py:800 msgid "crop to fit?" msgstr "обрізати?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "Якщо вибрано, то зображення буде замаштабоване та обрізано по розміру." #: models.py:804 msgid "pre-cache?" msgstr "кешувати?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "Якщо вибрано, то розмір фото буде закешован при додаванні фото." #: models.py:807 msgid "increment view count?" msgstr "збільшити лічильник просмотрів?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "Якщо вибрано, то \"view_count\" зображення буде збільшено, коли показується цей розмір фотографії" #: models.py:821 msgid "watermark image" msgstr "Водяний знак" #: models.py:826 msgid "photo size" msgstr "розмір фотографії" #: models.py:827 msgid "photo sizes" msgstr "Розміри фотографій" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "Можна обрізати фотографії, якщо встановлені ширина на висота." #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "Завантажити zip архів" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "Головна" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "Завантажити" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

На цій сторінці Ви можете загрузити багато фото за раз, поклавши їх у zip архів. Ви можете:

\n\t\t
    \n\t\t\t
  • Додати до існуючої галереї.
  • \n\t\t\t
  • Або, створити нову галерею з вказаною назвою.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "Будь ласка, виправте помилку нижче" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "Будь ласка, виправте помилки нижче" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "Останні фото-галереї" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "Фільтр по рокам" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "Галерей не знайдено" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "Галереї за %(show_day)s" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "Галерей не знайдено." #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "Продивитись всі галереї за місяць" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "Галереї за %(show_month)s" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "Фільтр по дням" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "Продивитись всі галереї за місяць" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "Галереї за %(show_year)s" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "Фільтр по місяцям" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "Продивитись всі галереї" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "Опубліковано" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "Всі галереї" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "Попередня" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t сторінка %(page_number)s з %(total_pages)s" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "Наступна" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "Останні фотографії" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "Фотографій не знайдено" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "Фото за %(show_day)s" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "Всі фото за місяць" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "Фото за %(show_month)s" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "Всі фото за рік" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "Фото за %(show_year)s" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "Продивись всі фотографії" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "Це фото знайдено у наступних галереях" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "Всі фото" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/locale/zh_Hans/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Translators: msgid "" msgstr "" "Project-Id-Version: Photologue\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-09-03 21:22+0000\n" "PO-Revision-Date: 2020-04-20 21:11+0000\n" "Last-Translator: Richard Barran \n" "Language-Team: Chinese Simplified (http://www.transifex.com/richardbarran/django-photologue/language/zh-Hans/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh-Hans\n" "Plural-Forms: nplurals=1; plural=0;\n" #: admin.py:61 #, python-format msgid "" "The following photo does not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgid_plural "" "The following photos do not belong to the same site(s) as the gallery, so " "will never be displayed: %(photo_list)s." msgstr[0] "" #: admin.py:73 #, python-format msgid "The gallery has been successfully added to %(site)s" msgid_plural "The galleries have been successfully added to %(site)s" msgstr[0] "" #: admin.py:80 msgid "Add selected galleries to the current site" msgstr "添加选中图库到当前站点" #: admin.py:86 #, python-format msgid "The gallery has been successfully removed from %(site)s" msgid_plural "" "The selected galleries have been successfully removed from %(site)s" msgstr[0] "" #: admin.py:93 msgid "Remove selected galleries from the current site" msgstr "从当前站点中移除选中图库" #: admin.py:100 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully added to %(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully added to " "%(site)s" msgstr[0] "" #: admin.py:108 msgid "Add all photos of selected galleries to the current site" msgstr "添加选中图库中的所有照片至当前站点" #: admin.py:115 #, python-format msgid "" "All photos in gallery %(galleries)s have been successfully removed from " "%(site)s" msgid_plural "" "All photos in galleries %(galleries)s have been successfully removed from " "%(site)s" msgstr[0] "" #: admin.py:123 msgid "Remove all photos in selected galleries from the current site" msgstr "从当前站点中移除选中图库中的所有照片" #: admin.py:164 #, python-format msgid "The photo has been successfully added to %(site)s" msgid_plural "The selected photos have been successfully added to %(site)s" msgstr[0] "" #: admin.py:171 msgid "Add selected photos to the current site" msgstr "添加选中照片至当前站点" #: admin.py:177 #, python-format msgid "The photo has been successfully removed from %(site)s" msgid_plural "" "The selected photos have been successfully removed from %(site)s" msgstr[0] "" #: admin.py:184 msgid "Remove selected photos from the current site" msgstr "从当前站点中移除选中照片" #: admin.py:198 templates/admin/photologue/photo/upload_zip.html:27 msgid "Upload a zip archive of photos" msgstr "上传照片的 zip 存档" #: forms.py:27 #| msgid "title" msgid "Title" msgstr "标题" #: forms.py:30 msgid "" "All uploaded photos will be given a title made up of this title + a " "sequential number.
This field is required if creating a new gallery, but " "is optional when adding to an existing gallery - if not supplied, the photo " "titles will be creating from the existing gallery name." msgstr "所有已上传的照片将被冠以一个由 此标题 + 有序数字 组成的新标题.
此字段在创建新图库时是必需的, 但是在被添加到某个已经存在的图库时则是可选的 - 如果未填写此字段, 照片标题将由这个已经存在的图库标题按上述规则组合而成." #: forms.py:36 #| msgid "gallery" msgid "Gallery" msgstr "图库" #: forms.py:38 msgid "" "Select a gallery to add these images to. Leave this empty to create a new " "gallery from the supplied title." msgstr "选择一个图库以将这些图片添加进去. 如若留空, 则以所提供的标题来创建一个新图库." #: forms.py:40 #| msgid "caption" msgid "Caption" msgstr "副标题" #: forms.py:42 msgid "Caption will be added to all photos." msgstr "副标题将会被添加到所有照片中." #: forms.py:43 #| msgid "description" msgid "Description" msgstr "描述信息" #: forms.py:45 #| msgid "A description of this Gallery." msgid "A description of this Gallery. Only required for new galleries." msgstr "此图库的描述信息. 此字段只有对新创建的图库是必需的." #: forms.py:46 #| msgid "is public" msgid "Is public" msgstr "是否公开" #: forms.py:49 msgid "" "Uncheck this to make the uploaded gallery and included photographs private." msgstr "反选此处将使得上传的图库及包含的照片设为私有." #: forms.py:72 msgid "A gallery with that title already exists." msgstr "已经存在一个名称相同的图库" #: forms.py:82 #| msgid "Select a .zip file of images to upload into a new Gallery." msgid "Select an existing gallery, or enter a title for a new gallery." msgstr "选择一个现有图库, 或者键入标题以创建一个新图库" #: forms.py:115 #, python-brace-format msgid "" "Ignoring file \"{filename}\" as it is in a subfolder; all images should be " "in the top folder of the zip." msgstr "忽略文件 \"{filename}\" 因为它存在于子目录当中; 所有图像应当存在于 zip 存档的顶层目录中." #: forms.py:156 #, python-brace-format msgid "Could not process file \"{0}\" in the .zip archive." msgstr "无法处理 .zip 存档当中的文件 \"{0}\"." #: forms.py:172 #, python-brace-format msgid "The photos have been added to gallery \"{0}\"." msgstr "照片已被添加至图库 \"{0}\"." #: models.py:98 msgid "Very Low" msgstr "非常低" #: models.py:99 msgid "Low" msgstr "低" #: models.py:100 msgid "Medium-Low" msgstr "较低" #: models.py:101 msgid "Medium" msgstr "中等" #: models.py:102 msgid "Medium-High" msgstr "较高" #: models.py:103 msgid "High" msgstr "高" #: models.py:104 msgid "Very High" msgstr "非常高" #: models.py:109 msgid "Top" msgstr "顶部" #: models.py:110 msgid "Right" msgstr "右侧" #: models.py:111 msgid "Bottom" msgstr "底部" #: models.py:112 msgid "Left" msgstr "左侧" #: models.py:113 msgid "Center (Default)" msgstr "居中 (默认)" #: models.py:117 msgid "Flip left to right" msgstr "左右翻转" #: models.py:118 msgid "Flip top to bottom" msgstr "上下翻转" #: models.py:119 msgid "Rotate 90 degrees counter-clockwise" msgstr "逆时针旋转 90 度" #: models.py:120 msgid "Rotate 90 degrees clockwise" msgstr "顺时针旋转 90 度" #: models.py:121 msgid "Rotate 180 degrees" msgstr "旋转 180 度" #: models.py:125 msgid "Tile" msgstr "平铺" #: models.py:126 msgid "Scale" msgstr "缩放" #: models.py:136 #, python-format msgid "" "Chain multiple filters using the following pattern " "\"FILTER_ONE->FILTER_TWO->FILTER_THREE\". Image filters will be applied in " "order. The following filters are available: %s." msgstr "请按 \"FILTER_ONE->FILTER_TWO->FILTER_THREE\" 的格式来串联多个滤镜. 将按照顺序应用图像滤镜. 可用的滤镜有: %s." #: models.py:158 msgid "date published" msgstr "发布日期" #: models.py:160 models.py:513 msgid "title" msgstr "标题" #: models.py:163 msgid "title slug" msgstr "标题缩写" #: models.py:166 models.py:519 msgid "A \"slug\" is a unique URL-friendly title for an object." msgstr "标题缩写是一个唯一的、易于在 URL 当中使用和解析一个对象的标题" #: models.py:167 models.py:596 msgid "description" msgstr "描述" #: models.py:169 models.py:524 msgid "is public" msgstr "是否公开" #: models.py:171 msgid "Public galleries will be displayed in the default views." msgstr "公开图库将被显示在默认视图中." #: models.py:175 models.py:536 msgid "photos" msgstr "照片" #: models.py:177 models.py:527 msgid "sites" msgstr "站点" #: models.py:185 msgid "gallery" msgstr "图库" #: models.py:186 msgid "galleries" msgstr "图库" #: models.py:224 msgid "count" msgstr "数量" #: models.py:240 models.py:741 msgid "image" msgstr "图像" #: models.py:243 msgid "date taken" msgstr "拍摄日期" #: models.py:246 msgid "Date image was taken; is obtained from the image EXIF data." msgstr "图像拍摄时的日期; 包含在图像的 EXIF 元数据中" #: models.py:247 msgid "view count" msgstr "浏览次数" #: models.py:250 msgid "crop from" msgstr "裁剪自" #: models.py:259 msgid "effect" msgstr "效果" #: models.py:279 msgid "An \"admin_thumbnail\" photo size has not been defined." msgstr "\"admin_thumbnail\" 图像尺寸尚未定义." #: models.py:286 msgid "Thumbnail" msgstr "缩略图" #: models.py:516 msgid "slug" msgstr "缩写" #: models.py:520 msgid "caption" msgstr "副标题" #: models.py:522 msgid "date added" msgstr "添加日期" #: models.py:526 msgid "Public photographs will be displayed in the default views." msgstr "公开照片将被显示在默认视图中." #: models.py:535 msgid "photo" msgstr "照片" #: models.py:593 models.py:771 msgid "name" msgstr "名称" #: models.py:672 msgid "rotate or flip" msgstr "旋转或翻转" #: models.py:676 models.py:704 msgid "color" msgstr "色彩" #: models.py:678 msgid "" "A factor of 0.0 gives a black and white image, a factor of 1.0 gives the " "original image." msgstr "数值为 0.0 时将产生黑白图像, 数值为 1.0 时将产生原图." #: models.py:680 msgid "brightness" msgstr "亮度" #: models.py:682 msgid "" "A factor of 0.0 gives a black image, a factor of 1.0 gives the original " "image." msgstr "数值为 0.0 时将产生纯黑色图像, 数值为 1.0 时将产生原图." #: models.py:684 msgid "contrast" msgstr "对比度" #: models.py:686 msgid "" "A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original" " image." msgstr "数值为 0.0 时将产生纯灰色图像, 数值为 1.0 时将产生原图." #: models.py:688 msgid "sharpness" msgstr "锐度" #: models.py:690 msgid "" "A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original " "image." msgstr "数值为 0.0 时将产生模糊图像, 数值为 1.0 时将产生原图." #: models.py:692 msgid "filters" msgstr "滤镜" #: models.py:696 msgid "size" msgstr "尺寸" #: models.py:698 msgid "" "The height of the reflection as a percentage of the orignal image. A factor " "of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the " "height of the orignal image." msgstr "倒影的高度占原图高度的百分比. 数值为 0.0 时将不添加倒影, 数值为 1.0 时将添加一个与原图高度相同的倒影." #: models.py:701 msgid "strength" msgstr "拉伸" #: models.py:703 msgid "The initial opacity of the reflection gradient." msgstr "倒影渐变的初始不透明度." #: models.py:707 msgid "" "The background color of the reflection gradient. Set this to match the " "background color of your page." msgstr "倒影渐变的背景色. 请将其设置为展示页面的背景色. " #: models.py:711 models.py:815 msgid "photo effect" msgstr "照片效果" #: models.py:712 msgid "photo effects" msgstr "照片效果" #: models.py:743 msgid "style" msgstr "样式" #: models.py:747 msgid "opacity" msgstr "不透明度" #: models.py:749 msgid "The opacity of the overlay." msgstr "遮罩的不透明度" #: models.py:752 msgid "watermark" msgstr "水印" #: models.py:753 msgid "watermarks" msgstr "水印" #: models.py:775 msgid "" "Photo size name should contain only letters, numbers and underscores. " "Examples: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." msgstr "照片尺寸名称应当仅包含字母, 数字和下划线. 示例: \"thumbnail\", \"display\", \"small\", \"main_page_widget\"." #: models.py:782 msgid "width" msgstr "宽度" #: models.py:785 msgid "If width is set to \"0\" the image will be scaled to the supplied height." msgstr "如果宽度设置为 \"0\" 则图像将以高度为准进行缩放." #: models.py:786 msgid "height" msgstr "高度" #: models.py:789 msgid "If height is set to \"0\" the image will be scaled to the supplied width" msgstr "如果高度设置为 \"0\" 则图像将以宽度为准进行缩放." #: models.py:790 msgid "quality" msgstr "质量" #: models.py:793 msgid "JPEG image quality." msgstr "JPEG 图像质量" #: models.py:794 msgid "upscale images?" msgstr "放大图像?" #: models.py:796 msgid "" "If selected the image will be scaled up if necessary to fit the supplied " "dimensions. Cropped sizes will be upscaled regardless of this setting." msgstr "如果勾选此项, 图像将按需放大以适应所提供的尺寸.裁剪后的尺寸将忽略此项设定并被放大." #: models.py:800 msgid "crop to fit?" msgstr "裁剪以适应?" #: models.py:802 msgid "" "If selected the image will be scaled and cropped to fit the supplied " "dimensions." msgstr "如果勾选此项, 图像将被缩放并裁剪以适应所提供的尺寸." #: models.py:804 msgid "pre-cache?" msgstr "预缓存?" #: models.py:806 msgid "If selected this photo size will be pre-cached as photos are added." msgstr "如果勾选此项, 当添加照片被添加时, 将被处理为该尺寸并预先缓存." #: models.py:807 msgid "increment view count?" msgstr "累计预览次数?" #: models.py:809 msgid "" "If selected the image's \"view_count\" will be incremented when this photo " "size is displayed." msgstr "如果勾选此项, 图像的 \"预览次数\" 将在该尺寸的图像被显示时一并累计." #: models.py:821 msgid "watermark image" msgstr "水印图像" #: models.py:826 msgid "photo size" msgstr "图像尺寸" #: models.py:827 msgid "photo sizes" msgstr "图像尺寸" #: models.py:844 msgid "Can only crop photos if both width and height dimensions are set." msgstr "仅当宽度和高度都被设置时裁剪照片" #: templates/admin/photologue/photo/change_list.html:9 msgid "Upload a zip archive" msgstr "上传 zip 存档" #: templates/admin/photologue/photo/upload_zip.html:15 msgid "Home" msgstr "首页" #: templates/admin/photologue/photo/upload_zip.html:19 #: templates/admin/photologue/photo/upload_zip.html:53 msgid "Upload" msgstr "上传" #: templates/admin/photologue/photo/upload_zip.html:28 msgid "" "\n" "\t\t

On this page you can upload many photos at once, as long as you have\n" "\t\tput them all in a zip archive. The photos can be either:

\n" "\t\t
    \n" "\t\t\t
  • Added to an existing gallery.
  • \n" "\t\t\t
  • Otherwise, a new gallery is created with the supplied title.
  • \n" "\t\t
\n" "\t" msgstr "\n\t\t

在此页面, 你可以一次性上传包含多张图片的 zip 存档,\n\t\t上传的图片可以被:

\n\t\t
    \n\t\t\t
  • 添加至现有图库.
  • \n\t\t\t
  • 或者, 以提供的标题创建一个新图库.
  • \n\t\t
\n\t" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the error below." msgstr "请更正以下错误" #: templates/admin/photologue/photo/upload_zip.html:39 msgid "Please correct the errors below." msgstr "请更正以下错误" #: templates/photologue/gallery_archive.html:4 #: templates/photologue/gallery_archive.html:9 msgid "Latest photo galleries" msgstr "最新照片图库" #: templates/photologue/gallery_archive.html:16 #: templates/photologue/photo_archive.html:16 msgid "Filter by year" msgstr "按年过滤" #: templates/photologue/gallery_archive.html:32 #: templates/photologue/gallery_list.html:26 msgid "No galleries were found" msgstr "未找到图库" #: templates/photologue/gallery_archive_day.html:4 #: templates/photologue/gallery_archive_day.html:9 #, python-format msgid "Galleries for %(show_day)s" msgstr "%(show_day)s 的图库" #: templates/photologue/gallery_archive_day.html:18 #: templates/photologue/gallery_archive_month.html:32 #: templates/photologue/gallery_archive_year.html:32 msgid "No galleries were found." msgstr "未找到图库" #: templates/photologue/gallery_archive_day.html:22 msgid "View all galleries for month" msgstr "按月份浏览所有图库" #: templates/photologue/gallery_archive_month.html:4 #: templates/photologue/gallery_archive_month.html:9 #, python-format msgid "Galleries for %(show_month)s" msgstr "%(show_month)s 的图库" #: templates/photologue/gallery_archive_month.html:16 #: templates/photologue/photo_archive_month.html:16 msgid "Filter by day" msgstr "按天过滤" #: templates/photologue/gallery_archive_month.html:35 msgid "View all galleries for year" msgstr "按年份浏览所有图库" #: templates/photologue/gallery_archive_year.html:4 #: templates/photologue/gallery_archive_year.html:9 #, python-format msgid "Galleries for %(show_year)s" msgstr "%(show_year)s 的图库" #: templates/photologue/gallery_archive_year.html:16 #: templates/photologue/photo_archive_year.html:17 msgid "Filter by month" msgstr "按月过滤" #: templates/photologue/gallery_archive_year.html:35 #: templates/photologue/gallery_detail.html:17 msgid "View all galleries" msgstr "浏览所有图库" #: templates/photologue/gallery_detail.html:10 #: templates/photologue/gallery_list.html:16 #: templates/photologue/includes/gallery_sample.html:8 #: templates/photologue/photo_detail.html:10 msgid "Published" msgstr "已发布的" #: templates/photologue/gallery_list.html:4 #: templates/photologue/gallery_list.html:9 msgid "All galleries" msgstr "所有图库" #: templates/photologue/includes/paginator.html:6 #: templates/photologue/includes/paginator.html:8 msgid "Previous" msgstr "上一页" #: templates/photologue/includes/paginator.html:11 #, python-format msgid "" "\n" "\t\t\t\t page %(page_number)s of %(total_pages)s\n" "\t\t\t\t" msgstr "\n\t\t\t\t 第 %(page_number)s / %(total_pages)s 页\n\t\t\t\t" #: templates/photologue/includes/paginator.html:16 #: templates/photologue/includes/paginator.html:18 msgid "Next" msgstr "下一页" #: templates/photologue/photo_archive.html:4 #: templates/photologue/photo_archive.html:9 msgid "Latest photos" msgstr "最新照片" #: templates/photologue/photo_archive.html:34 #: templates/photologue/photo_archive_day.html:21 #: templates/photologue/photo_archive_month.html:36 #: templates/photologue/photo_archive_year.html:37 #: templates/photologue/photo_list.html:21 msgid "No photos were found" msgstr "未找到照片" #: templates/photologue/photo_archive_day.html:4 #: templates/photologue/photo_archive_day.html:9 #, python-format msgid "Photos for %(show_day)s" msgstr "%(show_day)s 的照片" #: templates/photologue/photo_archive_day.html:24 msgid "View all photos for month" msgstr "按月份浏览所有照片" #: templates/photologue/photo_archive_month.html:4 #: templates/photologue/photo_archive_month.html:9 #, python-format msgid "Photos for %(show_month)s" msgstr "%(show_month)s 的照片" #: templates/photologue/photo_archive_month.html:39 msgid "View all photos for year" msgstr "按年份浏览所有照片" #: templates/photologue/photo_archive_year.html:4 #: templates/photologue/photo_archive_year.html:10 #, python-format msgid "Photos for %(show_year)s" msgstr "%(show_year)s 的照片" #: templates/photologue/photo_archive_year.html:40 msgid "View all photos" msgstr "浏览所有照片" #: templates/photologue/photo_detail.html:22 msgid "This photo is found in the following galleries" msgstr "此照片在下列图库中被找到" #: templates/photologue/photo_list.html:4 #: templates/photologue/photo_list.html:9 msgid "All photos" msgstr "所有照片" #~ msgid "" #~ "All uploaded photos will be given a title made up of this title + a " #~ "sequential number." #~ msgstr "" #~ "All photos in the gallery will be given a title made up of the gallery title" #~ " + a sequential number." #~ msgid "Separate tags with spaces, put quotes around multiple-word tags." #~ msgstr "Separate tags with spaces, put quotes around multiple-word tags." #~ msgid "Django-tagging was not found, tags will be treated as plain text." #~ msgstr "Django-tagging was not found, tags will be treated as plain text." #~ msgid "tags" #~ msgstr "tags" #~ msgid "images file (.zip)" #~ msgstr "images file (.zip)" #~ msgid "gallery upload" #~ msgstr "gallery upload" #~ msgid "gallery uploads" #~ msgstr "gallery uploads" ================================================ FILE: photologue/management/__init__.py ================================================ ================================================ FILE: photologue/management/commands/__init__.py ================================================ from photologue.models import PhotoSize def get_response(msg, func=int, default=None): while True: resp = input(msg) if not resp and default is not None: return default try: return func(resp) except: print('Invalid input.') def create_photosize(name, width=0, height=0, crop=False, pre_cache=False, increment_count=False): try: size = PhotoSize.objects.get(name=name) exists = True except PhotoSize.DoesNotExist: size = PhotoSize(name=name) exists = False if exists: msg = 'A "%s" photo size already exists. Do you want to replace it? (yes, no):' % name if not get_response(msg, lambda inp: inp == 'yes', False): return print('\nWe will now define the "%s" photo size:\n' % size) w = get_response('Width (in pixels):', lambda inp: int(inp), width) h = get_response('Height (in pixels):', lambda inp: int(inp), height) c = get_response('Crop to fit? (yes, no):', lambda inp: inp == 'yes', crop) p = get_response('Pre-cache? (yes, no):', lambda inp: inp == 'yes', pre_cache) i = get_response('Increment count? (yes, no):', lambda inp: inp == 'yes', increment_count) size.width = w size.height = h size.crop = c size.pre_cache = p size.increment_count = i size.save() print('\nA "%s" photo size has been created.\n' % name) return size ================================================ FILE: photologue/management/commands/plcache.py ================================================ from django.core.management.base import BaseCommand, CommandError from photologue.models import ImageModel, PhotoSize class Command(BaseCommand): help = 'Manages Photologue cache file for the given sizes.' def add_arguments(self, parser): parser.add_argument('sizes', nargs='*', type=str, help='Name of the photosize.') parser.add_argument('--reset', action='store_true', default=False, dest='reset', help='Reset photo cache before generating.') def handle(self, *args, **options): reset = options['reset'] sizes = options['sizes'] if not sizes: photosizes = PhotoSize.objects.all() else: photosizes = PhotoSize.objects.filter(name__in=sizes) if not len(photosizes): raise CommandError('No photo sizes were found.') print('Caching photos, this may take a while...') for cls in ImageModel.__subclasses__(): for photosize in photosizes: print('Cacheing %s size images' % photosize.name) for obj in cls.objects.all(): if reset: obj.remove_size(photosize) obj.create_size(photosize) ================================================ FILE: photologue/management/commands/plcreatesize.py ================================================ from django.core.management.base import BaseCommand from photologue.management.commands import create_photosize class Command(BaseCommand): help = ('Creates a new Photologue photo size interactively.') requires_model_validation = True can_import_settings = True def add_arguments(self, parser): parser.add_argument('name', type=str, help='Name of the new photo size') def handle(self, *args, **options): create_photosize(options['name']) ================================================ FILE: photologue/management/commands/plflush.py ================================================ from django.core.management.base import BaseCommand, CommandError from photologue.models import ImageModel, PhotoSize class Command(BaseCommand): help = 'Clears the Photologue cache for the given sizes.' def add_arguments(self, parser): parser.add_argument('sizes', nargs='*', type=str, help='Name of the photosize.') def handle(self, *args, **options): sizes = options['sizes'] if not sizes: photosizes = PhotoSize.objects.all() else: photosizes = PhotoSize.objects.filter(name__in=sizes) if not len(photosizes): raise CommandError('No photo sizes were found.') print('Flushing cache...') for cls in ImageModel.__subclasses__(): for photosize in photosizes: print('Flushing %s size images' % photosize.name) for obj in cls.objects.all(): obj.remove_size(photosize) ================================================ FILE: photologue/managers.py ================================================ from django.conf import settings from django.db.models.query import QuerySet class SharedQueries: """Some queries that are identical for Gallery and Photo.""" def is_public(self): """Trivial filter - will probably become more complex as time goes by!""" return self.filter(is_public=True) def on_site(self): """Return objects linked to the current site only.""" return self.filter(sites__id=settings.SITE_ID) class GalleryQuerySet(SharedQueries, QuerySet): pass class PhotoQuerySet(SharedQueries, QuerySet): pass ================================================ FILE: photologue/migrations/0001_initial.py ================================================ from django.db import models, migrations import photologue.models import django.utils.timezone import django.core.validators import sortedm2m.fields class Migration(migrations.Migration): dependencies = [ ('sites', '0001_initial'), ] operations = [ migrations.CreateModel( name='Gallery', fields=[ ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), ('date_added', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date published')), ('title', models.CharField(max_length=50, verbose_name='title', unique=True)), ('slug', models.SlugField(help_text='A "slug" is a unique URL-friendly title for an object.', verbose_name='title slug', unique=True)), ('description', models.TextField(blank=True, verbose_name='description')), ('is_public', models.BooleanField(help_text='Public galleries will be displayed in the default views.', verbose_name='is public', default=True)), ('tags', photologue.models.TagField(max_length=255, help_text='Django-tagging was not found, tags will be treated as plain text.', blank=True, verbose_name='tags')), ('sites', models.ManyToManyField(blank=True, verbose_name='sites', null=True, to='sites.Site')), ], options={ 'get_latest_by': 'date_added', 'verbose_name': 'gallery', 'ordering': ['-date_added'], 'verbose_name_plural': 'galleries', }, bases=(models.Model,), ), migrations.CreateModel( name='GalleryUpload', fields=[ ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), ('zip_file', models.FileField(help_text='Select a .zip file of images to upload into a new Gallery.', verbose_name='images file (.zip)', upload_to='photologue/temp')), ('title', models.CharField(max_length=50, help_text='All uploaded photos will be given a title made up of this title + a sequential number.', verbose_name='title')), ('caption', models.TextField(help_text='Caption will be added to all photos.', blank=True, verbose_name='caption')), ('description', models.TextField(help_text='A description of this Gallery.', blank=True, verbose_name='description')), ('is_public', models.BooleanField(help_text='Uncheck this to make the uploaded gallery and included photographs private.', verbose_name='is public', default=True)), ('tags', models.CharField(max_length=255, help_text='Django-tagging was not found, tags will be treated as plain text.', blank=True, verbose_name='tags')), ('gallery', models.ForeignKey(blank=True, verbose_name='gallery', null=True, help_text='Select a gallery to add these images to. Leave this empty to create a new gallery from the supplied title.', to='photologue.Gallery', on_delete=models.CASCADE)), ], options={ 'verbose_name': 'gallery upload', 'verbose_name_plural': 'gallery uploads', }, bases=(models.Model,), ), migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), ('image', models.ImageField(upload_to=photologue.models.get_storage_path, verbose_name='image')), ('date_taken', models.DateTimeField(verbose_name='date taken', blank=True, editable=False, null=True)), ('view_count', models.PositiveIntegerField(verbose_name='view count', default=0, editable=False)), ('crop_from', models.CharField(max_length=10, default='center', blank=True, verbose_name='crop from', choices=[('top', 'Top'), ('right', 'Right'), ('bottom', 'Bottom'), ('left', 'Left'), ('center', 'Center (Default)')])), ('title', models.CharField(max_length=50, verbose_name='title', unique=True)), ('slug', models.SlugField(help_text='A "slug" is a unique URL-friendly title for an object.', verbose_name='slug', unique=True)), ('caption', models.TextField(blank=True, verbose_name='caption')), ('date_added', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ('is_public', models.BooleanField(help_text='Public photographs will be displayed in the default views.', verbose_name='is public', default=True)), ('tags', photologue.models.TagField(max_length=255, help_text='Django-tagging was not found, tags will be treated as plain text.', blank=True, verbose_name='tags')), ('sites', models.ManyToManyField(blank=True, verbose_name='sites', null=True, to='sites.Site')), ], options={ 'get_latest_by': 'date_added', 'verbose_name': 'photo', 'ordering': ['-date_added'], 'verbose_name_plural': 'photos', }, bases=(models.Model,), ), migrations.AddField( model_name='gallery', name='photos', field=sortedm2m.fields.SortedManyToManyField(blank=True, verbose_name='photos', null=True, to='photologue.Photo'), preserve_default=True, ), migrations.CreateModel( name='PhotoEffect', fields=[ ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), ('name', models.CharField(max_length=30, verbose_name='name', unique=True)), ('description', models.TextField(blank=True, verbose_name='description')), ('transpose_method', models.CharField(max_length=15, blank=True, verbose_name='rotate or flip', choices=[('FLIP_LEFT_RIGHT', 'Flip left to right'), ('FLIP_TOP_BOTTOM', 'Flip top to bottom'), ('ROTATE_90', 'Rotate 90 degrees counter-clockwise'), ('ROTATE_270', 'Rotate 90 degrees clockwise'), ('ROTATE_180', 'Rotate 180 degrees')])), ('color', models.FloatField(help_text='A factor of 0.0 gives a black and white image, a factor of 1.0 gives the original image.', verbose_name='color', default=1.0)), ('brightness', models.FloatField(help_text='A factor of 0.0 gives a black image, a factor of 1.0 gives the original image.', verbose_name='brightness', default=1.0)), ('contrast', models.FloatField(help_text='A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the original image.', verbose_name='contrast', default=1.0)), ('sharpness', models.FloatField(help_text='A factor of 0.0 gives a blurred image, a factor of 1.0 gives the original image.', verbose_name='sharpness', default=1.0)), ('filters', models.CharField(max_length=200, help_text='Chain multiple filters using the following pattern "FILTER_ONE->FILTER_TWO->FILTER_THREE". Image filters will be applied in order. The following filters are available: BLUR, CONTOUR, DETAIL, EDGE_ENHANCE, EDGE_ENHANCE_MORE, EMBOSS, FIND_EDGES, SHARPEN, SMOOTH, SMOOTH_MORE.', blank=True, verbose_name='filters')), ('reflection_size', models.FloatField(help_text='The height of the reflection as a percentage of the orignal image. A factor of 0.0 adds no reflection, a factor of 1.0 adds a reflection equal to the height of the orignal image.', verbose_name='size', default=0)), ('reflection_strength', models.FloatField(help_text='The initial opacity of the reflection gradient.', verbose_name='strength', default=0.6)), ('background_color', models.CharField(max_length=7, help_text='The background color of the reflection gradient. Set this to match the background color of your page.', verbose_name='color', default='#FFFFFF')), ], options={ 'verbose_name': 'photo effect', 'verbose_name_plural': 'photo effects', }, bases=(models.Model,), ), migrations.AddField( model_name='photo', name='effect', field=models.ForeignKey(blank=True, verbose_name='effect', null=True, to='photologue.PhotoEffect', on_delete=models.CASCADE), preserve_default=True, ), migrations.CreateModel( name='PhotoSize', fields=[ ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), ('name', models.CharField(max_length=40, help_text='Photo size name should contain only letters, numbers and underscores. Examples: "thumbnail", "display", "small", "main_page_widget".', verbose_name='name', unique=True, validators=[django.core.validators.RegexValidator(regex='^[a-z0-9_]+$', message='Use only plain lowercase letters (ASCII), numbers and underscores.')])), ('width', models.PositiveIntegerField(help_text='If width is set to "0" the image will be scaled to the supplied height.', verbose_name='width', default=0)), ('height', models.PositiveIntegerField(help_text='If height is set to "0" the image will be scaled to the supplied width', verbose_name='height', default=0)), ('quality', models.PositiveIntegerField(help_text='JPEG image quality.', verbose_name='quality', choices=[(30, 'Very Low'), (40, 'Low'), (50, 'Medium-Low'), (60, 'Medium'), (70, 'Medium-High'), (80, 'High'), (90, 'Very High')], default=70)), ('upscale', models.BooleanField(help_text='If selected the image will be scaled up if necessary to fit the supplied dimensions. Cropped sizes will be upscaled regardless of this setting.', verbose_name='upscale images?', default=False)), ('crop', models.BooleanField(help_text='If selected the image will be scaled and cropped to fit the supplied dimensions.', verbose_name='crop to fit?', default=False)), ('pre_cache', models.BooleanField(help_text='If selected this photo size will be pre-cached as photos are added.', verbose_name='pre-cache?', default=False)), ('increment_count', models.BooleanField(help_text='If selected the image\'s "view_count" will be incremented when this photo size is displayed.', verbose_name='increment view count?', default=False)), ('effect', models.ForeignKey(blank=True, verbose_name='photo effect', null=True, to='photologue.PhotoEffect', on_delete=models.CASCADE)), ], options={ 'verbose_name': 'photo size', 'ordering': ['width', 'height'], 'verbose_name_plural': 'photo sizes', }, bases=(models.Model,), ), migrations.CreateModel( name='Watermark', fields=[ ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), ('name', models.CharField(max_length=30, verbose_name='name', unique=True)), ('description', models.TextField(blank=True, verbose_name='description')), ('image', models.ImageField(upload_to='photologue/watermarks', verbose_name='image')), ('style', models.CharField(max_length=5, default='scale', verbose_name='style', choices=[('tile', 'Tile'), ('scale', 'Scale')])), ('opacity', models.FloatField(help_text='The opacity of the overlay.', verbose_name='opacity', default=1)), ], options={ 'verbose_name': 'watermark', 'verbose_name_plural': 'watermarks', }, bases=(models.Model,), ), migrations.AddField( model_name='photosize', name='watermark', field=models.ForeignKey(blank=True, verbose_name='watermark image', null=True, to='photologue.Watermark', on_delete=models.CASCADE), preserve_default=True, ), ] ================================================ FILE: photologue/migrations/0002_photosize_data.py ================================================ from django.db import models, migrations def initial_photosizes(apps, schema_editor): PhotoSize = apps.get_model('photologue', 'PhotoSize') # If there are already Photosizes, then we are upgrading an existing # installation, we don't want to auto-create some PhotoSizes. if PhotoSize.objects.all().count() > 0: return PhotoSize.objects.create(name='admin_thumbnail', width=100, height=75, crop=True, pre_cache=True, increment_count=False) PhotoSize.objects.create(name='thumbnail', width=100, height=75, crop=True, pre_cache=True, increment_count=False) PhotoSize.objects.create(name='display', width=400, crop=False, pre_cache=True, increment_count=True) class Migration(migrations.Migration): dependencies = [ ('photologue', '0001_initial'), ('contenttypes', '0002_remove_content_type_name'), ] operations = [ migrations.RunPython(initial_photosizes), ] ================================================ FILE: photologue/migrations/0003_auto_20140822_1716.py ================================================ from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('photologue', '0002_photosize_data'), ] operations = [ migrations.AlterField( model_name='galleryupload', name='title', field=models.CharField(null=True, help_text='All uploaded photos will be given a title made up of this title + a sequential number.', max_length=50, verbose_name='title', blank=True), ), ] ================================================ FILE: photologue/migrations/0004_auto_20140915_1259.py ================================================ from django.db import models, migrations import sortedm2m.fields class Migration(migrations.Migration): dependencies = [ ('photologue', '0003_auto_20140822_1716'), ] operations = [ migrations.AlterField( model_name='gallery', name='photos', field=sortedm2m.fields.SortedManyToManyField(to='photologue.Photo', related_name='galleries', null=True, verbose_name='photos', blank=True, help_text=None), ), migrations.AlterField( model_name='photo', name='effect', field=models.ForeignKey(to='photologue.PhotoEffect', blank=True, related_name='photo_related', verbose_name='effect', null=True, on_delete=models.CASCADE), ), migrations.AlterField( model_name='photosize', name='effect', field=models.ForeignKey(to='photologue.PhotoEffect', blank=True, related_name='photo_sizes', verbose_name='photo effect', null=True, on_delete=models.CASCADE), ), migrations.AlterField( model_name='photosize', name='watermark', field=models.ForeignKey(to='photologue.Watermark', blank=True, related_name='photo_sizes', verbose_name='watermark image', null=True, on_delete=models.CASCADE), ), ] ================================================ FILE: photologue/migrations/0005_auto_20141027_1552.py ================================================ from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('photologue', '0004_auto_20140915_1259'), ] operations = [ migrations.AlterField( model_name='photo', name='title', field=models.CharField(unique=True, max_length=60, verbose_name='title'), preserve_default=True, ), ] ================================================ FILE: photologue/migrations/0006_auto_20141028_2005.py ================================================ from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('photologue', '0005_auto_20141027_1552'), ] operations = [ migrations.RemoveField( model_name='galleryupload', name='gallery', ), migrations.DeleteModel( name='GalleryUpload', ), ] ================================================ FILE: photologue/migrations/0007_auto_20150404_1737.py ================================================ from django.db import models, migrations import sortedm2m.fields class Migration(migrations.Migration): dependencies = [ ('photologue', '0006_auto_20141028_2005'), ] operations = [ migrations.AlterField( model_name='gallery', name='photos', field=sortedm2m.fields.SortedManyToManyField(help_text=None, related_name='galleries', verbose_name='photos', to='photologue.Photo', blank=True), ), migrations.AlterField( model_name='gallery', name='sites', field=models.ManyToManyField(to='sites.Site', verbose_name='sites', blank=True), ), migrations.AlterField( model_name='photo', name='sites', field=models.ManyToManyField(to='sites.Site', verbose_name='sites', blank=True), ), ] ================================================ FILE: photologue/migrations/0008_auto_20150509_1557.py ================================================ from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('photologue', '0007_auto_20150404_1737'), ] operations = [ migrations.RemoveField( model_name='gallery', name='tags', ), migrations.RemoveField( model_name='photo', name='tags', ), ] ================================================ FILE: photologue/migrations/0009_auto_20160102_0904.py ================================================ # Generated by Django 1.9 on 2016-01-02 09:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('photologue', '0008_auto_20150509_1557'), ] operations = [ migrations.AlterField( model_name='photo', name='date_taken', field=models.DateTimeField(blank=True, help_text='Date image was taken; is obtained from the image EXIF data.', null=True, verbose_name='date taken'), ), ] ================================================ FILE: photologue/migrations/0010_auto_20160105_1307.py ================================================ # Generated by Django 1.9 on 2016-01-05 13:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('photologue', '0009_auto_20160102_0904'), ] operations = [ migrations.AlterField( model_name='gallery', name='slug', field=models.SlugField(help_text='A "slug" is a unique URL-friendly title for an object.', max_length=250, unique=True, verbose_name='title slug'), ), migrations.AlterField( model_name='gallery', name='title', field=models.CharField(max_length=250, unique=True, verbose_name='title'), ), migrations.AlterField( model_name='photo', name='slug', field=models.SlugField(help_text='A "slug" is a unique URL-friendly title for an object.', max_length=250, unique=True, verbose_name='slug'), ), migrations.AlterField( model_name='photo', name='title', field=models.CharField(max_length=250, unique=True, verbose_name='title'), ), ] ================================================ FILE: photologue/migrations/0011_auto_20190223_2138.py ================================================ # Generated by Django 2.1.7 on 2019-02-23 21:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('photologue', '0010_auto_20160105_1307'), ] operations = [ migrations.AlterField( model_name='photoeffect', name='filters', field=models.CharField(blank=True, help_text='Chain multiple filters using the following pattern "FILTER_ONE->FILTER_TWO->FILTER_THREE". Image filters will be applied in order. The following filters are available: BLUR, CONTOUR, DETAIL, EDGE_ENHANCE, EDGE_ENHANCE_MORE, EMBOSS, FIND_EDGES, Kernel, SHARPEN, SMOOTH, SMOOTH_MORE.', max_length=200, verbose_name='filters'), ), ] ================================================ FILE: photologue/migrations/0012_alter_photo_effect.py ================================================ # Generated by Django 4.0.2 on 2022-02-23 09:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('photologue', '0011_auto_20190223_2138'), ] operations = [ migrations.AlterField( model_name='photo', name='effect', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_related', to='photologue.photoeffect', verbose_name='effect'), ), ] ================================================ FILE: photologue/migrations/0013_alter_watermark_image.py ================================================ # Generated by Django 4.2.3 on 2023-07-28 18:39 from django.db import migrations, models import pathlib class Migration(migrations.Migration): dependencies = [ ('photologue', '0012_alter_photo_effect'), ] operations = [ migrations.AlterField( model_name='watermark', name='image', field=models.ImageField(upload_to=pathlib.PurePosixPath('photologue/watermarks'), verbose_name='image'), ), ] ================================================ FILE: photologue/migrations/__init__.py ================================================ ================================================ FILE: photologue/models.py ================================================ import logging import os import pathlib import random import unicodedata from datetime import datetime from functools import partial from importlib import import_module from inspect import isclass from io import BytesIO import exifread from django.conf import settings from django.contrib.sites.models import Site from django.core.exceptions import ValidationError from django.core.files.base import ContentFile from django.core.files.storage import default_storage from django.core.validators import RegexValidator from django.db import models from django.db.models.signals import post_save from django.template.defaultfilters import slugify from django.urls import reverse from django.utils.encoding import filepath_to_uri, force_str, smart_str from django.utils.safestring import mark_safe from django.utils.timezone import now from django.utils.translation import gettext_lazy as _ from PIL import Image, ImageEnhance, ImageFile, ImageFilter from sortedm2m.fields import SortedManyToManyField from .managers import GalleryQuerySet, PhotoQuerySet from .utils.reflection import add_reflection from .utils.watermark import apply_watermark logger = logging.getLogger('photologue.models') # Default limit for gallery.latest LATEST_LIMIT = getattr(settings, 'PHOTOLOGUE_GALLERY_LATEST_LIMIT', None) # Number of random images from the gallery to display. SAMPLE_SIZE = getattr(settings, 'PHOTOLOGUE_GALLERY_SAMPLE_SIZE', 5) # max_length setting for the ImageModel ImageField IMAGE_FIELD_MAX_LENGTH = getattr(settings, 'PHOTOLOGUE_IMAGE_FIELD_MAX_LENGTH', 100) # Path to sample image SAMPLE_IMAGE_PATH = getattr(settings, 'PHOTOLOGUE_SAMPLE_IMAGE_PATH', os.path.join( os.path.dirname(__file__), 'res', 'sample.jpg')) # Modify image file buffer size. ImageFile.MAXBLOCK = getattr(settings, 'PHOTOLOGUE_MAXBLOCK', 256 * 2 ** 10) # Photologue image path relative to media root PHOTOLOGUE_DIR = getattr(settings, 'PHOTOLOGUE_DIR', 'photologue') # Look for user function to define file paths PHOTOLOGUE_PATH = getattr(settings, 'PHOTOLOGUE_PATH', None) if PHOTOLOGUE_PATH is not None: if callable(PHOTOLOGUE_PATH): get_storage_path = PHOTOLOGUE_PATH else: parts = PHOTOLOGUE_PATH.split('.') module_name = '.'.join(parts[:-1]) module = import_module(module_name) get_storage_path = getattr(module, parts[-1]) else: def get_storage_path(instance, filename): fn = unicodedata.normalize('NFKD', force_str(filename)).encode('ascii', 'ignore').decode('ascii') return os.path.join(PHOTOLOGUE_DIR, 'photos', fn) # Support CACHEDIR.TAG spec for backups for ignoring cache dir. # See http://www.brynosaurus.com/cachedir/spec.html PHOTOLOGUE_CACHEDIRTAG = os.path.join(PHOTOLOGUE_DIR, "photos", "cache", "CACHEDIR.TAG") if not default_storage.exists(PHOTOLOGUE_CACHEDIRTAG): default_storage.save(PHOTOLOGUE_CACHEDIRTAG, ContentFile( b"Signature: 8a477f597d28d172789f06886806bc55")) # Exif Orientation values # Value 0thRow 0thColumn # 1 top left # 2 top right # 3 bottom right # 4 bottom left # 5 left top # 6 right top # 7 right bottom # 8 left bottom # Image Orientations (according to EXIF informations) that needs to be # transposed and appropriate action IMAGE_EXIF_ORIENTATION_MAP = { 2: Image.Transpose.FLIP_LEFT_RIGHT, 3: Image.Transpose.ROTATE_180, 6: Image.Transpose.ROTATE_270, 8: Image.Transpose.ROTATE_90, } # Quality options for JPEG images JPEG_QUALITY_CHOICES = ( (30, _('Very Low')), (40, _('Low')), (50, _('Medium-Low')), (60, _('Medium')), (70, _('Medium-High')), (80, _('High')), (90, _('Very High')), ) # choices for new crop_anchor field in Photo CROP_ANCHOR_CHOICES = ( ('top', _('Top')), ('right', _('Right')), ('bottom', _('Bottom')), ('left', _('Left')), ('center', _('Center (Default)')), ) IMAGE_TRANSPOSE_CHOICES = ( ('FLIP_LEFT_RIGHT', _('Flip left to right')), ('FLIP_TOP_BOTTOM', _('Flip top to bottom')), ('ROTATE_90', _('Rotate 90 degrees counter-clockwise')), ('ROTATE_270', _('Rotate 90 degrees clockwise')), ('ROTATE_180', _('Rotate 180 degrees')), ) WATERMARK_STYLE_CHOICES = ( ('tile', _('Tile')), ('scale', _('Scale')), ) # Prepare a list of image filters filter_names = [] for n in dir(ImageFilter): klass = getattr(ImageFilter, n) if isclass(klass) and issubclass(klass, ImageFilter.BuiltinFilter) and \ hasattr(klass, 'name'): filter_names.append(klass.__name__) IMAGE_FILTERS_HELP_TEXT = _('Chain multiple filters using the following pattern "FILTER_ONE->FILTER_TWO->FILTER_THREE"' '. Image filters will be applied in order. The following filters are available: %s.' % (', '.join(filter_names))) size_method_map = {} class TagField(models.CharField): """Tags have been removed from Photologue, but the migrations still refer to them so this Tagfield definition is left here. """ def __init__(self, **kwargs): default_kwargs = {'max_length': 255, 'blank': True} default_kwargs.update(kwargs) super().__init__(**default_kwargs) def get_internal_type(self): return 'CharField' class Gallery(models.Model): date_added = models.DateTimeField(_('date published'), default=now) title = models.CharField(_('title'), max_length=250, unique=True) slug = models.SlugField(_('title slug'), unique=True, max_length=250, help_text=_('A "slug" is a unique URL-friendly title for an object.')) description = models.TextField(_('description'), blank=True) is_public = models.BooleanField(_('is public'), default=True, help_text=_('Public galleries will be displayed ' 'in the default views.')) photos = SortedManyToManyField('photologue.Photo', related_name='galleries', verbose_name=_('photos'), blank=True) sites = models.ManyToManyField(Site, verbose_name=_('sites'), blank=True) objects = GalleryQuerySet.as_manager() class Meta: ordering = ['-date_added'] get_latest_by = 'date_added' verbose_name = _('gallery') verbose_name_plural = _('galleries') def __str__(self): return self.title def get_absolute_url(self): return reverse('photologue:pl-gallery', args=[self.slug]) def latest(self, limit=LATEST_LIMIT, public=True): if not limit: limit = self.photo_count() if public: return self.public()[:limit] else: return self.photos.filter(sites__id=settings.SITE_ID)[:limit] def sample(self, count=None, public=True): """Return a sample of photos, ordered at random. If the 'count' is not specified, it will return a number of photos limited by the GALLERY_SAMPLE_SIZE setting. """ if not count: count = SAMPLE_SIZE if count > self.photo_count(): count = self.photo_count() if public: photo_set = self.public() else: photo_set = self.photos.filter(sites__id=settings.SITE_ID) return random.sample(list(set(photo_set)), count) def photo_count(self, public=True): """Return a count of all the photos in this gallery.""" if public: return self.public().count() else: return self.photos.filter(sites__id=settings.SITE_ID).count() photo_count.short_description = _('count') def public(self): """Return a queryset of all the public photos in this gallery.""" return self.photos.is_public().filter(sites__id=settings.SITE_ID) def orphaned_photos(self): """ Return all photos that belong to this gallery but don't share the gallery's site. """ return self.photos.filter(is_public=True) \ .exclude(sites__id__in=self.sites.all()) class ImageModel(models.Model): image = models.ImageField(_('image'), max_length=IMAGE_FIELD_MAX_LENGTH, upload_to=get_storage_path) date_taken = models.DateTimeField(_('date taken'), null=True, blank=True, help_text=_('Date image was taken; is obtained from the image EXIF data.')) view_count = models.PositiveIntegerField(_('view count'), default=0, editable=False) crop_from = models.CharField(_('crop from'), blank=True, max_length=10, default='center', choices=CROP_ANCHOR_CHOICES) effect = models.ForeignKey('photologue.PhotoEffect', null=True, blank=True, related_name="%(class)s_related", verbose_name=_('effect'), on_delete=models.CASCADE) class Meta: abstract = True def EXIF(self, file=None): try: if file: tags = exifread.process_file(file) else: with self.image.storage.open(self.image.name, 'rb') as file: tags = exifread.process_file(file, details=False) return tags except: return {} def admin_thumbnail(self): func = getattr(self, 'get_admin_thumbnail_url', None) if func is None: return _('An "admin_thumbnail" photo size has not been defined.') else: if hasattr(self, 'get_absolute_url'): return mark_safe(f'') else: return mark_safe(f'') admin_thumbnail.short_description = _('Thumbnail') admin_thumbnail.allow_tags = True def cache_path(self): return os.path.join(os.path.dirname(self.image.name), "cache") def cache_url(self): return '/'.join([os.path.dirname(self.image.url), "cache"]) def image_filename(self): return os.path.basename(force_str(self.image.name)) def _get_filename_for_size(self, size): size = getattr(size, 'name', size) base, ext = os.path.splitext(self.image_filename()) return ''.join([base, '_', size, ext]) def _get_SIZE_photosize(self, size): return PhotoSizeCache().sizes.get(size) def _get_SIZE_size(self, size): photosize = PhotoSizeCache().sizes.get(size) if not self.size_exists(photosize): self.create_size(photosize) try: return Image.open(self.image.storage.open( self._get_SIZE_filename(size))).size except: return None def _get_SIZE_url(self, size): photosize = PhotoSizeCache().sizes.get(size) if not self.size_exists(photosize): self.create_size(photosize) if photosize.increment_count: self.increment_count() return '/'.join([ self.cache_url(), filepath_to_uri(self._get_filename_for_size(photosize.name))]) def _get_SIZE_filename(self, size): photosize = PhotoSizeCache().sizes.get(size) return smart_str(os.path.join(self.cache_path(), self._get_filename_for_size(photosize.name))) def increment_count(self): self.view_count += 1 models.Model.save(self) def __getattr__(self, name): global size_method_map # noqa: F824 if not size_method_map: init_size_method_map() di = size_method_map.get(name, None) if di is not None: result = partial(getattr(self, di['base_name']), di['size']) setattr(self, name, result) return result else: raise AttributeError def size_exists(self, photosize): func = getattr(self, "get_%s_filename" % photosize.name, None) if func is not None: if self.image.storage.exists(func()): return True return False def resize_image(self, im, photosize): cur_width, cur_height = im.size new_width, new_height = photosize.size if photosize.crop: ratio = max(float(new_width) / cur_width, float(new_height) / cur_height) x = (cur_width * ratio) y = (cur_height * ratio) xd = abs(new_width - x) yd = abs(new_height - y) x_diff = int(xd / 2) y_diff = int(yd / 2) if self.crop_from == 'top': box = (int(x_diff), 0, int(x_diff + new_width), new_height) elif self.crop_from == 'left': box = (0, int(y_diff), new_width, int(y_diff + new_height)) elif self.crop_from == 'bottom': # y - yd = new_height box = (int(x_diff), int(yd), int(x_diff + new_width), int(y)) elif self.crop_from == 'right': # x - xd = new_width box = (int(xd), int(y_diff), int(x), int(y_diff + new_height)) else: box = (int(x_diff), int(y_diff), int(x_diff + new_width), int(y_diff + new_height)) im = im.resize((int(x), int(y)), Image.Resampling.LANCZOS).crop(box) else: if not new_width == 0 and not new_height == 0: ratio = min(float(new_width) / cur_width, float(new_height) / cur_height) else: if new_width == 0: ratio = float(new_height) / cur_height else: ratio = float(new_width) / cur_width new_dimensions = (int(round(cur_width * ratio)), int(round(cur_height * ratio))) if new_dimensions[0] > cur_width or \ new_dimensions[1] > cur_height: if not photosize.upscale: return im im = im.resize(new_dimensions, Image.Resampling.LANCZOS) return im def create_size(self, photosize, recreate=False): if self.size_exists(photosize) and not recreate: return try: im = Image.open(self.image.storage.open(self.image.name)) except OSError: return # Save the original format im_format = im.format # Apply effect if found if self.effect is not None: im = self.effect.pre_process(im) elif photosize.effect is not None: im = photosize.effect.pre_process(im) # Rotate if found & necessary if 'Image Orientation' in self.EXIF() and \ self.EXIF().get('Image Orientation').values[0] in IMAGE_EXIF_ORIENTATION_MAP: im = im.transpose( IMAGE_EXIF_ORIENTATION_MAP[self.EXIF().get('Image Orientation').values[0]]) # Resize/crop image if (im.size != photosize.size and photosize.size != (0, 0)) or recreate: im = self.resize_image(im, photosize) # Apply watermark if found if photosize.watermark is not None: im = photosize.watermark.post_process(im) # Apply effect if found if self.effect is not None: im = self.effect.post_process(im) elif photosize.effect is not None: im = photosize.effect.post_process(im) # Save file im_filename = getattr(self, "get_%s_filename" % photosize.name)() try: buffer = BytesIO() if im_format != 'JPEG': im.save(buffer, im_format) else: # Issue #182 - test fix from https://github.com/bashu/django-watermark/issues/31 if im.mode.endswith('A'): im = im.convert(im.mode[:-1]) im.save(buffer, 'JPEG', quality=int(photosize.quality), optimize=True) buffer_contents = ContentFile(buffer.getvalue()) self.image.storage.save(im_filename, buffer_contents) except OSError as e: if self.image.storage.exists(im_filename): self.image.storage.delete(im_filename) raise e def remove_size(self, photosize, remove_dirs=True): if not self.size_exists(photosize): return filename = getattr(self, "get_%s_filename" % photosize.name)() if self.image.storage.exists(filename): self.image.storage.delete(filename) def clear_cache(self): cache = PhotoSizeCache() for photosize in cache.sizes.values(): self.remove_size(photosize, False) def pre_cache(self, recreate=False): cache = PhotoSizeCache() if recreate: self.clear_cache() for photosize in cache.sizes.values(): if photosize.pre_cache: self.create_size(photosize, recreate) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._old_image = self.image def save(self, *args, **kwargs): recreate = kwargs.pop('recreate', False) image_has_changed = False if self._get_pk_val() and (self._old_image != self.image): image_has_changed = True # If we have changed the image, we need to clear from the cache all instances of the old # image; clear_cache() works on the current (new) image, and in turn calls several other methods. # Changing them all to act on the old image was a lot of changes, so instead we temporarily swap old # and new images. new_image = self.image self.image = self._old_image self.clear_cache() self.image = new_image # Back to the new image. self._old_image.storage.delete(self._old_image.name) # Delete (old) base image. if self.date_taken is None or image_has_changed: # Attempt to get the date the photo was taken from the EXIF data. try: exif_date = self.EXIF(self.image.file).get('EXIF DateTimeOriginal', None) if exif_date is not None: d, t = exif_date.values.split() year, month, day = d.split(':') hour, minute, second = t.split(':') self.date_taken = datetime(int(year), int(month), int(day), int(hour), int(minute), int(second)) except: logger.error('Failed to read EXIF DateTimeOriginal', exc_info=True) super().save(*args, **kwargs) self.pre_cache(recreate) def delete(self): assert self._get_pk_val() is not None, \ "%s object can't be deleted because its %s attribute is set to None." % \ (self._meta.object_name, self._meta.pk.attname) self.clear_cache() # Files associated to a FileField have to be manually deleted: # https://docs.djangoproject.com/en/dev/releases/1.3/#deleting-a-model-doesn-t-delete-associated-files # http://haineault.com/blog/147/ # The data loss scenarios mentioned in the docs hopefully do not apply # to Photologue! super().delete() self.image.storage.delete(self.image.name) class Photo(ImageModel): title = models.CharField(_('title'), max_length=250, unique=True) slug = models.SlugField(_('slug'), unique=True, max_length=250, help_text=_('A "slug" is a unique URL-friendly title for an object.')) caption = models.TextField(_('caption'), blank=True) date_added = models.DateTimeField(_('date added'), default=now) is_public = models.BooleanField(_('is public'), default=True, help_text=_('Public photographs will be displayed in the default views.')) sites = models.ManyToManyField(Site, verbose_name=_('sites'), blank=True) objects = PhotoQuerySet.as_manager() class Meta: ordering = ['-date_added'] get_latest_by = 'date_added' verbose_name = _("photo") verbose_name_plural = _("photos") def __str__(self): return self.title def save(self, *args, **kwargs): # If crop_from or effect property has been changed on existing image, # update kwargs to force image recreation in parent class current = Photo.objects.get(pk=self.pk) if self.pk else None if current and (current.crop_from != self.crop_from or current.effect != self.effect): kwargs.update(recreate=True) if self.slug is None: self.slug = slugify(self.title) super().save(*args, **kwargs) def get_absolute_url(self): return reverse('photologue:pl-photo', args=[self.slug]) def public_galleries(self): """Return the public galleries to which this photo belongs.""" return self.galleries.filter(is_public=True) def get_previous_in_gallery(self, gallery): """Find the neighbour of this photo in the supplied gallery. We assume that the gallery and all its photos are on the same site. """ if not self.is_public: raise ValueError('Cannot determine neighbours of a non-public photo.') photos = gallery.photos.is_public() if self not in photos: raise ValueError('Photo does not belong to gallery.') previous = None for photo in photos: if photo == self: return previous previous = photo def get_next_in_gallery(self, gallery): """Find the neighbour of this photo in the supplied gallery. We assume that the gallery and all its photos are on the same site. """ if not self.is_public: raise ValueError('Cannot determine neighbours of a non-public photo.') photos = gallery.photos.is_public() if self not in photos: raise ValueError('Photo does not belong to gallery.') matched = False for photo in photos: if matched: return photo if photo == self: matched = True return None class BaseEffect(models.Model): name = models.CharField(_('name'), max_length=30, unique=True) description = models.TextField(_('description'), blank=True) class Meta: abstract = True def sample_dir(self): return os.path.join(PHOTOLOGUE_DIR, 'samples') def sample_url(self): return settings.MEDIA_URL + '/'.join([PHOTOLOGUE_DIR, 'samples', '{} {}.jpg'.format(self.name.lower(), 'sample')]) def sample_filename(self): return os.path.join(self.sample_dir(), '{} {}.jpg'.format(self.name.lower(), 'sample')) def create_sample(self): try: im = Image.open(SAMPLE_IMAGE_PATH) except OSError: raise OSError( 'Photologue was unable to open the sample image: %s.' % SAMPLE_IMAGE_PATH) im = self.process(im) buffer = BytesIO() # Issue #182 - test fix from https://github.com/bashu/django-watermark/issues/31 if im.mode.endswith('A'): im = im.convert(im.mode[:-1]) im.save(buffer, 'JPEG', quality=90, optimize=True) buffer_contents = ContentFile(buffer.getvalue()) default_storage.save(self.sample_filename(), buffer_contents) def admin_sample(self): return '' % self.sample_url() admin_sample.short_description = 'Sample' admin_sample.allow_tags = True def pre_process(self, im): return im def post_process(self, im): return im def process(self, im): im = self.pre_process(im) im = self.post_process(im) return im def __str__(self): return self.name def save(self, *args, **kwargs): try: default_storage.delete(self.sample_filename()) except: pass models.Model.save(self, *args, **kwargs) self.create_sample() for size in self.photo_sizes.all(): size.clear_cache() # try to clear all related subclasses of ImageModel for prop in [prop for prop in dir(self) if prop[-8:] == '_related']: for obj in getattr(self, prop).all(): obj.clear_cache() obj.pre_cache() def delete(self): try: default_storage.delete(self.sample_filename()) except: pass models.Model.delete(self) class PhotoEffect(BaseEffect): """ A pre-defined effect to apply to photos """ transpose_method = models.CharField(_('rotate or flip'), max_length=15, blank=True, choices=IMAGE_TRANSPOSE_CHOICES) color = models.FloatField(_('color'), default=1.0, help_text=_('A factor of 0.0 gives a black and white image, a factor of 1.0 gives the ' 'original image.')) brightness = models.FloatField(_('brightness'), default=1.0, help_text=_('A factor of 0.0 gives a black image, a factor of 1.0 gives the ' 'original image.')) contrast = models.FloatField(_('contrast'), default=1.0, help_text=_('A factor of 0.0 gives a solid grey image, a factor of 1.0 gives the ' 'original image.')) sharpness = models.FloatField(_('sharpness'), default=1.0, help_text=_('A factor of 0.0 gives a blurred image, a factor of 1.0 gives the ' 'original image.')) filters = models.CharField(_('filters'), max_length=200, blank=True, help_text=_(IMAGE_FILTERS_HELP_TEXT)) reflection_size = models.FloatField(_('size'), default=0, help_text=_('The height of the reflection as a percentage of the orignal ' 'image. A factor of 0.0 adds no reflection, a factor of 1.0 adds a' ' reflection equal to the height of the orignal image.')) reflection_strength = models.FloatField(_('strength'), default=0.6, help_text=_('The initial opacity of the reflection gradient.')) background_color = models.CharField(_('color'), max_length=7, default="#FFFFFF", help_text=_('The background color of the reflection gradient. Set this to ' 'match the background color of your page.')) class Meta: verbose_name = _("photo effect") verbose_name_plural = _("photo effects") def pre_process(self, im): if self.transpose_method != '': method = getattr(Image, self.transpose_method) im = im.transpose(method) if im.mode != 'RGB' and im.mode != 'RGBA': return im for name in ['Color', 'Brightness', 'Contrast', 'Sharpness']: factor = getattr(self, name.lower()) if factor != 1.0: im = getattr(ImageEnhance, name)(im).enhance(factor) for name in self.filters.split('->'): image_filter = getattr(ImageFilter, name.upper(), None) if image_filter is not None: try: im = im.filter(image_filter) except ValueError: pass return im def post_process(self, im): if self.reflection_size != 0.0: im = add_reflection(im, bgcolor=self.background_color, amount=self.reflection_size, opacity=self.reflection_strength) return im class Watermark(BaseEffect): image = models.ImageField(_('image'), upload_to=pathlib.Path(PHOTOLOGUE_DIR) / "watermarks") style = models.CharField(_('style'), max_length=5, choices=WATERMARK_STYLE_CHOICES, default='scale') opacity = models.FloatField(_('opacity'), default=1, help_text=_("The opacity of the overlay.")) class Meta: verbose_name = _('watermark') verbose_name_plural = _('watermarks') def delete(self): assert self._get_pk_val() is not None, "%s object can't be deleted because its %s attribute is set to None." \ % (self._meta.object_name, self._meta.pk.attname) super().delete() self.image.storage.delete(self.image.name) def post_process(self, im): mark = Image.open(self.image.storage.open(self.image.name)) return apply_watermark(im, mark, self.style, self.opacity) class PhotoSize(models.Model): """About the Photosize name: it's used to create get_PHOTOSIZE_url() methods, so the name has to follow the same restrictions as any Python method name, e.g. no spaces or non-ascii characters.""" name = models.CharField(_('name'), max_length=40, unique=True, help_text=_( 'Photo size name should contain only letters, numbers and underscores. Examples: ' '"thumbnail", "display", "small", "main_page_widget".'), validators=[RegexValidator(regex='^[a-z0-9_]+$', message='Use only plain lowercase letters (ASCII), numbers and ' 'underscores.' )] ) width = models.PositiveIntegerField(_('width'), default=0, help_text=_( 'If width is set to "0" the image will be scaled to the supplied height.')) height = models.PositiveIntegerField(_('height'), default=0, help_text=_( 'If height is set to "0" the image will be scaled to the supplied width')) quality = models.PositiveIntegerField(_('quality'), choices=JPEG_QUALITY_CHOICES, default=70, help_text=_('JPEG image quality.')) upscale = models.BooleanField(_('upscale images?'), default=False, help_text=_('If selected the image will be scaled up if necessary to fit the ' 'supplied dimensions. Cropped sizes will be upscaled regardless of this ' 'setting.') ) crop = models.BooleanField(_('crop to fit?'), default=False, help_text=_('If selected the image will be scaled and cropped to fit the supplied ' 'dimensions.')) pre_cache = models.BooleanField(_('pre-cache?'), default=False, help_text=_('If selected this photo size will be pre-cached as photos are added.')) increment_count = models.BooleanField(_('increment view count?'), default=False, help_text=_('If selected the image\'s "view_count" will be incremented when ' 'this photo size is displayed.')) effect = models.ForeignKey('photologue.PhotoEffect', null=True, blank=True, related_name='photo_sizes', verbose_name=_('photo effect'), on_delete=models.CASCADE) watermark = models.ForeignKey('photologue.Watermark', null=True, blank=True, related_name='photo_sizes', verbose_name=_('watermark image'), on_delete=models.CASCADE) class Meta: ordering = ['width', 'height'] verbose_name = _('photo size') verbose_name_plural = _('photo sizes') def __str__(self): return self.name def clear_cache(self): for cls in ImageModel.__subclasses__(): for obj in cls.objects.all(): obj.remove_size(self) if self.pre_cache: obj.create_size(self) PhotoSizeCache().reset() def clean(self): if self.crop is True: if self.width == 0 or self.height == 0: raise ValidationError( _("Can only crop photos if both width and height dimensions are set.")) def save(self, *args, **kwargs): super().save(*args, **kwargs) PhotoSizeCache().reset() self.clear_cache() def delete(self): assert self._get_pk_val() is not None, "%s object can't be deleted because its %s attribute is set to None." \ % (self._meta.object_name, self._meta.pk.attname) self.clear_cache() super().delete() def _get_size(self): return (self.width, self.height) def _set_size(self, value): self.width, self.height = value size = property(_get_size, _set_size) class PhotoSizeCache: __state = {"sizes": {}} def __init__(self): self.__dict__ = self.__state if not len(self.sizes): sizes = PhotoSize.objects.all() for size in sizes: self.sizes[size.name] = size def reset(self): global size_method_map # noqa: F824 size_method_map = {} self.sizes = {} def init_size_method_map(): global size_method_map # noqa: F824 for size in PhotoSizeCache().sizes.keys(): size_method_map['get_%s_size' % size] = \ {'base_name': '_get_SIZE_size', 'size': size} size_method_map['get_%s_photosize' % size] = \ {'base_name': '_get_SIZE_photosize', 'size': size} size_method_map['get_%s_url' % size] = \ {'base_name': '_get_SIZE_url', 'size': size} size_method_map['get_%s_filename' % size] = \ {'base_name': '_get_SIZE_filename', 'size': size} def add_default_site(instance, created, **kwargs): """ Called via Django's signals when an instance is created. In case PHOTOLOGUE_MULTISITE is False, the current site (i.e. ``settings.SITE_ID``) will always be added to the site relations if none are present. """ if not created: return if getattr(settings, 'PHOTOLOGUE_MULTISITE', False): return if instance.sites.exists(): return instance.sites.add(Site.objects.get_current()) post_save.connect(add_default_site, sender=Gallery) post_save.connect(add_default_site, sender=Photo) ================================================ FILE: photologue/sitemaps.py ================================================ """ The `Sitemaps protocol `_ allows a webmaster to inform search engines about URLs on a website that are available for crawling. Django comes with a high-level framework that makes generating sitemap XML files easy. Install the sitemap application as per the `instructions in the django documentation `_, then edit your project's ``urls.py`` and add a reference to Photologue's Sitemap classes in order to included all the publicly-viewable Photologue pages: .. code-block:: python ... from photologue.sitemaps import GallerySitemap, PhotoSitemap sitemaps = {... 'photologue_galleries': GallerySitemap, 'photologue_photos': PhotoSitemap, ... } etc... There are 2 sitemap classes, as in some cases you may want to have gallery pages, but no photo detail page (e.g. if all photos are displayed via a javascript lightbox). """ from django.contrib.sitemaps import Sitemap from .models import Gallery, Photo # Note: Gallery and Photo are split, because there are use cases for having galleries # in the sitemap, but not photos (e.g. if the photos are displayed with a lightbox). class GallerySitemap(Sitemap): def items(self): # The following code is very basic and will probably cause problems with # large querysets. return Gallery.objects.on_site().is_public() def lastmod(self, obj): return obj.date_added class PhotoSitemap(Sitemap): def items(self): # The following code is very basic and will probably cause problems with # large querysets. return Photo.objects.on_site().is_public() def lastmod(self, obj): return obj.date_added ================================================ FILE: photologue/templates/admin/photologue/photo/change_list.html ================================================ {% extends "admin/change_list.html" %} {% load i18n %} {% block object-tools-items %} {{ block.super }}
  • {% trans "Upload a zip archive" %}
  • {% endblock %} ================================================ FILE: photologue/templates/admin/photologue/photo/upload_zip.html ================================================ {% extends "admin/base_site.html" %} {% load i18n admin_urls static %} {# Admin styling code largely taken from http://www.dmertl.com/blog/?p=116 #} {% block extrastyle %} {{ block.super }} {% endblock %} {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content_title %}{% endblock %} {% block content %}

    {% trans "Upload a zip archive of photos" %}

    {% blocktrans %}

    On this page you can upload many photos at once, as long as you have put them all in a zip archive. The photos can be either:

    • Added to an existing gallery.
    • Otherwise, a new gallery is created with the supplied title.
    {% endblocktrans %} {% if form.errors %}

    {% if form.errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

    {{ form.non_field_errors }} {% endif %}
    {% csrf_token %}
    {% for fieldset in adminform %} {% include "admin/includes/fieldset.html" %} {% endfor %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/gallery_archive.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% trans "Latest photo galleries" %}{% endblock %} {% block content %}

    {% trans "Latest photo galleries" %}

    {% if latest %} {% for gallery in latest %} {% include "photologue/includes/gallery_sample.html" %} {% endfor %} {% else %}

    {% trans "No galleries were found" %}.

    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/gallery_archive_day.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% blocktrans with show_day=day|date:"d F Y" %}Galleries for {{ show_day }}{% endblocktrans %}{% endblock %} {% block content %}

    {% blocktrans with show_day=day|date:"d F Y" %}Galleries for {{ show_day }}{% endblocktrans %}

    {% if object_list %} {% for gallery in object_list %} {% include "photologue/includes/gallery_sample.html" %} {% endfor %} {% else %}

    {% trans "No galleries were found." %}

    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/gallery_archive_month.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% blocktrans with show_month=month|date:"F Y" %}Galleries for {{ show_month }}{% endblocktrans %}{% endblock %} {% block content %}

    {% blocktrans with show_month=month|date:"F Y" %}Galleries for {{ show_month }}{% endblocktrans %}

    {% if object_list %} {% for gallery in object_list %} {% include "photologue/includes/gallery_sample.html" %} {% endfor %} {% else %}

    {% trans "No galleries were found." %}

    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/gallery_archive_year.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% blocktrans with show_year=year|date:"Y" %}Galleries for {{ show_year }}{% endblocktrans %}{% endblock %} {% block content %}

    {% blocktrans with show_year=year|date:"Y" %}Galleries for {{ show_year }}{% endblocktrans %}

    {% if object_list %} {% for gallery in object_list %} {% include "photologue/includes/gallery_sample.html" %} {% endfor %} {% else %}

    {% trans "No galleries were found." %}

    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/gallery_detail.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{{ gallery.title }}{% endblock %} {% block content %}

    {{ gallery.title }}

    {% trans "Published" %} {{ gallery.date_added }}

    {% if gallery.description %}{{ gallery.description|safe }}{% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/gallery_list.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% trans "All galleries" %}{% endblock %} {% block content %}

    {% trans "All galleries" %}

    {% if object_list %} {% for gallery in object_list %}
    {% include "photologue/includes/gallery_sample.html" %}
    {% endfor %} {% else %}
    {% trans "No galleries were found" %}.
    {% endif %} {% include "photologue/includes/paginator.html" %} {% endblock %} ================================================ FILE: photologue/templates/photologue/includes/gallery_sample.html ================================================ {% load i18n %} {# Display a randomnly-selected set of photos from a given gallery #} ================================================ FILE: photologue/templates/photologue/includes/paginator.html ================================================ {% load i18n %} {% if is_paginated %}
    {% endif %} ================================================ FILE: photologue/templates/photologue/photo_archive.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% trans "Latest photos" %}{% endblock %} {% block content %}

    {% trans "Latest photos" %}

    {% if latest %} {% for photo in latest %} {{ photo.title }} {% endfor %} {% else %}

    {% trans "No photos were found" %}.

    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/photo_archive_day.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% blocktrans with show_day=day|date:"d F Y" %}Photos for {{ show_day }}{% endblocktrans %}{% endblock %} {% block content %}

    {% blocktrans with show_day=day|date:"d F Y" %}Photos for {{ show_day }}{% endblocktrans %}

    {% if object_list %}
    {% for photo in object_list %} {{ photo.title }} {% endfor %}
    {% else %}

    {% trans "No photos were found" %}.

    {% endif %} {% endblock %} ================================================ FILE: photologue/templates/photologue/photo_archive_month.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% blocktrans with show_month=month|date:"F Y" %}Photos for {{ show_month }}{% endblocktrans %}{% endblock %} {% block content %}

    {% blocktrans with show_month=month|date:"F Y" %}Photos for {{ show_month }}{% endblocktrans %}

    {% if object_list %}
    {% for photo in object_list %} {{ photo.title }} {% endfor %}
    {% else %}

    {% trans "No photos were found" %}.

    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/photo_archive_year.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% blocktrans with show_year=year|date:"Y" %}Photos for {{ show_year }}{% endblocktrans %}{% endblock %} {% block content %}

    {% blocktrans with show_year=year|date:"Y" %}Photos for {{ show_year }}{% endblocktrans %}

    {% if object_list %}
    {% for photo in object_list %} {{ photo.title }} {% endfor %}
    {% else %}

    {% trans "No photos were found" %}.

    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/photo_detail.html ================================================ {% extends "photologue/root.html" %} {% load photologue_tags i18n %} {% block title %}{{ object.title }}{% endblock %} {% block content %}

    {{ object.title }}

    {% trans "Published" %} {{ object.date_added }}

    {% if object.caption %}

    {{ object.caption }}

    {% endif %} {{ object.title }}
    {% if object.public_galleries %}

    {% trans "This photo is found in the following galleries" %}:

    {% for gallery in object.public_galleries %} {% endfor %}
    {% previous_in_gallery object gallery %} {{ gallery.title }} {% next_in_gallery object gallery %}
    {% endif %}
    {% endblock %} ================================================ FILE: photologue/templates/photologue/photo_list.html ================================================ {% extends "photologue/root.html" %} {% load i18n %} {% block title %}{% trans "All photos" %}{% endblock %} {% block content %}

    {% trans "All photos" %}

    {% if object_list %}
    {% for photo in object_list %} {{ photo.title }} {% endfor %}
    {% else %}
    {% trans "No photos were found" %}.
    {% endif %} {% include "photologue/includes/paginator.html" %} {% endblock %} ================================================ FILE: photologue/templates/photologue/root.html ================================================ {% extends "base.html" %} ================================================ FILE: photologue/templates/photologue/tags/next_in_gallery.html ================================================ {% if photo %} {{ photo.title }} {% endif %} ================================================ FILE: photologue/templates/photologue/tags/prev_in_gallery.html ================================================ {% if photo %} {{ photo.title }} {% endif %} ================================================ FILE: photologue/templatetags/__init__.py ================================================ ================================================ FILE: photologue/templatetags/photologue_tags.py ================================================ import random from django import template from ..models import Gallery, Photo register = template.Library() @register.inclusion_tag('photologue/tags/next_in_gallery.html') def next_in_gallery(photo, gallery): return {'photo': photo.get_next_in_gallery(gallery)} @register.inclusion_tag('photologue/tags/prev_in_gallery.html') def previous_in_gallery(photo, gallery): return {'photo': photo.get_previous_in_gallery(gallery)} @register.simple_tag def cycle_lite_gallery(gallery_title, height, width): """Generate image tags for jquery slideshow gallery. See http://malsup.com/jquery/cycle/lite/""" html = "" first = 'class="first"' for p in Gallery.objects.get(title=gallery_title).public(): html += '{}'.format( p.get_display_url(), p.title, height, width, first) first = None return html @register.tag def get_photo(parser, token): """Get a single photo from the photologue library and return the img tag to display it. Takes 3 args: - the photo to display. This can be either the slug of a photo, or a variable that holds either a photo instance or a integer (photo id) - the photosize to use. - a CSS class to apply to the img tag. """ try: # Split the contents of the tag, i.e. tag name + argument. tag_name, photo, photosize, css_class = token.split_contents() except ValueError: msg = '%r tag requires 3 arguments' % token.contents[0] raise template.TemplateSyntaxError(msg) return PhotoNode(photo, photosize[1:-1], css_class[1:-1]) class PhotoNode(template.Node): def __init__(self, photo, photosize, css_class): self.photo = photo self.photosize = photosize self.css_class = css_class def render(self, context): try: a = template.Variable(self.photo).resolve(context) except: a = self.photo if isinstance(a, Photo): p = a else: try: p = Photo.objects.get(slug=a) except Photo.DoesNotExist: # Ooops. Fail silently return None if not p.is_public: return None func = getattr(p, 'get_%s_url' % (self.photosize), None) if func is None: return 'A "%s" photo size has not been defined.' % (self.photosize) else: return f'{p.title}' @register.tag def get_rotating_photo(parser, token): """Pick at random a photo from a given photologue gallery and return the img tag to display it. Takes 3 args: - the gallery to pick a photo from. This can be either the slug of a gallery, or a variable that holds either a gallery instance or a gallery slug. - the photosize to use. - a CSS class to apply to the img tag. """ try: # Split the contents of the tag, i.e. tag name + argument. tag_name, gallery, photosize, css_class = token.split_contents() except ValueError: msg = '%r tag requires 3 arguments' % token.contents[0] raise template.TemplateSyntaxError(msg) return PhotoGalleryNode(gallery, photosize[1:-1], css_class[1:-1]) class PhotoGalleryNode(template.Node): def __init__(self, gallery, photosize, css_class): self.gallery = gallery self.photosize = photosize self.css_class = css_class def render(self, context): try: a = template.resolve_variable(self.gallery, context) except: a = self.gallery if isinstance(a, Gallery): g = a else: try: g = Gallery.objects.get(slug=a) except Gallery.DoesNotExist: return None photos = g.public() if len(photos) > 1: r = random.randint(0, len(photos) - 1) p = photos[r] elif len(photos) == 1: p = photos[0] else: return None func = getattr(p, 'get_%s_url' % (self.photosize), None) if func is None: return 'A "%s" photo size has not been defined.' % (self.photosize) else: return f'{p.title}' ================================================ FILE: photologue/tests/__init__.py ================================================ ================================================ FILE: photologue/tests/factories.py ================================================ import datetime import os from django.conf import settings from django.utils.text import slugify try: import factory except ImportError: raise ImportError( "No module named factory. To run photologue's tests you need to install factory-boy.") from ..models import Gallery, ImageModel, Photo, PhotoEffect, PhotoSize RES_DIR = os.path.join(os.path.dirname(__file__), '../res') LANDSCAPE_IMAGE_PATH = os.path.join(RES_DIR, 'test_photologue_landscape.jpg') PORTRAIT_IMAGE_PATH = os.path.join(RES_DIR, 'test_photologue_portrait.jpg') SQUARE_IMAGE_PATH = os.path.join(RES_DIR, 'test_photologue_square.jpg') QUOTING_IMAGE_PATH = os.path.join(RES_DIR, 'test_photologue_"ing.jpg') UNICODE_IMAGE_PATH = os.path.join(RES_DIR, 'test_unicode_®.jpg') NONSENSE_IMAGE_PATH = os.path.join(RES_DIR, 'test_nonsense.jpg') SAMPLE_ZIP_PATH = os.path.join(RES_DIR, 'zips/sample.zip') SAMPLE_NOT_IMAGE_ZIP_PATH = os.path.join(RES_DIR, 'zips/not_image.zip') IGNORED_FILES_ZIP_PATH = os.path.join(RES_DIR, 'zips/ignored_files.zip') class GalleryFactory(factory.django.DjangoModelFactory): class Meta: model = Gallery title = factory.Sequence(lambda n: f'gallery{n:0>3}') slug = factory.LazyAttribute(lambda a: slugify(a.title)) @factory.sequence def date_added(n): # Have to cater projects being non-timezone aware. if settings.USE_TZ: sample_date = datetime.datetime( year=2011, month=12, day=23, hour=17, minute=40, tzinfo=datetime.timezone.utc) else: sample_date = datetime.datetime(year=2011, month=12, day=23, hour=17, minute=40) return sample_date + datetime.timedelta(minutes=n) @factory.post_generation def sites(self, create, extracted, **kwargs): """ Associates the object with the current site unless ``sites`` was passed, in which case the each item in ``sites`` is associated with the object. Note that if PHOTOLOGUE_MULTISITE is False, all Gallery/Photos are automatically associated with the current site - bear this in mind when writing tests. """ if not create: return if extracted: for site in extracted: self.sites.add(site) class ImageModelFactory(factory.django.DjangoModelFactory): class Meta: model = ImageModel abstract = True class PhotoFactory(ImageModelFactory): """Note: after creating Photo instances for tests, remember to manually delete them. """ class Meta: model = Photo title = factory.Sequence(lambda n: f'photo{n:0>3}') slug = factory.LazyAttribute(lambda a: slugify(a.title)) image = factory.django.ImageField(from_path=LANDSCAPE_IMAGE_PATH) @factory.sequence def date_added(n): # Have to cater projects being non-timezone aware. if settings.USE_TZ: sample_date = datetime.datetime( year=2011, month=12, day=23, hour=17, minute=40, tzinfo=datetime.timezone.utc) else: sample_date = datetime.datetime(year=2011, month=12, day=23, hour=17, minute=40) return sample_date + datetime.timedelta(minutes=n) @factory.post_generation def sites(self, create, extracted, **kwargs): """ Associates the object with the current site unless ``sites`` was passed, in which case the each item in ``sites`` is associated with the object. Note that if PHOTOLOGUE_MULTISITE is False, all Gallery/Photos are automatically associated with the current site - bear this in mind when writing tests. """ if not create: return if extracted: for site in extracted: self.sites.add(site) class PhotoSizeFactory(factory.django.DjangoModelFactory): class Meta: model = PhotoSize name = factory.Sequence(lambda n: f'name{n:0>3}') class PhotoEffectFactory(factory.django.DjangoModelFactory): class Meta: model = PhotoEffect name = factory.Sequence(lambda n: f'effect{n:0>3}') ================================================ FILE: photologue/tests/helpers.py ================================================ import warnings from django.test import TestCase from .factories import PhotoFactory, PhotoSizeFactory class PhotologueBaseTest(TestCase): def setUp(self): self.s = PhotoSizeFactory(name='testPhotoSize', width=100, height=100) try: # Squash lots of ResourceWarning generated by the Pillow library during unit tests. warnings.simplefilter("ignore", ResourceWarning) except NameError: # Doesn't exist in Python 2.7. pass self.pl = PhotoFactory(title='Landscape', slug='landscape') def tearDown(self): # Need to manually remove the files created during testing. self.pl.delete() ================================================ FILE: photologue/tests/templates/base.html ================================================ ================================================ FILE: photologue/tests/test_effect.py ================================================ from ..models import Image, PhotoEffect from .helpers import PhotologueBaseTest class PhotoEffectTest(PhotologueBaseTest): def test(self): effect = PhotoEffect(name='test') im = Image.open(self.pl.image.storage.open(self.pl.image.name)) self.assertIsInstance(effect.pre_process(im), Image.Image) self.assertIsInstance(effect.post_process(im), Image.Image) self.assertIsInstance(effect.process(im), Image.Image) ================================================ FILE: photologue/tests/test_gallery.py ================================================ from .. import models from .factories import GalleryFactory, PhotoFactory from .helpers import PhotologueBaseTest class GalleryTest(PhotologueBaseTest): def setUp(self): """Create a test gallery with 2 photos.""" super().setUp() self.test_gallery = GalleryFactory() self.pl2 = PhotoFactory() self.test_gallery.photos.add(self.pl) self.test_gallery.photos.add(self.pl2) def tearDown(self): super().tearDown() self.pl2.delete() def test_public(self): """Method 'public' should only return photos flagged as public.""" self.assertEqual(self.test_gallery.public().count(), 2) self.pl.is_public = False self.pl.save() self.assertEqual(self.test_gallery.public().count(), 1) def test_photo_count(self): """Method 'photo_count' should return the count of the photos in this gallery.""" self.assertEqual(self.test_gallery.photo_count(), 2) self.pl.is_public = False self.pl.save() self.assertEqual(self.test_gallery.photo_count(), 1) # Method takes an optional 'public' kwarg. self.assertEqual(self.test_gallery.photo_count(public=False), 2) def test_sample(self): """Method 'sample' should return a random queryset of photos from the gallery.""" # By default we return all photos from the gallery (but ordered at random). _current_sample_size = models.SAMPLE_SIZE models.SAMPLE_SIZE = 5 self.assertEqual(len(self.test_gallery.sample()), 2) # We can state how many photos we want. self.assertEqual(len(self.test_gallery.sample(count=1)), 1) # If only one photo is public then the sample cannot have more than one # photo. self.pl.is_public = False self.pl.save() self.assertEqual(len(self.test_gallery.sample(count=2)), 1) self.pl.is_public = True self.pl.save() # We can limit the number of photos by changing settings. models.SAMPLE_SIZE = 1 self.assertEqual(len(self.test_gallery.sample()), 1) models.SAMPLE_SIZE = _current_sample_size ================================================ FILE: photologue/tests/test_photo.py ================================================ import os import unittest from io import BytesIO from unittest.mock import patch from django import VERSION from django.conf import settings from django.core.files.base import ContentFile from django.core.files.storage import default_storage from ..models import PHOTOLOGUE_CACHEDIRTAG, PHOTOLOGUE_DIR, Image, Photo from .factories import (LANDSCAPE_IMAGE_PATH, NONSENSE_IMAGE_PATH, QUOTING_IMAGE_PATH, UNICODE_IMAGE_PATH, GalleryFactory, PhotoEffectFactory, PhotoFactory) from .helpers import PhotologueBaseTest class PhotoTest(PhotologueBaseTest): def tearDown(self): """Delete any extra test files (if created).""" super().tearDown() try: self.pl2.delete() except: pass def test_new_photo(self): self.assertEqual(Photo.objects.count(), 1) self.assertTrue(self.pl.image.storage.exists(self.pl.image.name)) self.assertEqual(self.pl.image.storage.size(self.pl.image.name), os.path.getsize(LANDSCAPE_IMAGE_PATH)) # def test_exif(self): # self.assertTrue(len(self.pl.EXIF.keys()) > 0) def test_paths(self): self.assertEqual(os.path.normpath(str(self.pl.cache_path())).lower(), os.path.normpath(os.path.join(PHOTOLOGUE_DIR, 'photos', 'cache')).lower()) self.assertEqual(self.pl.cache_url(), settings.MEDIA_URL + PHOTOLOGUE_DIR + '/photos/cache') def test_cachedir_tag(self): self.assertTrue(default_storage.exists(PHOTOLOGUE_CACHEDIRTAG)) content = default_storage.open(PHOTOLOGUE_CACHEDIRTAG).read() self.assertEqual(content, b"Signature: 8a477f597d28d172789f06886806bc55") def test_count(self): for i in range(5): self.pl.get_testPhotoSize_url() self.assertEqual(self.pl.view_count, 0) self.s.increment_count = True self.s.save() for i in range(5): self.pl.get_testPhotoSize_url() self.assertEqual(self.pl.view_count, 5) def test_precache(self): # set the thumbnail photo size to pre-cache self.s.pre_cache = True self.s.save() # make sure it created the file self.assertTrue(self.pl.image.storage.exists( self.pl.get_testPhotoSize_filename())) self.s.pre_cache = False self.s.save() # clear the cache and make sure the file's deleted self.pl.clear_cache() self.assertFalse(self.pl.image.storage.exists( self.pl.get_testPhotoSize_filename())) def test_accessor_methods(self): self.assertEqual(self.pl.get_testPhotoSize_photosize(), self.s) self.assertEqual(self.pl.get_testPhotoSize_size(), Image.open(self.pl.image.storage.open( self.pl.get_testPhotoSize_filename())).size) self.assertEqual(self.pl.get_testPhotoSize_url(), self.pl.cache_url() + '/' + self.pl._get_filename_for_size(self.s)) self.assertEqual(self.pl.get_testPhotoSize_filename(), os.path.join(self.pl.cache_path(), self.pl._get_filename_for_size(self.s))) def test_quoted_url(self): """Test for issue #29 - filenames of photos are incorrectly quoted when building a URL.""" # Create a Photo with a name that needs quoting. self.pl2 = PhotoFactory(image__from_path=QUOTING_IMAGE_PATH) # Quoting method filepath_to_uri has changed in Django 1.9 - so the string that we're looking # for depends on the Django version. if VERSION[0] == 1 and VERSION[1] <= 8: quoted_string = 'test_photologue_%26quoting_testPhotoSize.jpg' else: quoted_string = 'test_photologue_quoting_testPhotoSize.jpg' self.assertIn(quoted_string, self.pl2.get_testPhotoSize_url(), self.pl2.get_testPhotoSize_url()) def test_unicode(self): """Trivial check that unicode titles work. (I was trying to track down an elusive unicode issue elsewhere)""" self.pl2 = PhotoFactory(title='É', slug='é') @patch('photologue.models.ImageModel.resize_image') def test_update_crop_applied(self, mock_resize_image): self.assertEqual(1, Photo.objects.count()) self.assertTrue(self.pl.crop_from != 'right') self.pl.crop_from = 'right' self.pl.save() self.assertTrue(mock_resize_image.called) @patch('photologue.models.ImageModel.resize_image') @patch('photologue.models.PhotoEffect.pre_process') @patch('photologue.models.PhotoEffect.post_process') def test_update_effect_applied(self, mock_post_process, mock_pre_process, mock_resize_image): self.assertEqual(1, Photo.objects.count()) self.assertIsNone(self.pl.effect) self.pl.effect = PhotoEffectFactory() self.pl.save() self.assertTrue(mock_pre_process.called) self.assertTrue(mock_resize_image.called) self.assertTrue(mock_post_process.called) class PhotoManagerTest(PhotologueBaseTest): """Some tests for the methods on the Photo manager class.""" def setUp(self): """Create 2 photos.""" super().setUp() self.pl2 = PhotoFactory() def tearDown(self): super().tearDown() self.pl2.delete() def test_public(self): """Method 'is_public' should only return photos flagged as public.""" self.assertEqual(Photo.objects.is_public().count(), 2) self.pl.is_public = False self.pl.save() self.assertEqual(Photo.objects.is_public().count(), 1) class PreviousNextTest(PhotologueBaseTest): """Tests for the methods that provide the previous/next photos in a gallery.""" def setUp(self): """Create a test gallery with 2 photos.""" super().setUp() self.test_gallery = GalleryFactory() self.pl1 = PhotoFactory() self.pl2 = PhotoFactory() self.pl3 = PhotoFactory() self.test_gallery.photos.add(self.pl1) self.test_gallery.photos.add(self.pl2) self.test_gallery.photos.add(self.pl3) def tearDown(self): super().tearDown() self.pl1.delete() self.pl2.delete() self.pl3.delete() def test_previous_simple(self): # Previous in gallery. self.assertEqual(self.pl1.get_previous_in_gallery(self.test_gallery), None) self.assertEqual(self.pl2.get_previous_in_gallery(self.test_gallery), self.pl1) self.assertEqual(self.pl3.get_previous_in_gallery(self.test_gallery), self.pl2) def test_previous_public(self): """What happens if one of the photos is not public.""" self.pl2.is_public = False self.pl2.save() self.assertEqual(self.pl1.get_previous_in_gallery(self.test_gallery), None) self.assertRaisesMessage(ValueError, 'Cannot determine neighbours of a non-public photo.', self.pl2.get_previous_in_gallery, self.test_gallery) self.assertEqual(self.pl3.get_previous_in_gallery(self.test_gallery), self.pl1) def test_previous_gallery_mismatch(self): """Photo does not belong to the gallery.""" self.pl4 = PhotoFactory() self.assertRaisesMessage(ValueError, 'Photo does not belong to gallery.', self.pl4.get_previous_in_gallery, self.test_gallery) self.pl4.delete() def test_next_simple(self): # Next in gallery. self.assertEqual(self.pl1.get_next_in_gallery(self.test_gallery), self.pl2) self.assertEqual(self.pl2.get_next_in_gallery(self.test_gallery), self.pl3) self.assertEqual(self.pl3.get_next_in_gallery(self.test_gallery), None) def test_next_public(self): """What happens if one of the photos is not public.""" self.pl2.is_public = False self.pl2.save() self.assertEqual(self.pl1.get_next_in_gallery(self.test_gallery), self.pl3) self.assertRaisesMessage(ValueError, 'Cannot determine neighbours of a non-public photo.', self.pl2.get_next_in_gallery, self.test_gallery) self.assertEqual(self.pl3.get_next_in_gallery(self.test_gallery), None) def test_next_gallery_mismatch(self): """Photo does not belong to the gallery.""" self.pl4 = PhotoFactory() self.assertRaisesMessage(ValueError, 'Photo does not belong to gallery.', self.pl4.get_next_in_gallery, self.test_gallery) self.pl4.delete() class ImageModelTest(PhotologueBaseTest): def setUp(self): super().setUp() # Unicode image has unicode in the path # self.pu = TestPhoto(name='portrait') self.pu = PhotoFactory() self.pu.image.save(os.path.basename(UNICODE_IMAGE_PATH), ContentFile(open(UNICODE_IMAGE_PATH, 'rb').read())) # Nonsense image contains nonsense # self.pn = TestPhoto(name='portrait') self.pn = PhotoFactory() self.pn.image.save(os.path.basename(NONSENSE_IMAGE_PATH), ContentFile(open(NONSENSE_IMAGE_PATH, 'rb').read())) def tearDown(self): super().tearDown() self.pu.delete() self.pn.delete() @unittest.skipUnless(os.path.exists(UNICODE_IMAGE_PATH), 'Test relies on a file with a non-ascii filename - this cannot be distributed as it breaks ' 'under Python 2.7, so the distribution does not include that test file.') def test_create_size(self): """Nonsense image must not break scaling""" self.pn.create_size(self.s) def raw_image(mode='RGB', fmt='JPEG'): """Create raw image. """ data = BytesIO() Image.new(mode, (100, 100)).save(data, fmt) data.seek(0) return data class ImageTransparencyTest(PhotologueBaseTest): def setUp(self): super().setUp() self.png = PhotoFactory() self.png.image.save( 'trans.png', ContentFile(raw_image('RGBA', 'PNG').read())) def tearDown(self): super().tearDown() self.png.clear_cache() os.unlink(os.path.join(settings.MEDIA_ROOT, self.png.image.path)) def test_create_size_png_keep_alpha_channel(self): thumbnail = self.png.get_thumbnail_filename() im = Image.open( os.path.join(settings.MEDIA_ROOT, thumbnail)) self.assertEqual('RGBA', im.mode) ================================================ FILE: photologue/tests/test_photosize.py ================================================ from django.core.exceptions import ValidationError from .factories import PhotoSizeFactory from .helpers import PhotologueBaseTest class PhotoSizeNameTest(PhotologueBaseTest): def test_valid_name(self): """We are restricted in what names we can enter.""" photosize = PhotoSizeFactory() photosize.name = None with self.assertRaisesMessage(ValidationError, 'This field cannot be null.'): photosize.full_clean() photosize = PhotoSizeFactory(name='') with self.assertRaisesMessage(ValidationError, 'This field cannot be blank.'): photosize.full_clean() for name in ('a space', 'UPPERCASE', 'bad?chars'): photosize = PhotoSizeFactory(name=name) with self.assertRaisesMessage(ValidationError, 'Use only plain lowercase letters (ASCII), numbers and underscores.'): photosize.full_clean() for name in ('label', '2_words'): photosize = PhotoSizeFactory(name=name) photosize.full_clean() ================================================ FILE: photologue/tests/test_resize.py ================================================ import unittest from django.core.exceptions import ValidationError from ..models import PhotoSize, PhotoSizeCache from .factories import PORTRAIT_IMAGE_PATH, SQUARE_IMAGE_PATH, PhotoFactory from .helpers import PhotologueBaseTest class PhotoSizeTest(unittest.TestCase): def test_clean_wont_allow_zero_dimension_and_crop(self): """Tests if ValidationError is raised by clean method if with or height is set to 0 and crop is set to true""" s = PhotoSize(name='test', width=400, crop=True) self.assertRaises(ValidationError, s.clean) class ImageResizeTest(PhotologueBaseTest): def setUp(self): super().setUp() # Portrait. self.pp = PhotoFactory(image__from_path=PORTRAIT_IMAGE_PATH) # Square. self.ps = PhotoFactory(image__from_path=SQUARE_IMAGE_PATH) def tearDown(self): super().tearDown() self.pp.delete() self.ps.delete() def test_resize_to_fit(self): self.assertEqual(self.pl.get_testPhotoSize_size(), (100, 75)) self.assertEqual(self.pp.get_testPhotoSize_size(), (75, 100)) self.assertEqual(self.ps.get_testPhotoSize_size(), (100, 100)) def test_resize_to_fit_width(self): self.s.size = (100, 0) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (100, 75)) self.assertEqual(self.pp.get_testPhotoSize_size(), (100, 133)) self.assertEqual(self.ps.get_testPhotoSize_size(), (100, 100)) def test_resize_to_fit_width_enlarge(self): self.s.size = (400, 0) self.s.upscale = True self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (400, 300)) self.assertEqual(self.pp.get_testPhotoSize_size(), (400, 533)) self.assertEqual(self.ps.get_testPhotoSize_size(), (400, 400)) def test_resize_to_fit_height(self): self.s.size = (0, 100) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (133, 100)) self.assertEqual(self.pp.get_testPhotoSize_size(), (75, 100)) self.assertEqual(self.ps.get_testPhotoSize_size(), (100, 100)) def test_resize_to_fit_height_enlarge(self): self.s.size = (0, 400) self.s.upscale = True self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (533, 400)) self.assertEqual(self.pp.get_testPhotoSize_size(), (300, 400)) self.assertEqual(self.ps.get_testPhotoSize_size(), (400, 400)) def test_resize_and_crop(self): self.s.crop = True self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), self.s.size) self.assertEqual(self.pp.get_testPhotoSize_size(), self.s.size) self.assertEqual(self.ps.get_testPhotoSize_size(), self.s.size) def test_resize_rounding_to_fit(self): self.s.size = (113, 113) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (113, 85)) self.assertEqual(self.pp.get_testPhotoSize_size(), (85, 113)) self.assertEqual(self.ps.get_testPhotoSize_size(), (113, 113)) def test_resize_rounding_cropped(self): self.s.size = (113, 113) self.s.crop = True self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), self.s.size) self.assertEqual(self.pp.get_testPhotoSize_size(), self.s.size) self.assertEqual(self.ps.get_testPhotoSize_size(), self.s.size) def test_resize_one_dimension_width(self): self.s.size = (100, 150) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (100, 75)) def test_resize_one_dimension_height(self): self.s.size = (200, 75) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (100, 75)) def test_resize_no_upscale(self): self.s.size = (1000, 1000) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (200, 150)) def test_resize_no_upscale_mixed_height(self): self.s.size = (400, 75) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (100, 75)) def test_resize_no_upscale_mixed_width(self): self.s.size = (100, 300) self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (100, 75)) def test_resize_no_upscale_crop(self): self.s.size = (1000, 1000) self.s.crop = True self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (1000, 1000)) def test_resize_upscale(self): self.s.size = (1000, 1000) self.s.upscale = True self.s.save() self.assertEqual(self.pl.get_testPhotoSize_size(), (1000, 750)) self.assertEqual(self.pp.get_testPhotoSize_size(), (750, 1000)) self.assertEqual(self.ps.get_testPhotoSize_size(), (1000, 1000)) class PhotoSizeCacheTest(PhotologueBaseTest): def test(self): cache = PhotoSizeCache() self.assertEqual(cache.sizes['testPhotoSize'], self.s) ================================================ FILE: photologue/tests/test_sitemap.py ================================================ import unittest from django.conf import settings from django.test import override_settings from .factories import GalleryFactory from .helpers import PhotologueBaseTest @unittest.skipUnless('django.contrib.sitemaps' in settings.INSTALLED_APPS, 'Sitemaps not installed in this project, nothing to test.') @override_settings(ROOT_URLCONF='photologue.tests.test_urls') class SitemapTest(PhotologueBaseTest): def test_get_photo(self): """Default test setup contains one photo, this should appear in the sitemap.""" response = self.client.get('/sitemap.xml') self.assertContains(response, 'http://example.com/ptests/photo/landscape/' '2011-12-23') def test_get_gallery(self): """if we add a gallery to the site, we should see both the gallery and the photo in the sitemap.""" self.gallery = GalleryFactory(slug='test-gallery') response = self.client.get('/sitemap.xml') self.assertContains(response, 'http://example.com/ptests/photo/landscape/' '2011-12-23') self.assertContains(response, 'http://example.com/ptests/gallery/test-gallery/' '2011-12-23') ================================================ FILE: photologue/tests/test_sites.py ================================================ import unittest from django.conf import settings from django.contrib.sites.models import Site from django.test import TestCase, override_settings from .factories import GalleryFactory, PhotoFactory @override_settings(ROOT_URLCONF='photologue.tests.test_urls') class SitesTest(TestCase): def setUp(self): """ Create two example sites that we can use to test what gets displayed where. """ super().setUp() self.site1, created1 = Site.objects.get_or_create( domain="example.com", name="example.com") self.site2, created2 = Site.objects.get_or_create( domain="example.org", name="example.org") with self.settings(PHOTOLOGUE_MULTISITE=True): # Be explicit about linking Galleries/Photos to Sites.""" self.gallery1 = GalleryFactory(slug='test-gallery', sites=[self.site1]) self.gallery2 = GalleryFactory(slug='not-on-site-gallery') self.photo1 = PhotoFactory(slug='test-photo', sites=[self.site1]) self.photo2 = PhotoFactory(slug='not-on-site-photo') self.gallery1.photos.add(self.photo1, self.photo2) # I'd like to use factory_boy's mute_signal decorator but that # will only available once factory_boy 2.4 is released. So long # we'll have to remove the site association manually self.photo2.sites.clear() def tearDown(self): super().tearDown() self.gallery1.delete() self.gallery2.delete() self.photo1.delete() self.photo2.delete() def test_basics(self): """ See if objects were added automatically (by the factory) to the current site. """ self.assertEqual(list(self.gallery1.sites.all()), [self.site1]) self.assertEqual(list(self.photo1.sites.all()), [self.site1]) def test_auto_add_sites(self): """ Objects should not be automatically associated with a particular site when ``PHOTOLOGUE_MULTISITE`` is ``True``. """ with self.settings(PHOTOLOGUE_MULTISITE=False): gallery = GalleryFactory() photo = PhotoFactory() self.assertEqual(list(gallery.sites.all()), [self.site1]) self.assertEqual(list(photo.sites.all()), [self.site1]) photo.delete() with self.settings(PHOTOLOGUE_MULTISITE=True): gallery = GalleryFactory() photo = PhotoFactory() self.assertEqual(list(gallery.sites.all()), []) self.assertEqual(list(photo.sites.all()), []) photo.delete() def test_gallery_list(self): response = self.client.get('/ptests/gallerylist/') self.assertEqual(list(response.context['object_list']), [self.gallery1]) def test_gallery_detail(self): response = self.client.get('/ptests/gallery/test-gallery/') self.assertEqual(response.context['object'], self.gallery1) response = self.client.get('/ptests/gallery/not-on-site-gallery/') self.assertEqual(response.status_code, 404) def test_photo_list(self): response = self.client.get('/ptests/photolist/') self.assertEqual(list(response.context['object_list']), [self.photo1]) def test_photo_detail(self): response = self.client.get('/ptests/photo/test-photo/') self.assertEqual(response.context['object'], self.photo1) response = self.client.get('/ptests/photo/not-on-site-photo/') self.assertEqual(response.status_code, 404) def test_photo_archive(self): response = self.client.get('/ptests/photo/') self.assertEqual(list(response.context['object_list']), [self.photo1]) def test_photos_in_gallery(self): """ Only those photos are supposed to be shown in a gallery that are also associated with the current site. """ response = self.client.get('/ptests/gallery/test-gallery/') self.assertEqual(list(response.context['object'].public()), [self.photo1]) @unittest.skipUnless('django.contrib.sitemaps' in settings.INSTALLED_APPS, 'Sitemaps not installed in this project, nothing to test.') def test_sitemap(self): """A sitemap should only show objects associated with the current site.""" response = self.client.get('/sitemap.xml') # Check photos. self.assertContains(response, 'http://example.com/ptests/photo/test-photo/' '2011-12-23') self.assertNotContains(response, 'http://example.com/ptests/photo/not-on-site-photo/' '2011-12-23') # Check galleries. self.assertContains(response, 'http://example.com/ptests/gallery/test-gallery/' '2011-12-23') self.assertNotContains(response, 'http://example.com/ptests/gallery/not-on-site-gallery/' '2011-12-23') def test_orphaned_photos(self): self.assertEqual(list(self.gallery1.orphaned_photos()), [self.photo2]) self.gallery2.photos.add(self.photo2) self.assertEqual(list(self.gallery1.orphaned_photos()), [self.photo2]) self.gallery1.sites.clear() self.assertEqual(list(self.gallery1.orphaned_photos()), [self.photo1, self.photo2]) self.photo1.sites.clear() self.photo2.sites.clear() self.assertEqual(list(self.gallery1.orphaned_photos()), [self.photo1, self.photo2]) ================================================ FILE: photologue/tests/test_urls.py ================================================ from django.contrib.sitemaps.views import sitemap from django.urls import include, path from ..sitemaps import GallerySitemap, PhotoSitemap urlpatterns = [ path('ptests/', include('photologue.urls', namespace='photologue')), ] sitemaps = {'photologue_galleries': GallerySitemap, 'photologue_photos': PhotoSitemap, } urlpatterns += [ path('sitemap.xml', sitemap, {'sitemaps': sitemaps}), ] ================================================ FILE: photologue/tests/test_views_gallery.py ================================================ from django.test import TestCase, override_settings from .factories import GalleryFactory @override_settings(ROOT_URLCONF='photologue.tests.test_urls') class RequestGalleryTest(TestCase): def setUp(self): super().setUp() self.gallery = GalleryFactory(slug='test-gallery') def test_archive_gallery_url_works(self): response = self.client.get('/ptests/gallery/') self.assertEqual(response.status_code, 200) def test_archive_gallery_empty(self): """If there are no galleries to show, tell the visitor - don't show a 404.""" self.gallery.is_public = False self.gallery.save() response = self.client.get('/ptests/gallery/') self.assertEqual(response.status_code, 200) self.assertEqual(response.context['latest'].count(), 0) def test_paginated_gallery_url_works(self): response = self.client.get('/ptests/gallerylist/') self.assertEqual(response.status_code, 200) def test_gallery_works(self): response = self.client.get('/ptests/gallery/test-gallery/') self.assertEqual(response.status_code, 200) def test_archive_year_gallery_works(self): response = self.client.get('/ptests/gallery/2011/') self.assertEqual(response.status_code, 200) def test_archive_month_gallery_works(self): response = self.client.get('/ptests/gallery/2011/12/') self.assertEqual(response.status_code, 200) def test_archive_day_gallery_works(self): response = self.client.get('/ptests/gallery/2011/12/23/') self.assertEqual(response.status_code, 200) def test_detail_gallery_works(self): response = self.client.get('/ptests/gallery/2011/12/23/test-gallery/') self.assertEqual(response.status_code, 200) def test_redirect_to_list(self): """Trivial test - if someone requests the root url of the app (i.e. /ptests/'), redirect them to the gallery list page.""" response = self.client.get('/ptests/') self.assertRedirects(response, '/ptests/gallery/', 301, 200) ================================================ FILE: photologue/tests/test_views_photo.py ================================================ from django.test import TestCase, override_settings from ..models import Photo from .factories import PhotoFactory @override_settings(ROOT_URLCONF='photologue.tests.test_urls') class RequestPhotoTest(TestCase): def setUp(self): super().setUp() self.photo = PhotoFactory(slug='fake-photo') def tearDown(self): super().tearDown() self.photo.delete() def test_archive_photo_url_works(self): response = self.client.get('/ptests/photo/') self.assertEqual(response.status_code, 200) def test_archive_photo_empty(self): """If there are no photo to show, tell the visitor - don't show a 404.""" Photo.objects.all().update(is_public=False) response = self.client.get('/ptests/photo/') self.assertEqual(response.status_code, 200) self.assertEqual(response.context['latest'].count(), 0) def test_paginated_photo_url_works(self): response = self.client.get('/ptests/photolist/') self.assertEqual(response.status_code, 200) def test_photo_works(self): response = self.client.get('/ptests/photo/fake-photo/') self.assertEqual(response.status_code, 200) def test_archive_year_photo_works(self): response = self.client.get('/ptests/photo/2011/') self.assertEqual(response.status_code, 200) def test_archive_month_photo_works(self): response = self.client.get('/ptests/photo/2011/12/') self.assertEqual(response.status_code, 200) def test_archive_day_photo_works(self): response = self.client.get('/ptests/photo/2011/12/23/') self.assertEqual(response.status_code, 200) def test_detail_photo_works(self): response = self.client.get('/ptests/photo/2011/12/23/fake-photo/') self.assertEqual(response.status_code, 200) def test_detail_photo_xss(self): """Check that the default templates handle XSS.""" self.photo.title = '' self.photo.caption = '' self.photo.save() response = self.client.get('/ptests/photo/2011/12/23/fake-photo/') self.assertContains(response, 'Photologue Demo - <img src=x onerror=alert("title")>') self.assertNotContains(response, '') self.assertContains(response, '<img src=x onerror=alert(origin)>') self.assertNotContains(response, '') ================================================ FILE: photologue/tests/test_zipupload.py ================================================ import copy from django import VERSION from django.contrib.auth.models import User from django.test import TestCase from ..models import Gallery, Photo from .factories import (IGNORED_FILES_ZIP_PATH, LANDSCAPE_IMAGE_PATH, SAMPLE_NOT_IMAGE_ZIP_PATH, SAMPLE_ZIP_PATH, GalleryFactory, PhotoFactory) class GalleryUploadTest(TestCase): """Testing the admin page that allows users to upload zips.""" def setUp(self): super().setUp() user = User.objects.create_user('john.doe', 'john.doe@example.com', 'secret') user.is_staff = True user.save() self.assertTrue(self.client.login(username='john.doe', password='secret')) self.zip_file = open(SAMPLE_ZIP_PATH, mode='rb') self.sample_form_data = {'zip_file': self.zip_file, 'title': 'This is a test title'} def tearDown(self): super().tearDown() self.zip_file.close() for photo in Photo.objects.all(): photo.delete() def test_get(self): """We can get the custom admin page.""" response = self.client.get('/admin/photologue/photo/upload_zip/') self.assertEqual(response.status_code, 200) self.assertTemplateUsed(response, 'admin/photologue/photo/upload_zip.html') self.assertContains(response, 'Upload a zip archive of photos') def test_breadcrumbs(self): """Quick check that the breadcrumbs are generated correctly.""" response = self.client.get('/admin/photologue/photo/upload_zip/') self.assertContains( response, """""", html=True) def test_missing_fields(self): """Missing fields mean the form is redisplayed with errors.""" test_data = copy.copy(self.sample_form_data) del test_data['zip_file'] response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 200) self.assertTrue(response.context['form'].errors) def test_good_data(self): """Upload a zip with a single file it it: 'sample.jpg'. It gets assigned to a newly created gallery 'Test'.""" test_data = copy.copy(self.sample_form_data) response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) # The redirect Location has changed in Django 1.9 - it used to be an absolute URI, now it returns # a relative one. if VERSION[0] == 1 and VERSION[1] <= 8: location = 'http://testserver/admin/photologue/photo/' else: location = '..' self.assertEqual(response['Location'], location) self.assertQuerySetEqual(Gallery.objects.all(), [''], transform=repr) self.assertQuerySetEqual(Photo.objects.all(), [''], transform=repr) # The photo is attached to the gallery. gallery = Gallery.objects.get(title='This is a test title') self.assertQuerySetEqual(gallery.photos.all(), [''], transform=repr) def test_duplicate_gallery(self): """If we try to create a Gallery with a title that duplicates an existing title, refuse to load.""" GalleryFactory(title='This is a test title') test_data = copy.copy(self.sample_form_data) response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 200) self.assertTrue(response.context['form']['title'].errors) def test_title_or_gallery(self): """We should supply either a title field or a gallery.""" test_data = copy.copy(self.sample_form_data) del test_data['title'] response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(list(response.context['form'].non_field_errors()), ['Select an existing gallery, or enter a title for a new gallery.']) def test_not_image(self): """A zip with a file of the wrong format (.txt). That file gets ignored.""" test_data = copy.copy(self.sample_form_data) with open(SAMPLE_NOT_IMAGE_ZIP_PATH, mode='rb') as f: test_data['zip_file'] = f response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 302) self.assertQuerySetEqual(Gallery.objects.all(), [''], transform=repr) self.assertQuerySetEqual(Photo.objects.all(), [''], transform=repr) def test_ignored(self): """Ignore anything that does not look like a image file. E.g. hidden files, and folders. We have two images: one in the top level of the zip, and one in a subfolder. The second one gets ignored - we only process files at the zip root.""" test_data = copy.copy(self.sample_form_data) with open(IGNORED_FILES_ZIP_PATH, mode='rb') as f: test_data['zip_file'] = f response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 302) self.assertQuerySetEqual(Gallery.objects.all(), [''], transform=repr) self.assertQuerySetEqual(Photo.objects.all(), [''], transform=repr) def test_existing_gallery(self): """Add the photos in the zip to an existing gallery.""" existing_gallery = GalleryFactory(title='Existing') test_data = copy.copy(self.sample_form_data) test_data['gallery'] = existing_gallery.id del test_data['title'] response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 302) self.assertQuerySetEqual(Gallery.objects.all(), [''], transform=repr) self.assertQuerySetEqual(Photo.objects.all(), [''], transform=repr) # The photo is attached to the existing gallery. self.assertQuerySetEqual(existing_gallery.photos.all(), [''], transform=repr) def test_existing_gallery_custom_title(self): """Add the photos in the zip to an existing gallery, but specify a custom title for the photos.""" existing_gallery = GalleryFactory(title='Existing') test_data = copy.copy(self.sample_form_data) test_data['gallery'] = existing_gallery.id test_data['title'] = 'Custom title' response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 302) self.assertQuerySetEqual(Photo.objects.all(), [''], transform=repr) def test_duplicate_slug(self): """Uploading a zip, but a photo already exists with the target slug.""" PhotoFactory(title='This is a test title 1') PhotoFactory(title='This is a test title 2') test_data = copy.copy(self.sample_form_data) response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 302) self.assertQuerySetEqual(Photo.objects.all(), [ '', '', '' ], ordered=False, transform=repr) def test_bad_zip(self): """Supplied file is not a zip file - tell user.""" test_data = copy.copy(self.sample_form_data) with open(LANDSCAPE_IMAGE_PATH, mode='rb') as f: test_data['zip_file'] = f response = self.client.post('/admin/photologue/photo/upload_zip/', test_data) self.assertEqual(response.status_code, 200) self.assertTrue(response.context['form']['zip_file'].errors) ================================================ FILE: photologue/urls.py ================================================ from django.urls import path, re_path, reverse_lazy from django.views.generic import RedirectView from .views import (GalleryArchiveIndexView, GalleryDateDetailView, GalleryDayArchiveView, GalleryDetailView, GalleryListView, GalleryMonthArchiveView, GalleryYearArchiveView, PhotoArchiveIndexView, PhotoDateDetailView, PhotoDayArchiveView, PhotoDetailView, PhotoListView, PhotoMonthArchiveView, PhotoYearArchiveView) """NOTE: the url names are changing. In the long term, I want to remove the 'pl-' prefix on all urls, and instead rely on an application namespace 'photologue'. At the same time, I want to change some URL patterns, e.g. for pagination. Changing the urls twice within a few releases, could be confusing, so instead I am updating URLs bit by bit. The new style will coexist with the existing 'pl-' prefix for a couple of releases. """ app_name = 'photologue' urlpatterns = [ re_path(r'^gallery/(?P\d{4})/(?P[0-9]{2})/(?P\w{1,2})/(?P[\-\d\w]+)/$', GalleryDateDetailView.as_view(month_format='%m'), name='gallery-detail'), re_path(r'^gallery/(?P\d{4})/(?P[0-9]{2})/(?P\w{1,2})/$', GalleryDayArchiveView.as_view(month_format='%m'), name='gallery-archive-day'), re_path(r'^gallery/(?P\d{4})/(?P[0-9]{2})/$', GalleryMonthArchiveView.as_view(month_format='%m'), name='gallery-archive-month'), re_path(r'^gallery/(?P\d{4})/$', GalleryYearArchiveView.as_view(), name='pl-gallery-archive-year'), path('gallery/', GalleryArchiveIndexView.as_view(), name='pl-gallery-archive'), path('', RedirectView.as_view( url=reverse_lazy('photologue:pl-gallery-archive'), permanent=True), name='pl-photologue-root'), re_path(r'^gallery/(?P[\-\d\w]+)/$', GalleryDetailView.as_view(), name='pl-gallery'), path('gallerylist/', GalleryListView.as_view(), name='gallery-list'), re_path(r'^photo/(?P\d{4})/(?P[0-9]{2})/(?P\w{1,2})/(?P[\-\d\w]+)/$', PhotoDateDetailView.as_view(month_format='%m'), name='photo-detail'), re_path(r'^photo/(?P\d{4})/(?P[0-9]{2})/(?P\w{1,2})/$', PhotoDayArchiveView.as_view(month_format='%m'), name='photo-archive-day'), re_path(r'^photo/(?P\d{4})/(?P[0-9]{2})/$', PhotoMonthArchiveView.as_view(month_format='%m'), name='photo-archive-month'), re_path(r'^photo/(?P\d{4})/$', PhotoYearArchiveView.as_view(), name='pl-photo-archive-year'), path('photo/', PhotoArchiveIndexView.as_view(), name='pl-photo-archive'), re_path(r'^photo/(?P[\-\d\w]+)/$', PhotoDetailView.as_view(), name='pl-photo'), path('photolist/', PhotoListView.as_view(), name='photo-list'), ] ================================================ FILE: photologue/utils/__init__.py ================================================ ================================================ FILE: photologue/utils/reflection.py ================================================ """ Function for generating web 2.0 style image reflection effects. Copyright (c) 2007, Justin C. Driscoll All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of reflection.py nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ try: import Image import ImageColor except ImportError: try: from PIL import Image, ImageColor except ImportError: raise ImportError("The Python Imaging Library was not found.") def add_reflection(im, bgcolor="#00000", amount=0.4, opacity=0.6): """ Returns the supplied PIL Image (im) with a reflection effect bgcolor The background color of the reflection gradient amount The height of the reflection as a percentage of the orignal image opacity The initial opacity of the reflection gradient Originally written for the Photologue image management system for Django and Based on the original concept by Bernd Schlapsi """ # convert bgcolor string to rgb value background_color = ImageColor.getrgb(bgcolor) # copy orignial image and flip the orientation reflection = im.copy().transpose(Image.FLIP_TOP_BOTTOM) # create a new image filled with the bgcolor the same size background = Image.new("RGB", im.size, background_color) # calculate our alpha mask start = int(255 - (255 * opacity)) # The start of our gradient steps = int(255 * amount) # the number of intermedite values increment = (255 - start) / float(steps) mask = Image.new('L', (1, 255)) for y in range(255): if y < steps: val = int(y * increment + start) else: val = 255 mask.putpixel((0, y), val) alpha_mask = mask.resize(im.size) # merge the reflection onto our background color using the alpha mask reflection = Image.composite(background, reflection, alpha_mask) # crop the reflection reflection_height = int(im.size[1] * amount) reflection = reflection.crop((0, 0, im.size[0], reflection_height)) # create new image sized to hold both the original image and the reflection composite = Image.new("RGB", (im.size[0], im.size[1] + reflection_height), background_color) # paste the orignal image and the reflection into the composite image composite.paste(im, (0, 0)) composite.paste(reflection, (0, im.size[1])) # return the image complete with reflection effect return composite ================================================ FILE: photologue/utils/watermark.py ================================================ """ Function for applying watermarks to images. Original found here: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362879 """ try: import Image import ImageEnhance except ImportError: try: from PIL import Image, ImageEnhance except ImportError: raise ImportError("The Python Imaging Library was not found.") def reduce_opacity(im, opacity): """Returns an image with reduced opacity.""" assert opacity >= 0 and opacity <= 1 if im.mode != 'RGBA': im = im.convert('RGBA') else: im = im.copy() alpha = im.split()[3] alpha = ImageEnhance.Brightness(alpha).enhance(opacity) im.putalpha(alpha) return im def apply_watermark(im, mark, position, opacity=1): """Adds a watermark to an image.""" if opacity < 1: mark = reduce_opacity(mark, opacity) if im.mode != 'RGBA': im = im.convert('RGBA') # create a transparent layer the size of the image and draw the # watermark in that layer. layer = Image.new('RGBA', im.size, (0, 0, 0, 0)) if position == 'tile': for y in range(0, im.size[1], mark.size[1]): for x in range(0, im.size[0], mark.size[0]): layer.paste(mark, (x, y)) elif position == 'scale': # scale, but preserve the aspect ratio ratio = min( float(im.size[0]) / mark.size[0], float(im.size[1]) / mark.size[1]) w = int(mark.size[0] * ratio) h = int(mark.size[1] * ratio) mark = mark.resize((w, h)) layer.paste(mark, (int((im.size[0] - w) / 2), int((im.size[1] - h) / 2))) else: layer.paste(mark, position) # composite the watermark with the layer return Image.composite(layer, im, layer) ================================================ FILE: photologue/views.py ================================================ from django.views.generic.dates import (ArchiveIndexView, DateDetailView, DayArchiveView, MonthArchiveView, YearArchiveView) from django.views.generic.detail import DetailView from django.views.generic.list import ListView from .models import Gallery, Photo # Gallery views. class GalleryListView(ListView): queryset = Gallery.objects.on_site().is_public() paginate_by = 20 class GalleryDetailView(DetailView): queryset = Gallery.objects.on_site().is_public() class GalleryDateView: queryset = Gallery.objects.on_site().is_public() date_field = 'date_added' allow_empty = True class GalleryDateDetailView(GalleryDateView, DateDetailView): pass class GalleryArchiveIndexView(GalleryDateView, ArchiveIndexView): pass class GalleryDayArchiveView(GalleryDateView, DayArchiveView): pass class GalleryMonthArchiveView(GalleryDateView, MonthArchiveView): pass class GalleryYearArchiveView(GalleryDateView, YearArchiveView): make_object_list = True # Photo views. class PhotoListView(ListView): queryset = Photo.objects.on_site().is_public() paginate_by = 20 class PhotoDetailView(DetailView): queryset = Photo.objects.on_site().is_public() class PhotoDateView: queryset = Photo.objects.on_site().is_public() date_field = 'date_added' allow_empty = True class PhotoDateDetailView(PhotoDateView, DateDetailView): pass class PhotoArchiveIndexView(PhotoDateView, ArchiveIndexView): pass class PhotoDayArchiveView(PhotoDateView, DayArchiveView): pass class PhotoMonthArchiveView(PhotoDateView, MonthArchiveView): pass class PhotoYearArchiveView(PhotoDateView, YearArchiveView): make_object_list = True ================================================ FILE: requirements.txt ================================================ # Note: Specifying django here crashes tox; it's autoinstalled with other packages it # so can be removed from this file. # Cannot force a precise Pillow version as we need to support Py3.8-Py3.13 and there's # no Pillow version that meets both requirements. Pillow>=10 django-sortedm2m>=4.0.0 # Support for Django 5.1. ExifRead>=3 ================================================ FILE: scripts/__init__.py ================================================ ================================================ FILE: scripts/releaser_hooks.py ================================================ import os import subprocess try: import polib except ImportError: print('Msg to the package releaser: prerelease hooks will not work as you have not installed polib.') raise import codecs import copy def prereleaser_before(data): """ 1. Run the unit tests one last time before we make a release. 2. Update the CONTRIBUTORS.txt file. Note: Install * polib (https://pypi.python.org/pypi/polib). * pep8. """ print('Running unit tests.') subprocess.check_output(["python", "example_project/manage.py", "test", "photologue"]) print('Checking that we have no outstanding DB migrations.') output = subprocess.check_output(["python", "example_project/manage.py", "makemigrations", "--dry-run", "photologue"]) if not output == b"No changes detected in app 'photologue'\n": raise Exception('There are outstanding migrations for Photologue.') print('Updating CONTRIBUTORS.txt') # This command will get the author of every commit. output = subprocess.check_output(["git", "log", "--format='%aN'"]) # Convert to a list. contributors_list = [contributor.strip("'") for contributor in output.decode('utf-8').split('\n')] # Now add info from the translator files. This is incomplete, we can only list # the 'last contributor' to each translation. for language in os.listdir('photologue/locale/'): filename = f'photologue/locale/{language}/LC_MESSAGES/django.po' po = polib.pofile(filename) last_translator = po.metadata['Last-Translator'] contributors_list.append(last_translator[:last_translator.find('<') - 1]) # Now we want to only show each contributor once, and to list them by how many # contributions they have made - a rough guide to the effort they have put in. contributors_dict = {} for author in contributors_list: author_copy = copy.copy(author) if author_copy in ('', '(no author)', 'FULL NAME'): # Skip bad data. continue # The creator of this project should always appear first in the list - so # don't add him to this list, but hard-code his name. if author_copy in ('Justin Driscoll', 'justin.driscoll'): continue # Handle contributors who appear under multiple names. if author_copy == 'richardbarran': author_copy = 'Richard Barran' if author_copy in contributors_dict: contributors_dict[author_copy] += 1 else: contributors_dict[author_copy] = 1 with codecs.open('CONTRIBUTORS.txt', 'w', encoding='utf8') as f: f.write('Photologue is made possible by all the people who have contributed' ' to it. A non-exhaustive list follows:\n\n') f.write('Justin Driscoll\n') for i in sorted(contributors_dict, key=contributors_dict.get, reverse=True): f.write(i + '\n') # And commit the new contributors file. if subprocess.check_output(["git", "diff", "CONTRIBUTORS.txt"]): subprocess.check_output(["git", "commit", "-m", "Updated the list of contributors.", "CONTRIBUTORS.txt"]) ================================================ FILE: setup.cfg ================================================ [zest.releaser] python-file-with-version = photologue/__init__.py prereleaser.before = scripts.releaser_hooks.prereleaser_before [flake8] # Follow Django style conventions - allow longer lines. max-line-length = 119 exclude = docs,photologue/migrations,example_project/example_project/example_storages/s3utils.py,.tox ignore = E265,E722 [bdist_wheel] universal = 1 ================================================ FILE: setup.py ================================================ # /usr/bin/env python from pkg_resources import parse_requirements from setuptools import find_packages, setup import photologue def get_requirements(source): with open(source) as f: return sorted({str(req) for req in parse_requirements(f.read())}) setup( name="django-photologue", version=photologue.__version__, description="Powerful image management for the Django web framework.", author="Justin Driscoll, Marcos Daniel Petry, Richard Barran", author_email="justin@driscolldev.com, marcospetry@gmail.com, richard@arbee-design.co.uk", url="https://github.com/richardbarran/django-photologue", packages=find_packages(), include_package_data=True, zip_safe=False, classifiers=['Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Utilities'], install_requires=get_requirements('requirements.txt'), ) ================================================ FILE: tox.ini ================================================ # tox (https://tox.readthedocs.io/) is a tool for running tests # in multiple virtualenvs. This configuration file will run the # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. [tox] envlist = py{38,39,310,311,312}-django42 py{310,311,312,313}-django51 py{310,311,312,313}-django52 [testenv] deps = django42: Django>=4.2,<5.0 django51: Django>=5.1,<5.2 django52: Django>=5.2,<6.0 -r{toxinidir}/example_project/requirements.txt changedir = {toxinidir}/example_project/ commands = python manage.py test photologue [gh-actions] python = 3.8: py38 3.9: py39 3.10: py310 3.11: py311 3.12: py312 3.13: py313