Hi,
I’m having some problems with a few fields within the Claim listing process that are not shown translated using WPML. I contacted WPML support and apparently:
“Some strings located here: /geodir_claim_listing/language.php are well defined within the constants, and that’s why WPML recognizes them, the problem is that when using those constants, the plugin doesn’t do it right within a Gettext call.
For example, in the line 130 from that archive:
1
if (!defined(‘CLAIM_BUSINESS_OWNER_ASSOCIATE’)) define(‘CLAIM_BUSINESS_OWNER_ASSOCIATE’, __(‘Business Owner/Associate?-wpml’,’geodirclaim’));
if you search for that constant (CLAIM_BUSINESS_OWNER_ASSOCIATE), in geodir_claim_hooks_actions.php, line 56:
1
<label><?php echo CLAIM_BUSINESS_OWNER_ASSOCIATE;?><span>*</span> </label>
If you change it for:
1
<label><?php echo __(CLAIM_BUSINESS_OWNER_ASSOCIATE, ‘geodirclaim’);?><span>*</span> </label>
Now translation shows in the front end.”
Should I change them one by one or can you provide some other solution?
Thanks for your help,
Tomas