Giới thiệu MULTILINGUAL WEB APPLICATIONS trong DRUPAL

MULTILINGUAL 

WEB APPLICATIONS 
ON  DRUPAL

 

Andy Truong — andy at go1.com.au

Twitter: thehongtt

Slide: drupal-i18n.talk.drupal.vc

LANGUAGE MANAGEMENT

  • /ADMIN/CONFIG/REGIONAL/ 
  • CORE MODULES:
    • LOCALE
    • CONTENT TRANSLATION

LANGUAGE DETECTION

  • Detect language on context request
  • /admin/config/regional/language/configure
  • Core negotiation providers:
    • URL
    • Session
    • User
    • Browser
    • Default

LANGUAGE SWITCHER BLOCK

  1. Has at least 2 enabled languages
  2. URL Negotiation Provider is enabled

EXTENDABLE

  • hook_language_negotiation_info()

TRANSLATE INTERFACE

OVERVIEW

/ADMIN/CONFIG/REGIONAL/TRANSLATE

TRANSLATE INTERFACE

IMPORT

EXPORT

TRANSLATE CONTENT

Allow content administrator to translate content in system.
 
Core modules must be enabled:
  • Locale
  • Content Translation

ENABLE

  • Config content type
    • Publishing Options
      • Multilingual Support
        • Enable
        • Enable with translation
  • /admin/content/node
    • Language filter

TRANSLATE CONTENT

LOCALIZE.DRUPAL.ORG

  1. Community Translation Interface
  2. For Drupal Core
  3. For contributed modules
  4. Import/Export
  5. Linked from Project page

I18N MODULES

  1. https://drupal.org/project/i18n
  2. Multilingual Blocks — Display block in specific language
  3. Multilingual Variable — Custom Site name per language
  4. Taxonomy Translation
  5. Field Translation
  6. Content Translation
  7. User Translation

ENTITY TRANSLATION

  1. https://drupal.org/project/entity_translation
  2. Core Content Translation module only support node
  3. Added to Core of Drupal 8