diff --git a/bin/extract-translations.sh b/bin/extract-translations.sh new file mode 100644 index 00000000000..248ffbfff27 --- /dev/null +++ b/bin/extract-translations.sh @@ -0,0 +1,21 @@ +#!/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=Tests \ + --exclude-dir=Features \ + --exclude-dir=Publish/Core/REST/Client \ + --exclude-dir=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'; 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 d19675745be..1fa70f1e4e8 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 f7894dcf397..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,207 +10,228 @@ '%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%' + 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 + /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 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 + /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/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 + /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%' 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..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.