mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge branch '3.8'
Conflicts: CHANGELOG.md builder.php launchpadToLocales.php localesToLaunchPad.php
This commit is contained in:
235
CHANGELOG.md
235
CHANGELOG.md
@@ -9,11 +9,58 @@
|
|||||||
- Convert Ftp Export custom adapter to Doctrine entity.
|
- Convert Ftp Export custom adapter to Doctrine entity.
|
||||||
- Session management is now part of Phraseanet configuration.
|
- Session management is now part of Phraseanet configuration.
|
||||||
|
|
||||||
* 3.8.2 (2013-11-15)
|
## 3.8.3 (2014-xx-xx)
|
||||||
|
|
||||||
|
- BugFix : Fix scheduler timeout.
|
||||||
|
- BugFix : Fix thesaurus tab javascript errors.
|
||||||
|
- BugFix : Fix IE slow script error messages.
|
||||||
|
- BugFix : Fix basket records sorting.
|
||||||
|
- BugFix : Fix admin field editing on a field delete.
|
||||||
|
- BugFix : Fix HTTP 400 on email test.
|
||||||
|
- BugFix : Fix records export names.
|
||||||
|
- BugFix : Fix collection rights injection on create.
|
||||||
|
- BugFix : Fix disconnection of removed users.
|
||||||
|
- BugFix : Fix language selection on mobile devices.
|
||||||
|
- BugFix : Fix collection and databox popups in admin views.
|
||||||
|
- BugFix : Fix suggested values editing on Firefox.
|
||||||
|
- BugFix : Fix lightbox that could not be load in case some validation have been removed.
|
||||||
|
- BugFix : Fix user settings precedence.
|
||||||
|
- BugFix : Fix user search by last applied template.
|
||||||
|
- BugFix : Fix thesaurus highlight.
|
||||||
|
- BugFix : Fix collection sorting.
|
||||||
|
- BugFix : Fix FTP test messages.
|
||||||
|
- BugFix : Fix video width and height extraction.
|
||||||
|
- BugFix : Fix caption sanitization.
|
||||||
|
- BugFix : Fix report locales.
|
||||||
|
- BugFix : Fix FTP receiver email reception.
|
||||||
|
- BugFix : Fix user registration management display.
|
||||||
|
- BugFix : Fix report icons.
|
||||||
|
- BugFix : Fix report pagination.
|
||||||
|
- BugFix : Fix Phrasea SearchEngine cache duration.
|
||||||
|
- BugFix : Fix basket caption display.
|
||||||
|
- BugFix : Fix collection mount.
|
||||||
|
- BugFix : Fix password grant authorization in API.
|
||||||
|
- BugFix : Fix video display on mobile devices.
|
||||||
|
- BugFix : Fix record mover task.
|
||||||
|
- BugFix : Fix bug on edit presets load.
|
||||||
|
- BugFix : Fix detailed view access by guests users.
|
||||||
|
- Enhancement : Add datepicker input placeholder.
|
||||||
|
- Enhancement : Add support for portrait videos.
|
||||||
|
- Enhancement : Display terms of use in a new window.
|
||||||
|
- Enhancement : Increase tasks memory limit.
|
||||||
|
- Enhancement : Add an option to reset advanced search on production reload.
|
||||||
|
- Enhancement : Update task manager log messages.
|
||||||
|
- Enhancement : Update to Symfony 2.3.9.
|
||||||
|
- Enhancement : Add plugins:list command.
|
||||||
|
- Enhancement : Images and Videos are not interpolated anymore.
|
||||||
|
- Enhancement : Add option to disable filesystem logs.
|
||||||
|
- Enhancement : Add compatibility with PHP 5.6.
|
||||||
|
|
||||||
|
## 3.8.2 (2013-11-15)
|
||||||
|
|
||||||
- BugFix : Locale translation may block administration module load.
|
- BugFix : Locale translation may block administration module load.
|
||||||
|
|
||||||
* 3.8.1 (2013-11-15)
|
## 3.8.1 (2013-11-15)
|
||||||
|
|
||||||
- BugFix : IE 6 homepage error message is broken.
|
- BugFix : IE 6 homepage error message is broken.
|
||||||
- BugFix : Databox fields administration is broken on firefox.
|
- BugFix : Databox fields administration is broken on firefox.
|
||||||
@@ -59,7 +106,7 @@
|
|||||||
- Enhancement : Add Phraseanet twig namespace.
|
- Enhancement : Add Phraseanet twig namespace.
|
||||||
- Enhancement : Allow video bitrate up to 12M.
|
- Enhancement : Allow video bitrate up to 12M.
|
||||||
|
|
||||||
* 3.8.0 (2013-09-26)
|
## 3.8.0 (2013-09-26)
|
||||||
|
|
||||||
- BC Break : Removed `bin/console check:system` command, replaced by `bin/setup check:system`.
|
- BC Break : Removed `bin/console check:system` command, replaced by `bin/setup check:system`.
|
||||||
- BC Break : Removed `bin/console system:upgrade` command, replaced by `bin/setup system:upgrade`.
|
- BC Break : Removed `bin/console system:upgrade` command, replaced by `bin/setup system:upgrade`.
|
||||||
@@ -102,128 +149,128 @@
|
|||||||
host configuration depending on Phraseanet configuration
|
host configuration depending on Phraseanet configuration
|
||||||
- Phraseanet enabled languages is now configurable.
|
- Phraseanet enabled languages is now configurable.
|
||||||
|
|
||||||
* 3.7.15 (2013-09-14)
|
## 3.7.15 (2013-09-14)
|
||||||
|
|
||||||
- Add Office Plugin client id and secret.
|
- Add Office Plugin client id and secret.
|
||||||
|
|
||||||
* 3.7.14 (2013-07-23)
|
## 3.7.14 (2013-07-23)
|
||||||
|
|
||||||
- BugFix : Multi layered images are not rendered properly.
|
- BugFix : Multi layered images are not rendered properly.
|
||||||
- BugFix : Status editing can be accessed on some records by users that are not granted.
|
- BugFix : Status editing can be accessed on some records by users that are not granted.
|
||||||
- BugFix : Records index is not updated after databox structure field rename.
|
- BugFix : Records index is not updated after databox structure field rename.
|
||||||
- Enhancement : Add support for grayscale colorspaces.
|
- Enhancement : Add support for grayscale colorspaces.
|
||||||
|
|
||||||
* 3.7.13 (2013-07-04)
|
## 3.7.13 (2013-07-04)
|
||||||
|
|
||||||
- Some users were able to access story creation form whereas they were not allowed to.
|
- Some users were able to access story creation form whereas they were not allowed to.
|
||||||
- Disable detailed view keyboard shortcuts when export modal is open.
|
- Disable detailed view keyboard shortcuts when export modal is open.
|
||||||
- Update to PHP-FFMpeg 0.2.4, better support for video resizing.
|
- Update to PHP-FFMpeg 0.2.4, better support for video resizing.
|
||||||
- BugFix : Unablt to reject a thesaurus term from thesaurus module.
|
- BugFix : Unablt to reject a thesaurus term from thesaurus module.
|
||||||
|
|
||||||
* 3.7.12 (2013-05-13)
|
## 3.7.12 (2013-05-13)
|
||||||
|
|
||||||
- Fix : Removed "required" attribute on non-required fields in order form.
|
- BugFix : : Removed "required" attribute on non-required fields in order form.
|
||||||
- Fix : Fix advanced search dialog CSS.
|
- BugFix : : Fix advanced search dialog CSS.
|
||||||
- Fix : Grouped status bits are not displayed in advanced search dialog.
|
- BugFix : : Grouped status bits are not displayed in advanced search dialog.
|
||||||
- Enhancement : Locales update.
|
- Enhancement : Locales update.
|
||||||
|
|
||||||
* 3.7.11 (2013-04-23)
|
## 3.7.11 (2013-04-23)
|
||||||
|
|
||||||
- Enhancement : Animated Gifs (video support) does not requir Gmagick anymore to work properly.
|
- Enhancement : Animated Gifs (video support) does not requir Gmagick anymore to work properly.
|
||||||
- Fix : When importing users from CSV file, some properties were missing.
|
- BugFix : : When importing users from CSV file, some properties were missing.
|
||||||
- Fix : In Report, CSV export is limited to 30 lines.
|
- BugFix : : In Report, CSV export is limited to 30 lines.
|
||||||
|
|
||||||
* 3.7.10 (2013-04-03)
|
## 3.7.10 (2013-04-03)
|
||||||
|
|
||||||
- Fix : Permalinks pages may be broken.
|
- BugFix : : Permalinks pages may be broken.
|
||||||
- Fix : Permalinks always expose the file extension of the original document.
|
- BugFix : : Permalinks always expose the file extension of the original document.
|
||||||
- Fix : Thesaurus multi-bases queries may return incorrect proposals.
|
- BugFix : : Thesaurus multi-bases queries may return incorrect proposals.
|
||||||
- Fix : Phraseanet installation fails.
|
- BugFix : : Phraseanet installation fails.
|
||||||
- Fix : Consecutive calls to image tools may fail.
|
- BugFix : : Consecutive calls to image tools may fail.
|
||||||
|
|
||||||
* 3.7.9 (2013-03-27)
|
## 3.7.9 (2013-03-27)
|
||||||
|
|
||||||
- Fix : Detailed view does not display the right search result.
|
- BugFix : : Detailed view does not display the right search result.
|
||||||
- Fix : Twitter and Facebook share are available even if it's disabled in system settings.
|
- BugFix : : Twitter and Facebook share are available even if it's disabled in system settings.
|
||||||
- Add timers in API.
|
- Add timers in API.
|
||||||
- Permalinks now expose a filename.
|
- Permalinks now expose a filename.
|
||||||
- Permalinks returned by the API now embed a download URL.
|
- Permalinks returned by the API now embed a download URL.
|
||||||
- Bump to API version 1.3.1 (see https://docs.phraseanet.com/3.7/en/Devel/API/Changelog.html).
|
- Bump to API version 1.3.1 (see https://docs.phraseanet.com/3.7/en/Devel/API/Changelog.html).
|
||||||
|
|
||||||
* 3.7.8 (2013-03-22)
|
## 3.7.8 (2013-03-22)
|
||||||
|
|
||||||
- Fix : Phraseanet API does not return results at correct offset.
|
- BugFix : : Phraseanet API does not return results at correct offset.
|
||||||
- Fix : Manual thumbnail extraction for videos returns images with anamorphosis.
|
- BugFix : : Manual thumbnail extraction for videos returns images with anamorphosis.
|
||||||
- Fix : Rollover images have light anamorphosis.
|
- BugFix : : Rollover images have light anamorphosis.
|
||||||
- Fix : Document and sub-definitions substitution may not work properly.
|
- BugFix : : Document and sub-definitions substitution may not work properly.
|
||||||
- Add preview and caption to order manager.
|
- Add preview and caption to order manager.
|
||||||
- Add support for CMYK images.
|
- Add support for CMYK images.
|
||||||
- Preserve ICC profiles data in sub-definitions.
|
- Preserve ICC profiles data in sub-definitions.
|
||||||
|
|
||||||
* 3.7.7 (2013-03-08)
|
## 3.7.7 (2013-03-08)
|
||||||
|
|
||||||
- Fix : Archive task fails with stories.
|
- BugFix : : Archive task fails with stories.
|
||||||
- Update of dutch locales.
|
- Update of dutch locales.
|
||||||
- Fix : Fix feeds entry notification display.
|
- BugFix : : Fix feeds entry notification display.
|
||||||
- Fix : Read receipts are not associated to email for push and validation.
|
- BugFix : : Read receipts are not associated to email for push and validation.
|
||||||
|
|
||||||
* 3.7.6 (2013-02-01)
|
## 3.7.6 (2013-02-01)
|
||||||
|
|
||||||
- Fix : Load of a publication entry with a publisher that refers to a deleted users fails.
|
- BugFix : : Load of a publication entry with a publisher that refers to a deleted users fails.
|
||||||
- Fix : Wrong ACL check for displaying feeds in Lightbox (thumbnails are displayed instead of preview).
|
- BugFix : : Wrong ACL check for displaying feeds in Lightbox (thumbnails are displayed instead of preview).
|
||||||
- Releasing a validation feedback now requires at least one agreement.
|
- Releasing a validation feedback now requires at least one agreement.
|
||||||
- Fix : Lightbox zoom fails when image is larger than container.
|
- BugFix : : Lightbox zoom fails when image is larger than container.
|
||||||
- Fix : Landscape format images are displayed with a wrong ratio in quarantine.
|
- BugFix : : Landscape format images are displayed with a wrong ratio in quarantine.
|
||||||
- General enhancement of Lightbox display on IE 7/8/9.
|
- General enhancement of Lightbox display on IE 7/8/9.
|
||||||
|
|
||||||
* 3.7.5 (2013-01-09)
|
## 3.7.5 (2013-01-09)
|
||||||
|
|
||||||
- Support of Dailymotion latest API.
|
- Support of Dailymotion latest API.
|
||||||
- Fix : Bridge application creation is not possible after having upload a file.
|
- BugFix : : Bridge application creation is not possible after having upload a file.
|
||||||
- Upload speed is now in octet (previously in bytes).
|
- Upload speed is now in octet (previously in bytes).
|
||||||
- Upload is de-activated when no data box is mounted.
|
- Upload is de-activated when no data box is mounted.
|
||||||
- Fix : Lightbox display is broken on IE 7/8.
|
- BugFix : : Lightbox display is broken on IE 7/8.
|
||||||
- Fix : Collection setup via console throws an exception.
|
- BugFix : : Collection setup via console throws an exception.
|
||||||
- Fix : Metadata extraction via Dublin Core mapping returns broken data.
|
- BugFix : : Metadata extraction via Dublin Core mapping returns broken data.
|
||||||
- Fix : Minilogos with a size less than 24px are resized.
|
- BugFix : : Minilogos with a size less than 24px are resized.
|
||||||
- Fix : Watermark custom files are not handled correctly.
|
- BugFix : : Watermark custom files are not handled correctly.
|
||||||
- Fix : XML import to metadata fields that do not have proper source do not work correctly.
|
- BugFix : : XML import to metadata fields that do not have proper source do not work correctly.
|
||||||
- Fix : Databox unmount can provide 500's to users that have attached stories to their work zone.
|
- BugFix : : Databox unmount can provide 500's to users that have attached stories to their work zone.
|
||||||
|
|
||||||
* 3.7.4 (2012-12-20)
|
## 3.7.4 (2012-12-20)
|
||||||
|
|
||||||
- Fix : Upgrade from 3.5 may lose metadatas.
|
- BugFix : : Upgrade from 3.5 may lose metadatas.
|
||||||
- Fix : Selection of a metadata source do not behave correctly.
|
- BugFix : : Selection of a metadata source do not behave correctly.
|
||||||
- Fix : Remember collections selection on production reload.
|
- BugFix : : Remember collections selection on production reload.
|
||||||
- Fix : Manually renew a developer token fails.
|
- BugFix : : Manually renew a developer token fails.
|
||||||
- Fix : Terms Of Use template displays HTML entitites.
|
- BugFix : : Terms Of Use template displays HTML entitites.
|
||||||
- Replace javascript alert by Phraseanet dialog box in export dialog box.
|
- Replace javascript alert by Phraseanet dialog box in export dialog box.
|
||||||
- Video subdef GOP option has now 300 as max value with steps of 10.
|
- Video subdef GOP option has now 300 as max value with steps of 10.
|
||||||
- Fix : Some subdef options are not saved correctly (audio samplerate, GOP).
|
- BugFix : : Some subdef options are not saved correctly (audio samplerate, GOP).
|
||||||
- Support for multi-layered tiff.
|
- Support for multi-layered tiff.
|
||||||
- Fix : Long collection names are not displayed correctly.
|
- BugFix : : Long collection names are not displayed correctly.
|
||||||
- Fix : Document permalinks were not correctly supported.
|
- BugFix : : Document permalinks were not correctly supported.
|
||||||
- Fix : Export name containing non ASCII are now escaped.
|
- BugFix : : Export name containing non ASCII are now escaped.
|
||||||
- Default structure now have a the thumbtitle attribute correctly set up.
|
- Default structure now have a the thumbtitle attribute correctly set up.
|
||||||
- Chrome mobile User Agent is now supported.
|
- Chrome mobile User Agent is now supported.
|
||||||
- Fix : Remove minilogos do not work.
|
- BugFix : : Remove minilogos do not work.
|
||||||
- Fix : Send orders do not triggers notifications.
|
- BugFix : : Send orders do not triggers notifications.
|
||||||
- Fix : Story thumbnails are not displayed correctly.
|
- BugFix : : Story thumbnails are not displayed correctly.
|
||||||
- Fix : Add dutch (nl_NL) support.
|
- BugFix : : Add dutch (nl_NL) support.
|
||||||
|
|
||||||
* 3.7.3 (2012-11-09)
|
## 3.7.3 (2012-11-09)
|
||||||
|
|
||||||
- Fix : Security flaw (thanks TEHTRI-Security http://www.tehtri-security.com/).
|
- BugFix : : Security flaw (thanks TEHTRI-Security http://www.tehtri-security.com/).
|
||||||
- Fix : Thesaurus issue when a term contains HTML entity.
|
- BugFix : : Thesaurus issue when a term contains HTML entity.
|
||||||
- Fix : Video width and height are now multiple of 16.
|
- BugFix : : Video width and height are now multiple of 16.
|
||||||
- Fix : Download over HTTPS on IE 6 fails.
|
- BugFix : : Download over HTTPS on IE 6 fails.
|
||||||
- Fix : Permalinks that embeds PDF are broken.
|
- BugFix : : Permalinks that embeds PDF are broken.
|
||||||
- Fix : Lightbox shows record preview at load even if the user does not have the right to access it.
|
- BugFix : : Lightbox shows record preview at load even if the user does not have the right to access it.
|
||||||
- Fix : Reminders that have been sent to validation participants are not saved.
|
- BugFix : : Reminders that have been sent to validation participants are not saved.
|
||||||
- Fix : IE 6 is now correctly handled in Classic module.
|
- BugFix : : IE 6 is now correctly handled in Classic module.
|
||||||
- Fix : Download of a basket with a title containing a slash ('/') fails.
|
- BugFix : : Download of a basket with a title containing a slash ('/') fails.
|
||||||
- Fix : Add check on posix extension alongside pcntl extension.
|
- BugFix : : Add check on posix extension alongside pcntl extension.
|
||||||
- Fix : Some process may fail with pcntl extension.
|
- BugFix : : Some process may fail with pcntl extension.
|
||||||
- File-info mime-type guesser is deprecated in favor of binary mime-type guesser.
|
- File-info mime-type guesser is deprecated in favor of binary mime-type guesser.
|
||||||
- Add an option to force Terms of Use re-validation for each export.
|
- Add an option to force Terms of Use re-validation for each export.
|
||||||
- Move binary configuration to config file (config/binaries.yml).
|
- Move binary configuration to config file (config/binaries.yml).
|
||||||
@@ -238,25 +285,25 @@
|
|||||||
- Mails links are now clickable in Thunderbird and Outlook.
|
- Mails links are now clickable in Thunderbird and Outlook.
|
||||||
- Emails list in mail export now supports comma and space separators.
|
- Emails list in mail export now supports comma and space separators.
|
||||||
|
|
||||||
* 3.7.2 (2012-10-04)
|
## 3.7.2 (2012-10-04)
|
||||||
|
|
||||||
- Significant speed enhancement on thumbnail display.
|
- Significant speed enhancement on thumbnail display.
|
||||||
- Add a purge option to quarantine.
|
- Add a purge option to quarantine.
|
||||||
- Fix ascending date sort in search results.
|
- BugFix : ascending date sort in search results.
|
||||||
- Multiple thesaurus fixes on IE.
|
- Multiple thesaurus fixes on IE.
|
||||||
- Fix description field source selection.
|
- BugFix : description field source selection.
|
||||||
- Add option to rotate multiple image.
|
- Add option to rotate multiple image.
|
||||||
- `Remember-me` was applied even if the box was not checked.
|
- `Remember-me` was applied even if the box was not checked.
|
||||||
|
|
||||||
* 3.7.1 (2012-09-18)
|
## 3.7.1 (2012-09-18)
|
||||||
|
|
||||||
- Multiple fixes in archive task.
|
- Multiple fixes in archive task.
|
||||||
- Add options -f and -y to upgrade command.
|
- Add options -f and -y to upgrade command.
|
||||||
- Add a Flash fallback for browser that does not support HTML5 file API.
|
- Add a Flash fallback for browser that does not support HTML5 file API.
|
||||||
- Fix upgrade from version 3.1 and 3.5.
|
- BugFix : upgrade from version 3.1 and 3.5.
|
||||||
- Fix : Print tool is not working on IE version 8 and less over HTTPS.
|
- BugFix : : Print tool is not working on IE version 8 and less over HTTPS.
|
||||||
|
|
||||||
* 3.7.0 (2012-07-24)
|
## 3.7.0 (2012-07-24)
|
||||||
|
|
||||||
- Lots of graphics enhancements.
|
- Lots of graphics enhancements.
|
||||||
- Windows Server 2008 support.
|
- Windows Server 2008 support.
|
||||||
@@ -267,39 +314,39 @@
|
|||||||
- Upgrade of the Phraseanet API to version 1.2 (see https://docs.phraseanet.com/3.7/en/Devel/API/Changelog.html#id1).
|
- Upgrade of the Phraseanet API to version 1.2 (see https://docs.phraseanet.com/3.7/en/Devel/API/Changelog.html#id1).
|
||||||
- Phraseanet PHP SDK http://phraseanet-php-sdk.readthedocs.org/.
|
- Phraseanet PHP SDK http://phraseanet-php-sdk.readthedocs.org/.
|
||||||
|
|
||||||
* 3.6.5 (2012-05-11)
|
## 3.6.5 (2012-05-11)
|
||||||
|
|
||||||
- Fix : Bridge buttons are not visible on some browsers.
|
- BugFix : : Bridge buttons are not visible on some browsers.
|
||||||
- Youtube and Dailymotion APIs updates.
|
- Youtube and Dailymotion APIs updates.
|
||||||
- Stories can now be deleted from the work zone.
|
- Stories can now be deleted from the work zone.
|
||||||
- Push and validation logs were missing.
|
- Push and validation logs were missing.
|
||||||
|
|
||||||
* 3.6.4 (2012-04-30)
|
## 3.6.4 (2012-04-30)
|
||||||
|
|
||||||
- Fix DatePicker menus do not format date correctly.
|
- BugFix : DatePicker menus do not format date correctly.
|
||||||
- Fix Dead records can remain in orders and may broke order window.
|
- BugFix : Dead records can remain in orders and may broke order window.
|
||||||
|
|
||||||
* 3.6.3 (2012-04-26)
|
## 3.6.3 (2012-04-26)
|
||||||
|
|
||||||
- Fix selection in webkit based browers.
|
- BugFix : selection in webkit based browers.
|
||||||
|
|
||||||
* 3.6.2 (2012-04-19)
|
## 3.6.2 (2012-04-19)
|
||||||
|
|
||||||
- Fix : Users can be created by some pushers.
|
- BugFix : : Users can be created by some pushers.
|
||||||
- Fix : Collection owner can not disable watermark.
|
- BugFix : : Collection owner can not disable watermark.
|
||||||
- Fix : Basket element reorder issues.
|
- BugFix : : Basket element reorder issues.
|
||||||
- Fix : Multiple order managers can not be added.
|
- BugFix : : Multiple order managers can not be added.
|
||||||
- Fix : Basket editing can fail.
|
- BugFix : : Basket editing can fail.
|
||||||
- Remove original file extension for downloaded files.
|
- Remove original file extension for downloaded files.
|
||||||
- Template is not applied when importing users from a file.
|
- Template is not applied when importing users from a file.
|
||||||
- Document + XML hot folder import produces corrupted files.
|
- Document + XML hot folder import produces corrupted files.
|
||||||
- Enhanced Push list view on small device.
|
- Enhanced Push list view on small device.
|
||||||
|
|
||||||
* 3.6.1 (2012-03-27)
|
## 3.6.1 (2012-03-27)
|
||||||
|
|
||||||
- Fix upgrade from 3.5 versions with large datasets.
|
- BugFix : upgrade from 3.5 versions with large datasets.
|
||||||
|
|
||||||
* 3.6.0 (2012-03-20)
|
## 3.6.0 (2012-03-20)
|
||||||
|
|
||||||
- Add a Vocabulary mapping to multivalued fields.
|
- Add a Vocabulary mapping to multivalued fields.
|
||||||
- Redesign of Push and Feedback.
|
- Redesign of Push and Feedback.
|
||||||
|
138
builder.php
138
builder.php
@@ -1,138 +0,0 @@
|
|||||||
#!/usr/bin/env php
|
|
||||||
<?php
|
|
||||||
/*
|
|
||||||
* Build Phraseanet for download
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
use Symfony\Component\Finder\Finder;
|
|
||||||
|
|
||||||
printf('Retrieve vendors ...' . PHP_EOL);
|
|
||||||
|
|
||||||
system('./bin/developer dependencies:all --no-dev', $exitcode);
|
|
||||||
|
|
||||||
if (0 !== $exitcode) {
|
|
||||||
echo "failed to retrieve binaries\n";
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
require __DIR__ . '/vendor/autoload.php';
|
|
||||||
|
|
||||||
set_time_limit(0);
|
|
||||||
|
|
||||||
printf('Remove files ...' . PHP_EOL);
|
|
||||||
|
|
||||||
$finder = new Finder();
|
|
||||||
$finder
|
|
||||||
->files()
|
|
||||||
->name('.gitmodules')
|
|
||||||
->name('.gitignore')
|
|
||||||
->name('check_cs.php')
|
|
||||||
->name('cleaner.php')
|
|
||||||
->name('build-env.sh')
|
|
||||||
->name('phpunit.xml.dist')
|
|
||||||
->name('launchpadToLocales.php')
|
|
||||||
->name('localesToLaunchPad.php')
|
|
||||||
->name('pom.xml')
|
|
||||||
->name('bower.json')
|
|
||||||
->name('composer.json')
|
|
||||||
->name('composer.lock')
|
|
||||||
->name('composer.phar')
|
|
||||||
->name('vendors.php')
|
|
||||||
->name('.travis.yml')
|
|
||||||
->name('vendors.win.php')
|
|
||||||
->name('builder.php')
|
|
||||||
->name('behat.yml')
|
|
||||||
->name('behat.yml.sample')
|
|
||||||
->ignoreDotFiles(false)
|
|
||||||
->ignoreVCS(false)
|
|
||||||
->in(__DIR__);
|
|
||||||
|
|
||||||
$files = [];
|
|
||||||
|
|
||||||
foreach ($finder as $file) {
|
|
||||||
$files[$file->getRealpath()] = $file->getRealpath();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ([
|
|
||||||
__DIR__ . '/bin/behat',
|
|
||||||
__DIR__ . '/bin/developer',
|
|
||||||
__DIR__ . '/bin/doctrine.php',
|
|
||||||
__DIR__ . '/bin/doctrine',
|
|
||||||
__DIR__ . '/bin/phpunit',
|
|
||||||
__DIR__ . '/bin/validate-json',
|
|
||||||
] as $binary) {
|
|
||||||
if (is_file($binary)) {
|
|
||||||
$files[$binary] = $binary;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$finder = new Finder();
|
|
||||||
$finder
|
|
||||||
->ignoreDotFiles(false)
|
|
||||||
->ignoreVCS(false)
|
|
||||||
->in(['logs']);
|
|
||||||
|
|
||||||
foreach ($finder as $file) {
|
|
||||||
$files[$file->getRealpath()] = $file->getRealpath();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($files as $file) {
|
|
||||||
echo "rm $file\n";
|
|
||||||
unlink($file);
|
|
||||||
}
|
|
||||||
|
|
||||||
$finder = new Finder();
|
|
||||||
|
|
||||||
$finder
|
|
||||||
->directories()
|
|
||||||
->name('test')
|
|
||||||
->name('tests')
|
|
||||||
->name('functionnal-tests')
|
|
||||||
->name('Tests')
|
|
||||||
->name('test-suite')
|
|
||||||
->name('test_script')
|
|
||||||
->name('demos')
|
|
||||||
->name('demo')
|
|
||||||
->name('example')
|
|
||||||
->name('examples')
|
|
||||||
->name('docs')
|
|
||||||
->name('documentation')
|
|
||||||
->name('doc')
|
|
||||||
->name('as-docs')
|
|
||||||
->name('hudson')
|
|
||||||
->name('.svn')
|
|
||||||
->name('.git')
|
|
||||||
->name('flash')
|
|
||||||
->name('qunit')
|
|
||||||
->name('features')
|
|
||||||
->name('chai')
|
|
||||||
->name('mocha')
|
|
||||||
->name('sinon')
|
|
||||||
->name('sinon-chai')
|
|
||||||
->name('js-fixtures')
|
|
||||||
->name('node_modules')
|
|
||||||
->name('tmp-assets')
|
|
||||||
->ignoreDotFiles(false)
|
|
||||||
->ignoreVCS(false)
|
|
||||||
->in(__DIR__);
|
|
||||||
|
|
||||||
|
|
||||||
$dirs = [];
|
|
||||||
|
|
||||||
foreach ($finder as $dir) {
|
|
||||||
$dirs[] = $dir->getRealpath();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($dirs as $dir) {
|
|
||||||
if ( ! is_dir($dir)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$cmd = sprintf('rm -Rf %s' . PHP_EOL, escapeshellarg($dir));
|
|
||||||
|
|
||||||
printf($cmd);
|
|
||||||
system($cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
exit(0);
|
|
@@ -1,60 +0,0 @@
|
|||||||
#!/usr/bin/env php
|
|
||||||
<?php
|
|
||||||
/*
|
|
||||||
* Upgrade current locale files to the latest launchpad version :
|
|
||||||
*
|
|
||||||
* You first need to download the latest launchpad version, untar the file, then
|
|
||||||
* launch this command with the name of the directory where the po files are as
|
|
||||||
* argument.
|
|
||||||
*
|
|
||||||
* @example ./launchpadToLocales.php phraseanet
|
|
||||||
*
|
|
||||||
* @see https://translations.launchpad.net/phraseanettranslation/trunk/+pots/phraseanettrunktemplate
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once __DIR__ . '/lib/autoload.php';
|
|
||||||
|
|
||||||
use Symfony\Component\Finder\Finder;
|
|
||||||
|
|
||||||
if ( ! isset($argv[1]) || ! is_dir(__DIR__ . '/' . $argv[1])) {
|
|
||||||
echo "You need to specify a directory with the latest launchpad locales" . PHP_EOL;
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
chdir(__DIR__);
|
|
||||||
|
|
||||||
$finder = new Finder();
|
|
||||||
$finder
|
|
||||||
->files()
|
|
||||||
->name('phraseanet-*.po')
|
|
||||||
->in(
|
|
||||||
[
|
|
||||||
__DIR__ . '/' . $argv[1],
|
|
||||||
]
|
|
||||||
)
|
|
||||||
;
|
|
||||||
|
|
||||||
$count = 0;
|
|
||||||
|
|
||||||
foreach ($finder as $file) {
|
|
||||||
preg_match('/phraseanet-(.*)\.po/', $file->getFileName(), $matches);
|
|
||||||
|
|
||||||
$current_file = $file->getRealPath();
|
|
||||||
$locale = $matches[1];
|
|
||||||
|
|
||||||
$dest_file = __DIR__ . '/locale/' . $locale . '/LC_MESSAGES/phraseanet.po';
|
|
||||||
|
|
||||||
if ( ! file_exists($dest_file)) {
|
|
||||||
echo "Destination $dest_file does not exists" . PHP_EOL;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
system(sprintf('cp %s %s', $current_file, $dest_file));
|
|
||||||
|
|
||||||
$count ++;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "$count files upgraded" . PHP_EOL;
|
|
||||||
|
|
||||||
exit($count ? 1 : 0);
|
|
@@ -1,46 +0,0 @@
|
|||||||
#!/usr/bin/env php
|
|
||||||
<?php
|
|
||||||
/*
|
|
||||||
* Prepare the file to be uploaded on launchpad
|
|
||||||
*
|
|
||||||
* Fetch every translation at the root of ./locale, next to the main pot file
|
|
||||||
*
|
|
||||||
* @see https://translations.launchpad.net/phraseanettranslation/trunk/+pots/phraseanettrunktemplate
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once __DIR__ . '/lib/Alchemy/Phrasea/Core.php';
|
|
||||||
|
|
||||||
use Symfony\Component\Finder\Finder;
|
|
||||||
|
|
||||||
\Alchemy\Phrasea\Core::initAutoloads();
|
|
||||||
|
|
||||||
chdir(__DIR__);
|
|
||||||
|
|
||||||
$finder = new Finder();
|
|
||||||
$finder
|
|
||||||
->files()
|
|
||||||
->name('phraseanet.po')
|
|
||||||
->in(
|
|
||||||
[
|
|
||||||
__DIR__ . '/locale',
|
|
||||||
]
|
|
||||||
)
|
|
||||||
;
|
|
||||||
|
|
||||||
$count = 0;
|
|
||||||
|
|
||||||
foreach ($finder as $file) {
|
|
||||||
$cmd = sprintf(
|
|
||||||
'cp %s ./locale/phraseanet-%s.po'
|
|
||||||
, $file->getRealPath()
|
|
||||||
, basename(dirname(dirname($file->getRealPath())))
|
|
||||||
) . PHP_EOL;
|
|
||||||
|
|
||||||
system($cmd);
|
|
||||||
$count ++;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "$count files copied" . PHP_EOL;
|
|
||||||
|
|
||||||
exit($count ? 1 : 0);
|
|
Reference in New Issue
Block a user