Is there some ways to autofix the mo or po files instantly?

$ msgfmt -o en_CA.po en_CA.mo
en_CA.mo:1:2: syntax error
en_CA.mo:1: keyword P unknown
en_CA.mo:2: end-of-line within string
en_CA.mo:2:43: invalid control sequence
en_CA.mo:3: end-of-line within string
en_CA.mo:4: keyword $ unknown
en_CA.mo:5: keyword $ unknown
en_CA.mo:6: end-of-line within string
en_CA.mo:7: keyword F unknown
en_CA.mo:8: end-of-line within string
en_CA.mo:10: keyword F unknown
en_CA.mo:12: keyword i unknown
en_CA.mo:14: keyword Y7 unknown
en_CA.mo:16: end-of-line within string
en_CA.mo:17: keyword G unknown
en_CA.mo:18: keyword T unknown
en_CA.mo:20: keyword K unknown
en_CA.mo:21: keyword K unknown
en_CA.mo:22: keyword L unknown
en_CA.mo:23: keyword fO unknown
msgfmt: too many errors, aborting

So I have these:

msgid 5 000$ et moins
msgstr $5 000 AND LESS

msgid Frais cachés : 0$
msgstr Hidden fees: 0$

#~ msgid Il y a $1 questions à compléter
#~ msgstr There are $1 questions to complete.

#~ msgid Frais additionnels : 0$
#~ msgstr Additional fees: $0

and I am not sure what's causing the error keyword $ unknown, because I only use it in 4 different instances. I opened the file on Windows when the files are on my WSL2 drive, so maybe it's caused because those files come from a Linux environment, but I don't understand where that particular error might come from, so some autocorrect software would be helpful.

Topic localization Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.