I want to translate some website to Spanish, and the default translation in 'Settings' doesn't translate everything.
I notice in the code, that where the translation doesn't work there are functions like esc_attr
or esc_attr_x
or ___
.
I understand that these functions used to translate texts, but I didn't really get how it is done exactly.
Any suggestions?
gettext .po
files (which should be formatted to.mo
files). Every theme can have it's own "translation domain". Have you read codex.wordpress.org/I18n_for_WordPress_Developers?