2016-03-24, 16:40:46
(This post was last modified: 2016-04-05, 02:00:06 by hameau.
Edit Reason: Resolved.
)
Hello,
In spite of the warnings ( ), I want to show a gallery in search results, using custom Search View code.
Everything is working correctly, except that the Title and Description of the gallery is ignoring the current language. The base language ('en') always shows, even when the browser language is 'fr' (either from the browser preferences or from setlang='fr').
Is there any way to force the language with the get_i18n_gallery call, please?
I am prepared to duplicated and customise built-in I18N-* functions, if necessary, to allow the language to be passed to a get_i18n_gallery call either in the Search View or in a component.
Thanks.
Edit: Having moved to the production site, everything seems to be working now. Maybe a cache problem or server parameter, but I don't know for sure.
Sorry for the noise.
In spite of the warnings ( ), I want to show a gallery in search results, using custom Search View code.
Everything is working correctly, except that the Title and Description of the gallery is ignoring the current language. The base language ('en') always shows, even when the browser language is 'fr' (either from the browser preferences or from setlang='fr').
Is there any way to force the language with the get_i18n_gallery call, please?
I am prepared to duplicated and customise built-in I18N-* functions, if necessary, to allow the language to be passed to a get_i18n_gallery call either in the Search View or in a component.
Thanks.
Edit: Having moved to the production site, everything seems to be working now. Maybe a cache problem or server parameter, but I don't know for sure.
Sorry for the noise.
--
Nick.
Nick.