Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-07-14 04:48:43

omid020
New Member
From: Tehran
Registered: 2013-07-14
Posts: 6
Website

Is TXP easy for RTL languages too?

Hi there,

Recently I got familiar with textpattern CMS, but I have ambiguity to start my first project!

My native language is an RTL language.
By default textpattern use an LTR simple editor. May I have an RTL editor to write articles via TXP?

Another issue is about native calendar; TXP by default use Western calendar while I need to display Jalali calendar in my pages.I have PHP code and Smarty code to convert Western date to Jalali date.
Does TXP support any solution to use native calendars?

Regards
Omid

Offline

#2 2013-07-14 09:01:14

etc
Developer
Registered: 2010-11-11
Posts: 5,474
Website GitHub

Re: Is TXP easy for RTL languages too?

Hi Omid, welcome to the forum.

For Jalali calendar, you can check if etc_date plugin does what you need.

For RTL editor, setting CSS direction:rtl for inputs/textareas could suffice, but I have not yet any experience with RTL languages.

Offline

#3 2013-07-14 11:06:24

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Is TXP easy for RTL languages too?

or use this beta admin template, it s for arabic but should work with any rtl language. remora_arabic

Offline

#4 2013-07-14 16:05:37

omid020
New Member
From: Tehran
Registered: 2013-07-14
Posts: 6
Website

Re: Is TXP easy for RTL languages too?

etc wrote:

Hi Omid, welcome to the forum.

For Jalali calendar, you can check if etc_date plugin does what you need.

For RTL editor, setting CSS direction:rtl for inputs/textareas could suffice, but I have not yet any experience with RTL languages.

Thank you etc! your plugin works like a charm! :)
and for editor issue I prefer to edit CSS file.

Also there is one uncoordinated item with Jalali calendar. In Jalali calendar first day of week is Saturday (شنبه) , so I placed Saturday as first day in Locale Strings (Weekday names), but it showed me Saturday for %A output instead of Sunday(Today I mean)! So I edited Weekday names field and placed Sunday as first item in that field to solve this issue.

Sincerely
Omid

Last edited by omid020 (2013-07-14 16:10:57)

Offline

#5 2013-07-14 17:09:03

etc
Developer
Registered: 2010-11-11
Posts: 5,474
Website GitHub

Re: Is TXP easy for RTL languages too?

omid020 wrote:

Also there is one uncoordinated item with Jalali calendar. In Jalali calendar first day of week is Saturday (شنبه) , so I placed Saturday as first day in Locale Strings (Weekday names), but it showed me Saturday for %A output instead of Sunday(Today I mean)! So I edited Weekday names field and placed Sunday as first item in that field to solve this issue.

Glad it works, and sorry for having forgotten to precise that weeks start with Sunday in PHP calendar. :) I will do it in the next version, thank you for the feedback!

Offline

#6 2013-07-15 09:14:11

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Is TXP easy for RTL languages too?

If there are improvements we can make to the default admin side themes and public-side theme to better support RTL languages then please let me know. I have only basic knowledge of non-latin language handling so the more tips and pointers you can give, the better.

Textpattern 4.6 (currently in development) has already gone partway to improve non-latin language support, but I’m sure it could be much better.

Offline

#7 2013-07-15 10:19:36

omid020
New Member
From: Tehran
Registered: 2013-07-14
Posts: 6
Website

Re: Is TXP easy for RTL languages too?

philwareham wrote:

If there are improvements we can make to the default admin side themes and public-side theme to better support RTL languages then please let me know. I have only basic knowledge of non-latin language handling so the more tips and pointers you can give, the better.

Textpattern 4.6 (currently in development) has already gone partway to improve non-latin language support, but I’m sure it could be much better.

Great suggestion philwareham! I`m planning to develop a big website in my native language and maybe multi-language in future via TXP and if there is some opportunities to improve local processes, why not! it is my pleasure to help around this subject. Please let me know how can I participate in next improvements?

Offline

#8 2013-07-15 10:23:01

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Is TXP easy for RTL languages too?

Well, I’ll need people to test it in other languages at the very least.

If people can provide HTMl/CSS code examples, even better. Even providing screengrabs of how 4.6 currently looks in RTL languages would help us.

Offline

#9 2013-07-15 10:34:10

omid020
New Member
From: Tehran
Registered: 2013-07-14
Posts: 6
Website

Re: Is TXP easy for RTL languages too?

philwareham wrote:

Well, I’ll need people to test it in other languages at the very least.
If people can provide HTMl/CSS code examples, even better. Even providing screengrabs of how 4.6 currently looks in RTL languages would help us.

Ok, so let me know last changes when outputs are ready.

Thank you!

Last edited by omid020 (2013-07-15 10:34:35)

Offline

#10 2013-08-06 12:05:39

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Is TXP easy for RTL languages too?

Right, Omid has sent me some initial feedback and I’ve made a start on this RTL stuff – still a long way to go but the first batch of improvements will be in tonight’s nightly build (or available from SVN or GitHub as usual).

Offline

#11 2013-08-14 07:30:47

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Is TXP easy for RTL languages too?

A further round of improvements have been made for RTL in latest nightly build (also on GitHub and SVN). If any RTL users want to test it and give me feedback that would be great.

I’ll then move on to the other RTL issues like URL fields in prefs, display/alignment glitches, stuff like that.

Offline

#12 2013-09-16 09:07:18

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Is TXP easy for RTL languages too?

The RTL language Textpacks for GitHub need some extra translations added, if anyone can help. These languages:

  • Algerian Arabic (ar-DZ)
  • Persian Farsi (fa-IR)
  • Hebrew (he-IL)
  • Urdu (ur-IN)

Basically, any empty strings in those Textpacks need filling out. If you speak any of those languages and want to help us, see here for instructions on how to get involved.

I’ll continue making improvements to the RTL support in Textpattern 4.6 branch as I find problems. A lot of RTL fixes have already been added too, which makes Textpattern much more useable in those regions.

Offline

Board footer

Powered by FluxBB