Search prompt not translated?

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

Search prompt not translated?

Post by Miki » Fri Jul 05, 2019 8:44 am

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: 8209
Joined: Sat Sep 08, 2001 9:46 pm

Re: Search prompt not translated?

Post by Jeff » Fri Jul 05, 2019 6:26 pm

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 424 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: 11
Joined: Sun Aug 14, 2016 6:38 pm

Re: Search prompt not translated?

Post by Miki » Mon Jul 08, 2019 5:27 am

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

Thanks :)

Miki

Post Reply