Skip to content

Fix translating "limit" variable: add extra spaces #466

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
Feb 14, 2017

Conversation

bocharsky-bw
Copy link
Contributor

{{limit}} not translated at all.

@javiereguiluz
Copy link
Member

@bocharsky-bw good catch! I was wondering if this could be added to the proposed Xliff linter (symfony/symfony#21578) but since the placeholder wrapper is configurable (it can be {{ ... }}, or % ... %, etc.) this won't be easy .... or even impossible!

@javiereguiluz javiereguiluz merged commit 55aa721 into symfony:master Feb 14, 2017
javiereguiluz added a commit that referenced this pull request Feb 14, 2017
…y-bw)

This PR was merged into the master branch.

Discussion
----------

Fix translating "limit" variable: add extra spaces

`{{limit}}` not translated at all.

Commits
-------

55aa721 Fix translating limit variable: add extra spaces
@stof
Copy link
Member

stof commented Feb 14, 2017

(it can be {{ ... }}, or % ... %, etc.) this won't be easy .... or even impossible!

you don't even need a delimiter (even though it would make maintaining translations a huge pain). Symfony just replaces the string passed a placeholder, without caring about its content. You could use $count

@bocharsky-bw bocharsky-bw deleted the fix-validation-errors branch February 14, 2017 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants