[Xerte-dev] Re: Export Code
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Apr 30 12:09:02 BST 2012
Yes, with a dash. I looked it up somewhere, I thought that was the 'standard' way?
Why rename $SESSION['default_language']? Seems appropriate..?
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin
Sent: 30 April 2012 12:08
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Export Code
On 30 Apr 2012, at 12:00, Julian Tenney wrote:
$_SESSION['default_language']
It's identical to the directory name in /languages/. E.g. en-GB (I think).
I've only noticed en_GB (using an underscore) before, but you seem to use en-GB (using a dash '-')
David.
This would be the string 'en_GB', right?
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin
Sent: 30 April 2012 10:43
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Export Code
On 30 Apr 2012, at 09:02, Julian Tenney wrote:
Hi,
I re-added the export code I originally added in rev 60 back into export.php. How to know which language to export? Also, the way the the engine handles languages is to look in language-config.php. How to know what is indicated in there?
language-config.php ?
You could use $_SESSION['default_language'] - although perhaps this variable needs renaming.
thanks,
David.
Pale Purple Ltd. (Company No: 5580814)
'Business Web Application Development and Training in PHP'
http://www.palepurple.co.uk
Office: 0845 0046746 Mobile: 07792380669
Follow us on Twitter: @PalePurpleLtd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120430/1dd277be/attachment-0001.html>
More information about the Xerte-dev
mailing list