Registering string twice breaks other strings
-
Hi,
If you register a string in your database like so:
pll_register_string(“My Project”, “login-form-email”, “My Project”);
And then you accidentally register it again, but at an earlier point in the code so that it comes before the first time you registered it, then all of the strings in the database following the accidental register will have the wrong translation the moment you save on the string translation page. They’ll all be off by one, so string #10 that you registered will get its translation from string #11.
My database now has about 350 strings with incorrect translations now, and I haven’t found a way to “reset” it. I doubt it’s possible now anyway.
The topic ‘Registering string twice breaks other strings’ is closed to new replies.