Skip to content

Fix translations files with ICU message formater #908

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

Merged
merged 1 commit into from
Dec 4, 2018

Conversation

ker0x
Copy link
Contributor

@ker0x ker0x commented Dec 4, 2018

As pointed by @stof in #890, translations files does no longer take in account variables because of the +intl-icu suffix in translation files. This PR fix that!

@@ -20,15 +20,15 @@
</trans-unit>
<trans-unit id="http_error.name">
<source>http_error.name</source>
<target>Грешка %status_code%</target>
<target>Грешка {status_code, number}</target>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if the type is needed here! I added it by principe but feedback will be appreciated

@@ -80,7 +80,7 @@
</trans-unit>
<trans-unit id="title.edit_post">
<source>title.edit_post</source>
<target>Редактиране на публикация #%id%</target>
<target>Редактиране на публикация #{id, number}</target>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too, not sure if needed !

@javiereguiluz
Copy link
Member

Thanks for fixing this bug Romain.

@javiereguiluz javiereguiluz merged commit c29e1dd into symfony:master Dec 4, 2018
javiereguiluz added a commit that referenced this pull request Dec 4, 2018
This PR was merged into the master branch.

Discussion
----------

Fix translations files with ICU message formater

As pointed by @stof in #890, translations files does no longer take in account variables because of the `+intl-icu` suffix in translation files. This PR fix that!

Commits
-------

c29e1dd Fix translations files with ICU message formater
@ker0x ker0x deleted the hotfix/translations-files branch December 4, 2018 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants