In our last few tutorials, we have covered the $this variable in Joomla 2.5 templates. We will continue focusing on $this, and this time examining the following code:
The output of the above PHP code results in the following code being shown in our pages:
If you are familiar with PHP, you can see that the value of $this->language is en-gb. en-gb stands for the English language as used in the United Kingdom.
If we change the language in Joomla 2.5 to Spanish, you can see that the value of $this->language changes to es-es: