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

RTL for docs translation #1348

Open
bluemix opened this issue Jul 30, 2017 · 9 comments
Open

RTL for docs translation #1348

bluemix opened this issue Jul 30, 2017 · 9 comments
Labels
documentation Improvements or additions to documentation

Comments

@bluemix
Copy link
Contributor

bluemix commented Jul 30, 2017

Hello dears,
How can I add an Arabic translation to the
docs if it doesn't supports RTL?
Or can I modify the navy theme to supports RTL?

@tea3
Copy link
Member

tea3 commented Jul 31, 2017

@bluemix
I do not know about navy-theme, but I think that I can customize it. If you change the theme's CSS file as follows, it may be displayed normally.

direction: rtl;
unicode-bidi: embed;
text-align: right;
float: left;
clear: right;

For example , hexo-theme-landscape can respond by editing somewhere below.
https://github.com/hexojs/hexo-theme-landscape/tree/master/source/css

@NoahDragon
Copy link
Member

@bluemix I saw you have submitted two plugins, which is the recommended way to add a new feature to Hexo.

Correct me if I'm wrong, are you asking how to update the Hexo document?

@bluemix
Copy link
Contributor Author

bluemix commented Jul 31, 2017

@tea3 actually I got problems with the unicode-bidi: embed; and when forcing direction: rtl;. because we have a mixed LTR (e.g., code) and RTL (e.g., explanations) texts. I've written two tag plug-ins what force the layout director for LTR or RTL. I mean it is ok to use tag plugs in the site, right?
The other question is that what is the possibility of using a unicode-bidi algorithm, like this, so that the above RTL<->LTR fixes will not be needed.

@bluemix
Copy link
Contributor Author

bluemix commented Jul 31, 2017

@NoahDragon thanks for the merge 😇
Ah, I am sorry, but this issue was supposed to be about the Hexo site.

I was asking If we can add the Arabic language to the Hexo site, like
having an additional Arabic language in this screenshot
screen shot 2017-07-31 at 17 19 30

@NoahDragon
Copy link
Member

@bluemix There is no Arabic translation so far. Would you like to help us translate doc/api to Arabic? If so, that's would be great. 😄

Here is an under development translation for Portuguese. The Arabic translation file structure would be same as this: https://github.com/lucianobarauna/site/tree/new_translate_ptbr/source/pt-br

@bluemix
Copy link
Contributor Author

bluemix commented Jul 31, 2017

@NoahDragon yes, I'd like to translate the docs to Arabic. the main problem is that the Arabic language is written from right-to-left (RTL languages) 😁
So I was discussing with @tea3 about this problem :)

@NoahDragon
Copy link
Member

@bluemix That would be awesome. 👍

To make text direct from right to left, I think the plugin you just created would be perfect. You could add it to the package dependency and use it anywhere it needed.

@bluemix
Copy link
Contributor Author

bluemix commented Aug 1, 2017

ok, I'll start the Arabic translation and I hope tings go well.
thanks dears :)

@stevenjoezhang stevenjoezhang transferred this issue from hexojs/hexo Mar 10, 2020
@SukkaW SukkaW added the documentation Improvements or additions to documentation label Mar 10, 2020
@lorezyra
Copy link
Contributor

Any luck on Arabic translation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants