Foren / Cotonti / Support / Downloaded theme, different langage

hmm..

blazing
#1 8. Januar 2013, 15:42

hey, i downloaded a theme today and uploaded it, and in my config.php i use:

$cfg['defaultskin'] = 'glow';// Default skin code. Be SURE it's pointing to a valid folder in /skins/... !!
$cfg['defaulttheme'] = 'glow'; // or 'red'// Default theme, only name, not like skinname.css. Be SURE it's pointing to a valid folder in /skins/defaultskin/... !!
$cfg['defaultlang'] = 'en';// Default language code
$cfg['enablecustomhf'] = FALSE;// To enable header.$location.tpl and footer.$location.tpl

 

 

but it still shows as the same language, i am trying to use English, and in the theme file, there are the following files:

 

glow.en.lang.php
glow.es.lang.php
glow.ru.lang.php
 
the url is http://www.customgaming.site50.net/forum
Twiebie
#2 8. Januar 2013, 15:48

Is the language English when you are logged out?

Maybe you have set a different language in your profile.

blazing
#3 8. Januar 2013, 15:49
#36748 Twiebie:

Is the language English when you are logged out?

Maybe you have set a different language in your profile.

 

yes i have logged out, and it is still the same, i posted the url above
lukgoh
#4 8. Januar 2013, 15:53

The links, etc that are in the language file are in Enlgish for me. Looks like the stuff that isnt is hard coded. Check your index tpl file and see if there is some hardcoded text.

blazing
#5 8. Januar 2013, 15:54
#36748 Twiebie:

Is the language English when you are logged out?

Maybe you have set a different language in your profile.

 

you can log in with the following: Username: guest Password: guest
Twiebie
#6 8. Januar 2013, 15:54
#36750 lukgoh:

The links, etc that are in the language file are in Enlgish for me. Looks like the stuff that isnt is hard coded. Check your index tpl file and see if there is some hardcoded text.

Yep, same here. It's using the English language file alright.

blazing
#7 8. Januar 2013, 15:59
hmm. i think i understand, i have to change the tpl files manually because the text is in the tpl.. i wish they made it so each theme had different lang tpl's so you could easily change the language. so theres no way to change the highlighted to english without manually doing so? http://picupload.pl/vi-mOAOB1.png
Twiebie
#8 8. Januar 2013, 16:03

In this particular theme - no, it seems like it's simply text in the TPL file.

Some themes use language strings for everything, which is the better approach.
You can follow this approach and add new strings to the glow.en.lang.php file like so:

$L['thisissomething'] = 'This is text';

And then include the string in the TPL like this:

{PHP.L.thisissomething}

This way you can make the website multilingual, and put the same strings in for example glow.es.lang.php, with the text in a different language ofcourse.

blazing
#9 8. Januar 2013, 16:09
Okay, so i can just copy the different TPL files from other skins to this one? or should i just edit them?
Twiebie
#10 8. Januar 2013, 16:12

Just edit them.

blazing
#11 8. Januar 2013, 16:15
ok i will, thanks