In my menu (http://cartoon.iceline.org) I want all the menu items to be with a Capital, but I can't change the "my account" anywhere. I want to change it to "My Account". I couldn't find it in the database or locate a language file.

Comments

sami_k’s picture

Look in user.module, it will be containted in a t() function, if you change the text you should clear the cache before the text will change in the menu.

--
Read the handbook, search the forums, then ask!
http://drupal.etopian.net (Consulting, Development, and Hosting)

karldied’s picture

samik and heather, thanks, I understand both ways to make the menu read "My Account" instead of "my account" Wish I had thought of the css solution before changing all the other menu items with administer>menu

Another issue with "my account" being locked in administer>menu is that you can't easily change the weight. Can someone tell me how to do this?

In user.module, I see where "logout" is set to weight 10 right below "my account", so it seems like "my account" should have weight 0, but it sinks lower than that.

Thanks, Karl

PS: I don't yet understand what the -> and => do in PHP arrays.

heather’s picture

in case you don't want to modify the module, and the ensuing hassle everytime you upgrade, you can use CSS in your theme instead.

in the HTML of your page, find the DIV .class or #ID which wraps your menu list. open your CSS file(s) and find the corressponding .class or #ID. (in your case, you'd choose the div class="menu"

in your CSS you'd add text-transform:capitalize; , within the .menu class, like this:

.menu{
text-transform:capitalize;
}

FYI, with the text-transform property you can also have
text-transform:lowercase;
text-transform:uppercase;

Iceline’s picture

wouldn't that make it look like MY ACCOUNT? I just want the first letters capitolized.

Well, I used the module method, easy enough to do again when I need to upgrade. I just couldn't find it, thanks!

heather’s picture

just in case someone is considering this route; capitalized actually means capitals on first letters. therefore,

text-transform: capitalize; --> looks like: The Words Get Capitalized

text-transform: uppercase; --> looks like THE WORDS ARE ALL UPPER CASE

Iceline’s picture

ok thanks, that's kinda usefull :D

kriskhaira’s picture

Thanks for this tip. Works for me.

sangamreddi’s picture

Hi,

If U have menu module (it's installed by default) just enable it in admin>> modules and in admin >> menus U can rename the menu Items.

Regards,
Sunny

Iceline’s picture

I know, but not the one I meant, it's locked

sangamreddi’s picture

Hi,

Sorry i didn't notice abt the lock. anyway u can change it in CSS with this code

.menu ul { text-transform: capitalize; }. it works.

Cheers,
Sunny

1uk3’s picture

I've done the css code thing to try and change it but the "my account" menu item is the only one that doesn't capitalize.

---

edit: It works fine, I just hadn't clear the cache properly. A cron job was running when I tried to clear the cache using CCleaner so it didn't clear. I woke up in the middle of the night and realised!