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

Language not applied after build #569

Closed
pmraps opened this issue Jan 21, 2022 · 2 comments
Closed

Language not applied after build #569

pmraps opened this issue Jan 21, 2022 · 2 comments

Comments

@pmraps
Copy link

pmraps commented Jan 21, 2022

Hello,
I tried to build Terminator after updating the pt translation, hoping to get it working for testing purposes. Instead, I get Terminator all in English.
I tried /po/genpot.sh, got this:
xgettext: erro ao abrir "../terminatorlib/encoding.py" para leitura: Ficheiro ou pasta inexistente
ERROR: xgettext failed to generate PO template file. Please consult error message above if there is any.

Tried update_all_po.sh and got a bunch of lines like this one (presumably one for each language):
msgmerge: erro ao abrir "terminator.pot" para leitura: Ficheiro ou pasta inexistente
Portuguese parts meaning something like: error opening xxx: file or folder inexistent

Could someone tell me what is wrong, please?
uname --all: Linux debian-stable 5.10.0-10-686-pae #1 SMP Debian 5.10.84-1 (2021-12-08) i686 GNU/Linux
locale -a:
C
C.UTF-8
POSIX
pt_PT.utf8

Thank you!

@Vulcalien
Copy link
Member

That's something I missed! Thanks for bringing this up.

It's looking for a file that has been deleted in PR #536.

I'll make a PR soon, but you could apply this patch. I assume you have cloned the repository.
git apply patch.txt in the repository. Then, running genpot.sh and update_all_po.sh should work.

patch.txt

@pmraps
Copy link
Author

pmraps commented Jan 23, 2022

Great, everything running, thank you.
One last remark, I had to manually copy the .mo file to /usr/share/locale/pt_PT/LC_MESSAGES. It didn't copy automatically, not even with sudo python3 setup.py install...
Not sure if this is intentional.

@pmraps pmraps closed this as completed Jan 23, 2022
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