1
T00N2009
Language Specific Themes (Multilangual Website)
  • 2010/11/9 20:37

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello All

I have a multilangual website arabic and english. I am using xlanguage. Within different font-families the ENGLISH letters are too big and the ARABIC letters are too small.

I tried to find a solution to make the font sizes language specific but could not succeed in it (I still dont know whether it is possible within xoops).

The only solution "mentioned" to me is to make two themes ( themeARA and themeENG ) and link these themes with the arabic language and english language in the smarty tags.

The question is how to link these themes(themeARA and themeENG) to specific languages Arabic and English?

(
<a href="<{xoLanguage tag="lang" language="english"}>" title="<{$smarty.const.ENGLISH}>"><img src="<{xoImgUrl icons/english.gif}>" alt="<{$smarty.const.THEME_ENGLISH}>" /></a>
<a href="<{xoLanguage tag="lang" language="arabic"}>" title="<{$smarty.const.ARABIC}>"><img src="<{xoImgUrl icons/arabic.gif}>" alt="<{$smarty.const.THEME_ARABIC}>"/></a>
)

I will really appreciate it if someone can help me out.


I am looking forward to ur replies.

2
ghia
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/10 1:59

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try by using the language tags in theme.html enclosing inline CSS eg
[ar]<style type="text/css">
<!--
... 
arabic styling here
-->
</
style>
[/
ar]
[
en]<style type="text/css">
<!--
... 
english styling here
-->
</
style>
[/
en]

3
T00N2009
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/12 15:14

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello

Thanks ghia. I have just checked this method in my theme and it is perfect.

Thank u

4
T00N2009
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/15 18:46

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello Again

I just came across this post by Tarik.


Is it possible to put all these language specific css values in the different themes and html files of module in the xoops_root/language/arabic/style.css?

It would be nice because this way the file size of the specific html file will reduce.

There is also a small problem regarding language dependent syles. The dot(.) sign in the arabic text should go to the leftside and in english text it shoudl go to the right side.
Despite the directions being defined in the different html files through css values this problem still stays unsolved. Any idea how this can be solved.

Thanks in advance

T00N

5
Tarik
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/15 19:08

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


i don't advise you to do that because the core language style should have only direction about direction (rtl - ltr) and text-align (left - right) if you want to do a multi language theme like me you have to do a theme Arabic or English and then duplicate the style.css file to another style file like style-ltr.css and then in the theme.html change the style path
<link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{xoImgUrl}>css/style[en]-ltr[/en].css" />

just like my web site who have two stylesheet you can view an example here
http://www.xo-aminoss.info/index.php?lang=english
http://www.xo-aminoss.info/index.php?lang=arabic
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

6
T00N2009
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/15 19:25

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello Tarik

Okay so in the core files you can only have directions.
But the direction is part of something like

#/./------- {

direction: rtl;

}

what comes place of ---------.

thanks

7
Tarik
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/15 20:16

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


you dant have nothing to do in because the localization team who change it to suit the language
example:http://www.arabxoops.com/language/arabic/style.css

if you want to put style of a theme you must put them in style.css of he theme
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

8
T00N2009
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/15 20:28

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Okay

in the css file the direction is defined but still the dot signs goes to right instead or left in arabic version and to left instead of right in english version.

9
Tarik
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/15 21:08

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


can you send me your theme to give you more detail
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

10
ghia
Re: Language Specific Themes (Multilangual Website)
  • 2010/11/15 23:36

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
what comes place of ---------.
body ???

Login

Who's Online

232 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits