On Tue, 24 Nov 2009 17:27:37 +0000 Paul Cockings <ds...@cytringan.co.uk> wrote:
> Stevan Bajić wrote: > > > > > > For simplicity I added the translations currently available in the repo > > only with they language code (the characters before the "-") but the code > > is prepared to handle anything. Even things like en_US, en_GB, whatever... > > and nothing in the current code needs to be changed for handling that :) > > > > > So I can go ahead and add en-GB folder and if the browser is set to > en-GB it will find these files instead of using webui/cgi-bin/templates/* ? > No. You can not add "en-GB" because of this here: my $langlist = lc($ENV{'HTTP_ACCEPT_LANGUAGE'})||''; See that lc? This means LowerCase the HTTP variable HTTP_ACCEPT_LANGUAGE. So in order to have it working you need to add that directory in lOwErCaSe :) To have a British English template just create a directory under templates and call that directory "en-gb" and put your Brithish English translation there. And then you need to instruct your browser of choice to have en-GB in the list of accepted languages. Keep in mind that the code I added to configure.pl will honor the order of your languages. So should you have first de-DE in your language list then the WebUI will display in German. The order is important :) > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Dspam-devel mailing list > Dspam-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspam-devel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel