Commit Graph

410 Commits

Author SHA1 Message Date
Bharat Mediratta
6883762238 Completely task-ify the localization scanning code and restore the
incoming_translation key cache.  The only part of this that is not
broken down is the l10n_client::fetch_updates() part.
2009-04-02 23:56:00 +00:00
Chad Kieffer
a57d0d93a8 Add quick edit pane to resize images, ticket #189 2009-03-31 05:14:40 +00:00
Bharat Mediratta
a142aee609 Convert language updates over to task form. It's still very rough,
the task only has one step from zero to 100.
2009-03-26 07:10:47 +00:00
Bharat Mediratta
15eb1a9c8d Replace iterators with stack based scanner, which we can serialize into the task context. 2009-03-26 06:32:48 +00:00
Bharat Mediratta
09243aa72e Normalize code style. 2009-03-26 04:44:12 +00:00
Bharat Mediratta
78943402b2 Convert the L10n scanner from a library to a helper.
In order to make the class static, I had to remove the index cache.
I'll restore that and cache the index keys in the task context in a
subsequent change.  For now, I've put in a @todo to add the caching
back in.
2009-03-26 04:36:00 +00:00
Tim Almdal
96df4419f4 Revert r20492 2009-03-26 03:17:11 +00:00
Bharat Mediratta
11bfacba08 Normalize exception format. 2009-03-26 03:02:18 +00:00
Bharat Mediratta
e3aab08f8d Fix typo, whitespace. 2009-03-26 02:50:50 +00:00
Tim Almdal
944276fdfe Fix for ticket #184. Set the default album sort order to "Title" 2009-03-25 17:21:11 +00:00
Bharat Mediratta
0a4bce3f67 Remove debug line. 2009-03-25 02:13:01 +00:00
Bharat Mediratta
d432cba2cb change version from "3.0 Alpha 3" to "3.0 pre-beta svn" 2009-03-24 21:09:37 +00:00
Andy Staudacher
ed7175092c Refactor all translation strings that have ambiguous placeholders.
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'.

Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with 
preserving CSS classes too...
2009-03-21 07:44:46 +00:00
Bharat Mediratta
06baa24dd6 Set our version to 3.0 Alpha 3 and add 'logs' as a dir we create at install time 2009-03-20 08:21:43 +00:00
Bharat Mediratta
61d8a143ea Rejigger the way we do reinstalls while Kohana is running.
core_installer::install() now takes an $initial_install param that
allows us to enforce that we're doing a clean install.  Use this in
both the scaffolding and the unit test code.

Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-19 02:35:51 +00:00
Tim Almdal
6b5d395d59 Fix for ticket #153. The sort column was not not initialized for
movies or photos.  Turns out that when you go to delete, ORM tries to
check for children and apply the sort order.
2009-03-18 19:39:34 +00:00
Tim Almdal
30cb537c31 Fix failed unit test: private methods are required to begin with an underscore(_) 2009-03-18 16:45:18 +00:00
Tim Almdal
d2006069bb Remove trailing ?> 2009-03-18 16:36:57 +00:00
Tim Almdal
9d65379160 Remove semi-colons from single sql statements and correct anoter
instance of {items` which won't get prefixed properly
2009-03-18 03:36:18 +00:00
Andy Staudacher
222f6e2e23 Functional l10n_client / server interaction:
- Get / verify API Key from l10n server
 - Submit translations
 - Fetch translations / updates

Reference: Tasks: 75, 76, 55

TODO: Move out of core (and a series of other tasks).
2009-03-18 00:53:44 +00:00
Bharat Mediratta
1ab5a76924 Treat calls to install() with TEST_MODE set to be initial installs. At least for now. 2009-03-17 18:17:55 +00:00
Bharat Mediratta
8458eba279 Switch the locale::$locales data structure to be an array instead of a
stdClass because we're not allowed to asort() stdClass objects in PHP
5.2.6.
2009-03-16 09:08:12 +00:00
Bharat Mediratta
6f0ddb4057 Set the sort_column and sort_order for the root album 2009-03-16 08:48:34 +00:00
Bharat Mediratta
eac4e72a3b Oops, fix a typo. 2009-03-16 08:34:20 +00:00
Bharat Mediratta
54e07d0769 Get rid of the extra robust code we had in here to make the
scaffolding work when the Gallery wasn't installed yet.  Now we force
users through the installer.
2009-03-16 08:05:07 +00:00
Bharat Mediratta
c3e70ecfa6 Initialize $result in get_html() 2009-03-16 08:01:46 +00:00
Bharat Mediratta
144b8f4f47 Don't count on the uri having 3 components; that breaks on newer versions of PHP. 2009-03-16 07:45:32 +00:00
Bharat Mediratta
16b1df4f67 Illegal use of $this in static function site(). Replace with $theme. 2009-03-16 07:40:57 +00:00
Tim Almdal
0bc64efa4a Thin down the scaffolding code so that all that is there is the test
data creation and the packaging code.  The rest ofthe functionality is
either no longer required, or moved to the developer module (MPTT
Tree).
Also provide checking for the active user to be an admin.
2009-03-16 03:50:57 +00:00
Tim Almdal
abdab49aef Move the start/stop translating menu item to the admin menu 2009-03-15 22:45:16 +00:00
Tim Almdal
bf4cd1b813 Move profiling and debugging out of the scaffolding and into the
developer module.
2009-03-15 20:35:24 +00:00
Bharat Mediratta
51a16d38b8 style fixes 2009-03-14 18:43:10 +00:00
Tim Almdal
cb3d39fe62 Invert the check for https vs http. 2009-03-14 01:57:37 +00:00
Tim Almdal
2ad27663cb Remove event handlers that are are no longer called (start_batch and end_batch) 2009-03-12 18:16:13 +00:00
Bharat Mediratta
30239ed302 $task_definitions -> $task_def 2009-03-11 03:29:12 +00:00
Tim Almdal
8da729cfa1 Refine the task api but removing the optional parameters on the
task::create method call
2009-03-11 03:14:52 +00:00
Tim Almdal
2ce44b6b08 Fix the Var_Test by making sure that the cache is cleared or updated
when a variable is set or cleared.
2009-03-11 00:27:17 +00:00
Bharat Mediratta
068c44e201 access::allow/deny/reset functions will now throw an exception if you
don't pass in a Group_Model as the argument.  This prevents us from
setting permissions on the wrong group by accidentally passing in a
User_Model.
2009-03-10 20:34:32 +00:00
Tim Almdal
5342578e6d Minor change to the task api with the addition of two optional
parameters. The first allows the specification of a task name.
Non-maintenance tasks are not defined as part of availabl_tasks so we
can't get the name from the task definitions. The 2nd allows the
specification of a context when the task is completed.
2009-03-10 13:53:59 +00:00
Bharat Mediratta
9d4769da87 Add profiling/debugging switches in the Scaffold menu. 2009-03-10 06:45:55 +00:00
Tim Almdal
c0375db79f Restructure the sort order to maintain the sort column and sort order
as two separate columns in the item table.
2009-03-09 13:30:22 +00:00
Bharat Mediratta
f32f1697c9 Get rid of Task_Definition types: they're not necessary. This
incidentally fixes the the problem that admin/maintenance tasks have
been broken.
2009-03-09 07:02:09 +00:00
Bharat Mediratta
4fed34873a Don't let graphics::resize() upscale images.
Fixes ticket #117.
2009-03-09 06:59:05 +00:00
Bharat Mediratta
2aaf263b9e On second thought, make the description column varchar(2048) instead.
If I understand correctly, this is better for performance.  I could be
wrong here, though.
2009-03-09 03:33:49 +00:00
Bharat Mediratta
1ad7ca639d Make the description a text column so that we can handle much larger
descriptions.
2009-03-09 03:29:22 +00:00
Bharat Mediratta
445f18fb51 Tweak abs_file() and abs_site() to generate https urls as appropriate.
Fixes ticket #125
2009-03-09 02:07:58 +00:00
Bharat Mediratta
198297e0d4 Instead of putting after_install in the url, put it in the session.
This helps us to make sure that we only see the welcome message once.
2009-03-09 00:03:04 +00:00
Bharat Mediratta
72c7fed975 Log the user in as admin after running the web installer, and give
them a nice "Welcome to Gallery 3" dialog.  The text in there needs a
little work but it's a start.

In the process, re-build the install.sql using the scaffolding code.
2009-03-08 21:21:09 +00:00
Tim Almdal
8f1e90d837 Update sort order processing per Bharat's feedback
* Remove mime type and type as sortable fields
* Change the internal representation to serialized array
* Shorten the database field to varchar(64)
2009-03-08 19:10:08 +00:00
Tim Almdal
39954ad0b7 Implement Sortable albums. Current sort fields include (Creation
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-08 16:29:01 +00:00