From: Bharat M. <bh...@us...> - 2002-10-07 21:41:56
|
Update of /cvsroot/gallery/gallery2/layouts/classic/templates In directory usw-pr-cvs1:/tmp/cvs-serv15740/layouts/classic/templates Modified Files: albumBody.tpl singleThumbnail.tpl Log Message: * The internationalization/localization framework is complete. Modules and layouts that intend to use internationalizable content should now provide .po files containing all the strings that they use, so that these can be localized into .mo files for the specific module/layout. We have a framework (borrowed from Horde) which converts the .mo files into .po files and generally makes it easier to do the translations. I babelfished the Spanish translation for some of the pieces to prove that it works. Right now you have to set the admin's language to es_ES by hand in the database in order see the content localized into Spanish. * Fleshed out the modules getItem{Links,Summaries,Details} API a little more. * Added an admin-configurable Gallery-wide default language setting Index: albumBody.tpl =================================================================== RCS file: /cvsroot/gallery/gallery2/layouts/classic/templates/albumBody.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- albumBody.tpl 3 Oct 2002 04:47:22 -0000 1.4 +++ albumBody.tpl 7 Oct 2002 21:41:24 -0000 1.5 @@ -4,7 +4,10 @@ <table border="1" width="100%" cellspacing="0%" cellpadding="0%"> <tr> <td> - {galleryText text="%d items in this album" arg1=$totalChildCount} + {galleryText one="%d item in this album" + many="%d items in this album" + count=$totalChildCount + arg1=$totalChildCount} {if $totalPageCount > 1} {galleryText text="on %d pages" arg1=$totalPageCount} {/if} @@ -45,12 +48,12 @@ <tr> <td> - <table width="100%"> + <table border="0" width="100%"> {counter assign=child start=0 print=false} {section name=outer loop=$children step=$properties.columns} <tr> {section name=inner loop=$children start=$child max=$properties.columns} - <td align="center"> + <td valign="top" align="center"> {if $children[$child].entityType == 'galleryalbumitem'} {include file="albumThumbnail.tpl"} {else} Index: singleThumbnail.tpl =================================================================== RCS file: /cvsroot/gallery/gallery2/layouts/classic/templates/singleThumbnail.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- singleThumbnail.tpl 24 Aug 2002 22:31:13 -0000 1.1 +++ singleThumbnail.tpl 7 Oct 2002 21:41:24 -0000 1.2 @@ -17,3 +17,9 @@ {$children[$child].id} {/if} </a> + {if (!empty($children[$child].moduleSummaries)) } + {foreach from=$children[$child].moduleSummaries item=summary} + <br> + {$summary} + {/foreach} + {/if} |