Revision: 1773
http://mrbs.svn.sourceforge.net/mrbs/?rev=1773&view=rev
Author: jberanek
Date: 2011-01-28 21:54:16 +0000 (Fri, 28 Jan 2011)
Log Message:
-----------
* Now chooses a determined locale wven if MRBS doesn't have a translation
for that locale. It's better than nothing to get dates/times right.
Reported by 'corn_kid' as SF #2934313.
Modified Paths:
--------------
mrbs/trunk/web/language.inc
Modified: mrbs/trunk/web/language.inc
===================================================================
--- mrbs/trunk/web/language.inc 2011-01-28 21:45:23 UTC (rev 1772)
+++ mrbs/trunk/web/language.inc 2011-01-28 21:54:16 UTC (rev 1773)
@@ -397,11 +397,14 @@
{
$lang_file = "lang." . strtolower($lang);
+ // Set the locale even if MRBS hasn't got a translation, at least
+ // we'll get time formats right
+ $locale = $lang;
+
if (file_exists($lang_file))
{
include $lang_file;
$doneit = 1;
- $locale = $lang;
break;
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits