Gettext file structure
tl;dr I'm just nitpicking now
The directory/file structure used for the po files is non-standard. Making it standard might make the project easier for people to understand.
The current textdomain is "locale" with doesn't work well for the explanation, so I'll call it "pcwebsite" for illustration.
Source code files (committed to git)
Source files go into a "po" directory", like this:
po
⮩ pcwebsite.pot
⮩ en.po
⮩ fr.po
⮩ ...
The generator .sh
scripts are usually placed in po
as well, or in a separate utils
directory. I have seen both.
Binary files (webserver only)
locale
⮩ en/LC_MESSAGES/pcwebsite.mo
⮩ fr/LC_MESSAGES/pcwebsite.mo
⮩ gd/LC_MESSAGES/pcwebsite.mo
⮩ ...