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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel