Search prompt not translated?

Posts regarding Translations for POP Peeper
Post Reply
Miki
Posts: 15
Joined: Sun Aug 14, 2016 6:38 pm

Search prompt not translated?

Post by Miki »

Hi Jeff,

the search box is not in the translations strings ...
Immagine.png
Also the file type on upload eml files
Immagine2.png
Regards

Miki
User avatar
Jeff
Admin / Developer
Posts: 9225
Joined: Sat Sep 08, 2001 9:46 pm

Re: Search prompt not translated?

Post by Jeff »

hmm... you're right. And text that contain variables is always complicated to translate (yes, the '2' and '20' can be configured ).

#-o "less than 2 characters" :oops: (should be "less than 3")

So that needs to be updated regardless. I hate just removing the numbers but it sure is the easiest solution. :idea: Maybe I could introduce variables into the text? So that something like "%1%" and "%2%" gets replaced by the numbers.

...

Ok, so the new text is:
"Your search does not contain any valid words.\n\nCommon words and words outside the range of %1%-%2% characters are excluded."
which ends up looking like:
PP_NewInvalidSearch.png
PP_NewInvalidSearch.png (4.08 KiB) Viewed 7473 times

I think this is the most flexible way to allow languages to display variables (especially RTL...) and I wish I had thought of it sooner.

What do you think -- will the introduction of these variables into the text make sense when you're translating it?
Miki
Posts: 15
Joined: Sun Aug 14, 2016 6:38 pm

Re: Search prompt not translated?

Post by Miki »

Yes, I like it and it's more simple to translate.

Thanks :)

Miki
Post Reply