Where does $language originate from?

Post Reply
cobber
Ssr. Bludit
Posts: 12
Joined: Sun Feb 28, 2016 10:15 am

Have been looking at a couple of themes to get a handle on developing my own themes and noticed a variable named $language.

Does anyone know where this originates from?

I see it takes a parameter of text to be used as an output for the search bar but wanted to know more about any additional parameters or methods possibly associated with the variable.

eg: $langauge->p('search')
User avatar
Edi
Site Admin
Posts: 2345
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

$language->p('search') is taken from the translation files in the directory /language of the plugin Search depending of the selected language of the installation.

If the word or its translation is used by the plugin itself it would be $L->get('Search').
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply