how to fix this translation issue?

Discussion in 'Developers' Forum' started by ressel, Apr 19, 2011.

  1. ressel

    ressel Member

    Hello,

    Since we updated ispconfig to latest version 3.0.3.3 we have faced following problem with "dashboard" page in modules:

    See attached images, if you see at the Tools icon, it should say Værktøjer, but its wrong, and if we click on the button it says Værktøjer correct.

    How can we fix this translation issue?
     

    Attached Files:

  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The word is too long, so it has to be shortened automatically.
     
  3. mialy

    mialy New Member

    IMHO, this is not problem of the translation.

    Open file:
    /usr/local/ispconfig/interface/web/dashboard/dashlets/modules.php or
    /var/www/ispconfig/dashboard/dashlets/modules.php
    or where is ispconfig installation on your system.

    Find this (~32 line):
    Code:
     if(strlen($module_title) > 8) $module_title = substr($module_title,0,7).'..';
    
    and replace with:
    Code:
     if([COLOR="Red"]mb_[/COLOR]strlen($module_title[COLOR="Red"], 'UTF-8'[/COLOR]) > 8) $module_title = [COLOR="Red"]mb_[/COLOR]substr($module_title,0,7[COLOR="Red"], 'UTF-8'[/COLOR]).'..';
    
    Works for me! ;)
     
  4. 8omas

    8omas New Member HowtoForge Supporter

    Problem still exists in 3.0.4.1
    Is it safe to do this? I really do not like to mess with core files

    [EDIT]
    I just did it and seems ok.
     
    Last edited: Nov 24, 2011
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    I've added it to the bugreport.
     

Share This Page