Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New pot_extrator method to i18n module #13900

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bruchar1
Copy link
Member

This method return a PotExtractor object used to extract translatable
string from source files into a .pot translation template.

It differs from a plain CustomTarget in three ways:

  • It accepts build targets as sources, and automatically resolves source
    files from those build targets;
  • It detects command lines that are too long, and writes, at config
    time, the list of source files into a text file to be consumed by the
    xgettext command;
  • It detects dependencies between pot extraction targets, based on the
    dependencies between source targets.

This does the specific thing I need for my project, that I was trying to implement in a more generic way in #12272 and #11822.

@bruchar1 bruchar1 force-pushed the i18nextract branch 3 times, most recently from 918a368 to 9ebc09e Compare November 12, 2024 15:19
This method return a PotExtractor object used to extract translatable
string from source files into a .pot translation template.

It differs from a plain CustomTarget in three ways:
- It accepts build targets as sources, and automatically resolves source
  files from those build targets;
- It detects command lines that are too long, and writes, at config
  time, the list of source files into a text file to be consumed by the
  xgettext command;
- It detects dependencies between pot extraction targets, based on the
  dependencies between source targets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant