Results 1 to 6 of 6

Thread: Charts legend not translated

  1. #1
    Antanas0001 is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Lithuania
    Posts
    41

    Default Charts legend not translated

    Hello,

    On SugarCRM CE 5.1.0a, some charts don't get localized their legends into another language:
    All Oportunites by Lead Source, Outcome by Month, All Oportunites by Lead Source by Outcome.

    While a few charts get their legends translated corectly: My Pipline by Sale Stage, Campaigns ROI.

    Has any anyone noticed the same problem as well?

    Sincerely,

    Antanas

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Charts legend not translated

    This may have to do with the fact that Dashlet strings get cached per user. So if you log in under one language (e.g. English) and change your Dashlets at all (move them around, add a new one, delete one, etc), the Dashlet legend strings (not the Flash images but rather the HTML text) are cached for that user. That means if you log in as the same user under a different language (e.g. German), you will see the strings under the original language (i.e. English).

    To reset the cache, you need to click on "My Account" and click the "Reset to Default: Homepage" button in the upper right of the page.
    Last edited by clint; 2008-10-08 at 04:54 PM.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    Antanas0001 is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Lithuania
    Posts
    41

    Default Re: Charts legend not translated

    Dear Clint,

    I did as you told me, didn't help. I deleted files in the cache directory, still it doesn't help. I am attaching the screenshot.

    Sincerely,

    Antanas
    Attached Images Attached Images  

  4. #4
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Charts legend not translated

    Ah, so these strings are actually in the Flash component. This would be a bug then with these particular charts. We made a pass through the entire code base for 5.1.0a to address all hard-coded English strings. Looks like we missed a couple.

    Please submit a bug on this one and escalate it in the Patch Requests forum.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  5. #5
    mnuding is offline Member
    Join Date
    Oct 2008
    Posts
    7

    Default Re: Charts legend not translated

    Hi,

    Has this ever been looked into again? It doesn't appear to only happen with the language patch: I have customised the labels ine the 'Sales Stage' dropdown and they show on the 'Pipeline by Sales Stage' graph, but not in the 'Outcome by Month' legend.

    I's kind of... bugging me!

    Thanks for your help.

  6. #6
    lougaou's Avatar
    lougaou is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Lyon - France
    Posts
    236

    Default Re: Charts legend not translated

    You can fix it with this patch:

    for ex for OpportunitiesByLeadSourceByOutcomeDashlet.php
    Open it and after the string
    $sugarChart->getData($this->constuctQuery());

    add this code:

    //BOF SYNOLIA
    global $current_language;
    $app_list_strings = return_app_list_strings_language($current_language );
    for($i = 0; $i<count($sugarChart->data_set); $i++){
    $sugarChart->data_set[$i]['lead_source'] = $app_list_strings['lead_source_dom'][$sugarChart->data_set[$i]['lead_source']];
    $sugarChart->data_set[$i]['sales_stage'] = $app_list_strings['sales_stage_dom'][$sugarChart->data_set[$i]['sales_stage']];
    }
    //EOF SYNOLIA

    Dont forget to clean xml caches

    It will this the pb for Opportunities By Lead Source By Outcome Dashlet

    Do the same logic with all the other chart that cause pb
    --------------------
    Xavier Rigal

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2008-07-07, 12:55 PM
  2. Custom the charts
    By krakoss2 in forum Developer Help
    Replies: 0
    Last Post: 2008-02-27, 01:52 PM
  3. BUG in 2.5.0C: The Euro symbol not displayed in Flash charts
    By lifeless in forum General Discussion
    Replies: 5
    Last Post: 2005-02-18, 04:53 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
  •