The Joomla! Forum ™






Post new topic Reply to topic  [ 51 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Jan 23, 2007 8:39 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Oct 15, 2006 1:25 am
Posts: 36
عند استخدام joomfish  كيف يمكن تصميم قالب ذو اتجاهين Ltr & Rtl وشكراً
:pop


Top
 Profile  
 
PostPosted: Wed Jan 24, 2007 5:45 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Sep 22, 2005 3:52 pm
Posts: 585
Location: Egypt
[rtl]

السلام عليكم

تقوم بانشاء قالب يحتوي على ثلاث ملفات

index.php
ويحتوي على الكود الآتي فقط

[/rtl]
Code:
//If the lanague is arabic (Right to left) load the (Right to left) version of the template
if( $mosConfig_lang == 'arabic' )
       include "index_rtl.php";
//Otherwise load the (Left to right) version.
else
       include "index_ltr.php";

[rtl]


index_rtl.php
ٍويحتوى على القالب المعرب (من اليمين الى اليسار)ـ

index_ltr.php
ٍويحتوى على القالب الغربي (من اليسار الى اليمين  )ـ

لن تحتاج الى تعديل ملفات الـ JoomFish! اطلاقا.


[/rtl]

_________________
http://mostafa.mosmar.com/blog | My blog
http://mostafa.mosmar.com/jforms | JForms - WYSIWYG Forms Component for J! 1.5 (Beta)


Top
 Profile  
 
PostPosted: Wed Jan 24, 2007 11:07 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Oct 15, 2006 1:25 am
Posts: 36
بارك الله فيك يا دكتور
وجعلها في ميزان حسناتك يارب
وشكراً جزيلاً ;)


Top
 Profile  
 
PostPosted: Mon Feb 19, 2007 5:51 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Aug 24, 2005 12:15 pm
Posts: 67
Location: Jordan
ÏßÊæÑäÇ ÇáßÑíã.. ÔßÑÇ áåÐå ÇáÃäÇÑÉ æÇáÊí ÇÚÊÈÑåÇ ÇÚÙã ÇßÊÔÇÝ áåÐÇ ÇáÔåÑ

_________________
jalal joblo


Top
 Profile  
 
PostPosted: Thu Feb 22, 2007 2:54 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Sep 02, 2005 4:08 pm
Posts: 107
حركة جديده علينا والله ما قصرت اخوي


Top
 Profile  
 
 Post subject: Please
PostPosted: Mon Mar 05, 2007 8:11 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Jun 27, 2006 8:13 am
Posts: 121
sorry but i am englsih person this is for frontend option or backend...i hope somebody can translte me the solution thanks ..where shoould i put this txt?i


Last edited by mossimo on Mon Mar 05, 2007 8:19 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Mar 05, 2007 10:46 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jan 30, 2007 4:13 am
Posts: 339
hi there
i will try to translate wht the moderator says "dr_drsh"
*************
alslam alikom
create a template folder and create 3 files on it ((index.php , index_rtl.php , index_ltr.php))

-the index.php contain the below code ...... in another way insert the code below to the index.php file

//If the lanague is arabic (Right to left) load the (Right to left) version of the template
if( $mosConfig_lang == 'arabic' )
      include "index_rtl.php";
//Otherwise load the (Left to right) version.
else
      include "index_ltr.php";
index_rtl.php
the file contain the arabic template (( right to left))

index_ltr.php
this file contain the Western template(( left to right))

you dont have to edit the joomfish

*************************************

note: this question was about how to create a template with two direction "right to left" & "left to right"

_________________
Please read forum rules regarding signatures: viewtopic.php?t=65


Last edited by drma on Mon Mar 05, 2007 11:12 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Mar 05, 2007 3:38 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Jun 27, 2006 8:13 am
Posts: 121
drma wrote:
hi there
i will try to translate wht the moderator says "dr_drsh"
*************
alslam alikom
create a template folder and create 3 files on it ((index.php , index_rtl.php , index_ltr.php))

-the index.php contain the below code ...... in another way insert the code below to the index.php file

//If the lanague is arabic (Right to left) load the (Right to left) version of the template
if( $mosConfig_lang == 'arabic' )
       include "index_rtl.php";
//Otherwise load the (Left to right) version.
else
       include "index_ltr.php";
index_rtl.php
the file contain the arabic template (( right to left))

index_ltr.php
this file contain the Western template(( left to right))

you dont have to edit the joomfish

*************************************

note: this question was about how to create a template with two direction "right to left" & "left to right"


THANKS SO MUCH I really appreaciate your support even though i am not arabic person.... :)

I am not using joomla fish for now but i will try this solution but i have a more question is this for frontend i will create template for template.
DO you think i can use this eventhough i am not using joomlafsh?
THANKS AGAIN GUYS!!! :)


Top
 Profile  
 
PostPosted: Mon Mar 05, 2007 6:13 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jan 30, 2007 4:13 am
Posts: 339
hi there
i think this solution is for creating multi lingual content website ,,, frontend multi lingual website
about the another Q....I'm not sure that you gonna do it without the joomfish,,,cus this code added to work with joomfish module
i hope that someone professional can answer your Q better then me.
have a god day mossimo and hope for you the best

_________________
Please read forum rules regarding signatures: viewtopic.php?t=65


Top
 Profile  
 
PostPosted: Thu Apr 12, 2007 9:06 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
Dear Friends, asalamo alaikom
many thanks for.the  hack, i used it and its working great, can someone please help with my issue please :
i installed joomfish and did what drdrsh said :
dr_drsh wrote:
[rtl]

السلام عليكم

تقوم بانشاء قالب يحتوي على ثلاث ملفات

index.php
ويحتوي على الكود الآتي فقط

[/rtl]
Code:
//If the lanague is arabic (Right to left) load the (Right to left) version of the template
if( $mosConfig_lang == 'arabic' )
       include "index_rtl.php";
//Otherwise load the (Left to right) version.
else
       include "index_ltr.php";

[rtl]


index_rtl.php
ٍويحتوى على القالب المعرب (من اليمين الى اليسار)ـ

index_ltr.php
ٍويحتوى على القالب الغربي (من اليسار الى اليمين  )ـ

لن تحتاج الى تعديل ملفات الـ JoomFish! اطلاقا.


[/rtl]


now i want the website this way :
when seeing the english one , the menus and other stuff will show LTR , i mean the positions, the main menu at left and another one at right in english
and when seeing the arabic one, i want it to RTL, the main arabic menu at right and the another arabic one at left
how to do this please ?its this can be possible by just editing the index_rtl.php and the index_ltr.php ?
many many thanks


Last edited by simoslav on Thu Apr 12, 2007 9:09 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Apr 14, 2007 10:33 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
Yes,
If you want to make 2 separate files. If you just want to flip ltr and rtl depending on the language regardless of the text alignment then I highly recommend that you use the code in this page:
http://forum.joomla.org/index.php/topic ... #msg716194

The code just determines what is the language and if it is arabic it will add rtl

Hope this helps

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
PostPosted: Thu Apr 19, 2007 12:08 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
Dear Emmaki , many thanks to you very much i have resolved this by making how dr Drsh said, i have created two index files , arabic and english + 2 css files arabic and english and all its working fine, nowi ahve just one small problem which i cant resolve already hours ! how you can see in my attachements , the title is in the  left , i use firefox web developer to view the css and then editthem, i cant figure out where is the style related to this, its occure only in the front page, when seeing the article once, the title is located at the right normaly, any suggestions plz


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Thu Apr 19, 2007 2:05 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
it is obviously not RTL. The title and the text (see the brackets)

They may be in either contentpagetitle or contentpaneopen classes. Please pay attention that some templates do not add the text-align: tag in many classes assuming it is left by default and right by default if rtl is used.

Now there is a tag in CSS that may help which is:
direction: rtl;
but I am not sure where you need to put it.

I am may disagree with the method used by dr_drsh for my sites but it is extremely useful for others especially non programmers. For me I use the adding rtl code whenever I need it and changing the css depending on the language. Since I am a designer and developer, it is better for me to make changes on just one template file instead of having two seperatly and make changes to both every time.

Bottom line, check the following to see where you can solve it:
1- Make sure you don't have align="left" in the template html code because many times I had to fix some templates this way.
2- Make sure that where the problem you had that you have text-align: right; You can know by highlighting the text in FFox and right-click on it and choose View Selection Source. This will show you the exact class used.
3- Make sure the right CSS file is used for the right page.
4- If you make changes to the CSS, it is adviced that you refresh using Ctrl+F5 many times so the css does not come from the cash. (it happened to me a lot):)

Finally, I would like to see a sample so I can determine which class is used and how to fix it.

Good luck.

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
PostPosted: Sat Apr 21, 2007 12:19 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 18, 2007 11:26 pm
Posts: 19
Where do I have to put this folder?


Top
 Profile  
 
PostPosted: Sat Apr 21, 2007 1:10 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
ًWhat folder?!

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
PostPosted: Sat Apr 21, 2007 9:16 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 18, 2007 11:26 pm
Posts: 19
You said in your last post to create a template folder, which I did and placed the folder with the 3 files inside the main joomla template folder, but it doesnt do anything.
What should I name this folder and where do I have to put it?


Last edited by pogo on Sat Apr 21, 2007 10:27 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Apr 21, 2007 10:35 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
You man Drma..
Yes, he meant that you create a "template folder" So, if you have a folder I assume your main template folder, then just add the two other files index_rtl.php and index_ltr.php besides index.php
then add the  code as described
No need for a folder inside the templae

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
PostPosted: Sat Apr 21, 2007 10:55 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 18, 2007 11:26 pm
Posts: 19
Thanks for your reply.
After I created all the 3 files inside my template folder, I’ve added automatic news feed from an Arabic news site, but the text is appearing ltr and not rtl.
What am I doing wrong?
And also when I write Arabic in the site itself, the text appears as characters.
Any help is appreciated.


Top
 Profile  
 
PostPosted: Sun May 06, 2007 3:56 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
Dear Friends
now i have a problem with modules names :) especially the menus , some modules (mamboweather) ae showing the arabic text correctly , but the menu modules when in arabic give the famous characters, any suggestion plz.


Top
 Profile  
 
PostPosted: Mon May 07, 2007 3:02 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
Make sure that all encodings are the same. Some times there are modules that have an encoding varuable in them so make sure it has the same encoding as what you have in your site wither if it is windows-1256 or utf-8.

Again, some modules have an encoding function like the one I faced in Community Builder Who's online Pro. It had a kind of function to encode the text so it appears in strange characters. So, you may need to look for that too.

Good luck.

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
PostPosted: Mon May 07, 2007 3:05 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
im using the core menus modules of joomla :)?!


Top
 Profile  
 
PostPosted: Mon May 07, 2007 3:09 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
and they do not show the arabic text


Top
 Profile  
 
PostPosted: Mon May 07, 2007 6:02 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
First, you must go to Joom Fish and translate your menus. If your main language is set in Joomla and JoomFish to English, then go to translation page in JoomFish and choose menus and you will see the menu items. Clcik on each and do the following:
1- Write the translation, if your main language is English, then write the Arabic translation.
2- Choose the language you just translated to in the right side.
3- Press Publish.

This is the way JoomFish works.

Good luck

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
PostPosted: Mon May 07, 2007 11:06 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
Dear emakki
the menu items like home, license and contact us are showing in arabic, the problem is in menu name its self, main menu, user menu and other menu, i tried with joomfish without success


Top
 Profile  
 
PostPosted: Thu May 10, 2007 1:06 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
any suggestions plz for this issue :)? thanks in advance


Top
 Profile  
 
PostPosted: Thu May 10, 2007 1:30 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Sep 22, 2005 3:52 pm
Posts: 585
Location: Egypt
Not sure, but did you try to translate content type "modules"? maybe it has the name

_________________
http://mostafa.mosmar.com/blog | My blog
http://mostafa.mosmar.com/jforms | JForms - WYSIWYG Forms Component for J! 1.5 (Beta)


Top
 Profile  
 
PostPosted: Thu May 10, 2007 1:34 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
thank you dr drsh
im using two template index files how you said, rtl and ltr , with every index with its own modules positions , its wouldnt help with joomfish because the modules positions change and they are fixed for every index (the rtl and the ltr)


Top
 Profile  
 
PostPosted: Thu May 10, 2007 3:22 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
Component>JoomFish>Translations
Then select Modules from content elements list. You will see a list of module titles (the ones you see in your site like main menu, user menu and so on). Click on the one you want to translate. Then translate it and choose the language you translated to and check on publish.

Please note: If your main language is Arabic, you must go to Modules>Site Modules and press on each module and change the title to Arabic. Then go to JoomFish to translate in English as I told you. If the main language is English, then just go to JoomFish and translate Arabic as stated above.

Good luck

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
PostPosted: Thu May 10, 2007 3:33 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 28, 2006 1:08 pm
Posts: 31
Dear Friends
plz look, in my template indexes (the rtl and the ltr ones) , the modules positions are not the same, for example main menu in the ltr index is located at the position lets say left, and in the rtl index the main menu is located at the right, the mosload modules are deferents in each index and do not repeat, i mean the position used in rtl are not used in ltr, i edited the two indexes to have its own modules positions each one


Top
 Profile  
 
PostPosted: Thu May 10, 2007 5:57 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Dec 01, 2006 9:26 am
Posts: 1679
Location: Centreville, Virginia
So, you are saying your problem now is the positions are not correct?
or what? Do you need to unite them in both languages? if so, try adding a ltr attribute in the table that has all positions (the one that has left, body and right) then in each table or cell for the left, body and right put an attribute of rtl.

This might help.

Good luck

_________________
Live and learn.. No matter what you earn..Money or knowledge.. From market or college..
_______
http://alhost.org هل تبحث عن إستضافة؟ مقارنة بين أفضل شركات الإستضافة
http://alhost.me دليل ومعاينة شركات الاستضافة العربية


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group