From 5555de5d79a90cae488530a0d653f223f72ec35a Mon Sep 17 00:00:00 2001 From: Nicolas Bastien Date: Tue, 17 Jan 2017 09:56:58 +0100 Subject: [PATCH 1/2] EZP-26835 : Script to extract translations + update translations --- bin/extract-translations.sh | 40 ++++++ .../Resources/translations/messages.en.xlf | 122 +++++++++++++++++- .../translations/repository_exceptions.en.xlf | 57 +++----- .../translations/repository_exceptions.pt.xlf | 113 ---------------- .../Resources/translations/validators.en.xlf | 2 +- 5 files changed, 176 insertions(+), 158 deletions(-) create mode 100644 bin/extract-translations.sh delete mode 100644 eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.pt.xlf diff --git a/bin/extract-translations.sh b/bin/extract-translations.sh new file mode 100644 index 00000000000..2bbbbba64ba --- /dev/null +++ b/bin/extract-translations.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env sh +echo 'Translation extraction'; +cd ../../..; +# Extract string for default locale +echo '# Extract Kernel : EzPublishCoreBundle'; +./app/console translation:extract en -v \ + --dir=./vendor/ezsystems/ezpublish-kernel/eZ \ + --exclude-dir=Bundle/PlatformBehatBundle \ + --exclude-dir=Bundle/EzPublishCoreBundle/Tests \ + --exclude-dir=Bundle/EzPublishCoreBundle/Features \ + --exclude-dir=Bundle/EzPublishDebugBundle/Tests \ + --exclude-dir=Bundle/EzPublishIOBundle/Tests \ + --exclude-dir=Bundle/EzPublishRestBundle/Tests \ + --exclude-dir=Bundle/EzPublishRestBundle/Features \ + --exclude-dir=Publish/API/Repository/Tests \ + --exclude-dir=Publish/Core/REST/Client \ + --exclude-dir=Publish/Core/Base/Tests \ + --exclude-dir=Publish/Core/FieldType/Tests \ + --exclude-dir=Publish/Core/Helper/Tests \ + --exclude-dir=Publish/Core/IO/Tests \ + --exclude-dir=Publish/Core/Limitation/Tests \ + --exclude-dir=Publish/Core/Pagination/Tests \ + --exclude-dir=Publish/Core/Persistence/Tests \ + --exclude-dir=Publish/Core/Persistence/Legacy/Tests \ + --exclude-dir=Publish/Core/Repository/Tests \ + --exclude-dir=Publish/Core/REST/Tests \ + --exclude-dir=Publish/Core/Search/Tests \ + --exclude-dir=Publish/Core/Search/Legacy/Tests \ + --exclude-dir=Publish/Core/SignalSlot/Tests \ + --exclude-dir=Publish/Core/settings/tests \ + --exclude-dir=Publish/SPI/Tests \ + --output-dir=./vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/translations \ + --enable-extractor=ez_fieldtypes \ + --keep + "$@" + +echo '# Clean file references'; +sed -i "s|/../../../../.././vendor/ezsystems/ezpublish-kernel/|/|g" ./vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/translations/*.xlf + +echo 'Translation extraction done'; \ No newline at end of file diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf index d19675745be..9603dea0a0b 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf @@ -1,41 +1,149 @@ - +
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.
+ + '%actualValue%' is wrong value + '%actualValue%' is wrong value + key: '%actualValue%' is wrong value + /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 + + + 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 + + + Argument '%argumentName%' is invalid: %whatIsWrong% + Argument '%argumentName%' is invalid: %whatIsWrong% + key: Argument '%argumentName%' is invalid: %whatIsWrong% + /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%' + key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' + /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%' + key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' + /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 '/' + 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 + + + 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 + + + Content fields did not validate + Content fields did not validate + key: Content fields did not validate + /eZ/Publish/Core/Base/Exceptions/ContentFieldValidationException.php + + + ContentType FieldDefinitions did not validate + ContentType FieldDefinitions did not validate + key: ContentType FieldDefinitions did not validate + /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 + + + 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 + + + Could not find class '%className%' + Could not find class '%className%' + key: Could not find class '%className%' + /eZ/Publish/Core/Base/Exceptions/MissingClass.php + 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 key: Enter password - /../../../../../eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + + + 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 + + + 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 + + + Limitations did not validate + Limitations did not validate + key: Limitations did not validate + /eZ/Publish/Core/Base/Exceptions/LimitationValidationException.php 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: key: Password: - /../../../../../eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig + + + 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 + + + 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 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 f7894dcf397..8c64b0e4f4d 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,207 +10,190 @@ '%actualValue%' is wrong value '%actualValue%' is wrong value key: '%actualValue%' is wrong value - /../../../../../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 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 Argument '%argumentName%' is invalid: %whatIsWrong% Argument '%argumentName%' is invalid: %whatIsWrong% key: Argument '%argumentName%' is invalid: %whatIsWrong% - /../../../../../eZ/Publish/Core/Base/Exceptions/InvalidArgumentException.php Content fields did not validate Content fields did not validate key: Content fields did not validate - /../../../../../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 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 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 Could not find class '%className%' Could not find class '%className%' key: Could not find class '%className%' - /../../../../../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 FieldType '%identifier%' is singular and can't be repeated in a ContentType FieldType '%identifier%' is singular and can't be repeated in a ContentType key: FieldType '%identifier%' is singular and can't be repeated in a ContentType - /../../../../../eZ/Publish/Core/Base/Exceptions/SingularFieldTypeValidationException.php 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 Limitations did not validate Limitations did not validate key: Limitations did not validate - /../../../../../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/Base/Exceptions/NoUserFieldContentValidationException.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 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 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%' expected value to be of type '%expectedType%' key: expected value to be of type '%expectedType%' - /../../../../../eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php expected value to be of type '%expectedType%', got '%actualType%' expected value to be of type '%expectedType%', got '%actualType%' key: expected value to be of type '%expectedType%', got '%actualType%' - /../../../../../eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.pt.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.pt.xlf deleted file mode 100644 index 0e0e18dc52e..00000000000 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/repository_exceptions.pt.xlf +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - Argument '%argumentName%' has a bad state: %whatIsWrong% - O Argumento '%argumentName%' tem um estado incorreto: %whatIsWrong% - - - - Content fields did not validate - Os campos do conteúdo não são válidos - - - - ContentType FieldDefinitions did not validate - ContentType FieldDefinitions não validaram - - - - FieldType '%identifier%' is singular and can't be repeated in a ContentType - FieldType '%identifier%' é singular e não pode ser repetido num ContentType - - - Value for required field definition '%identifier%' with language '%languageCode%' is empty - O valor para a definição do campo com o identificador '%identifier%' e com o idioma '%languageCode%' está vazio - - - Field definition '%identifier%' does not exist in given ContentType - A definição do campo '%identifier%' não existe neste ContentType - - - A value is set for non translatable field definition '%identifier%' with language '%languageCode%' - Um valor foi atribuido num campo que não é traduzível '%identifier%' com o idioma '%languageCode%' - - - Placeholders are not matching with wildcards. - Os Placeholders não estão referenciados nos wildcards. - - - Provided content type does not contain ezuser field type - O content type fornecido não contém um campo do tipo ezuser - - - - Path '%path%' already exists for the given language - O caminho '%path%' já existe para o idioma dado - - - - Argument '%argumentName%' is invalid: %whatIsWrong% - O argumento '%argumentName%' é inválido: %whatIsWrong% - - - - Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' - O argumento '%argumentName%' é inválido: espera-se que o valor seja do tipo '%expectedType%' - - - Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' - O argumento '%argumentName%' é inválido: espera-se que o valor seja do tipo '%expectedType%', mas o tipo é '%actualType%' - - - - Argument '%argumentName%' is invalid: '%actualValue%' is wrong value - O argumento '%argumentName%' é inválido: '%actualValue%' está errado - - - Argument '%argumentName%' is invalid: '%actualValue%' is wrong value in class '%className%' - O argumento '%argumentName%' é inválido: '%actualValue%' está errado na classe '%className%' - - - - Limitations did not validate - As limitações não são válidas - - - - Could not find class '%className%' - Não é possível encontrar a classe '%className%' - - - Could not find %classType% class '%className%' - Não é possível encontrar a %classType% classe '%className%' - - - - Could not find '%what%' with identifier '%identifier%' - Não é possível encontrar '%what%' com o identificador '%identifier%' - - - - FieldType '%fieldType%' not found, needs to be implemented or configured to use FieldType\\Null\\Type (%ezpublish.fieldType.eznull.class%) - O FieldType '%fieldType%' não foi encontrado, é necessário implementá-lo ou configura-lo para usar FieldType\\Null\\Type (%ezpublish.fieldType.eznull.class%) - - - - Limitation '%limitation%' not found, needs to be implemented or configured to use Limitation\\BlockingLimitationType (%ezpublish.api.role.limitation_type.blocking.class%) - A limitação '%limitation%' não foi encontrada, not found, é necessário implementá-la ou configurá-la para usar Limitation\\BlockingLimitationType (%ezpublish.api.role.limitation_type.blocking.class%) - - - - User does not have access to '%function%' '%module%' - O utilizador não tem acesso a '%function%' '%module%' - - - User does not have access to '%function%' '%module%' with: %with% - O utilizador não tem acesso a '%function%' '%module%' com: %with% - - - - diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.en.xlf index 22e19c3f755..0c40dfe35d8 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.en.xlf +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.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. From 6433a2d59015887219ca13b84ff2b4b3b6c5d43f Mon Sep 17 00:00:00 2001 From: Nicolas Bastien Date: Tue, 17 Jan 2017 12:06:01 +0100 Subject: [PATCH 2/2] EZP-26835 : Script to extract translations --- bin/extract-translations.sh | 27 +--- .../Resources/translations/fieldtypes.en.xlf | 144 ++++++++++++++++++ .../Resources/translations/messages.en.xlf | 120 +-------------- .../translations/repository_exceptions.en.xlf | 40 ++++- .../Resources/translations/validators.en.xlf | 2 +- 5 files changed, 194 insertions(+), 139 deletions(-) create mode 100644 eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf diff --git a/bin/extract-translations.sh b/bin/extract-translations.sh index 2bbbbba64ba..248ffbfff27 100644 --- a/bin/extract-translations.sh +++ b/bin/extract-translations.sh @@ -6,29 +6,10 @@ echo '# Extract Kernel : EzPublishCoreBundle'; ./app/console translation:extract en -v \ --dir=./vendor/ezsystems/ezpublish-kernel/eZ \ --exclude-dir=Bundle/PlatformBehatBundle \ - --exclude-dir=Bundle/EzPublishCoreBundle/Tests \ - --exclude-dir=Bundle/EzPublishCoreBundle/Features \ - --exclude-dir=Bundle/EzPublishDebugBundle/Tests \ - --exclude-dir=Bundle/EzPublishIOBundle/Tests \ - --exclude-dir=Bundle/EzPublishRestBundle/Tests \ - --exclude-dir=Bundle/EzPublishRestBundle/Features \ - --exclude-dir=Publish/API/Repository/Tests \ + --exclude-dir=Tests \ + --exclude-dir=Features \ --exclude-dir=Publish/Core/REST/Client \ - --exclude-dir=Publish/Core/Base/Tests \ - --exclude-dir=Publish/Core/FieldType/Tests \ - --exclude-dir=Publish/Core/Helper/Tests \ - --exclude-dir=Publish/Core/IO/Tests \ - --exclude-dir=Publish/Core/Limitation/Tests \ - --exclude-dir=Publish/Core/Pagination/Tests \ - --exclude-dir=Publish/Core/Persistence/Tests \ - --exclude-dir=Publish/Core/Persistence/Legacy/Tests \ - --exclude-dir=Publish/Core/Repository/Tests \ - --exclude-dir=Publish/Core/REST/Tests \ - --exclude-dir=Publish/Core/Search/Tests \ - --exclude-dir=Publish/Core/Search/Legacy/Tests \ - --exclude-dir=Publish/Core/SignalSlot/Tests \ - --exclude-dir=Publish/Core/settings/tests \ - --exclude-dir=Publish/SPI/Tests \ + --exclude-dir=tests \ --output-dir=./vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/translations \ --enable-extractor=ez_fieldtypes \ --keep @@ -37,4 +18,4 @@ 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 -echo 'Translation extraction done'; \ No newline at end of file +echo 'Translation extraction done'; diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf new file mode 100644 index 00000000000..54e9c97f2a1 --- /dev/null +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/fieldtypes.en.xlf @@ -0,0 +1,144 @@ + + + +
+ + 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 + key: ezauthor.name + + + ezbinaryfile.name + File + key: ezbinaryfile.name + + + ezboolean.name + Checkbox + key: ezboolean.name + + + ezcountry.name + Country + key: ezcountry.name + + + ezdate.name + Date + key: ezdate.name + + + ezdatetime.name + Date and time + key: ezdatetime.name + + + ezemail.name + E-mail address + key: ezemail.name + + + ezfloat.name + Float + key: ezfloat.name + + + ezgmaplocation.name + Map location + key: ezgmaplocation.name + + + ezimage.name + Image + key: ezimage.name + + + ezinteger.name + Integer + key: ezinteger.name + + + ezisbn.name + ISBN + key: ezisbn.name + + + ezkeyword.name + Keywords + key: ezkeyword.name + + + ezmedia.name + Media + key: ezmedia.name + + + ezobjectrelation.name + Content relation (single) + key: ezobjectrelation.name + + + ezobjectrelationlist.name + Content relations (multiple) + key: ezobjectrelationlist.name + + + ezpage.name + Layout + key: ezpage.name + + + ezrichtext.name + Rich text + key: ezrichtext.name + + + ezselection.name + Selection + key: ezselection.name + + + ezsrrating.name + Rating + key: ezsrrating.name + + + ezstring.name + Text line + key: ezstring.name + + + eztext.name + Text block + key: eztext.name + + + eztime.name + Time + key: eztime.name + + + ezurl.name + URL + key: ezurl.name + + + ezuser.name + User account + key: ezuser.name + + + ezprice.name + Price + + + ezxmltext.name + XML block + + +
+
diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf index 9603dea0a0b..1fa70f1e4e8 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/messages.en.xlf @@ -1,147 +1,39 @@ - +
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.
- - '%actualValue%' is wrong value - '%actualValue%' is wrong value - key: '%actualValue%' is wrong value - /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 - - - 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 - - - Argument '%argumentName%' is invalid: %whatIsWrong% - Argument '%argumentName%' is invalid: %whatIsWrong% - key: Argument '%argumentName%' is invalid: %whatIsWrong% - /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%' - key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' - /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%' - key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' - /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 '/' - 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 - - - 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 - - - Content fields did not validate - Content fields did not validate - key: Content fields did not validate - /eZ/Publish/Core/Base/Exceptions/ContentFieldValidationException.php - - - ContentType FieldDefinitions did not validate - ContentType FieldDefinitions did not validate - key: ContentType FieldDefinitions did not validate - /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 - - - 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 - - - Could not find class '%className%' - Could not find class '%className%' - key: Could not find class '%className%' - /eZ/Publish/Core/Base/Exceptions/MissingClass.php - 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 Enter password - Enter password + Enter password key: Enter password /eZ/Bundle/EzPublishCoreBundle/Resources/views/Security/login.html.twig - - 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 - - - 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 - - - Limitations did not validate - Limitations did not validate - key: Limitations did not validate - /eZ/Publish/Core/Base/Exceptions/LimitationValidationException.php - Login - Login + Login key: Login /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 - - 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 - - - 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 - Username: - Username: + Username: key: Username: /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 8c64b0e4f4d..ac2acd423e3 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,11 +10,13 @@ '%actualValue%' is wrong value '%actualValue%' is wrong value key: '%actualValue%' is wrong value + /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 A value is set for non translatable field definition '%identifier%' with language '%languageCode%' @@ -27,16 +29,43 @@ 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 Argument '%argumentName%' is invalid: %whatIsWrong% Argument '%argumentName%' is invalid: %whatIsWrong% key: Argument '%argumentName%' is invalid: %whatIsWrong% + /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%' + key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%' + /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%' + key: Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%' + /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 '/' + 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 + + + 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 Content fields did not validate Content fields did not validate key: Content fields did not validate + /eZ/Publish/Core/Base/Exceptions/ContentFieldValidationException.php Content type cannot be unlinked from the only remaining group @@ -54,21 +83,25 @@ ContentType FieldDefinitions did not validate ContentType FieldDefinitions did not validate key: ContentType FieldDefinitions did not validate + /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 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 Could not find class '%className%' Could not find class '%className%' key: Could not find class '%className%' + /eZ/Publish/Core/Base/Exceptions/MissingClass.php Current version is already in status DRAFT @@ -93,6 +126,7 @@ 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 FieldType '%identifier%' is singular and can't be repeated in a ContentType @@ -103,11 +137,13 @@ 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 Limitations did not validate Limitations did not validate key: Limitations did not validate + /eZ/Publish/Core/Base/Exceptions/LimitationValidationException.php Only empty content type groups can be deleted @@ -173,11 +209,13 @@ 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 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 Version in status PUBLISHED cannot be deleted diff --git a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.en.xlf b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.en.xlf index 0c40dfe35d8..755443a40dd 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.en.xlf +++ b/eZ/Bundle/EzPublishCoreBundle/Resources/translations/validators.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.