- This topic has 18 replies, 8 voices, and was last updated 10 years, 4 months ago by .
- 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 eStore Forum › WP eStore Download – Customizing Error Messages
Tagged: error, gettext formatting, message
It is to a point where new messages get added very rarely. Also, we will add the new messages at the bottom of the file only (so very easy for you to see the difference).
I can add a filter for it (if needed) so you can load your custom language file from another folder.
There is a bit of history for not using gettext stuff in this project.
>> There is a bit of history for not using gettext stuff in this project.
There are still vestiges of gettext style markup in the eStore_customers_menu.php, that is, the code uses the __(‘ ‘, ‘domain’) function.
Curiously the display customer function is the one other place where I’d like to be able to specify my preferred formatting string to customize what gets displayed.
Another approach would allow the customer to override some functions with their own plugins.
The download.php file operates outside of the WordPress environment; as a standalone script. Therefore, it’s impossible to use anything beyond #define without dragging in the entire WordPress environment. This was done, to speedup the download process; and to provide the script with as much PHP memory as it can use for the “download methods.”
@wzp: Thanks. That’s a valuable bit of extra information.