2015-11-16, 04:07:15
Hi Mvlcek or anyone that can help
I posted here in the Themes forum some questions about doing a One Page theme with support for multiple langs .. I’m not sure if that was the right place to post .. ..
For this I’m using your i18n plugin and your I18n Gallery plugin .. I’ve then written some code (see post) and put it in my-theme/functions.php, which extracts and stacks all backend pages together pulling them from the array $pagesArray, as per post from Carlos here.
My basic questions are :
1. Why can’t I access from file functions.php the set language defined in var $language ? Is it not set yet ? .. without this I can’t extract the pages for the set language. Or is there another way ?
2. The key menuOrder in $pagesArray appears only to be set for the pages in the default lang, but not for any other langs … Do you know why ? .. So I can't sort and display the pages on menu order. Or is there another way ?
3. I18n Gallery plugin : I am using the %gallery(..)% syntax in he backend page text .. the caption language is only ever in the default lang, and not the set lang. Any idea how I can get around this ?
Appreciate any help
Aldebaran
I posted here in the Themes forum some questions about doing a One Page theme with support for multiple langs .. I’m not sure if that was the right place to post .. ..
For this I’m using your i18n plugin and your I18n Gallery plugin .. I’ve then written some code (see post) and put it in my-theme/functions.php, which extracts and stacks all backend pages together pulling them from the array $pagesArray, as per post from Carlos here.
My basic questions are :
1. Why can’t I access from file functions.php the set language defined in var $language ? Is it not set yet ? .. without this I can’t extract the pages for the set language. Or is there another way ?
2. The key menuOrder in $pagesArray appears only to be set for the pages in the default lang, but not for any other langs … Do you know why ? .. So I can't sort and display the pages on menu order. Or is there another way ?
3. I18n Gallery plugin : I am using the %gallery(..)% syntax in he backend page text .. the caption language is only ever in the default lang, and not the set lang. Any idea how I can get around this ?
Appreciate any help
Aldebaran