I'm using the Elegant theme for SMF 2.0.1. When someone logs in "hey, [username]" appears. I'd like to change "hey" to "Hello" but don't know in what file to look--and where in the file to look.
It's in index.english.php. Look for $txt['hello_member'].
It's VERY American, that "Hey" thing.
I think I've had to change that on every forum I've had access to.
In Europe, it's seen as being quite aggressive. We only usually greet someone, with that, if we're gonna bop 'em one.
:) Yea, something told me that "hello" might be better for a broader audience.
So where would I find index.english.php: I think I've looked in every file and didn't see it.
I are a newbie, don't you know.
It's in the default theme's "Languages" directory.
If it's only showing on that "Elegant" theme, it'll be in the theme's "languages" directory. :)
Unless the theme's author's been naughty.
"Hi!" seems to be universally acceptable, if "Hello" seems a bit formal, for you.
We changed ours to "Wotcha!". ;)
Even in the US, 'hey' is a bit rude, except between close friends.
Really?
It seems to get used a lot, here.
I even had a grumble about it, a while back...
http://www.simplemachines.org/community/index.php?topic=418859.msg2926789#msg2926789
Right. So in my themes/[ ... Theme ... ]/language folder I see only index.php and Settings.language.php. The latter one tells me to read the text of index.language.php before making any adjustments to it: but, again, I can't find find/see index.language.php (in this file or any other).
index.english.php in the default theme's "languages" directory, then.:)
I'm on the right track. (It was the one directory I was too lazy to look all the way through.) But ... after changing "Hey" to "Hello" it still didn't work.
Btw, I also noticed this line bellow the $txt['hello_member']:
$txt['welmsg_hey'] = 'Hey,';
I changed this one too to "Hello" but still no go.
You refreshed?
You may need to empty your browser's cache.
Yes. Emptied the browser's cache, restarted the browser, and emptied the forum cache. Downloaded index.language.php to make sure that the changes were updated, and they are.
If its of any help, the "hey" used to not be capitalized; now it is: "Hey," (don't think this change is for the better :))
have you tried asking the theme author? they would know best what string is used and where it needs to be changed.
I just checked the theme's files and it's not in any of those...
In index.english.php, you want to change this line:
$txt['hello_member'] = 'Hey,';
to
$txt['hello_member'] = 'How ya doin',';
or whatever.
Also, $txt[247] is hey.
That doesn't appear in index.english.php with SMF v2, though.
At least, it doesn't on mine. ;)
in 2.0
$txt['hello_member'] = 'Hey,';
$txt['welmsg_hey'] = 'Hey,';
$txt['hello_member_ndt'] = 'Hello';
Hey hey hey! :)
And, if you have other languages available (like english-british), you'll need to make the EXACT SAME changes in those files
index.<language>.php, where <language> is english or english-british-utf8.
If you have a language directory in your Elegant theme, you should make the changes in your default theme and also in your Elegant theme.
or you can be bad and hardcode it if its for your own forum but I didnt mention that :P
"Hey, you," might work even better you say? :D
------------------
[Took the advice and asked the Theme author. Already got a reply: I changed $txt['hello_member'] to $txt['hello_member_ndt'] in index.template.php from the theme's directory.]
----------------
Ok, wanted to mention that because the Theme author, imho, is quite cool for helping out so quickly--and I really like the theme.
---------------
Now, the funny part. After doing all this, the second to the last post inspired me to take another look at the default language directory and I saw index.english-utf8.php. I made the changes here and everything began to work as it should.
I'm happy. :)
Thanks to everyone for all the input! It all helped out.