*

questions

  • *****
  • 319 posts
Translations issue with the percent sign %
« on: February 02, 2023, 09:10:09 AM »
Hello community,

Having issues into translating some phrases like the one below:

There was error when uploading icon for category #%s: %s

Where there is a percent sign %%% the translation does not works. Doing the translations in backoffice.

Does anyone have any idea?

Thank you!

*

MB Themes

Re: Translations issue with the percent sign %
« Reply #1 on: February 02, 2023, 10:25:41 AM »
Ok as I could not reproduce saving translation with % sign, I am pretty sure you are talking about situation when you enter % into string and then translation does not work in front?
% sign is magic character used by sprintf function and will try to replace %s with string, if defined.
Only what comes to my mind is that if translation contains "%s" and you change it to something different like "%dup", or you use % sign twice in this string, it may not work.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

questions

  • *****
  • 319 posts
Re: Translations issue with the percent sign %
« Reply #2 on: February 02, 2023, 01:28:55 PM »
Solved.
Can be closed.
Thank you,

*

MB Themes

Re: Translations issue with the percent sign %
« Reply #3 on: February 02, 2023, 01:32:08 PM »
Glad to hear that  8)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots