We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18878
    • 210 Posts
    Hi,

    I just installed 0.9.6.2 rc1 and changed the manager language to spanish. After I login, I get the following warning (in spanish):

    "...Incorrect number of entries in language file..."

    (’Número incorrecto de entradas en el archivo de lenguaje’)

    Please, does anyone know how to fix this warning?

    Your help will be appreciated.

    Thanks.

    Mc
      • 25663 MODX Staff
      • 12,272 Posts
      This is because the spanish language file needs to be updated. It should be addressed for the ultimate 0.9.6.2 release.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 18878
        • 210 Posts
        Quote from: rthrash at Aug 05, 2008, 07:59 AM

        This is because the spanish language file needs to be updated. It should be addressed for the ultimate 0.9.6.2 release.

        Sorry for double posting.

        If possible, I’d like to update the spanish language file myself. Do I have to match the number of $_lang[" "] variables in both files? For instance, a quick look shows that the first 2 lines in the spanish file are not present in the english file. The lines are:
        setlocale (LC_ALL, ’es_ES’);
        include_once(dirname(__FILE__).’/english.inc.php’);

        Any hints will be appreciated.

        Mc
          • 22303 MODX Staff
          • 10,725 Posts
          Yes, the $_lang array elements are what is being counted for comparison.
            • 18878
            • 210 Posts
            Quote from: OpenGeek at Aug 05, 2008, 09:05 AM

            Yes, the $_lang array elements are what is being counted for comparison.
            I compared both files: english.inc.php and spanish.inc.php, found the differences and modified the spanish file to have the same number of $_lang array elements.

            The following lines were missing in the spanish file (I translated the text):
            $_lang["database_collation"] = ’Collation Charset de la Base de Datos’;
            $_lang["database_charset"] = ’Charset de la Base de Datos’;
            $_lang["rb_webuser_message"] = ’Desea darle a los Usuarios Web la habilidad de usar el Navegador de Recursos? <b>ADVERTENCIA:</b> Permitir que los Usuarios Web usen el Navegador de Recursos, expone los archivos disponibles para los Usuarios del Administrador. Utilize esta opcion solo para Usuarios Web de confianza.’;
            $_lang["rb_webuser_title"] = ’Usuarios Web?’;
            $_lang["role"] = ’Rol’;
            $_lang["role_empty_trash"] = ’Purgar permanentemente los documentos borrados’;

            The following lines were present in the spanish file but missing in the english file (so I commented them):
            $_lang["access_permissions_user_group"] = ’Grupo de usuarios:’;
            $_lang["access_permissions_user_group_access"] = ’Grupos de documentos a los que este usuario tiene acceso:’;
            $_lang["web_access_permissions_user_group"] = ’Grupo de usuario web:’;
            $_lang["web_access_permissions_user_group_access"] = ’Grupos de documentos a los que tiene acceso este grupo de usuario:’;

            I know that’s just a temporary solution I guess, but I’m attaching the spanish.inc.php in case someone needs it.

            Mc