You are here

README.txt in Translation template extractor 8

ABOUT
================================================================================

The goal of the Translation Template Extractor project is to provide
command line and web based Gettext translation template extractor
functionality for Drupal. These translation templates are used by
teams to translate Drupal to their language of choice. There are
basically two ways to use the contents of this project:

 * The potx Drush command provided by the module. Examples:

   1. Extract translatable strings from applicable files in current directory
	   and write to single output file.
	   drush potx single
	   drush potx (By default, mode = single)

   2. Extract translatable strings from applicable files of example module and
	   write to module-specific output file.
	   drush potx multiple --modules=example

   3. Extract translatable strings from example.module and write to single
	   output file.
	   drush potx --files=sites/all/modules/example/example.module

   4. Extract strings from folder 'projects/drupal/8' using API version 8.
	   drush potx single --api=8 --folder=projects/drupal/8

 * Install the module on a Drupal site as you would with any other
   module. Once potx module is turned on, you can go to the
   "Extract" tab on the "User interface translation" page, select
   the module or modules or theme or themes you want to have a translation
   template for, and submit the form. You will get one single template file
   generated.

   Note: If you only get a white browser screen as response to the
   extraction request, the memory limit for PHP on the server is probably
   too low, try to set that higher.

CREDITS
================================================================================

Command line extractor functionality orignally by
  Jacobo Tarrio <jtarrio [at] alfa21.com> (2003, 2004 Alfa21 Outsourcing)

Greatly optimized by
  Brandon Bergren (2007)

Currently maintained by
  Gabor Hojtsy <gabor [at] hojtsy.hu>

File

README.txt
View source
  1. ABOUT
  2. ================================================================================
  3. The goal of the Translation Template Extractor project is to provide
  4. command line and web based Gettext translation template extractor
  5. functionality for Drupal. These translation templates are used by
  6. teams to translate Drupal to their language of choice. There are
  7. basically two ways to use the contents of this project:
  8. * The potx Drush command provided by the module. Examples:
  9. 1. Extract translatable strings from applicable files in current directory
  10. and write to single output file.
  11. drush potx single
  12. drush potx (By default, mode = single)
  13. 2. Extract translatable strings from applicable files of example module and
  14. write to module-specific output file.
  15. drush potx multiple --modules=example
  16. 3. Extract translatable strings from example.module and write to single
  17. output file.
  18. drush potx --files=sites/all/modules/example/example.module
  19. 4. Extract strings from folder 'projects/drupal/8' using API version 8.
  20. drush potx single --api=8 --folder=projects/drupal/8
  21. * Install the module on a Drupal site as you would with any other
  22. module. Once potx module is turned on, you can go to the
  23. "Extract" tab on the "User interface translation" page, select
  24. the module or modules or theme or themes you want to have a translation
  25. template for, and submit the form. You will get one single template file
  26. generated.
  27. Note: If you only get a white browser screen as response to the
  28. extraction request, the memory limit for PHP on the server is probably
  29. too low, try to set that higher.
  30. CREDITS
  31. ================================================================================
  32. Command line extractor functionality orignally by
  33. Jacobo Tarrio (2003, 2004 Alfa21 Outsourcing)
  34. Greatly optimized by
  35. Brandon Bergren (2007)
  36. Currently maintained by
  37. Gabor Hojtsy