Hi. While ago i translate the whole UI of dspam to Spanish, then reject my contribution in this time.
I could translate again all the UI Templates to the new version. if i'm translate now, the translation was put on the release at this time? if this is positive i'm finish the translation today. thanks. edgar On Thu, 06 Aug 2009 09:51:19 +0200, Julien Valroff <jul...@kirya.net> wrote: > Hi, > > As promised, I am working on the template translation into French. > > Some strings are however hardcoded in the cgi ("Empty", "Administrative > suite") > > As a very simple workaround, I would propose the following method: > * Add a > require "$CONFIG{'TEMPLATES'}/strings.txt"; > to the cgi > * Declare %LANG in the cgi > * Add a strings.txt file to all templates directory, containing for > English: > > #!/usr/bin/perl > > $LANG{'empty'} = "Empty"; > $LANG{'admin_suite'} = "Administrative Suite"; > > 1; > > * replace hardcoded strings by their matching variables, eg: > - $f = "Empty"; > + $f = $LANG{'empty'}; > > Each template directory should have this strings.txt file (or we might > choose to fallback to English in case the file doesn't exist?). > > I can provide a patch if this is a correct workaround, but would prefer > your feedback before. > > Cheers, > Julien > > > ------------------------------------------------------------------------------ > 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