Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to rename subpanel Calls in Project DetailView ?

  1. #1
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default How to rename subpanel Calls in Project DetailView ?

    Hi,

    In Project DetailView I have a subpanel named "Calls". This is a many to many relationship which I have created in Studio. Now I have installed a language pack but because this is a custom relation, this string isn't translate. How and where can I translate the app_string (of subpanel) "Calls" to my own name?

    Thanks in advance
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  2. #2
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: How to rename subpanel Calls in Project DetailView ?

    I don't know if you have changed anything because in my instance to do some testing I don't have a subpanel only for calls. Calls are included in the subpanel Activities.
    To know the name of the label you have to rename you go to modules/Project/metadata/subpaneldefs.php
    there you find where is the subpanel calls (in my case is inside the subpanel Activities as a collection_list).
    If you have it all alone you will find a inside the definition of the subpanel the title_key as something very similar to this title: "LBL_CALLS_SUBPANEL_TITLE" (in my case is "LBL_ACTIVITIES_SUBPANEL_TITLE").
    Now that you know the name of the label, you go to custom/Extension/modules/Project/Ext/Language and you create a file for example en_us.subpanel_calls.php and inside the file you write:
    PHP Code:
    $mod_strings['LBL_CALLS_SUBPANEL_TITLE']='New Title'
    In my case was:
    PHP Code:
    $mod_strings['LBL_ACTIVITIES_SUBPANEL_TITLE']='New Title'
    After this you do a repair and check if it is changed.
    Hope this helps you.
    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  3. #3
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: How to rename subpanel Calls in Project DetailView ?

    Quote Originally Posted by eescribano View Post
    I don't know if you have changed anything because in my instance to do some testing I don't have a subpanel only for calls. Calls are included in the subpanel Activities.
    To know the name of the label you have to rename you go to modules/Project/metadata/subpaneldefs.php
    there you find where is the subpanel calls (in my case is inside the subpanel Activities as a collection_list).
    If you have it all alone you will find a inside the definition of the subpanel the title_key as something very similar to this title: "LBL_CALLS_SUBPANEL_TITLE" (in my case is "LBL_ACTIVITIES_SUBPANEL_TITLE").
    Now that you know the name of the label, you go to custom/Extension/modules/Project/Ext/Language and you create a file for example en_us.subpanel_calls.php and inside the file you write:
    PHP Code:
    $mod_strings['LBL_CALLS_SUBPANEL_TITLE']='New Title'
    In my case was:
    PHP Code:
    $mod_strings['LBL_ACTIVITIES_SUBPANEL_TITLE']='New Title'
    After this you do a repair and check if it is changed.
    Hope this helps you.
    Hi, thanks for your reply.
    I followed your instructions, but unfortunately it doesn't seems to work...
    I have created a file called nl_NL.lang.ext.php in custom\Extension\modules\Project\Ext\Language and this file includes this line;

    PHP Code:
    <?php
    $mod_strings 
    = array (
    'LBL_PROJECT_CALLS_FROM_CALLS_TITLE' => 'Bellijst',
    Then I Quick Repair and Rebuild but nothing has changed.
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  4. #4
    shamimwilson is offline Sugar Community Member
    Join Date
    Mar 2009
    Location
    Banglore India
    Posts
    235

    Default Re: How to rename subpanel Calls in Project DetailView ?

    Hi,

    Go to custom/Extension/modules/Project/Ext/Language/

    create a file if it does not exits en_us.customproject_calls.php.

    then add the following line.

    <?php
    $mod_strings [ "LBL_PROJECT_CALLS_FROM_CALLS_TITLE" ] = "Your name" ;
    ?>

    Then rebuild extension.

  5. #5
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: How to rename subpanel Calls in Project DetailView ?

    Quote Originally Posted by dekleinemedia View Post
    Hi, thanks for your reply.
    I followed your instructions, but unfortunately it doesn't seems to work...
    I have created a file called nl_NL.lang.ext.php in custom\Extension\modules\Project\Ext\Language and this file includes this line;

    PHP Code:
    <?php
    $mod_strings 
    = array (
    'LBL_PROJECT_CALLS_FROM_CALLS_TITLE' => 'Bellijst',
    Then I Quick Repair and Rebuild but nothing has changed.
    Hello,
    I have done your example.. I created a relationship with Studio between projects and calls and I saw that makes already with the Dutch Language a file called: nl_NL.customproject_calls.php

    you can just edit that file (and repair of course)... or you can make another file that alphabetically is going after the file studio creates (otherwise it is not going to overwrite anything) and repair.

    I have tried it and it works for me.
    but don't forget that the code is this:
    PHP Code:
    $mod_strings['LBL_PROJECT_CALLS_FROM_CALLS_TITLE']='Bellijst'
    Nothing with arrays... directly the value in this case or you will overwrite all the $mod_strings for the module

    I have sugarcrm 5.2 and also the dutch package for sugarcrm 5.2
    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  6. #6
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: How to rename subpanel Calls in Project DetailView ?

    Quote Originally Posted by eescribano View Post
    Hello,
    I have done your example.. I created a relationship with Studio between projects and calls and I saw that makes already with the Dutch Language a file called: nl_NL.customproject_calls.php

    you can just edit that file (and repair of course)... or you can make another file that alphabetically is going after the file studio creates (otherwise it is not going to overwrite anything) and repair.

    I have tried it and it works for me.
    but don't forget that the code is this:
    PHP Code:
    $mod_strings['LBL_PROJECT_CALLS_FROM_CALLS_TITLE']='Bellijst'
    Nothing with arrays... directly the value in this case or you will overwrite all the $mod_strings for the module

    I have sugarcrm 5.2 and also the dutch package for sugarcrm 5.2
    Hi,
    Still no luck..
    I already created a relationship between Project and Calls before I installed the language pack. I have installed this language pack

    Maybe this is the issue? Because it doesn't seems to work, when I want an existing module to customize with NL language mod_files. (like placing a file nl_NL.customproject_calls.php in custom/Extension......)

    Hope you know where to modify these strings..? Thanks
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  7. #7
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: How to rename subpanel Calls in Project DetailView ?

    I see that you are using the 5.2.0f version of sugar, the same instance I was trying to make your example. The package language I used was the one for that version of sugarcrm.
    In http://www.sugarforge.org/frs/?group_id=563:
    Dutch Language Pack by Madcap 520f RC build 5.zip

    I am thinking, do you have the developer mode active?
    In admin/system settings/Ontwikkelmodus or Developer mode

    The string to modify that you say you have to do them where I already explained:
    custom/Extension/Project/Ext/Language/nl_NL.custom

    Look my example...

    Repair and it should work...
    Attached Images Attached Images  
    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  8. #8
    RandyLee's Avatar
    RandyLee is offline Sugar Team Member
    Join Date
    Oct 2008
    Posts
    605

    Default Re: How to rename subpanel Calls in Project DetailView ?

    Quote Originally Posted by dekleinemedia View Post
    Hi,

    In Project DetailView I have a subpanel named "Calls". This is a many to many relationship which I have created in Studio. Now I have installed a language pack but because this is a custom relation, this string isn't translate. How and where can I translate the app_string (of subpanel) "Calls" to my own name?

    Thanks in advance
    Hi De Kleine Media,

    Please try this after you install language pack.
    1. Admin -> Studio -> Project -> Labels
    2. Select your newly installed language in "language" dropdown.
    3. Modify you the label "LBL_PROJECTS_CALLS_FROM_CALLS_TITLE:" and save.

    hope this is helpful. Good Luck!

    Randy Lee

    Better Sugar, Better Life!

  9. #9
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: How to rename subpanel Calls in Project DetailView ?

    At least in my instance is not shown that label in Studio... and I did the example as he did...
    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  10. #10
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: How to rename subpanel Calls in Project DetailView ?

    Hi,

    I tried again, exactly like your example but still it doesn't seems to change anything. I modified in Developer mode but without luck... i will try to clear the relationship and add a new one. Hope that will work. I'll let you know the result of that.

    Thanks for helping me!
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to rename lable of the subpanel?
    By prasannagowri in forum Help
    Replies: 6
    Last Post: 2009-10-28, 08:37 PM
  2. Rename subpanel tab + clickable
    By dante2010 in forum Help
    Replies: 2
    Last Post: 2009-09-13, 05:03 PM
  3. where to rename subpanel lable
    By prasannagowri in forum Developer Help
    Replies: 1
    Last Post: 2009-04-21, 01:12 PM
  4. added subpanel to editview and detailview
    By abhitosh in forum Developer Help
    Replies: 6
    Last Post: 2008-09-04, 04:11 AM
  5. How to add a new subpanel on detailview page?
    By coolface in forum Developer Help
    Replies: 1
    Last Post: 2007-08-18, 06:24 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
  •