translated new messages and added variable part in format

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@809404 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2009-08-30 19:21:29 +00:00
parent e89db38df8
commit b91ed85747
2 changed files with 7 additions and 1 deletions

View File

@ -62,6 +62,12 @@ public class MessagesResources_fr
" {5} ({6}), {7} ({8}), {9} ({10}), {11} ({12}), {13} ({14}), {15} ({16})",
"m\u00e9thode d''arondi {0} invalide, m\u00e9thodes valides : {1} ({2}), {3} ({4})," +
" {5} ({6}), {7} ({8}), {9} ({10}), {11} ({12}), {13} ({14}), {15} ({16})" },
{ "Cannot normalize to an infinite value",
"impossible de normaliser vers une valeur infinie" },
{ "Cannot normalize to NaN",
"impossible de normaliser vers NaN" },
{ "Array contains an infinite element, {0} at index {1}",
"le tableau contient l''\u00e9l\u00e9ment infini {0} \u00e0 l''index {1}" },
// org.apache.commons.math.FunctionEvaluationException
{ "evaluation failed for argument = {0}",

View File

@ -1024,7 +1024,7 @@ public final class MathUtils {
for (int i = 0; i < len; i++) {
if (Double.isInfinite(values[i])) {
throw MathRuntimeException.createArithmeticException(
"Array contains an infinite element", values[i], i);
"Array contains an infinite element, {0} at index {1}", values[i], i);
}
if (!Double.isNaN(values[i])) {
sum += values[i];