Skip to Content

develCuy's blog

by Fernando P. García


10 tips for multi-language Drupal sites

Do you want to keep your site multi-language friendly? Please follow this:

1. Use t('text') instead of 'text'
2. Enable Multilingual in your content types
3. If your site uses English, do it with pure English first, then translate
4. Avoid the use of HTML into strings as much as possible
5. In CCK fields, use PHP code for Allowed values list, i.e.: return array(1=>t('text'), ...)
6. Add the filter "Node Translation: Language" to your views
7 - 10. Read the manual http://drupal.org/handbooks

Blessings.


Enviar un comentario nuevo

El contenido de este campo se mantiene como privado y no se muestra públicamente.
  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h2> <hr> <sup> <i> <b> <pre>
  • Saltos automáticos de líneas y de párrafos.

Más información sobre opciones de formato