Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: sunseeker - helmikuu 13, 2006, 06:10:16 IP

Otsikko: changing the text for $txt['hello_member'] etc - where are they defined?
Kirjoitti: sunseeker - helmikuu 13, 2006, 06:10:16 IP
---------------------------------------
Hey, sunseeker
you have 2 messages, 0 are new.
Total time logged in: 1 days, 4 hours and 18 minutes.
Show unread posts since last visit.
Show new replies to your posts.
Feb 13, 2006, 06:03 PM
---------------------------------------

i cant find the files that have this text in them. i do see the index.template.php file for displaying this information, and i guess i can change the layout there for spacing, etc. but where do i change the actual text? i cant figure out where they are defined.

like for the following:

$txt['hello_member']

$txt['totalTimeLogged1']

or even $txt[152] for that matter.

thanks for any help!
Otsikko: Re: changing the text for $txt['hello_member'] etc - where are they defined?
Kirjoitti: JayBachatero - helmikuu 13, 2006, 06:19:31 IP
Check in your languages folder /Themes/default/languages/index.{language}.php
Otsikko: Re: changing the text for $txt['hello_member'] etc - where are they defined?
Kirjoitti: sunseeker - helmikuu 13, 2006, 06:59:46 IP
thanks! that folder was hidden amongst all my themes.

i guess changing it in there would change it for all themes.

i wonder if changing/modifying it inside my local theme file that uses it would be a good idea if i just wanted it to be changed for my own theme. can those be reassigned?
Otsikko: Re: changing the text for $txt['hello_member'] etc - where are they defined?
Kirjoitti: JayBachatero - helmikuu 13, 2006, 07:13:05 IP
The way it works is the default themes has ALL of the template and language files.  If a theme has custom template and language files it will use those.  If you need to edit a language string just add it to /{your_theme}/languages/{name}.{language}.php.  You must have ALL the language strings for your custom file.
Otsikko: Re: changing the text for $txt['hello_member'] etc - where are they defined?
Kirjoitti: sunseeker - helmikuu 13, 2006, 08:38:30 IP
thanks! for such a complete and informed reply. answers everything i need to know.


...for now  ;D
Otsikko: Re: changing the text for $txt['hello_member'] etc - where are they defined?
Kirjoitti: JayBachatero - helmikuu 13, 2006, 08:49:47 IP
You're welcome.  Enjoy your stay at the community :)