- This topic has 3 replies, 3 voices, and was last updated 11 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › New Feature : Localisation that stays…
Tagged: updates, upgrading, Version Control
Hi all
I’d like to have the possibility to add my own location without having it removed at the next update.
I’d like to propose the simple defined PHP function.
In each plugin, the “define” lines could be written like this :
if (!defined(‘EMEMBER_REMEMBER_ME’)) define(“EMEMBER_REMEMBER_ME”, “Garder en mémoire”);
This way, I can include my own language file (in wp-config.php) and have my own language used, and the default constant if I didn’t define the line, or if a new line is added.
Maybe a cleaner way could be use, but this could be very quick
Thx
We recommend the following:
– Keep a backup copy of your language file (after you have customized it).
– Update the plugin as usual
– Override the language file with your one
We could look into adding an option where you can specify a custom language directory (where your language files are at).
We have created a little addon for this.