From: Eoghan Ó C. <eog...@gm...> - 2010-11-23 13:18:13
|
Hi, If there is going to be considerable difference in how the different languages are displayed, one option would be to have different themes for each. This functionality isn't in the VuFind trunk, but this JIRA ticket has some sample code: http://vufind.org/jira/browse/VUFIND-50. You would need to add some code to ensure that only the appropriate language file loaded for a given theme. You can see Luke O'Sullivan's implementation of theme switching here: https://ifind.swwhep.ac.uk/ <https://ifind.swwhep.ac.uk/%20> If you're only going to use two languages & there are only relativley minor differences in layout etc, you may be able to handle it in the smarty templates. e.g. <ul class="{if $userLang == 'ga'}mainNavGa{else}mainNav{/if}">. I did this in our catalogue ( http://catalogue.nli.ie) as sometimes the display of the Irish version needed some sytlistic tweaks. This works well for switching a few css class names, or for using different sub-templates as includes for static pages (eg {if $userLang == 'ga'}{include file="About/about_text_ga.tpl"}{else}[default text]{/if}, see http://catalogue.nli.ie/About/Home), but it would be messy to maintain for anything more than that. Hope this helps, Eoghan 2010/11/23 Tulie Amichal <tu...@ma...> > Hi > > We're looking into implementing vufind with both an English interface and a > Hebrew one. I saw the built in translations but am wondering if there is any > way to have two sets of templates as I want to change the HTML itself to > allow different layouts of the page. > > Thanks > Tulie > > -- > Tulie Amichal > Information Systems Analyst > MALMAD > Office: 03-6460554 > tu...@ma... > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Vufind-tech mailing list > Vuf...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-tech > > |