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

Use of uninitialized values when trying to translate the darktable documentation #426

Closed
darix opened this issue Jun 12, 2023 · 5 comments
Closed

Comments

@darix
Copy link

darix commented Jun 12, 2023

repository: https://github.com/darktable-org/dtdocs

master and the 4.4 branch were tested.

OS: openSUSE Tumbleweed (latest)
Exact environment is this OCI image: registry.opensuse.org/home/darix/apps/containers/hugo:latest

the script called is

./tools/generate-translations.sh --no-update
Use of uninitialized value $el in string eq at /usr/lib/perl5/vendor_perl/5.36.0/Locale/Po4a/TransTractor.pm line 1303.
Use of uninitialized value $el in string eq at /usr/lib/perl5/vendor_perl/5.36.0/Locale/Po4a/TransTractor.pm line 1303.
Use of uninitialized value $el in pattern match (m//) at /usr/lib/perl5/vendor_perl/5.36.0/Locale/Po4a/TransTractor.pm line 1322.
content/module-reference/utility-modules/shared/image-information.nl.md is 100% translated (9 strings).
@mquinson
Copy link
Owner

Thanks for the report, @darix, it's fixed in the git now. The thing is that your YFM contains empty tag lists, as follows, with no content provided after the column. po4a won't report a warning in this case anymore.

tags:

But I think this is harmless. I feel concerned about darktable-org/dtdocs@1f01b25 What are the issues you are facing with the PO tooling? Please do not hesitate to report any issue as a bug report against po4a.

@darix
Copy link
Author

darix commented Jun 17, 2023

we were just trying to see if a plain english build will work. it could be a hugo or po4a issue. but we do not have that figured out yet

@darix
Copy link
Author

darix commented Jun 22, 2023

we figured the bug out.

@mquinson
Copy link
Owner

Cool, kudos! What was the problem (out of curiosity)?

@darix
Copy link
Author

darix commented Jun 22, 2023

a cleanup script that ran at the wrong time and cleared out some content :)

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

No branches or pull requests

2 participants