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

Access multiple lexicon languages at same time #6204

Closed
modxbot opened this issue Dec 2, 2011 · 2 comments
Closed

Access multiple lexicon languages at same time #6204

modxbot opened this issue Dec 2, 2011 · 2 comments
Labels
area-lexicons Issues related to translations and lexicons implementation. feature Request about implementing a brand new function or possibility.

Comments

@modxbot
Copy link
Contributor

modxbot commented Dec 2, 2011

okyanet created Redmine issue ID 6204

It does not appear to be possible to access a lexicon string in two languages within the same resource.

Eg.

[[%key? &namespace=`ns` &language=`en`]]
[[%key? &namespace=`ns` &language=`fr`]]

Will return 'key' in the last language to load for both tags.

Potential usage:

  • Multilingual menus where multiple languages are required, such as:
    English - Italiano - Deutsch - Francais - Espanol
  • Snippets outputting the same lexicon strings but in different languages (such a snippet that sends emails to users in different languages)

Background:
http://forums.modx.com/thread?thread=72209#dis-post-402093

@splittingred
Copy link

splittingred submitted:

Fixed here: 81f9f01

@modxbot
Copy link
Contributor Author

modxbot commented Dec 3, 2011

okyanet submitted:

Champion!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-lexicons Issues related to translations and lexicons implementation. feature Request about implementing a brand new function or possibility.
Projects
None yet
Development

No branches or pull requests

2 participants