README.txt 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. Localization Update
  2. -------------------
  3. Automatically download and update your translations by fetching them from
  4. http://localize.drupal.org or any other Localization server.
  5. The l10n update module helps to keep the translation of your drupal core and
  6. contributed modules up to date with the central Drupal translation repository
  7. at http://localize.drupal.org. Alternatively locally stored translation files
  8. can be used as translation source too.
  9. By choice updates are performed automatically or manually. Locally altered
  10. translations can either be respected or ignored.
  11. The l10n update module is developed for:
  12. * Distributions which include their own translations in .po files.
  13. * Site admins who want to update the translation with each new module revision.
  14. * Site builders who want an easy tool to download translations for a site.
  15. * Multi-sites that share one translation source.
  16. Project page: http://drupal.org/project/l10n_update
  17. Support queue: http://drupal.org/project/issues/l10n_update
  18. Installation
  19. ------------
  20. Download, unpack the module the usual way.
  21. Enable this module and the Locale module (core).
  22. You need at least one language (besides the default English).
  23. On Administration > Configuration > Regional and language > Languages:
  24. Click "Add language".
  25. Select a language from the select list "Language name".
  26. Then click the "Add language" button.
  27. Drupal is now importing interface translations. This can take a few minutes.
  28. When it's finished, you'll get a confirmation with a summary of the
  29. translations that have been imported.
  30. If required, enable the new language as default language.
  31. Administration > Configuration > Regional and language > Languages:
  32. Select your new default language.
  33. Update interface translations
  34. -----------------------------
  35. You want to import translations regularly using cron. You can enable this
  36. on Administration > Configuration > Regional and language > Languages:
  37. Choose the "Translation updates" tab.
  38. Change "Check for updates" to "Daily" or "Weekly" instead of the default "Never".
  39. From now on cron will check for updated translations, and import them is required.
  40. The status of the translations is reported on the "Status report" page at
  41. Administration > Reports.
  42. To check the translation status and execute updates manually, go to
  43. Administration > Configuration > Regional and language > Translate inteface
  44. Choose the "Update" tab.
  45. You see a list of all modules and their translation status.
  46. On the bottom of the page, you can manually update using "Update translations".
  47. Use Drush
  48. ---------
  49. You can also use drush to update your translations:
  50. drush l10n-update # Update translations.
  51. drush l10n-update-refresh # Refresh available information.
  52. drush l10n-update-status # Show translation status of available project
  53. Summary of administrative pages
  54. -------------------------------
  55. Translations status overview can be found at
  56. Administration > Configuration > Regional and language > Languages > Translation updates
  57. Update configuration settings can be found at
  58. Administration > Configuration > Regional and language > Translate interface > Update
  59. Translating Drupal core, modules and themes
  60. -------------------------------------------
  61. When Drupal core or contributed modules or themes get installed, Drupal core
  62. checks if .po translation files are present and updates the translations with
  63. the strings found in these files. After this, the localization update module
  64. checks the localization server for more recent translations, and updates
  65. the site translations if a more recent version was found.
  66. Note that the translations contained in the project packages may become
  67. obsolete in future releases.
  68. Changes to translations made locally using the site's build in translation
  69. interface (Administer > Site building > Translate interface > Search) and
  70. changes made using the localization client module are marked. Using the
  71. 'Update mode' setting 'Edited translations are kept...', locally edited
  72. strings will not be overwritten by translation updates.
  73. NOTE: Only manual changes made AFTER installing Localization Update module
  74. are preserved. To preserve manual changes made prior to installation of
  75. Localization Update module, use the option 'All existing translations are kept...'.
  76. po files, multi site and distributions
  77. --------------------------------------
  78. Multi sites and other installations that share the file system can share
  79. downloaded translation files. The Localization Update module can save these
  80. translations to disk. Other installations can use these saved translations
  81. as their translation source.
  82. All installations that share the same translation files must be configured
  83. with the same 'Store downloaded files' file path e.g. 'sites/all/translations'.
  84. Set the 'Update source' of one installation to 'Local files and remote server'
  85. or 'Remote server only', all other installations are set to
  86. 'Local files only' or 'Local files and remote server'.
  87. Translation files are saved with the following file name syntax:
  88. <module name>-<release>.<language code>.po
  89. For example:
  90. masquerade-6.x-1.5.de.po
  91. tac_lite-7.x-1.0-beta1.nl.po
  92. Po files included in distributions should match this syntax too.
  93. Alternative sources of translation
  94. ----------------------------------
  95. Each project i.e. modules, themes, etc. can define alternative translation
  96. servers to retrieve the translation updates from.
  97. Include the following definition in the projects .info file:
  98. l10n server = example.com
  99. l10n url = http://example.com/files/translations/l10n_server.xml
  100. The download path pattern is normally defined in the above defined xml file.
  101. You may override this path by adding a third definition in the .info file:
  102. l10n path = http://example.com/files/translations/%core/%project/%project-%release.%language.po
  103. API
  104. ---
  105. Using hook_l10n_servers the l10n update module can be extended to use other
  106. translation repositories. Which is usefull for organisations who maintain
  107. their own translation.
  108. Using hook_l10n_update_projects_alter modules can alter or specify the
  109. translation repositories on a per module basis.
  110. See l10n_update.api.php for more information.
  111. Maintainers
  112. -----------
  113. Jose Reyero
  114. Gábor Hojtsy
  115. Erik Stielstra