I am designing a drupal site for a client of mine and i need to change the text of some of the things like form legends, buttons, etc.
It is a bilingual site (EN,FR) - EN being the default.
I am new to the locale module but thought it should be able to help me here.
in the user.module (for example) i have code like: $output .= form_submit(t('Log in'));
and i would like to change the "Log in" text to something else (and of course add a FR string as well)
it seems like i should be able to use locale and just add a string for the EN but i dont think it lets me. In other words i will need to hack the module and change the text of "Log In" there (and then possbily import the new keys for locale (not sure) - which i have no problem doing .. but does seem silly when there is a perfectly good web interface (locale) to let me do it.
Am I simply doing something wrong here? Or perhaps there is another method to do what i am trying to do.
and.. of course if i do understand this correctly.. and i think i do get how the locale module works... why would, this feature not be there.? .. especailly since it seems like it would almost be simpler to have than to not have it.. code wise
i guess what i am suggesting...
- .module elements have there default string values
- those strings ("log in" in my example) are the keys that locale module uses
- i can assign any number of language alternatives to that key (including the default language)