1
Tarik
problem, xlanguage and styles
  • 2010/11/13 22:59

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


hello i have a problem with xlanguage, I want to create a multi-language website main language is Arabic and i want to add English as secondary language every thing about the work of the module is OK but i have a problem when changing to English it still load the styles of Arabic
Ex:
le="color: #000000"><?php <link rel="stylesheet" href="http://www.xo-aminoss.info/language/arabic/style.css" type="text/css" /> <link rel="stylesheet" href="http://www.xo-aminoss.info/themes/blogy/language/arabic/style.css" type="text/css" />

2
ghia
Re: problem, xlanguage and styles
  • 2010/11/14 1:51

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you see this?

3
Tarik
Re: problem, xlanguage and styles
  • 2010/11/14 14:10

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


no i dont mean to add styles depending on the language
xoops is multi language and there is a css file for every language and it doesn't change
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

4
ghia
Re: problem, xlanguage and styles
  • 2010/11/15 1:32

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


In theme.php and functions.php xoops_getConfigOption('language') is used.
Try by replacing it with $xoopsConfig['language']

5
Tarik
Re: problem, xlanguage and styles
  • 2010/11/15 14:36

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


why cant i edit my topic to add [SOLVED]

Thank you very much,
for more info for who have the same problem
because of some language require rtl, the style of the core language have a lot of <dir: rtl !important> and the problem is that xlanguage dont change the core language style so when i choose english it still load the arabic styles and to solve that (again big thanks to Ghia)
you need to replace xoops_getConfigOption('language') by $xoopsConfig['language']
in
le="color: #000000"><?php XOOPS_ROOT_PATH/class/theme.php XOOPS_ROOT_PATH/include/functions.php

and to avoid the error xoopsConfig not defined you must add
le="color: #000000"><?php global $xoopsConfig;

after
le="color: #000000"><?php function loadLocalization($type = "main") {


6
ghia
Re: problem, xlanguage and styles
  • 2010/11/15 23:49

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
why cant i edit my topic to add [SOLVED]
It has to be edited in the first post.

7
Tarik
Re: problem, xlanguage and styles
  • 2010/11/16 0:03

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


it's obvious that i have to edit it to change the post status but i cant find the edit link in the first placeResized Image


EDIT: what is weirder is that i can edit only #5 and #7 but not the #1 and #3 post
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

8
Mamba
Re: problem, xlanguage and styles
  • 2010/11/16 0:17

  • Mamba

  • Moderator

  • Posts: 11524

  • Since: 2004/4/23


You cannot change it the older ones, because the "time window" for changing them expired.

You have only limited time to make changes....

Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

9
Tarik
Re: problem, xlanguage and styles
  • 2010/11/16 0:43

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


Hello Mamba,
how much is the time limit (seconds, minutes, ...)
but this isn't good for example in my condition i cant change the topic status unless the problem was solved in minutes XD
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

10
ghia
Re: problem, xlanguage and styles
  • 2010/11/16 8:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Humm, this seems a lacking feature in CBB, that while editing of the posts is locked, you should still be able to edit the prefix.

Login

Donat-O-Meter

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

Latest GitHub Commits