721
alain01
Re: Xlanguage Module - Default Language Issue
  • 2021/8/18 15:05

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Strange,
did you create Config file ?

Tab Manage Languages, bottom ! (create config file).

In my config file :
    $cachedConfig['xlanguage_base'] = array(
        
"english"=>array(
            
"lang_id"=>1,
            
"weight"=>20,
            
"lang_name"=>"english",
            
"lang_desc"=>"English version",
            
"lang_code"=>"xen",
            
"lang_charset"=>"UTF-8",
            
"lang_image"=>"english.gif"
        
),
        
"french"=>array(
            
"lang_id"=>2,
            
"weight"=>10,
            
"lang_name"=>"french",
            
"lang_desc"=>"Version française",
            
"lang_code"=>"xfr",
            
"lang_charset"=>"UTF-8",
            
"lang_image"=>"french.gif"
        
),
    );
?>



722
Mamba
Re: Xlanguage Issue
  • 2021/8/18 15:00

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


I was able to replicate the behavior. It seems like xLanguage insists on using English as the "default" language, unless you select it actively via xLanguage.

I'll look now how to make it more consistent. ..
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



723
alain01
Re: Xlanguage Module - Default Language Issue
  • 2021/8/18 8:08

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Hi Liomj

I used the 3.1.2 xlangage module on XOOPS 2.5.11 beta2 with 2 bases languages :
- main language : French ([xfr][/xfr])
- other base language : English ([xen][/xen])

I used Google Chrome and I have not your problem.
After cleaned cache, the site is on the main language, french.

Just a question :
Do you used extented languages ?
IF yes,
may be the problem is here.
SO, If yes,
please try to test with 2 bases languages, not with extension and see the result...

Just an idea...



724
Mamba
Re: Xlanguage Issue
  • 2021/8/18 2:55

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Thanks for reporting it!

All sounds very strange, but I'll look into it and do some testing.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



725
liomj
Re: Xlanguage Issue
  • 2021/8/18 1:54

  • liomj

  • Just popping in

  • Posts: 80

  • Since: 2012/4/10


i made some self troubleshooting testing with xoops 2.5.11 beta and xlanguage 3.1.2 with different browsers

a. Firefox - remove english as language settings in browser
- clear cache now my translation is working as default without clicking the flag image

b. chrome - remove english language from setting
- clear cache - translation not working

im not sure if this got to do with browser language setting but if i used the old xlanguage, i dont have this problem



726
liomj
Re: Xlanguage Issue
  • 2021/8/18 1:40

  • liomj

  • Just popping in

  • Posts: 80

  • Since: 2012/4/10


i solved it temporarily by using old version of xlanguge 3.0 from an older installation...



727
liomj
Xlanguage Module - Default Language Issue
  • 2021/8/18 1:38

  • liomj

  • Just popping in

  • Posts: 80

  • Since: 2012/4/10


Hi, How do i set my language as Default ?

What did i miss, i setup it like this

a. add my language folder in root/language/ and also in root/modules/xxx/language also others place where language folder exists
b. change the Preferences - General Settings - Default Language
c. Install xlanguage module
d. Add base language, my local language and English language
f. Activate block language
g. try to change language using block - success

but my site default language is still English .. i need to click the flag image in the language block to change to my local language,

i've cleared my cache, use incognito and private browser mode and also use another pc..same problem

if i deactive uninstall the xlanguage module, i will see my translation

Im using
XOOPS Version XOOPS 2.5.11-Beta2
PHP Version 7.4.21
MySQL Version 5.5.5-10.4.20-MariaDB
xlanguage 3.1.2

https://github.com/XoopsModules25x/xlanguage



728
Mamba
AJAX with Smarty
  • 2021/8/17 19:25

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


After experimenting with CRUD with AJAX, couple more experiments on AJAX with Smarty:

1) Using Smarty templates to generate JSON, XML, and HTML responses for Ajax requests

https://github.com/mambax7/ajaxsmartyibm

based on this IBM article: https://github.com/mambax7/ajaxsmartyibm/blob/master/docs/wa-aj-smarty-pdf.pdf

2) AJAX-enabled Smarty plugins
https://github.com/mambax7/ajaxsmartyplugins

based on these two articles:
https://kpumuk.info/php/ajax-enabled-smarty-plugins/comment-page-1
https://kpumuk.info/php/ajax-enabled-smarty-plugins-part-2-ajax_form/

I'm not sure how much it will be of use to XOOPS going forward, but it was an interesting exercise

Go fork them, improve them, and contribute back!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



729
Mamba
Re: CRUD with AJAX
  • 2021/8/16 11:01

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


BTW - if you want to test the code, it is on GitHub:
https://github.com/mambax7/ajaxtest

Fork it, improve it, and contribute back!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



730
Mamba
Re: CRUD with AJAX
  • 2021/8/16 10:58

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


You make me work really hard for the extra points!

OK, it's done!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 70 71 72 (73) 74 75 76 ... 29425 »



Login

Who's Online

859 user(s) are online (338 user(s) are browsing Support Forums)


Members: 0


Guests: 859


more...

Donat-O-Meter

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

Latest GitHub Commits