mamute icon indicating copy to clipboard operation
mamute copied to clipboard

Support for RTL language

Open KnightYusuf opened this issue 9 years ago • 5 comments

How to add support for right to left languages?

KnightYusuf avatar Jul 28 '15 10:07 KnightYusuf

+1

khajavi avatar Jul 30 '15 21:07 khajavi

Hi @KnightYusuf, hi@khajavi.

I think that the first thing you can try is to add the direction: rtl; css property to a custom stylesheet (you can do that creating an css/deps/custom.css file).

I've tried that, and the result didn't look good. You'll probably need to customise all templates of the default theme. These are the templates that you can customise: https://github.com/caelum/mamute/tree/master/src/main/webapp/WEB-INF/jsp/theme/default

Do you wanna try that? It will be an awesome contribution to Mamute and we can help you with the development.

csokol avatar Jul 30 '15 22:07 csokol

Hi,

Other than css issue (rtl direction), Mamute have a big issue with writing Persian alphabets. When i try write "جملهٔ فارسی", Mamute show that in "???????????" style!

On Fri, Jul 31, 2015 at 3:07 AM, csokol [email protected] wrote:

Hi @KnightYusuf https://github.com/KnightYusuf, hi@khajavi.

I think that the first thing you can try is to add the direction: rtl; css property to a custom stylesheet (you can do that creating an css/deps/custom.css file).

I've tried that, and the result didn't look good. You'll probably need to customise all templates of the default theme. These are the templates that you can customise: https://github.com/caelum/mamute/tree/master/src/main/webapp/WEB-INF/jsp/theme/default

Do you wanna try that? It will be an awesome contribution to Mamute and we can help you with the development.

— Reply to this email directly or view it on GitHub https://github.com/caelum/mamute/issues/185#issuecomment-126510813.

Milād Khājavi http://blog.khajavi.ir Having the source means you can do it yourself. I tried to change the world, but I couldn’t find the source code.

khajavi avatar Jul 31 '15 06:07 khajavi

That's weird, it should always use utf-8 for everything. Can you open another issue for that @khajavi ?

leocwolter avatar Jul 31 '15 23:07 leocwolter

I'm trying to add custom rtl css. Could you help me how can I detect the locale in view (jsp)?

khajavi avatar Dec 30 '15 11:12 khajavi