Import Language Issue

Discussion in 'Installation/Configuration' started by CubAfull, Jun 17, 2015.

  1. CubAfull

    CubAfull Member

    I make a new ispconfig 3.0.5.4p8 installation in debian jessie using Nginx and MariaDB (I set the default character-set for the db to utf8) and everising is working ok, but I'm having a really strange problem after importing my spanish language translation.
    The problem is that when I import the language file, ispconfig? "trim" the last letter from strings containing special characters, for example:
    String in the es.lng file:
    $wb['Directive Snippets'] = 'Fragmentos de código';
    or
    $wb['Edit Client Circle'] = 'Editar círculo del cliente';
    Become:
    Fragmentos de códig
    Editar círculo del client
    Important: I have other servers running ISPConfig 3.0.5.4p8 using debian wheezy with nginx and mysql. I can import the same file and this does not happen.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to change line 39 in the file /usr/local/ispconfig/interface/web/admin/language_import.php

    from:

    $char = $string{$c};

    to:

    $char = mb_substr($string, $c, 1);
     
  3. CubAfull

    CubAfull Member

    Hello till,
    Well, this fix the language import problem ;)
    I have to make this change after every update or you include this fix for the next release?
    I finish the spanish translation and I want contribute. Where I send the file?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I'll add it into the next release off course.

    Please send it to dev at ispconfig dot org
     
  5. elmacus

    elmacus Active Member

    Hi, we have same problem with Swedish language since upgrade to Jessie Apache 2.4.
    For each swedish character, one extra char is trimmed, not just 1.
    Suggestion above acctually work, thanks for good work.
     
    Last edited: Dec 8, 2015

Share This Page