Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: mesothet - lokakuu 09, 2011, 12:14:41 AP

Otsikko: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: mesothet - lokakuu 09, 2011, 12:14:41 AP
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.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: Sir Osis of Liver - lokakuu 09, 2011, 03:15:58 IP
It's in index.english.php.  Look for $txt['hello_member'].

Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 09, 2011, 03:26:43 IP
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.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: mesothet - lokakuu 09, 2011, 04:00:12 IP
:) 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.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 09, 2011, 04:02:20 IP
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!". ;)
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: WillyP - lokakuu 09, 2011, 04:07:13 IP
Even in the US, 'hey' is a bit rude, except between close friends.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 09, 2011, 04:09:22 IP
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
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: mesothet - lokakuu 09, 2011, 04:20:39 IP
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).
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 09, 2011, 04:24:26 IP
index.english.php in the default theme's "languages" directory, then.:)
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: mesothet - lokakuu 09, 2011, 04:54:27 IP
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.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 09, 2011, 04:59:08 IP
You refreshed?

You may need to empty your browser's cache.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: mesothet - lokakuu 09, 2011, 05:12:50 IP
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.

Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: mesothet - lokakuu 09, 2011, 05:35:34 IP
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 :))
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: Illori - lokakuu 09, 2011, 07:07:18 IP
have you tried asking the theme author? they would know best what string is used and where it needs to be changed.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 10, 2011, 06:57:34 AP
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.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: Angelina Belle - lokakuu 10, 2011, 10:16:57 AP
Also, $txt[247] is hey.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 10, 2011, 11:26:55 AP
That doesn't appear in index.english.php with SMF v2, though.

At least, it doesn't on mine. ;)
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: Illori - lokakuu 10, 2011, 11:29:23 AP
in 2.0

$txt['hello_member'] = 'Hey,';

$txt['welmsg_hey'] = 'Hey,';

$txt['hello_member_ndt'] = 'Hello';
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: kat - lokakuu 10, 2011, 11:34:24 AP
Hey hey hey! :)
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: Angelina Belle - lokakuu 10, 2011, 11:55:12 AP
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.
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: Deaks - lokakuu 10, 2011, 08:49:21 IP
or you can be bad and hardcode it if its for your own forum but I didnt mention that :P
Otsikko: Re: Changing “hey” back to “hello” in Elegant theme
Kirjoitti: mesothet - lokakuu 10, 2011, 08:56:15 IP
"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.