Community & Support

I want to change "Group" word to "project" in organic group module, I am using drupal 6.x with postgre.

Plz suggest me how to customize organic group module so i would use it as "Project" instead of "Group"......!

Comments

You can do this various ways.

You can do this various ways. One way is to use hook_alter() to change the text, but this isn't a great method for a few reasons. One reason is that it sometimes breaks button functionality here and there. The other is that it uses a fair bit of extra code, and you have to write more code.

Another better way to do it is to install another language on your system. Make a custom language, and call it whatever you want. The way translations work is that they look for a translated string, and if they don't find one, they show the original text. So what you do then is 'translate' any string you want into another string. So you search for everything that has 'group' in it, and you change that to 'project'. This method will not break any buttons.

The last method is to use the string override module. This essentially lets you do the same thing as above, but you don't need to add a new language. This also won't break any buttons.

Full-time freelancer, always looking for work.
jaypan.com (my portfolio)

Same question

I'm interested in this as well, but I don't have experience with multilingual installs. If I use either the language or string override methods above, will all occurrences of "Group" be changed to project? I.e. I want the "Group" in the breadcrumb to be changed, but I don't want want content transformed. Will content change?: "I group my stuffed animals together by species." shouldn't be "I project my stuffed animals together by species."

Thanks.

Content is never translated

Content is never translated automatically. Other than content, the exact string will be translated. So if you translate 'Group', 'group' will not be translated, nor will 'This is a group about Drupal'. Only the exact string.

Full-time freelancer, always looking for work.
jaypan.com (my portfolio)