Tim Almdal
c04ff8e02f
Change the pattern to identify tables that need prefix substitution to
...
mirror the drupal pattern of using braces {}.
2009-02-28 06:37:28 +00:00
Tim Almdal
bd15853708
This implements table prefix for all the queries in core, user, exif,
...
tag, search, comment and notification modules (Ticket #68 )
2009-02-27 21:07:18 +00:00
Tim Almdal
dc4f784558
* Refactor task management methods from admin_maintenance.php to
...
task.php
* Added a owner_id field to the task database
* Modified the admin maintenace to show the owner of the task
<<**** Requires a reinstallation of core ****>>
2009-02-27 16:28:20 +00:00
Tim Almdal
ab973bd871
Replace the string [table_name] with {$prefix}table_name. Slowly
...
working through setting up the database access to support table
prefixes. (Ticket#68)
Before going ahead, just wanted to check this approach... whatcha think?
2009-02-27 03:25:29 +00:00
Bharat Mediratta
5702556499
Minor style changes.
2009-02-26 01:56:00 +00:00
Andy Staudacher
8bba897a46
Changing from binary(16) to char(32) as translation message key.
...
Although less efficient as a storage / transmission / comparison format, it's friendlier on the eyes and universally supported.
2009-02-23 06:33:10 +00:00
Andy Staudacher
d47e4c9b43
Adding a l10n scanner - scans for t() and t2() calls, inserts the extracted messages into incoming_translations.
...
See: https://apps.sourceforge.net/trac/gallery/ticket/74
2009-02-19 07:20:26 +00:00
Andy Staudacher
50b783e3a5
Change i18n message key to include the plural form (to ensure that it's truly unique).
2009-02-12 07:11:24 +00:00
Chad Kieffer
9bbe8053c7
Added a show comment form button. Add comment form is revealed when the button is clicked. Used jQuery UI Effect to .highlight() to bring attention to newly added comments. Also added a named anchor to our block library to allow direct linking/scrolling to those blocks on the page.
2009-02-12 07:07:11 +00:00
Andy Staudacher
b2f20ff766
style fixes (style for method names, style for vars in locale.php)
2009-02-10 06:12:16 +00:00
Andy Staudacher
62f3724acb
Adding UI for site language selection and user language preference.
2009-02-10 05:37:42 +00:00
Bharat Mediratta
78efd9bd3d
Remove extra blank lines
2009-02-10 04:57:39 +00:00
Andy Staudacher
c2eee47465
Move site default_locale into DB (vars) and add a per user locale preference.
...
There's no UI to select the locale yet.
2009-02-10 02:37:16 +00:00
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