January 16, 2020 at 11:44 pm #57261
I copied the latest default PO file from 8.0.14 to generate a new translation file. However, Poedit (V2.2.4) indicates that there is an error with one of the strings, it apparently does not like a % sign in the source text.
See attached screenshots for details. Could you in the next release change the ailing string to now have a % sign in it and generate a new default po file?January 17, 2020 at 8:34 am #57276
Happy new year, I hope you’re well!
A lot of our translation strings use %, this is the standard mechanism for translating a certain type of dynamic string, for instance, strings with a link in.
The “set your map to 100%” string you’ve shown in your screenshot has been there for many years now, so if that’s only just started coming up in your PO software then this must be a new warning.
“Format specification missing” sounds like it’s expecting a character after the percent sign, either we need to escape that percent, or this is a false positive.
According to this article https://stackoverflow.com/questions/38435081/poedit-show-error-a-format-specification-for-argument-1-doesnt-exist-in-msgs the solution is to add a comment,
Please could we ask you to open /wp-google-maps-pro/legacy-core.php and add a new line above line 1349 (which has that string on), please add
Does that help at all?
– PerryJanuary 17, 2020 at 6:47 pm #57298
Does not have any effect. POEedit refers also to some totally other lines of code so seems the PO/POT files are old. Perhaps the suggest fix actually is needed when you generate the PO/POT file?
I did a brute for fix by just editing the ailing string (meaning it cannot now be translated), please try to generate a PO/POT file that works with the latest version of POedit.January 19, 2020 at 10:34 am #57314
I ran a scan using the latest version of POEdit, I’m not seeing any issues at my end.
Our translations are user contributed, if you think the translation files need updating then we would welcome any contributions in terms of translation.
Which string exactly are you having issues with?
– PerryJanuary 19, 2020 at 3:15 pm #57320
It’s the “set your map to 100%” string shown in the screenshot in the first post. It seems something now causes POedit the think that the precentage sign is the php replacement function. The problem is NOT the translations but the “source string” picked up from your code (which ofcourse is basically not editable in POedit but I did some violence on the .po file to remove that one string.
The to duplicate the problem you need to generate the .po(t) file and then try to generate a new translation for some language with the newest version of POedit.January 20, 2020 at 8:48 am #57327
I thought that might be the case, I’m not seeing the same thing at my end at all unfortunately.
Please see the attached screenshot, POEdit has no problem with this string at my end. I’m running Windows 10, if that helps.
Is it POEdit itself that reports this error?
– PerryJanuary 20, 2020 at 8:29 pm #57345
You forgot the screenshot it seems? Yes, POedit complains (see screen capture of error, it is a POedit error).January 21, 2020 at 9:44 am #57357
- You must be logged in to reply to this topic.