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
Add RTL support. #2525
Add RTL support. #2525
Conversation
You've signed the CLA, eyalev. Thank you! This pull request is ready for review. |
Since this is UI-related, would you mind posting a couple of screenshots? |
@@ -124,6 +124,10 @@ def mobile_device? | |||
MobileDetection.mobile_device?(request.user_agent) | |||
end | |||
|
|||
def rtl_view? | |||
current_user.try(:locale).in? %w(he ar) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will only work if allow_user_locale
is enabled. It should look at SiteSetting.default_locale
too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
👍 Thanks! |
How it works?
But, nothing happened! |
Update to the latest Discourse version and choose an RTL language (currently only 'he' and 'ar' are defined as RTL). |
you need to get started translating it :) On Mon, Jul 14, 2014 at 3:04 PM, diff- notifications@github.com wrote:
|
Then pull request for it here? |
Check this howto: https://meta.discourse.org/t/contribute-a-translation-to-discourse/14882 |
Relevant meta post: https://meta.discourse.org/t/css-customisation-for-rtl/10614/18