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

Translations are created both in the path of destdir option in the po4a config and in the current directory #420

Closed
gemmaro opened this issue May 27, 2023 · 2 comments

Comments

@gemmaro
Copy link
Contributor

gemmaro commented May 27, 2023

For example, when the files are located as:

.
├── po
│   ├── all.pot
│   └── ja.po
├── po4a.cfg
└── src
    └── foo.txt

and po4a.cfg is like:

[options] --destdir out

[po_directory] po

[type:text] src/foo.txt \
            ja:foo.txt

then after runnning po4a po4a.cfg:

.
├── foo.txt # <- ?!
├── out
│   └── foo.txt
├── po
│   ├── all.pot
│   └── ja.po
├── po4a.cfg
└── src
    └── foo.txt

If the destdir option is given explicitly as a command line argument (po4a po4a.cfg --destdir out), the problem doesn't occur; the translations are not created in the current directory:

.
├── out
│   ├── foo.txt
│   └── po
├── po
│   ├── all.pot
│   └── ja.po
├── po4a.cfg
└── src
    └── foo.txt

Here is a repository to reproduce: https://github.com/gemmaro/po4a-issues-420

Tested po4a versions: 0.68, 0.69.

@mquinson
Copy link
Owner

mquinson commented Jan 5, 2024

Thanks @gemmaro for this very good bug report. Your test case and analysis were really helpful. I would have difficulties to spot the issue if you didn't mention that providing the options on the command line were fixing the problem.

@gemmaro
Copy link
Contributor Author

gemmaro commented Jan 6, 2024

Thank you very much for taking care of this. I confirmed that it works fine now.

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