Bharat Mediratta
c3c2b45280
Update the copyright to 2010. It's only 3 months into the year :-)
2010-03-03 10:15:34 -08:00
Andy Staudacher
c38bee203b
Add Faroese to the language list. Verified that it uses the default plural rules, thus no changes in Gallery_I18n.php or on the server side required.
2010-02-24 16:21:54 -08:00
Bharat Mediratta
86721ce280
Whitespace.
2010-02-09 15:21:40 -08:00
Andy Staudacher
d0f6839c25
Fix Arabic language name. Thanks shaibn for reporting the issue. Verified with CLDR data.
2010-02-08 00:05:17 -08:00
Tim Almdal
b6c0d3a48c
Refactor the is_rtl() helper into the Gallery_I18n class. This allows checking
...
for a config value "force_rtl" which will layout the gallery pages in rtl mode
without having to change to an language that is no longer understandable to the
developer.
Adding the line "$config['force_rtl'] = true;" to the config/locales.php file
will make it happen.
2010-02-07 13:55:17 -08:00
Andy Staudacher
5c0c33782d
Fix for ticket 892: Avoid double escaping of HTML entities, instead use Unicode in the source code for the locale names (as we do in other places already).
...
Note: Also fixing the localized name of Ukrainian. For some reason it was garbled before.
2010-02-06 12:19:55 -08:00
Andy Staudacher
5c527513c6
Fix language preference block / language cookie reading.
...
The preference block must have been broken by a jquery update, and the cookie reading by a Kohana update.
2010-01-28 19:46:53 -08:00
Andy Staudacher
c9b775c21a
Fix for bug 984, consistently interpret installed / available locales as array.
...
On the current hostgater setup (PHP 5.2.12), locales::available() was returning an array and isset($locales->$code) would always (silently) return false.
Choosing array over stdClass since count($someStdClass) will always return 1, and not the number of object members.
2010-01-23 15:46:01 -08:00
Bharat Mediratta
3ed7a5af46
Rename I18n to Gallery_I18n to avoid conflict with Kohana 2.4
2009-11-24 19:24:02 -08:00
Tim Almdal
9297325c27
Minor changes to more closely align this branch with master
2009-10-23 06:52:08 -07:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-22 13:11:03 -07:00
Tim Almdal
78ee4193b7
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16 10:06:58 -07:00
Tim Almdal
00eacd659f
Start simplifying the interface by moving the static methods from user.php and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-16 08:53:31 -07:00
Tim Almdal
df302d28e6
remove duplicate function definition
2009-10-13 13:05:37 -07:00
Tim Almdal
1f9d45861d
Merge branch 'master' into talmdal_dev
...
Conflicts:
modules/gallery/helpers/gallery_block.php
modules/gallery/helpers/gallery_theme.php
modules/gallery/helpers/user.php
modules/user/helpers/user_event.php
2009-10-13 12:53:33 -07:00
Tim Almdal
2c711d8908
refactor locale related functionality out of the user module and into the gallery module.
2009-10-13 12:33:00 -07:00
Tim Almdal
7f38d6ff29
Change the focus of the user module from providing user/group management to providing the default Identity implementation.
...
* Remove the user_event callbacks and move them to the gallery_event callbacks. This will insure that the active user is always loaded (because the gallery callbacks are always called first) to its available to other gallery_ready handlers. Moved the method set_request_locale to the locales helper as it is more related to locales.
* Move the user controllers and views into the gallery module.
* Move the theme and block processing out of the user module and into core.
2009-10-06 18:30:12 -07:00
Andy Staudacher
59eadacc67
Improve language preference (Acccept-Language header matching): Boost same-language match over exact locale match for lower qvalue.
2009-09-15 11:19:32 -07:00
Andy Staudacher
b3d0cb5a4c
Bugfixes for locales::locale_from_http_request(), and adding tests.
...
(And the tests should illustrate that kohana 2.4's API doesn't quite fit our purpose of simply getting the best match between the accepted (client) and the installed (g3) locales.)
2009-09-05 18:55:44 -07:00
Bharat Mediratta
49de9bba68
Add @todo to replace locales::locale_from_http_request()
...
request::accepts_language() when we upgrade to Kohana 2.4
2009-09-04 20:19:15 -07:00
Andy Staudacher
001623c755
Add new locale preferences: Adding per session (cookie) locale preferences and check the browser's / OS' locale preferences.
...
Ticket 582.
2009-09-04 11:06:20 -07:00
Bharat Mediratta
df22832a5b
Rename "locale" helper to "locales" to avoid conflicting with PHP 5.3.
...
Fixes ticket #194
2009-07-17 18:35:06 -07:00