From 6c38620c9818a7c7f89093af4ddaf4e8fee2c6d2 Mon Sep 17 00:00:00 2001 From: Nicolas Bastien Date: Thu, 26 Jan 2017 15:00:01 +0100 Subject: [PATCH] EZP-26835 : Fix file reference in extract translations + update files --- bin/extract-translations.sh | 3 +- .../Resources/translations/fieldtypes.en.xlf | 66 ++++++++------- .../Resources/translations/messages.en.xlf | 24 +++--- .../translations/repository_exceptions.en.xlf | 84 +++++++++---------- 4 files changed, 90 insertions(+), 87 deletions(-) mode change 100644 => 100755 bin/extract-translations.sh diff --git a/bin/extract-translations.sh b/bin/extract-translations.sh old mode 100644 new mode 100755 index 248ffbfff27..bd9ed434770 --- a/bin/extract-translations.sh +++ b/bin/extract-translations.sh @@ -16,6 +16,7 @@ echo '# Extract Kernel : EzPublishCoreBundle'; "$@" echo '# Clean file references'; -sed -i "s|/../../../../.././vendor/ezsystems/ezpublish-kernel/|/|g" ./vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/translations/*.xlf +sed -i "s|>.*/vendor/ezsystems/ezpublish-kernel/|>|g" ./vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/translations/*.xlf +cd vendor/ezsystems/ezpublish-kernel; echo 'Translation extraction done'; diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf index 54e9c97f2a1..86740a121ac 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf @@ -1,143 +1,145 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.
- ezauthor.name + Authors Authors key: ezauthor.name - ezbinaryfile.name + File File key: ezbinaryfile.name - ezboolean.name + Checkbox Checkbox key: ezboolean.name - ezcountry.name + Country Country key: ezcountry.name - ezdate.name + Date Date key: ezdate.name - ezdatetime.name + Date and time Date and time key: ezdatetime.name - ezemail.name + E-mail address E-mail address key: ezemail.name - ezfloat.name + Float Float key: ezfloat.name - ezgmaplocation.name + Map location Map location key: ezgmaplocation.name - ezimage.name + Image Image key: ezimage.name - ezinteger.name + Integer Integer key: ezinteger.name - ezisbn.name + ISBN ISBN key: ezisbn.name - ezkeyword.name + Keywords Keywords key: ezkeyword.name - ezmedia.name + Media Media key: ezmedia.name - ezobjectrelation.name + Content relation (single) Content relation (single) key: ezobjectrelation.name - ezobjectrelationlist.name + Content relations (multiple) Content relations (multiple) key: ezobjectrelationlist.name - ezpage.name + Layout Layout key: ezpage.name + + Price + Price + key: ezprice.name + - ezrichtext.name + Rich text Rich text key: ezrichtext.name - ezselection.name + Selection Selection key: ezselection.name - ezsrrating.name + Rating Rating key: ezsrrating.name - ezstring.name + Text line Text line key: ezstring.name - eztext.name + Text block Text block key: eztext.name - eztime.name + Time Time key: eztime.name - ezurl.name + URL URL key: ezurl.name - ezuser.name + User account User account key: ezuser.name - - ezprice.name - Price - - - ezxmltext.name + + XML block XML block + key: ezxmltext.name
diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf index 1fa70f1e4e8..cc8211f9c01 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. @@ -8,34 +8,34 @@ Enter login or email - Enter login or email + Enter login or email key: Enter login or email - /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig Enter password - Enter password + Enter password key: Enter password - /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig Login - Login + Login key: Login - /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig - /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig Password: - Password: + Password: key: Password: - /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig Username: - Username: + Username: key: Username: - /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.en.xlf index ac2acd423e3..24c34390f0e 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.en.xlf +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.en.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. @@ -10,123 +10,123 @@ '%actualValue%' is wrong value '%actualValue%' is wrong value key: '%actualValue%' is wrong value - /eZ/Publish/Core/Base/Exceptions/InvalidArgumentValue.php + eZ/Publish/Core/Base/Exceptions/InvalidArgumentValue.php '%actualValue%' is wrong value in class '%className%' '%actualValue%' is wrong value in class '%className%' key: '%actualValue%' is wrong value in class '%className%' - /eZ/Publish/Core/Base/Exceptions/InvalidArgumentValue.php + eZ/Publish/Core/Base/Exceptions/InvalidArgumentValue.php A value is set for non translatable field definition '%identifier%' with language '%languageCode%' A value is set for non translatable field definition '%identifier%' with language '%languageCode%' key: A value is set for non translatable field definition '%identifier%' with language '%languageCode%' - /eZ/Publish/Core/Repository/ContentService.php - /eZ/Publish/Core/Repository/ContentService.php + eZ/Publish/Core/Repository/ContentService.php + eZ/Publish/Core/Repository/ContentService.php Argument '%argumentName%' has a bad state: %whatIsWrong% Argument '%argumentName%' has a bad state: %whatIsWrong% key: Argument '%argumentName%' has a bad state: %whatIsWrong% - /eZ/Publish/Core/Base/Exceptions/BadStateException.php + eZ/Publish/Core/Base/Exceptions/BadStateException.php Argument '%argumentName%' is invalid: %whatIsWrong% Argument '%argumentName%' is invalid: %whatIsWrong% key: Argument '%argumentName%' is invalid: %whatIsWrong% - /eZ/Publish/Core/Base/Exceptions/InvalidArgumentException.php + eZ/Publish/Core/Base/Exceptions/InvalidArgumentException.php Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' - Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' + Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' - /eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php + eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' - Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' + Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' - /eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php + eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, binary file ids can not begin with a '/' - Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, binary file ids can not begin with a '/' + Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, binary file ids can not begin with a '/' key: Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, binary file ids can not begin with a '/' - /eZ/Publish/Core/IO/Exception/InvalidBinaryAbsolutePathException.php + eZ/Publish/Core/IO/Exception/InvalidBinaryAbsolutePathException.php Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, it does not contain prefix '%prefix%'. Is 'var_dir' config correct? - Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, it does not contain prefix '%prefix%'. Is 'var_dir' config correct? + Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, it does not contain prefix '%prefix%'. Is 'var_dir' config correct? key: Argument 'BinaryFile::id' is invalid: '%id%' is wrong value, it does not contain prefix '%prefix%'. Is 'var_dir' config correct? - /eZ/Publish/Core/IO/Exception/InvalidBinaryPrefixException.php + eZ/Publish/Core/IO/Exception/InvalidBinaryPrefixException.php Content fields did not validate Content fields did not validate key: Content fields did not validate - /eZ/Publish/Core/Base/Exceptions/ContentFieldValidationException.php + eZ/Publish/Core/Base/Exceptions/ContentFieldValidationException.php Content type cannot be unlinked from the only remaining group Content type cannot be unlinked from the only remaining group key: Content type cannot be unlinked from the only remaining group - /eZ/Publish/Core/REST/Server/Controller/ContentType.php + eZ/Publish/Core/REST/Server/Controller/ContentType.php Content type is already linked to provided group Content type is already linked to provided group key: Content type is already linked to provided group - /eZ/Publish/Core/REST/Server/Controller/ContentType.php + eZ/Publish/Core/REST/Server/Controller/ContentType.php ContentType FieldDefinitions did not validate ContentType FieldDefinitions did not validate key: ContentType FieldDefinitions did not validate - /eZ/Publish/Core/Base/Exceptions/ContentTypeFieldDefinitionValidationException.php + eZ/Publish/Core/Base/Exceptions/ContentTypeFieldDefinitionValidationException.php Could not find %classType% class '%className%' Could not find %classType% class '%className%' key: Could not find %classType% class '%className%' - /eZ/Publish/Core/Base/Exceptions/MissingClass.php + eZ/Publish/Core/Base/Exceptions/MissingClass.php Could not find '%what%' with identifier '%identifier%' Could not find '%what%' with identifier '%identifier%' key: Could not find '%what%' with identifier '%identifier%' - /eZ/Publish/Core/Base/Exceptions/NotFoundException.php + eZ/Publish/Core/Base/Exceptions/NotFoundException.php Could not find class '%className%' Could not find class '%className%' key: Could not find class '%className%' - /eZ/Publish/Core/Base/Exceptions/MissingClass.php + eZ/Publish/Core/Base/Exceptions/MissingClass.php Current version is already in status DRAFT Current version is already in status DRAFT key: Current version is already in status DRAFT - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php Empty content type draft cannot be published Empty content type draft cannot be published key: Empty content type draft cannot be published - /eZ/Publish/Core/REST/Server/Controller/ContentType.php + eZ/Publish/Core/REST/Server/Controller/ContentType.php Field definition '%identifier%' does not exist in given ContentType Field definition '%identifier%' does not exist in given ContentType key: Field definition '%identifier%' does not exist in given ContentType - /eZ/Publish/Core/Repository/ContentService.php - /eZ/Publish/Core/Repository/ContentService.php + eZ/Publish/Core/Repository/ContentService.php + eZ/Publish/Core/Repository/ContentService.php FieldType '%fieldType%' not found, needs to be implemented or configured to use FieldType\Null\Type (%ezpublish.fieldType.eznull.class%) FieldType '%fieldType%' not found, needs to be implemented or configured to use FieldType\Null\Type (%ezpublish.fieldType.eznull.class%) key: FieldType '%fieldType%' not found, needs to be implemented or configured to use FieldType\Null\Type (%ezpublish.fieldType.eznull.class%) - /eZ/Publish/Core/Base/Exceptions/NotFound/FieldTypeNotFoundException.php + eZ/Publish/Core/Base/Exceptions/NotFound/FieldTypeNotFoundException.php FieldType '%identifier%' is singular and can't be repeated in a ContentType @@ -137,91 +137,91 @@ Limitation '%limitation%' not found, needs to be implemented or configured to use Limitation\BlockingLimitationType (%ezpublish.api.role.limitation_type.blocking.class% Limitation '%limitation%' not found, needs to be implemented or configured to use Limitation\BlockingLimitationType (%ezpublish.api.role.limitation_type.blocking.class% key: Limitation '%limitation%' not found, needs to be implemented or configured to use Limitation\BlockingLimitationType (%ezpublish.api.role.limitation_type.blocking.class% - /eZ/Publish/Core/Base/Exceptions/NotFound/LimitationNotFoundException.php + eZ/Publish/Core/Base/Exceptions/NotFound/LimitationNotFoundException.php Limitations did not validate Limitations did not validate key: Limitations did not validate - /eZ/Publish/Core/Base/Exceptions/LimitationValidationException.php + eZ/Publish/Core/Base/Exceptions/LimitationValidationException.php Only empty content type groups can be deleted Only empty content type groups can be deleted key: Only empty content type groups can be deleted - /eZ/Publish/Core/REST/Server/Controller/ContentType.php + eZ/Publish/Core/REST/Server/Controller/ContentType.php Only version in status DRAFT can be published Only version in status DRAFT can be published key: Only version in status DRAFT can be published - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php Only version in status DRAFT can be updated Only version in status DRAFT can be updated key: Only version in status DRAFT can be updated - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php Path '%path%' already exists for the given language Path '%path%' already exists for the given language key: Path '%path%' already exists for the given language - /eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php + eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php Placeholders are not matching with wildcards. Placeholders are not matching with wildcards. key: Placeholders are not matching with wildcards. - /eZ/Publish/Core/Repository/URLWildcardService.php + eZ/Publish/Core/Repository/URLWildcardService.php Provided content type does not contain ezuser field type Provided content type does not contain ezuser field type key: Provided content type does not contain ezuser field type - /eZ/Publish/Core/Repository/UserService.php + eZ/Publish/Core/Repository/UserService.php Relation is not of type COMMON Relation is not of type COMMON key: Relation is not of type COMMON - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php Relation of type COMMON can only be added to drafts Relation of type COMMON can only be added to drafts key: Relation of type COMMON can only be added to drafts - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php Relation of type COMMON can only be removed from drafts Relation of type COMMON can only be removed from drafts key: Relation of type COMMON can only be removed from drafts - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php Relation of type COMMON to selected destination content ID already exists Relation of type COMMON to selected destination content ID already exists key: Relation of type COMMON to selected destination content ID already exists - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php User does not have access to '%function%' '%module%' User does not have access to '%function%' '%module%' key: User does not have access to '%function%' '%module%' - /eZ/Publish/Core/Base/Exceptions/UnauthorizedException.php + eZ/Publish/Core/Base/Exceptions/UnauthorizedException.php User does not have access to '%function%' '%module%' with: %with%' User does not have access to '%function%' '%module%' with: %with%' key: User does not have access to '%function%' '%module%' with: %with%' - /eZ/Publish/Core/Base/Exceptions/UnauthorizedException.php + eZ/Publish/Core/Base/Exceptions/UnauthorizedException.php Version in status PUBLISHED cannot be deleted Version in status PUBLISHED cannot be deleted key: Version in status PUBLISHED cannot be deleted - /eZ/Publish/Core/REST/Server/Controller/Content.php + eZ/Publish/Core/REST/Server/Controller/Content.php expected value to be of type '%expectedType%'