• Resolved zodizac

    (@zodizac)


    hello
    i was trying to translate this plugin using loco translation
    and everything worked good i finish 75% of it but there is some string i could not find it in the translator
    please can you give me a way to do it ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author isabel104

    (@isabel104)

    Hi,
    Do you know which string it is that cannot be translated? Does the Loco Translation plugin tell you which strings fail?

    Thread Starter zodizac

    (@zodizac)

    Thank you for replying
    I try it today everything has been translated correctly I dont know why it took one day to take effect but now its good.

    I have another question
    For the city name if am login to my wordpress account it show me the option for city to choose from but when i am not login it does not show anything and i cannot continue
    Is there a way to fix this i want my visitors to use it without signing up to my website ?

    Plugin Author isabel104

    (@isabel104)

    This sounds like a possibly JavaScript conflict. I would have to see your page to find the problem. Would you be able to provide a link to your page?

    Or, if it’s not available because its a local testing site, then try looking in the browser’s console. In Mozilla Firefox, you would press Ctrl + Shift + K and then click on Console. With that open, try typing in the city field again. Any errors should be listed in the console.

    (If you’re using Google Chrome instead of Mozilla Firefox, you would press Ctrl + Shift + I and then click on Network.)

    Any errors that are listed there, would show which JavaScript file is causing the conflict. I can check this out for you if you provide a link to your page.

    Thread Starter zodizac

    (@zodizac)

    This is the link of the page
    https://zodizac.com/???????-???????/

    Plugin Author isabel104

    (@isabel104)

    Thank you. Okay, it is not a JavaScript conflict. It seems that the GeoNames webservice is not returning the city names to your site.

    To further investigate the issue, can you please copy and paste this URL address in your web browser, and hit enter:

    https://api.geonames.org/searchJSON?featureClass=P&style=full&maxRows=12&name_startsWith=miami&username=zodizac&lang=ar

    When you do that, your screen should fill up with information that begins with {"totalResultsCount":. On the other hand, if it gives you an error message, please post it here. Thanks for your patience.

    Thread Starter zodizac

    (@zodizac)

    it does not give me any error
    it showed that
    {“totalResultsCount”:52 and after that the timezone and names of the cities

    i also discover that this problem happen with all members and not members just when i login with my admin account birth city works otherwise it does not work. i don’t know if this can help

    Thread Starter zodizac

    (@zodizac)

    {“status”:{“message”:”Please add a username to each call in order for geonames to be able to identify the calling application and count the credits usage.”,”value”:10}}

    Plugin Author isabel104

    (@isabel104)

    I’m trying to reproduce the same issue on my testing site so that I can fix it. I set my WordPress site language to Arabic, and it works just fine. Even if I type the city with English letters or Arabic letters, it still works.

    So, I want to recreate the same exact environment that you have. What language do you have set in your WordPress settings for Site Language? (The “Site Language” is found at the bottom of the WordPress general settings.) Are you using any other translation plugins?

    You can get a complete list of all your active plugins if you go to ZodiacPress, Tools, System Info. You can copy that and paste it here, or if you want to keep that private, you can create a support ticket here and upload your System Info file privately.

    Are there any other steps that you took to translate your site? For example, where did you place the translation files that you created for this plugin? May I please have a copy of those translation files so that I can recreate your same environment?

    Thread Starter zodizac

    (@zodizac)

    My site language is Arabic

    system info:

    
    ### Begin System Info ###
    
    -- Server Info
    
    Server Software:          Apache/2.4.23
    PHP Version:              5.4.45
    PHP_SHLIB_SUFFIX:         so
    exec() Function:          Enabled
    chmod() Function:         Enabled
    
    -- ZodiacPress Info
    
    Ephemeris permissions:    Executable
    
    -- WordPress Info
    
    Site URL:                 https://zodizac.com
    Home URL:                 https://zodizac.com
    WP Version:               4.6.1
    Multisite:                No
    WP_DEBUG:                 Disabled
    WP Memory Limit:          40M
    
    -- Theme
    
    Theme Name:               Primer
    Theme Version:            1.4.2
    Is Child Theme:           No
    
    -- Active Plugins
    
    Akismet by Automattic version 3.2,
    Beaver Builder Booster by The Beaver Builder Team version 1.0.4,
    Beaver Builder Plugin (Lite Version) by The Beaver Builder Team version 1.8.8,
    Category Widget by vinoth06 version 2.0.2,
    Contact Widgets by GoDaddy version 1.3.3,
    Disable Author Pages by Frank Staude version 0.9,
    Dynamic To Top by Matt Varone version 3.4.2,
    Easy Sidebar Menu Widget by phpbits version 1.0,
    ???? ???????? ???? ????????? by Alin Marcu version 4.9.3.2,
    Google AdSense by Google version 1.2.1,
    Google XML Sitemaps by Arne Brachhold version 4.0.8,
    Horizontal scrolling announcement by Gopi Ramasamy version 8.7,
    Limit Login Attempts by Johan Eenfeldt version 1.7.1,
    List category posts by Fernando Briano version 0.70,
    Loco Translate by Tim Whitlock version 2.0.10,
    Menu Badger by Dario Cantatore @ Squid Stack version 1.0.5,
    Menu Icons by Dzikri Aziz version 0.10.1,
    Ninja Forms by The WP Ninjas version 3.0.16,
    SpamReferrerBlock by Didier Sampaolo version 2.22,
    Sticky Menu (or Anything!) on Scroll by Mark Senff version 2.0.1,
    String Locator by Clorith version 2.0.3,
    The Daily Horoscope by Dailyhoroscopeplugin.com version 1.2,
    ThemeZee Toolkit by ThemeZee version 1.0.5,
    W3 Total Cache by Frederick Townes version 0.9.5.1,
    WordPress Importer by wordpressdotorg version 0.6.3,
    WP Author, Date and Meta Remover by Johnnie J. O'Dell Jr. version 1.0.4,
    WP Duplicate posts pages & CPT by Priyanka Bhave version 1.0,
    WP Smush by WPMU DEV version 2.5.2,
    ???????? ???????? by Greg Ross & Mostafa Soufi version 11.0.2,
    Clef by Clef version 2.6.1,
    YOP Poll by yourownprogrammer version 5.8.0,
    ZodiacPress by Isabel Castillo, Cosmic Plugins version 1.4.1
    
    ### End System Info ###	
    

    place of the translation files are in plugins/zodiacpress/languages/zodiacpress-ar.po

    when i click Ctrl + shift + I i got this error in zp.min.js:
    Uncaught TypeError: Cannot read property ‘geonames’ of null

    !function(e){e("#zp-fetch-offset").prop("disabled",!0),e("#place").autocomplete({source:function(t,a){e.ajax({url:zp_ajax_object.autocomplete_ajaxurl,dataType:zp_ajax_object.dataType,type:zp_ajax_object.type,data:{featureClass:"P",style:"full",maxRows:12,username:zp_ajax_object.geonames_user,action:zp_ajax_object.autocomplete_action?zp_ajax_object.autocomplete_action:void 0,name_startsWith:t.term,lang:zp_ajax_object.lang},success:function(t){e("#zp-fetch-offset").prop("disabled",!0),e("#zp-fetch-birthreport").prop("disabled",!0),a(e.map(t.geonames,function(e){return{value:e.name+(e.adminName1?", "+e.adminName1:"")+", "+e.countryName,label:e.name+(e.adminName1?", "+e.adminName1:"")+", "+e.countryName,lngdeci:e.lng,latdeci:e.lat}}))}})},minLength:2,select:function(t,a){e(".ui-state-error").hide(),e.ajax({url:zp_ajax_object.timezone_ajaxurl,dataType:zp_ajax_object.dataType,type:zp_ajax_object.type,data:{action:zp_ajax_object.timezone_id_action?zp_ajax_object.timezone_id_action:void 0,lat:a.item.latdeci,lng:a.item.lngdeci,username:zp_ajax_object.geonames_user},success:function(t){e("<input>").attr({type:"hidden",id:"geo_timezone_id",name:"geo_timezone_id",value:t.timezoneId}).appendTo("#zp-timezone-id"),e("<input>").attr({type:"hidden",id:"zp_lat_decimal",name:"zp_lat_decimal",value:a.item.latdeci}).appendTo("#zp-timezone-id"),e("<input>").attr({type:"hidden",id:"zp_long_decimal",name:"zp_long_decimal",value:a.item.lngdeci}).appendTo("#zp-timezone-id"),e("#zp-offset-wrap").hide(),e("#zp-fetch-birthreport").hide(),e("#zp-form-tip").hide(),e("#zp-fetch-offset").show(),e("#zp-fetch-offset").prop("disabled",!1)}})}}),e("#zp-fetch-offset").click(function(t){var a={action:"zp_tz_offset",post_data:e("#zp-ajax-birth-data :input").serialize()};return e.ajax({url:zp_ajax_object.ajaxurl,type:"POST",data:a,dataType:"json",success:function(t){if(t.error){e(".ui-state-error").hide();var a=e("<span />");a.attr("class","ui-state-error"),a.text(t.error),e("#zp-ajax-birth-data").append(a)}else e.trim(t.offset_geo)&&"false"!=e.trim(t.offset_geo)&&(e(".ui-state-error").hide(),e("#zp-offset-wrap").show(),e("#zp-offset-label").text(zp_ajax_object.utc+" "),e("#zp_offset_geo").val(t.offset_geo),e("#zp-form-tip").show(),e("#zp-fetch-offset").hide(),e("#zp-fetch-birthreport").show(),e("#zp-fetch-birthreport").prop("disabled",!1))}}),!1}),e("#zp-fetch-birthreport").click(function(){return e.ajax({url:zp_ajax_object.ajaxurl,type:"POST",data:e("#zp-birthreport-form").serialize(),dataType:"json",success:function(t){if(t.error){e(".ui-state-error").hide();var a=e("<span />");a.attr("class","ui-state-error"),a.text(t.error),e("#zp-offset-wrap").after(a)}else if(e.trim(t.report)&&"false"!=e.trim(t.report)){e(".ui-state-error").hide(),e("#zp-report-wrap").show(),e("#zp-report-content").append(t.report),e("#zp-form-wrap").hide();var o=e("#zp-report-wrap").offset().top-70;e("html,body").animate({scrollTop:o},"slow")}}}),!1}),e("#month, #day, #year").on("change",function(){var t=!this.options[this.selectedIndex].defaultSelected;t&&(e("#zp-offset-wrap").hide(),e("#zp-fetch-birthreport").hide(),e("#zp-form-tip").hide(),e("#zp-fetch-offset").show())})}(jQuery);

    translation files i upload theme to google drive
    translation files

    Note: i tried to delete translation file and ZodiacPress plugin and install it again with default settings and change theme same thing happend , Birth city just work if i am login as admin

    Thank very much for helping me solving the problem

    • This reply was modified 8 years, 3 months ago by zodizac.
    Thread Starter zodizac

    (@zodizac)

    Hello

    First, i would like to thank you
    Second , i solved the problem, i delete some plugins and it works! i don’t know which plugin was conflicted Zodiacpress plugins
    plugins are: { Horizontal scrolling,W3 Total Cache, Menu Badger,SpamReferrerBlock,The Daily Horoscope, WP Duplicate posts pages & CPT,WP Smush }

    and it did work!

    Thanks!, and sorry for disturbing you.

    • This reply was modified 8 years, 3 months ago by zodizac.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘translation’ is closed to new replies.