-
Notifications
You must be signed in to change notification settings - Fork 62
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
Feature request: file globbing #272
Comments
Hello, thanks for the report. Indeed, that would be very possible to do, for example using this tutorial. I would probably use this syntax instead (no recurse option which meaning is not clear to me,
The only question is about when I'll find the time to implement it because things are really crazy IRL for me. Help would be welcome. I guess that I would search in po4a where the config file is parsed (where the $document hash table is populated), and then, I'd add some code just before the hash initialization, to iterate over all globbed files. I guess it's here: https://github.com/mquinson/po4a/blob/master/po4a#L1197 In that location, I'd detect whether the master file contains a
If so, populate an array with all the matching file names using the previously cited tutorial. Then the whole code block that populates the Then, the doc would need to be updated, probably at the end of this paragraph. And finally, a new test case should be added, for example copying this one into a |
For the record, while implementing use of po4a for linuxcnc (LinuxCNC/linuxcnc#1356), I felt the need for such file globbing feature too. :) |
This is a pity that we missed them. We really need #272
(Per our discussion on IRC)
Please implement file globbing in po4a configuration files.
Sometimes you have a lot of source files and listing them one by one, and keeping the list updated, is cumbersome and prone to failure.
As an example, in some of the documentation guides in Uyuni we have 170+ source AsciiDoc files. Instead of listing each and every .adoc file under e. g.
modules/reference
(including subdirectories!):it would be so much easier and convenient to be able to say
Sample po4a config files here:
https://github.com/paususe/uyuni-docs/tree/paususe-po4a-config-file/l10n-weblate
The text was updated successfully, but these errors were encountered: