Hi guys,
I've been playing with PW for a few days now, having fun so far.
I'm testing the multi-language capability features.
I've read https://processwire.com/api/multi-language-support/code-i18n/ and https://processwire.com/api/multi-language-support/multi-language-urls/.
I succeeded to display a page in my default language, then by adding "/en", display the "en" version and so on.
So I understand how to manage the description part of the website which won't be modify very often, great.
But I don't get it for text such as : sprintf(__('Your city is %1$s, and your zip code is %2$s.'), $city, $zipcode);
I mean I get it about the sprintf stuff, I used to have such a system on my old website, with countries include files en.inc, it.inc.
What I don't understand is how PW will load the english text, the italian text ? Do I have to build myself the matching countries files according to the language set on the page ?
Something like if 'en' then include ('en.inc'); ?
Thanks