Results 1 to 10 of 10

Thread: Customization: Edit labels

  1. #1
    roffe is offline Junior Member
    Join Date
    Dec 2008
    Posts
    3

    Default Customization: Edit labels

    I am customizing a SugarCRM installation where the users are not salespeople and work mainly with academic institutions, and I'd like to change _Account_ to _institution_. Is there a way to sort of change this other than walking through all the dialogs etc. in the module builder?

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Customization: Edit labels

    Quote Originally Posted by roffe View Post
    I am customizing a SugarCRM installation where the users are not salespeople and work mainly with academic institutions, and I'd like to change _Account_ to _institution_. Is there a way to sort of change this other than walking through all the dialogs etc. in the module builder?
    Hi roffe

    Can you clarify your needs in detail?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    roffe is offline Junior Member
    Join Date
    Dec 2008
    Posts
    3

    Default Re: Customization: Edit labels

    Hi, andopes, thanks for commenting

    Say that I would like _Account_ to be renamed _Institution_ throughout the site.

    Does this mean that I have to manually change all labels, dialogs, and so on, or is there a mor efficient way to change all occurences?

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Customization: Edit labels

    Hi Roffe

    If your SugarCRM is installed in a Linux machine you can do the following:

    1. cd to sugarcrm installation folder;
    2. execute the command: find -name "*.lang.php" | xargs grep -n "Account" | cut -d ":" -f 1 | sort | uniq

    This command will return a list of all language files containing the "Account" string.

    Then you may create an extended language file for each module containing that string and override as needed:
    custom/Extension/modules/<ModuleName>/Ext/Language/<language>.ext.lang.php

    After populating all files you may go to Admin -> Repair -> Rebuild Extension

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    genius786's Avatar
    genius786 is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Karachi, Pakistan
    Posts
    131

    Smile Re: Customization: Edit labels

    Hi,

    According to my understanding. I think you wants to change Accounts module with the name Institution throughout the site. So you have to follow the following steps:

    1. Login in your sugarcrm as admin
    2. Go to the admin panel of sugarcrm
    3. Then click on Rename Tabs under Developer Tools
    4. After it provide a display value Institution of accounts
    5. Save it properly for changing

    I hope this is help you



    Best regards,
    SARFARAZ AHMED KHAN
    Karachi, Pakistan
    skype: genius_crystal
    genius_crystal@hotmail.com
    92-314-2595624

  6. #6
    mlanner is offline Junior Member
    Join Date
    Jan 2009
    Posts
    2

    Default Re: Customization: Edit labels

    andopes,

    I'm looking to do the same as roffe. I followed your find example and found all the files.

    In your post you say:

    Then you may create an extended language file for each module containing that string and override as needed:
    custom/Extension/modules/<ModuleName>/Ext/Language/<language>.ext.lang.php
    Can you give an example of what that <language>.ext.lang.php file would look like? I'm new to SugarCRM and don't want to take any risks.

    We have built a custom module, which uses the 'Account' module. I'd like to change all the instances of the label 'Account' to say 'Provider.'

    Any help or pointers greatly appreciated.

  7. #7
    mlanner is offline Junior Member
    Join Date
    Jan 2009
    Posts
    2

    Default Re: Customization: Edit labels

    bump ... anyone?

  8. #8
    roffe is offline Junior Member
    Join Date
    Dec 2008
    Posts
    3

    Default Re: Customization: Edit labels

    Quote Originally Posted by andopes View Post
    Hi Roffe

    If your SugarCRM is installed in a Linux machine you can do the following:
    Thanks! That did the trick!

  9. #9
    WEB11 is offline Senior Member
    Join Date
    Mar 2009
    Location
    Washington, DC
    Posts
    30

    Default Re: Customization: Edit labels

    That will rename only the main tabs. For an instance I ranamed my "Meetings" to "Appointments" the tab title shows up fine, but the page title is still Home:Meetings and all of the labels like "Create Meeting" didn't change. I will try AndLopes suggestion and try to find the language files. Im on windows using sugar on a remote webhosting account so it will proably be a bit tricky.

  10. #10
    WEB11 is offline Senior Member
    Join Date
    Mar 2009
    Location
    Washington, DC
    Posts
    30

    Default Re: Customization: Edit labels

    What I ended up doing was to extract the sugar installation package to c:\sugar then I created a folder under c: named lang then ran the following at the command prompt:

    Code:
    xcopy C:\sugar\*_us.lang.php c:\lang /s
    That copied all of the en_us.lang.php files and kept the folder structure, now I will use dreamweaver's find and replace by folder to rename the labels I need. It searches the entire folder without having to do it file by file then I can upload the entire folder via ftp and it will overwrite the old language files.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. bug 4.5.1 Edit Labels
    By Dycobee in forum Help
    Replies: 6
    Last Post: 2008-01-18, 12:12 PM
  2. Replies: 5
    Last Post: 2007-05-21, 12:59 PM
  3. Replies: 1
    Last Post: 2007-04-29, 06:57 PM
  4. Need help printing labels
    By Debbie in forum Help
    Replies: 1
    Last Post: 2006-01-15, 12:51 AM
  5. Mailing Labels
    By garfield in forum Feature Requests
    Replies: 0
    Last Post: 2005-04-26, 10:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •