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

po4a.cfg: how to ask po4a not to update po files? #557

Open
Jibec opened this issue Mar 19, 2025 · 0 comments
Open

po4a.cfg: how to ask po4a not to update po files? #557

Jibec opened this issue Mar 19, 2025 · 0 comments

Comments

@Jibec
Copy link
Contributor

Jibec commented Mar 19, 2025

Hi,

I have a big po4a.cfg with 857 files

[po4a_langs] fr 
[po4a_paths] translation_files/$master/$master.pot $lang:translation_files/$master/$lang.po
[type: text] src/13ft/DESCRIPTION.md $lang:translated/$lang/src/13ft/DESCRIPTION.md opt:"--keep 0" pot=13ft 
[type: text] src/20euros/DESCRIPTION.md $lang:translated/$lang/src/20euros/DESCRIPTION.md opt:"--keep 0" pot=20euros 
[type: text] src/243-game/DESCRIPTION.md $lang:translated/$lang/src/243-game/DESCRIPTION.md opt:"--keep 0" pot=243-game 
...

I see:

  • po4a will generate empty po files for each lang in po4a_langs
  • po4a will update every $lang.po files

How do I tell po4a not to update po files?

I would like Weblate to be the only tool to handle $lang.po updates to prevent conflicts and have smooth automatic updates by commit.
While I could only commit pot files, I would prefer to have po4a not to touch those files.
Hopefuly, this would make po4a faster, it takes 2 minutes and 30 seconds to handle 857 files, which is slow already for one single language, I'm worried the processing time may grow fast.

Can I do that?

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

1 participant