Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account or a bug report, please open a ticket. If you have questions about the free version of Business Directory, please post in the WordPress.org forum and our team will respond there.
Just started to customize this new plugin, looks great so far!
Unfortunately, it seems I got hit by 2 bugs at the same time 🙁
I was trying to translate the plugin, and found that not everything is being displayed translated, and wondered: why?
Take this example: the very first page has got the form (in the div.right), with the input-submit, which has got the value of “Search Listings”.
Well, I found that value in the .po file, translated [that one, and also the text of buttons from div.left], uploaded, refreshed. The buttons in the div.left appeared to be translated, but the button in the div.right is still in plain English.
Digging into the code, I've found two things:
A. The buttons on the left are being added via calls to the subroutines, which return the portion of HTML and with __(). That's great!
B. The button on the right is a plain HTML, without calling __(). Ref: posttemplate/wpbusdirman-index-categories.php:12
Well, I was wondering, why would that be so? Was it meant to have that template file be the English-only? I looked a big more into the code, and found that the file “posttemplate/wpbusdirman-index-categories.php” is actually being called on a conditional base. A like that!
Unfortunately, the conditions do not look too well suitable there. E.g. the conditions' logic does not indicate that the specific posttemplate is English-only. So at this point I regret to conclude that the PHP file in posttemplate folder really has got a bug: not translating the portions of HTML.
Well, now to the conditions. Why would I think that they are having a bug too? I think so because I do run a child theme. And on my opinion it's logical to attempt to include the child's version of the template file first, and only then try the theme's one, and then the plugin's one. Would you agree?
PS. I do not use the function “get_template_directory” or “get_stylesheet_directory”, instead I use the definitions, already made from those in “wp-includesdefault-constants.php”:
// Parent Theme = TEMPLATEPATH
// Child Theme = STYLESHEETPATH
Most Users Ever Online: 402
Currently Browsing this Page:
Guest Posters: 5327
Newest Members:Patrick Hale
Moderators: bizdirectorysupport: 18713, Bobbie: 3, Steve Wells: 0, Arafat Bin Sultan: 0, Salman Mahboob: 0
Administrators: Business Directory Support: 1720, Steph Wells: 0