Andy Staudacher
dce6548431
Add local localization functionality. Local = no means to upload / download translations to a translation server yet.
...
- Added an outgoing_translations table to store translations from the local translation UI.
- I18n class is checking incoming_ and outgoing_translations for translations, giving the latter priority.
- Not handling plural strings in the translations UI yet.
2009-02-09 08:42:13 +00:00
Andy Staudacher
fa1f49d99a
Adding translation UI. Not backed by any model yet (submissions are ignored).
...
The code is based on the l10n_client module from Drupal 6, by Gabor Hojtsy (http://drupal.org/user/4166 ).
2009-02-09 07:29:24 +00:00
Bharat Mediratta
b31c79a71f
Fix a bug that I think I introduced in my last sendmail refactor where
...
I inverted the expectations on the result from mail() causing image
uploads to fail (even though the mail gets sent!)
2009-02-08 20:01:15 +00:00
Tim Almdal
8a738ed241
Correct comment on factory
2009-02-06 22:10:08 +00:00
Tim Almdal
80d4df3a4a
Convert all item->type == "album" to item->is_album()
...
Convert all item->type == "photo" to item->is_photo()
2009-02-06 03:47:36 +00:00
Chad Kieffer
c166042313
Apply default link styles to links in dialogs, including the Forgot Password link.
2009-02-06 01:47:42 +00:00
Bharat Mediratta
1894a673bf
Move test-related extensions to Sendmail into a subclass that we only
...
use in the test code (Sendmail_For_Test).
2009-02-05 07:51:11 +00:00
Bharat Mediratta
9e2b84d406
Minor code style changes.
2009-02-05 05:52:03 +00:00
Bharat Mediratta
cf45795525
Doh! Fix a bug in add_after() that caused it to drop the item we were adding it after.
2009-02-03 09:42:07 +00:00
Andy Staudacher
4842df9dc9
Do 1 DB query for l10n per HTTP request (per locale), not one per t() call.
2009-02-02 06:32:42 +00:00
Tim Almdal
41dbe5cf6c
Changed the Sendmail library to allow the separator between mail
...
headers to be specified as a parameter. The documents say that it
should be "\r\n". Some sendmail programs seem to violate the
specification and get confused. In these cases the header separator
is just "\n".
This change allows the header separator to be set by the a
configuration parameter.
2009-02-02 02:58:12 +00:00
Tim Almdal
d49484c9a6
Update the handling of the to field if the input field is an array
2009-02-01 03:55:40 +00:00
Tim Almdal
7239a4d8bc
Add the ability to generate the id parameter on Menu Dialog.
2009-01-29 18:25:14 +00:00
Bharat Mediratta
ad82721c3b
Fix an off-by-one issue-- the destination level is the target's child, not the target itself.
2009-01-29 03:17:09 +00:00
Bharat Mediratta
01d81ec6b4
Update the level when moving items
2009-01-29 02:57:29 +00:00
Bharat Mediratta
43b30c0ee2
Add Menu::add_after()
2009-01-28 19:25:01 +00:00
Tim Almdal
66fae63558
Create a sendmail library to wrap the call to the system sendmail
...
facility. Something quirky is happening in the first test, see comment
in code, but I couldn't figure it out. Left a @todo for now.
2009-01-28 04:22:59 +00:00
Bharat Mediratta
eed57674f9
Add move support. Use the move icon in the quick pane. You can't
...
move an item into its own hierarchy, or into an album where you don't
have edit permission.
2009-01-24 05:14:44 +00:00
Bharat Mediratta
cd6629ad23
Add support for parenthetical grouping to Database queries. Turns out
...
that this is something they kind of want for Kohana :-)
Upstream ticket for this change: http://dev.kohanaphp.com/ticket/1070
2009-01-23 08:07:37 +00:00
Bharat Mediratta
3d1ea2904d
Rename theme callback helpers from xxx_block to xxx_theme to make room
...
for us to rename the dashboard helper to be a block helper since
sidebar blocks are not just in the dashboard.
2009-01-18 05:01:00 +00:00
Bharat Mediratta
622da5f3cd
Rename Task to Task_Definition to avoid confusion with Task_Model.
...
Order the finished tasks by update time in the task list.
2009-01-16 05:01:22 +00:00
Bharat Mediratta
2352dd162a
Break task definitions out into the <module>_task helper and create a
...
Task library class as a data structure to hold task definitions.
2009-01-16 04:31:41 +00:00
Andy Staudacher
e4a9b19bf9
Changing t() placeholder syntax from {{replace_me}} to %replace_me.
2009-01-15 10:02:41 +00:00
Andy Staudacher
e53916dd06
Simplifying the way t() is called. Refactoring localization function t($message, $options=array()) into 2 separate functions:
...
- the new t($message, $options=array()) is for simple strings, optionally with placeholder interpolation.
- t2($singular, $plural, $count, $options=array()) is for plurals.
2009-01-15 09:30:15 +00:00
Bharat Mediratta
35a529cd86
Change admin/themes to show both styles of themes side by side. This
...
eliminates the menu, which is kind of clunky.
While I'm at it, let's call the "regular" themes a "site theme" so we
have "site" and "admin" themes.
2009-01-13 10:53:06 +00:00
Bharat Mediratta
1341d13ca5
Reverse the last change; forgot that {$key} is treated specially
...
inside a string. We could do "{{{$key}}}" but that's misleading.
2009-01-13 04:02:41 +00:00
Bharat Mediratta
174ea7cc9a
Use variable interpolation to reduce code size
2009-01-13 03:53:31 +00:00
Bharat Mediratta
ff6791f576
Models should be named in adjective_noun form to make pluralizatoin
...
more intuitive.
Renamed Translations_Incoming to Incoming_Translation to suit.
2009-01-13 01:05:11 +00:00
Bharat Mediratta
bc421a615a
Implement deleting dashboard blocks.
...
* Refactor blocks so that they have a separate id vs css_id. This way
we can have a unique identifier for each visual block.
* Store blocks with a random id as their unique identifier
* Add Admin_Dashboard::remove_block() and modify
themes/admin_default/views/block.html.php to call it when you click the
remove box.
2009-01-12 08:26:38 +00:00
Bharat Mediratta
b19729435c
Dashboard blocks are now data driven, and you can add new blocks to
...
both the sidebar and the center content area from a dropdown at the
top of the dashboard sidebar.
2009-01-12 07:39:53 +00:00
Bharat Mediratta
46b976819d
Deleted unused MY_Form_Radio
2009-01-11 21:36:24 +00:00
Bharat Mediratta
2f9eae867c
Let admins override the theme with a query param
2009-01-11 00:19:00 +00:00
Bharat Mediratta
9b90b4b0cd
Use the theme's avatar as the default if Gravatar doesn't have one.
2009-01-10 06:18:35 +00:00
Andy Staudacher
a631fe29f3
i18n refactoring: Rename all _() (reserved by gettext) calls to t().
...
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Andy Staudacher
2917740ba6
First step of i18n refactoring:
...
- Using DB table translations_incomings as translations storage (file cache to be added)
- Removed overly complex i18n code which will be unnecessary with the future compiled cache files
- Added t() as a translation function (global refactoring from _() to t() to follow)
2009-01-08 06:52:18 +00:00
Bharat Mediratta
97bf6761b2
Properly implement 'root' as a legal factory type
2009-01-07 09:07:45 +00:00
Bharat Mediratta
dedda72297
Add 'root' as a legal factory type
2009-01-07 09:05:30 +00:00
Bharat Mediratta
294db39c96
Tabs -> spaces
2009-01-06 00:12:54 +00:00
Bharat Mediratta
625d078557
Extend Theme_View to look in modules for photo and album menus. Move
...
"view comments" link to the comment menu helper.
2009-01-04 07:40:37 +00:00
Chad Kieffer
f7f2fa10cd
Started to wire up album and photo view menus. Need photo's parent album link added. Also need add the slideshow link to the menu.
2009-01-04 03:43:12 +00:00
Bharat Mediratta
ecdfd1590d
fix line endings
2009-01-02 01:23:41 +00:00
Felix Rabinovich
64d6f9aea6
Standard Forge Library doesn't support radio buttons.
...
Added support from http://forum.kohanaphp.com/comments.php?DiscussionID=164
2009-01-01 22:57:17 +00:00
Bharat Mediratta
7c82691e00
Move debug CSS into core/css/debug.css, and enable it for admin themes also
2009-01-01 00:16:08 +00:00
Bharat Mediratta
a481a684b6
Add a "Graphics Settings" page that lets admins choose which graphics
...
toolkit we use. We only allow users to use one toolkit. The UI needs
work!
2008-12-30 04:14:57 +00:00
Bharat Mediratta
d7d37d07dd
Add site_status() to the regular Theme_View
2008-12-30 04:13:31 +00:00
Bharat Mediratta
b46bfdd492
Separate permanent messages out of the message helper and put them
...
into site_status. Show site status in the header in the admin theme.
2008-12-29 00:35:31 +00:00
Felix Rabinovich
82ed38d78e
Ajaxify 'add users'
2008-12-25 20:59:33 +00:00
Bharat Mediratta
c7193f9b2e
Normalize our Admin controllers so that functions always print out
...
their results, as opposed to having them return their view back
upstream. This is a little more code in every controller, but it's
much less magical and more consistent.
Look up the active_theme and active_admin_theme inside the view
itself, no need to do that in the controllers. This makes view
initialization easier in the controllers.
2008-12-24 04:22:22 +00:00
Bharat Mediratta
8f1cd010c0
Reload parent after adding a new item since the left/right pointers have changed.
2008-12-23 06:10:06 +00:00
Bharat Mediratta
bdc0876fa8
Add messaging system for reporting actions back to the user. Make
...
module install/uninstall work and tie it into the messaging system.
2008-12-22 06:50:20 +00:00