Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Como automatizar RoundCube en Español por predeterminación

Discussion in 'Discusión en Español' started by cPanelMarlon, Sep 23, 2011.

  1. cPanelMarlon

    cPanelMarlon Well-Known Member

    Joined:
    Mar 5, 2010
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Toronto, Houston
    Para hacer el cambios en RoundCube es necesario modificar

    /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

    Cambie la entrada
    Code:
    $rcmail_config['locale_string'] = 'en'; 
    A la configuración regional que desee. Por ejemplo Spanish(Argentina)
    Code:
    $rcmail_config['locale_string'] = 'es_AR';
    Todos los usuarios tendrán su configuración regional de Español (Argentina).
    Ojo: Esto sólo tendrá efecto para los usuarios que aún no han utilizado RoundCube

    Para los usuarios que ya han Ingresado en RoundCube por primera vez, pueden actualizar sus locales en MySQL:

    Code:
    # mysql
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 71786
    Server version: 5.0.51a-community MySQL Community Edition (GPL)
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> use roundcube;
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A
    
    Database changed
    mysql> show tables;
    +---------------------+
    | Tables_in_roundcube |
    +---------------------+
    | cache               | 
    | contacts            | 
    | identities          | 
    | messages            | 
    | session             | 
    | users               | 
    +---------------------+
    6 rows in set (0.00 sec)
    
    mysql> select * from users;
    +---------+------------+-----------+-------+---------------------+---------------------+----------+--------------------------------------------------------------------------------+
    | user_id | username   | mail_host | alias | created             | last_login          | language | preferences                                                                    |
    +---------+------------+-----------+-------+---------------------+---------------------+----------+--------------------------------------------------------------------------------+
    |       1 | timtest    | localhost |       | 2008-05-08 11:17:37 | 2008-05-08 11:17:37 | en_US    | NULL                                                                           | 
    |       2 | tramel     | localhost |       | 2008-05-29 15:07:37 | 2008-05-29 15:07:37 | en_US    | a:2:{s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";} | 
    |       3 | me@abc.com | localhost |       | 2008-06-17 11:45:48 | 2008-07-01 08:27:59 | en_US    | a:2:{s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";} | 
    +---------+------------+-----------+-------+---------------------+---------------------+----------+--------------------------------------------------------------------------------+
    3 rows in set (0.00 sec)
    
    mysql> update users set language='es_ES' where username = 'me@abc.com';
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    
    mysql> select * from users;
    +---------+------------+-----------+-------+---------------------+---------------------+----------+--------------------------------------------------------------------------------+
    | user_id | username   | mail_host | alias | created             | last_login          | language | preferences                                                                    |
    +---------+------------+-----------+-------+---------------------+---------------------+----------+--------------------------------------------------------------------------------+
    |       1 | timtest    | localhost |       | 2008-05-08 11:17:37 | 2008-05-08 11:17:37 | en_US    | NULL                                                                           | 
    |       2 | tramel     | localhost |       | 2008-05-29 15:07:37 | 2008-05-29 15:07:37 | en_US    | a:2:{s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";} | 
    |       3 | me@abc.com | localhost |       | 2008-06-17 11:45:48 | 2008-07-01 08:27:59 | es_ES    | a:2:{s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";} | 
    +---------+------------+-----------+-------+---------------------+---------------------+----------+--------------------------------------------------------------------------------+
    3 rows in set (0.01 sec)
    
    Como pueden observar, he actualizado solo a un usuario con el regional es_ES, lo cual es se puede verificar
    al Ingresar en RoundCube.

    Saludos,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. andresbarriga

    andresbarriga Member

    Joined:
    Jul 13, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    santiago
    cPanel Access Level:
    DataCenter Provider
    Muchas gracias! muy util.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice