WPML compatibility issue

This topic contains 10 replies, has 3 voices, and was last updated by  Paolo 8 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #271847

    aprilis
    Expired Member
    Post count: 21

    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

    #271897

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #273035

    aprilis
    Expired Member
    Post count: 21

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #273860

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #274163

    aprilis
    Expired Member
    Post count: 21

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #283777

    aprilis
    Expired Member
    Post count: 21

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #285701

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #287678

    aprilis
    Expired Member
    Post count: 21

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #287860

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #287986

    aprilis
    Expired Member
    Post count: 21
    This reply has been marked as private.
    #288432

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount