Tagged: edit locations localization
August 8, 2017 at 2:48 PM #46777
I had one of my customers complain about not being able to edit locations in the backend. When they clicked the edit pen the only thing that happens is that the window.location gets a # in the end.
I did some digging and found out that when the pen is clicked the SLP_Location_Editor function rolls off and starts with var add_edit_div = jQuery( ‘#wpcsl-option-add’ );
This probably works in most cases but in my localization (swedish) the correct selector is #wpcsl-option-lägg_till, so when my customers click the edit button the div neither shows or gets its fields populated. Obviously I fixed it and will keep doing it if necessary but it would be nice if future updates would deal with this.
This is on a debian server with php 5.6.30, latest slp, latest wp and no add-ons.
Thanks!August 9, 2017 at 11:56 AM #46780
When it comes to the languages, all our updates to the SLP languages goes through the WP Translate project. We cannot write the code for every language that uses SLP unfortunately, that is beyond our capabilities. So we need the users to help with that. We have worked with WPML over the years…but something basic goes through the Translation TeamAugust 9, 2017 at 2:22 PM #46781
Yeah I get that, one solution would be to not translate the id of the element so that it’s #wpcsl-option-add in all languages or give it another identifier as well to extract the language-specific one with. I’ll look into signing up for the translation team but it seems like the problem here is probably that too much was translated in this case imho.
Anyhow, great plugin and I hope I don’t sound all negative!August 10, 2017 at 9:11 AM #46785
No Problem. Thanks for the info.August 14, 2017 at 3:34 AM #46805
I think I have the same issue (Dutch), but could you provide us with the fix? I can’t find ‘#wpcsl-option-add in the Po file..
I will appreciate you help!
SjorsAugust 14, 2017 at 4:32 AM #46806
<span style=”color: #000000; font-family: Helvetica; font-size: 12px; text-size-adjust: auto;”>I didn’t find it in the po file but in the ~/wp-content/plugins/store-locator-le/js/admin-locations-tab.js on line 357.</span>
var add_edit_div = jQuery( ‘#wpcsl-option-add-in-dutch’ );
Hope it helps!August 14, 2017 at 1:09 PM #46810
Lance has looked into it and I think he communicated with one of you, not sure, but he believes he has fixed it with SLP 4.8.3.
His answer to the bug
COuld you guys update to 4.8.3 and see if that fixed your issue?
You must be logged in to reply to this topic.