-------- Original-Nachricht --------
> Datum: Thu, 06 Aug 2009 16:54:53 +0200
> Von: Julien Valroff <jul...@kirya.net>
> An: dspam-devel@lists.sourceforge.net
> Betreff: Re: [Dspam-devel] Template translations

> Hi again,
> 
> Le jeudi 06 août 2009 à 09:51 +0200, Julien Valroff a écrit :
> > Hi,
> > 
> > As promised, I am working on the template translation into French.
> > 
> > Some strings are however hardcoded in the cgi ("Empty", "Administrative
> > suite")
> > 
> [...]
> 
> > I can provide a patch if this is a correct workaround, but would prefer
> > your feedback before.
> 
> I couldn't wait as I was impatient to test my translation...
> 
:)


> Here is the patch proposal to remove hardcoded strings from the cgi, and
> load them from a strings.txt file.
> 
Two small errors:
+$LANG{'history_show'}                   = "Afficher&nbsp;";
+$LANG{'history_show_all'}               = "tous";

Beside that I see no issues so far. Another approach could be to use a hash of 
hashes. Aka:
my $LANG = {};
$LANG->{'EN'} = {
 'empty' => "Empty",
 'admin_suite' => "Administrative Suite",
 'alert_name' => "Alert Name",
 'remove_alert' => "Remove",
 'user_form' => "Statistical SPAM Protection for",
 'user_form_submit' => "Change",

 'option_disable_filtering' => "Disable DSPAM filtering",
 'option_enable_filtering' => "Enable DSPAM filtering",

 'quarantine_rating' => "Rating",
 'quarantine_date' => "Date",
 'quarantine_from' => "From",
 'quarantine_subject' => "Subject",

 'history_show' => "Show",
 'history_show_all' => "all",
 'history_show_spam' => "spam",
 'history_show_innocent' => "innocent",
 'history_show_virus' => "virus",
 'history_show_whitelisted' => "whitelisted",
 'history_retrain_as_spam' => "spam",
 'history_retrain_as_innocent' => "innocent",
 'history_retrain_as' => "As ",
 'history_retrain_undo' => "Undo",
 'history_retrained' => "Retrained",
 'history_label_resend' => "Resend",
 'history_label_whitelist' => "Whitelist",
 'history_label_spam' => "SPAM",
 'history_label_innocent' => "Good",
 'history_label_miss' => "Miss",
 'history_label_virus' => "Virus",
 'history_label_RBL' => "RBL",
 'history_label_block' => "BLOCK",
 'history_label_corpus' => "Corpus",
 'history_label_unknown' => "UNKN",
 'history_label_error' => "Error",

 'error_no_historic' => "No historical data is available.",
 'error_cannot_open_log' => "Unable to open logfile",
 'error_no_identity' => "System Error. I was unable to determine your 
identity.",
 'error_invalid_command' => "Invalid Command",
 'error_cannot_write_prefs' => "Unable to write preferences",
 'error_no_sigid' => "No Message ID Specified",
 'error_no_alert_specified' => "No Alert Specified.",
 'error_message_part1' => "The following error occured while trying to process 
your request:",
 'error_message_part2' => "If this problem persists, please contact your 
administrator.",
 'error_filesystem_scale' => "Unable to determine filesystem scale",
 'error_load_default_prefs' => "Unable to load default preferences",
 'error_access_denied' => "Access Denied",

 'graph_legend_nb_messages' => "Number of Messages",
 'graph_legend_spam' => "SPAM",
 'graph_legend_good' => "Good",
 'graph_legend_inoculations' => "Inoculations",
 'graph_legend_corpusfeds' => "Corpusfeds",
 'graph_legend_virus' => "Virus",
 'graph_legend_RBL' => "Blacklisted (RBL)",
 'graph_legend_blocklisted' => "Blocklisted",
 'graph_legend_whitelisted' => "Auto-Whitelisted",
 'graph_legend_nonspam' => "Nonspam",
 'graph_legend_spam_misses' => "Spam Misses",
 'graph_legend_falsepositives' => "False Positives",
};



> Cheers,
> Julien
>
Steve
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

------------------------------------------------------------------------------
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

Reply via email to