Results 1 to 3 of 3

Thread: Anomalies when creating langpacks for v4.5.1d

  1. #1
    mkk
    mkk is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Norway
    Posts
    11

    Default Anomalies when creating langpacks for v4.5.1d

    While creating a norwegian langpack for v4.5.1d, I've encountered the following oddities:

    1) When adding dashlets on the "Home" page, the tooltips for each applicable dashlet appear in english, and I can't seem to find where those english phrases are located. Anyone know?

    2) In the Calendar, the priority (e.g. "high") and status values (e.g. "completed") appear in english, even though I believe I have translated them.

    Note: I am using the Sugar Translation Suite tool to generate the translation. Also, I have repaired the javascript languages and the dashlets (in the admin->upgrade section), both to no apparent effect.

    -Kyrre, Innovitae.no
    Last edited by mkk; 2007-06-08 at 08:31 AM.

  2. #2
    mkk
    mkk is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Norway
    Posts
    11

    Default Re: Anomalies when creating langpacks for v4.5.1d

    Well, it seems I've discovered the answer to 1:

    \modules\moduleName\Dashlets\dashletName.meta.php includes the title and description for the dashlet. If the values given in this file are not made translatable (e.g. 'title' => translate('LBL_HOMEPAGE_TITLE', 'Accounts') ), then the given values will be employed, regardless of which language is currently selected.

    This is the case for some of the modules packed with v4.5.1d. The solution seems to be to either hardcode the value in another language directly into the dashletName.meta.php file, or recode the value translatable. The latter, which is preferable if you wish to be able to switch between languages in your CRM, is accomplished in two steps:

    1) In dashletName.meta.php, exchange the value in question with a call to the translate function (as seen over).

    2) In the example above, LBL_HOMEPAGE_TITLE can be exchanged with any value in any language file. If no suitable value exists, create your own like this: In \modules\moduleName\language\locale.lang.php (e.g. \modules\Accounts\language\en_us.lang.php), insert your own key and value anywhere in the $mod_strings array (e.g.
    'LBL_DASHLET_DESCRIPTION' => 'En brukerdefinert oversikt over dine forbindelser'). This step needs to be performed on all languages that are installed, otherwise the CRM will revert to the default value (if there is one).

    -Kyrre, Innovitae.no
    Last edited by mkk; 2007-06-08 at 08:31 AM.

  3. #3
    Markku's Avatar
    Markku is offline Sugar Community Member
    Join Date
    Nov 2004
    Location
    Helsinki
    Posts
    910

    Default Re: Anomalies when creating langpacks for v4.5.1d

    Good find, Kyrre, thanks for letting us know.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem step 7 version SugarOS-4.5.0f
    By lucia in forum Help
    Replies: 1
    Last Post: 2006-12-27, 01:21 PM
  2. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  3. Replies: 1
    Last Post: 2006-10-12, 12:07 AM
  4. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  5. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 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
  •