From f7130556bbcbc0a0b93ba07ef1da9c9d11b68b54 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 10 Aug 2018 15:37:17 +0200 Subject: [REF] *: add support for RTL languages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit מזל טוב The direction parameter will now have a real impact on the web interface and completly switch the direction of the interface. Add the dependency rtlcss to switch the direction with a css postprocessor. Two different assets will be generated for ltr or rtl /web/content/<...>/web.assets_backend.0.css and /web/content/<...>/rtl/web.assets_backend.0.css to be able to differentiate it easily Adapt the css and views to be easier to switch direction Render graph as it is, do not move y-axis right side, as per mathematical rule value goes left from origin are considered negative, so keep graph as it is for right to left language add test cases for language direction specific assets bundle if language direction is rtl then we also store css files in assets bundle now we store two assets bundle, one for ltr and one for rtl language direction test two assets bundles generated, also test two assets bundle generated for en_US and ar_SY --- addons/web/static/src/scss/webclient_extra.scss | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addons/web/static/src/scss/webclient_extra.scss') diff --git a/addons/web/static/src/scss/webclient_extra.scss b/addons/web/static/src/scss/webclient_extra.scss index 80e9390c534..7c11ac32a84 100644 --- a/addons/web/static/src/scss/webclient_extra.scss +++ b/addons/web/static/src/scss/webclient_extra.scss @@ -44,3 +44,9 @@ select { @include o-text-overflow; max-width: 150px; } + +.o_rtl { + .navbar-right { + padding: 0; // fix for user agent stylesheet -webkit-padding-start: 40px in rtl language + } +} -- cgit v1.2.3