Can any body point me to where to change the "Welcome back" text that is at the top-right of the default commons install.

Thanks

Comments

cpliakas’s picture

If you are comfortable with theming, you can override the profiles/drupal_commons/themes/commons_roots/views-view-field--user-meta--name.tpl.php template in a custom subtheme.

If you are not a themer, you can add a custom string override in the settings.php file changing the text to whatever you want. Add the following snippet at the bottom of the file:

$conf['locale_custom_strings_en'] = array(
  'Welcome back,' => 'Add your custom text here...',
);

Check out the String Overrides documentation for more info.

Thanks,
Chris

differentspin’s picture

Thanks for the information. One thing I'm not clear on is why I have to go into the code to add the string override. Would it be possible to just do this through the string override interface?

cpliakas’s picture

If you want to download and install the String Overrides module you could definitely do it that way as well.

differentspin’s picture

Status: Active » Closed (works as designed)
differentspin’s picture

Status: Closed (works as designed) » Active

So I was able to change the Welcome Text, but I realized I just opened up a can of worms in trying to find all the areas that need to be translated for various Commons features.

I see that many of the blocks that I'm trying to translate come from views (for example: groups_most_active) Can you point me in the right direction to find where to find the strings that I can override in String Overrides?

Thanks again

cpliakas’s picture

So Views is a whole other can of worms :-). I honestly am not an expert on translating the content that is present in Views, so I would have to yield to an i18n expert to shed some light here.

lsolesen’s picture

Version: » 7.x-3.x-dev
Issue summary: View changes
Status: Active » Fixed

You can also use Lingotek to do the translation.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.