hmm..
blazing |
|
---|---|
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 |
|
---|---|
Is the language English when you are logged out? Maybe you have set a different language in your profile. |
blazing |
|
---|---|
#36748 Twiebie: yes i have logged out, and it is still the same, i posted the url above |
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. |
blazing |
|
---|---|
#36748 Twiebie: you can log in with the following: Username: guest Password: guest |
Twiebie |
|
---|---|
#36750 lukgoh: Yep, same here. It's using the English language file alright. |
blazing |
|
---|---|
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 |
|
---|---|
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. $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 |
|
---|---|
Okay, so i can just copy the different TPL files from other skins to this one? or should i just edit them?
|
Twiebie |
|
---|---|
Just edit them. |
blazing |
|
---|---|
ok i will, thanks
|