Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation key "sonata.user" is duplicated at SonataUserBundle.nl.xliff #1287

Closed
phansys opened this issue Nov 24, 2020 · 0 comments · Fixed by #1288
Closed

Translation key "sonata.user" is duplicated at SonataUserBundle.nl.xliff #1287

phansys opened this issue Nov 24, 2020 · 0 comments · Fixed by #1288

Comments

@phansys
Copy link
Member

phansys commented Nov 24, 2020

Environment

"local"

Sonata packages

$ composer show --latest 'sonata-project/*'
sonata-project/admin-bundle              3.81.0 3.81.1 The missing Symfony Admin Generator
sonata-project/block-bundle              3.21.0 4.4.0  Symfony SonataBlockBundle
sonata-project/cache                     2.0.1  2.0.1  Cache library
sonata-project/datagrid-bundle           3.2.0  3.2.0  Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.10.1 1.10.1 Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.25.0 3.26.0 Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter                  2.4.1  2.4.1  Lightweight Exporter library
sonata-project/form-extensions           1.7.0  1.7.1  Symfony form extensions
sonata-project/intl-bundle               2.9.0  2.9.0  Symfony SonataIntlBundle
sonata-project/media-bundle              3.27.0 3.28.0 Symfony SonataMediaBundle
sonata-project/twig-extensions           1.4.1  1.4.1  Sonata twig extensions
sonata-project/user-bundle               4.10.0 4.10.0 Symfony SonataUserBundle

Symfony packages

$ composer show --latest 'symfony/*'
symfony/amazon-sqs-messenger       v5.1.8  v5.1.8  Symfony Amazon SQS extension Messenger Bridge
symfony/amqp-messenger             v5.1.8  v5.1.8  Symfony AMQP extension Messenger Bridge
symfony/asset                      v4.4.16 v5.1.8  Symfony Asset Component
symfony/browser-kit                v5.1.8  v5.1.8  Symfony BrowserKit Component
symfony/cache                      v5.1.8  v5.1.8  Symfony Cache component with PSR-6, PSR-16, and tags
symfony/cache-contracts            v2.2.0  v2.2.0  Generic abstractions related to caching
symfony/config                     v4.4.16 v5.1.8  Symfony Config Component
symfony/console                    v4.4.16 v5.1.8  Symfony Console Component
symfony/css-selector               v5.1.8  v5.1.8  Symfony CssSelector Component
symfony/debug                      v4.4.16 v4.4.16 Symfony Debug Component
symfony/debug-bundle               v5.1.8  v5.1.8  Symfony DebugBundle
symfony/debug-pack                 v1.0.9  v1.0.9  A debug pack for Symfony projects
symfony/dependency-injection       v4.4.16 v5.1.8  Symfony DependencyInjection Component
symfony/deprecation-contracts      v2.2.0  v2.2.0  A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge            v4.4.16 v5.1.8  Symfony Doctrine Bridge
symfony/doctrine-messenger         v5.1.8  v5.1.8  Symfony Doctrine Messenger Bridge
symfony/dom-crawler                v5.1.8  v5.1.8  Symfony DomCrawler Component
symfony/dotenv                     v5.1.8  v5.1.8  Registers environment variables from a .env file
symfony/error-handler              v4.4.16 v5.1.8  Symfony ErrorHandler Component
symfony/event-dispatcher           v4.4.16 v5.1.8  Symfony EventDispatcher Component
symfony/event-dispatcher-contracts v1.1.9  v2.2.0  Generic abstractions related to dispatching event
symfony/expression-language        v5.1.8  v5.1.8  Symfony ExpressionLanguage Component
symfony/filesystem                 v4.4.16 v5.1.8  Symfony Filesystem Component
symfony/finder                     v4.4.16 v5.1.8  Symfony Finder Component
symfony/flex                       v1.10.0 v1.10.0 Composer plugin for Symfony
symfony/form                       v4.4.16 v5.1.8  Symfony Form Component
symfony/framework-bundle           v4.4.16 v5.1.8  Symfony FrameworkBundle
symfony/http-client                v5.1.8  v5.1.8  Symfony HttpClient component
symfony/http-client-contracts      v2.3.1  v2.3.1  Generic abstractions related to HTTP clients
symfony/http-foundation            v4.4.16 v5.1.8  Symfony HttpFoundation Component
symfony/http-kernel                v4.4.16 v5.1.8  Symfony HttpKernel Component
symfony/intl                       v5.1.8  v5.1.8  A PHP replacement layer for the C intl extension that includes additional data from the ICU library.
symfony/mailer                     v5.1.8  v5.1.8  Symfony Mailer Component
symfony/maker-bundle               v1.23.0 v1.23.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/messenger                  v5.1.8  v5.1.8  Symfony Messenger Component
symfony/mime                       v5.1.8  v5.1.8  A library to manipulate MIME messages
symfony/monolog-bridge             v5.1.8  v5.1.8  Symfony Monolog Bridge
symfony/monolog-bundle             v3.6.0  v3.6.0  Symfony MonologBundle
symfony/options-resolver           v4.4.16 v5.1.8  Symfony OptionsResolver Component
symfony/phpunit-bridge             v5.1.8  v5.1.8  Symfony PHPUnit Bridge
symfony/polyfill-php80             v1.20.0 v1.20.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/process                    v4.4.16 v5.1.8  Symfony Process Component
symfony/profiler-pack              v1.0.5  v1.0.5  A pack for the Symfony web profiler
symfony/property-access            v5.1.8  v5.1.8  Symfony PropertyAccess Component
symfony/property-info              v5.1.8  v5.1.8  Symfony Property Info Component
symfony/proxy-manager-bridge       v4.4.16 v5.1.8  Symfony ProxyManager Bridge
symfony/redis-messenger            v5.1.8  v5.1.8  Symfony Redis extension Messenger Bridge
symfony/requirements-checker       v1.1.8  v2.0.0  Check Symfony requirements and give recommendations
symfony/routing                    v4.4.16 v5.1.8  Symfony Routing Component
symfony/security                   v4.4.16 v4.4.16 Symfony Security Component
symfony/security-acl               v3.1.0  v3.1.0  Symfony Security Component - ACL (Access Control List)
symfony/security-bundle            v4.4.16 v5.1.8  Symfony SecurityBundle
symfony/serializer                 v5.1.8  v5.1.8  Symfony Serializer Component
symfony/service-contracts          v2.2.0  v2.2.0  Generic abstractions related to writing services
symfony/stopwatch                  v5.1.8  v5.1.8  Symfony Stopwatch Component
symfony/string                     v5.1.8  v5.1.8  Symfony String component
symfony/swiftmailer-bundle         v3.5.1  v3.5.1  Symfony SwiftmailerBundle
symfony/templating                 v4.4.16 v5.1.8  Symfony Templating Component
symfony/translation                v4.4.16 v5.1.8  Symfony Translation Component
symfony/translation-contracts      v2.3.0  v2.3.0  Generic abstractions related to translation
symfony/twig-bridge                v4.4.16 v5.1.8  Symfony Twig Bridge
symfony/twig-bundle                v4.4.16 v5.1.8  Symfony TwigBundle
symfony/validator                  v4.4.16 v5.1.8  Symfony Validator Component
symfony/var-dumper                 v5.1.8  v5.1.8  Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter               v5.1.8  v5.1.8  A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code
symfony/web-profiler-bundle        v5.0.11 v5.1.8  Symfony WebProfilerBundle
symfony/web-server-bundle          v4.4.16 v4.4.16 Symfony WebServerBundle
symfony/webpack-encore-bundle      v1.8.0  v1.8.0  Integration with your Symfony app & Webpack Encore!
symfony/workflow                   v5.1.8  v5.1.8  Symfony Workflow Component
symfony/yaml                       v4.4.16 v5.1.8  Symfony Yaml Component

PHP version

$ php -v
PHP 7.3.18 (cli) (built: May 15 2020 13:19:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.18, Copyright (c) 1999-2018, by Zend Technologies
    with blackfire v1.34.0~linux-x64-non_zts73, https://blackfire.io, by Blackfire

Subject

Translation key "sonata.user" is duplicated at SonataUserBundle.nl.xliff.
This issue was introduced at #1271:

<trans-unit id="sonata_user">
<source>sonata_user</source>
<target>Gebruikersbeheer</target>
</trans-unit>

<trans-unit id="sonata_user">
<source>sonata_user</source>
<target>Gebruikers</target>
</trans-unit>

Steps to reproduce

Execute:

bin/console cache:clear

Expected results

[OK] Cache for the "local" environment (debug=true) was successfully cleared.                                                                                                                                                                                          

Actual results

Invalid resource provided: "/app/vendor/sonata-project/user-bundle/src/Resources/translations/SonataUserBundle.nl.xliff"; Errors: [ERROR 1877] Element '{urn:oasis:names:tc:xliff:document:1.2}trans-unit': Duplicate key-sequence ['sonata_user'] in key identity-constraint '{urn:oasis:names:tc:xliff:document:1.2}K_unit_id'. (in /app/ - line 237, column 0)

@zghosts, could you please create a PR fixing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant