Skip to Content

develCuy's blog

by Fernando Paredes 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.


Reply

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h2> <hr> <sup> <i> <b> <pre> <img>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.