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

Allow passing the locale from variables #46

Merged
merged 1 commit into from Sep 29, 2017

Conversation

crbelaus
Copy link
Owner

Previously Trans was cally to_string in the locale before it was
unquoted. Since strins and atoms are represented as themselves in the
AST they were working fine. Trouble came when passed a variable, which
is represented in the AST as a three-element tuple and raised an error
when trying to convert it to a string.

Thanks to @speeddragon for reporting this issue in #45 .

Previously Trans was cally `to_string` in the locale before it was
unquoted. Since strins and atoms are represented as themselves in the
AST they were working fine. Trouble came when passed a variable, which
is represented in the AST as a three-element tuple and raised an error
when trying to convert it to a string.
@crbelaus crbelaus added the bug label Sep 28, 2017
@crbelaus crbelaus self-assigned this Sep 28, 2017
@crbelaus crbelaus added this to the 2.0.2 milestone Sep 28, 2017
@crbelaus crbelaus changed the base branch from master to releases/2.0.2 September 28, 2017 18:37
@crbelaus crbelaus merged commit 7494d74 into releases/2.0.2 Sep 29, 2017
@crbelaus crbelaus deleted the issues-45-locale-as-variable branch September 29, 2017 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant