I have recently changed my Ubuntu into my 1st language. However, I noticed that there are some translations are not in the way I personally like them. I wish to change that translation by myself. However, when I looked at Where are translation files stored it didn't really make sense. I assume there's gonna be bunch of files that contain the translation strings. Does anyone know the path of these files?
2 Answers
The directories, where the gettext message catalogs are usually stored on Ubuntu, are:
/usr/share/locale-langpack/<lang>/LC_MESSAGES
/usr/share/locale/<lang>/LC_MESSAGES
- 34,191
Yep, that kind of issue usually comes down to either missing translation files on the server or incorrect translation domain usage.
A few things to check:
File Location & Naming – Make sure the translation YAML file is in the correct directory on the server (typically translations/) and properly named (e.g., messages.en.yaml if you're using the default domain and English).
Translation Domain – If you're using trans() or |trans in Twig, double-check that the correct domain is being referenced. Your key is admin.invoice.number, but Symfony might be defaulting to a different domain if it’s not explicitly set.
Cache Warmup in Prod – After clearing the cache, try running:
php bin/console cache:warmup --env=prod
Permissions – Confirm the server has proper read access to your translation files.
If all that looks good and it’s still not working, try logging the translation loader with debug mode on to see if the file is being picked up.