Find out active language in php code?

Please use this forum for all development issues related to 3rd Party extensions or own development
Forum rules
Before posting, see the developer documentation and don't forget to search the forums.

Then check if you are running the latest available versions of Joomla! (1.5.18), Joom!Fish (2.0.4) and the extensions you're having problems with.

We need the following at least (you can find this in your Joomla! backend under help > system info):

* Joomla! version
* Joom!Fish version
* Extension version
* PHP version (e.g. 5.2.5). Note: The support for PHP4 is discontinued.
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Webserver to PHP Interface
* Database version
* memory_limit from your phpinfo

Please enable error reporting and include any error messages in your posting.

Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.

Find out active language in php code?

Postby blachner on Wed Mar 26, 2008 9:46 am

Hello,

I searched for some developer infos on the Joom!Fish site, but I couldn't find much information.

I try to modify a small bot which adds RSS tags into the metadata. I will add an option to the metadata tags dependent on the language the user choose. For example, if english is choosen by the user, "&lang=en" should be added to the RSS link in the metadata tags.

How can the bot get the information which language is choosen? How can I get this information in the php code?
blachner
Newbee
 
Posts: 1
Joined: Fri Mar 14, 2008 2:01 pm

Return to 3rd Party extensions in general

Who is online

Users browsing this forum: No registered users and 2 guests