multilingual drupal 7

Download Multilingual drupal 7

If you can't read please download the document

Upload: pavel-makhrinsky

Post on 19-May-2015

3.578 views

Category:

Technology


5 download

TRANSCRIPT

  • 1. Multilingual Drupal 7Drupal Camp ZP

2. About MePavel MakhrinskyDrupal Developer in Berlingske Mediahttp://drupal.org/user/773216 3. Multilingual types LocalizedSingle language site Multilingual siteSite with different content for different languages Multilingual site with translationSite with translated content 4. Translatable items Strings Menus ContentVariables Entities 5. Configuration Core modules Locale Content translate Custom modules i18n (Internalization) l10n (Localization helper modules) Entity translation 6. Language handlingLanguage detectionUser interface translationLocale 7. Locale: languagesadmin/config/regional/language 8. Locale: language detection admin/config/regional/language/configure 9. Locale: string translation 10. localize.drupal.orgLocalization clientLocalization serverLocalization updateCommunity translations 11. localize.drupal.org 12. Translation update workflow 13. Language types Interface language t() format_plural() Content language * Used for Field API Used for content translation URL language * l()Not configurable by core 14. t(), format_plural()ContextTranslating strings 15. t(): variations t()if your code will never run during the Drupal installation phase st()if your code will only run during installation and never any othertime get_t()if your code could run in either circumstance 16. t(): callingParameters $string $args @argument processed via check_plain() %argument processed via drupal_placeholder() !argument inserted as is. $options context context for string langcode language code, default current language 17. t(): examples 18. format_plural(): parametersParameters $count $singular $plural $args @argument processed via check_plain() %argument processed via drupal_placeholder() !argument inserted as is. $options context context for string langcode language code, default current language 19. format_plural(): russian Add configuration to .po file"Plural-Forms: nplurals=3; plural=((((n%10)==1)&&((n%100)!=11))?" "(0):(((((n%10)>=2)&&((n%10)