Opened 14 years ago
Closed 13 years ago
#17266 closed feature request (worksforme)
Custom languages files support
Reported by: | DreadLox | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | |
Focuses: | Cc: |
Description
Hello,
Sometimes, themes/plugins translations do no use the words I would like for some specific texts. When it occurs, it could be nice to be able to create my own custom language file to use instead of the plugin's and that do not get overwritten when upgrading the plugin.
In practical, when looking for a my-plug.xx_xx.mo file, wordpess should first look for it in wp-content/languages directory.
Change History (2)
Note: See
TracTickets for help on using
tickets.
This functionality could also be added as a simple plugin or function using the load_textdomain_mofile filter.
WP code will call:
The filter could check for mofile in languages folder first, and if not there, then use normal path.
I wrote something like that for my own plugin and wrote the general concept up : http://icalevents.com/3445-an-accent-for-your-website/.
Just coded and tested - seems to do the trick