Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Translation Template Extractor (potx)

Security covered Under active development 4,166 sites

This project provides an interface for extracting translation template files from your local Drupal projects, either through a web interface or Drush commands. It can also be used internally by localization platforms to parse translatable strings.

Translation Template Extractor (potx) provides a web based and Drush-integrated Gettext translation template extractor interface for Drupal as well as a reusable API to look for translatable strings and translatability errors.

Do you need to use this tool?

This tool is used under the hood at http://localize.drupal.org/ to serve as a parsing machine for Drupal.org project releases. If you intend to contribute to Drupal interface translations on https://localize.drupal.org/, there is no need to use this tool, it is integrated there seamlessly. It is possible to export translation templates for drupal.org project releases there without using this tool. Join a translation team to export and contribute to in-progress translations.

You need this project if you are in need of translation template source files directly from your locally running projects, especially custom projects or if you want to debug and verify your custom code for software translatability.

Using with Drush

Use the potx drush command to generate translation templates from local source code. Examples:

  • Extract translatable strings from applicable files in current directory and write to single output file: drush potx
  • Extract translatable strings from applicable files of example module: drush potx--modules=example
  • Extract translatable strings from only this one file in example.module: drush potx --files=sites/all/modules/example/example.module

Using the user interface

A simple user interface is exposed on the admin/config/regional/translate/extract page (the Extract tab on the User interface translation page).

Template extraction may require extensive amounts of memory, if extraction fails, try raising the memory limit.

Drupal 8–11

Ask your assistant about Translation Template Extractor (potx)

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • locale Drupal core

Required by

1 tracked project depends on this one

Activity

Tracked releases
7
Tracked since
Mar 2023
Latest release
1 month ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0-alpha1 Pre-release 10–11 Oct 14, 2026
3.x-dev Dev 10–11 Oct 13, 2026
2.0.0-alpha2 Pre-release 10–11 Jul 10, 2026
2.0.0-alpha1 Pre-release 10–11 Jun 25, 2026
2.x-dev Dev 10–11 Apr 9, 2026
8.x-1.1 Stable 8–11 Jul 9, 2024
8.x-1.0 Stable 8–10 Mar 14, 2023