[jifty-devel] [Jifty-commit] r5160 - in jifty/trunk: share/plugins/Jifty/Plugin/AdminUI/web/templates/__jifty/admin/fragments/list
Jesse Vincent
jesse at bestpractical.com
Fri Feb 22 09:08:55 EST 2008
There's actually a way to specify this inside the loc string, which
will work better across multiple languages.
perldoc Locale::Maketext
Best,
Jesse
On Feb 22, 2008, at 3:13 AM, Jifty commits wrote:
> Author: sartak
> Date: Fri Feb 22 03:13:34 2008
> New Revision: 5160
>
> Modified:
> jifty/trunk/ (props changed)
> jifty/trunk/share/plugins/Jifty/Plugin/AdminUI/web/templates/
> __jifty/admin/fragments/list/list
>
> Log:
> r52009 at onn: sartak | 2008-02-22 03:13:19 -0500
> Get rid of the warn select_query on adminui search
> Display "1 entry" instead of "1 entries"
>
>
> Modified: jifty/trunk/share/plugins/Jifty/Plugin/AdminUI/web/
> templates/__jifty/admin/fragments/list/list
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- jifty/trunk/share/plugins/Jifty/Plugin/AdminUI/web/templates/
> __jifty/admin/fragments/list/list (original)
> +++ jifty/trunk/share/plugins/Jifty/Plugin/AdminUI/web/templates/
> __jifty/admin/fragments/list/list Fri Feb 22 03:13:34 2008
> @@ -46,7 +46,6 @@
> $collection->order_by(column => $sort_by, order=>'DESC') if
> ($sort_by && $order);
> } else {
> $collection = $search->content('search');
> - warn $collection->build_select_query;
> }
>
> $collection->set_page_info( current_page => $page,
> @@ -84,7 +83,12 @@
> % if ($collection->pager->total_entries == 0) {
> <% _('No items found') %>
> % } else {
> +% if ($collection->pager->total_entries == 1) { # totally the wrong
> way to do it, but this was irritating me
> + <% _('1 entry') %>
> +% } else {
> <% _('%1 entries', $collection-> count) %>
> +% }
> +
> <& $list_path.'header', object_type => $object_type, list_path =>
> $list_path,
> mask_field => $limit_field, mask_val => $limit_val, sort_by =>
> $sort_by, order => $order &>
> % }
> _______________________________________________
> Jifty-commit mailing list
> Jifty-commit at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-commit
>
More information about the jifty-devel
mailing list