Deepayan, Doug,

Here is a diff for nlme that came up when Chris was working on the
translation. See below for his rationale and original comment, I just cut and
pasted the diff again hoping it'll surive mail transfer.

Original at http://bugs.debian.org/528215 as well.

Cheers, Dirk


----------------------------------------------------------------------
diff -ru nlme/R/corStruct.R nlme.ReduceTranslation/R/corStruct.R
--- nlme/R/corStruct.R  2008-02-11 15:05:14.000000000 +0100
+++ nlme.ReduceTranslation/R/corStruct.R        2009-05-11 10:04:08.000000000 
+0200
@@ -2144,7 +2144,7 @@
        }
       }
       if ((val[2] <= 0) || (val[2] >= 1)) {
-       stop("Initial value of nugget ratio must be in (0,1)")
+       stop("Initial value of nugget ratio must be between 0 and 1")
       }
     } else {                           # only range parameter
       if (length(val) != 1) {
Nur in nlme.ReduceTranslation/R: corStruct.R~.

----------------------------------------------------------------------
diff -ru nlme/R/gnls.R nlme.TypoFixes/R/gnls.R
--- nlme/R/gnls.R       2008-02-18 09:47:09.000000000 +0100
+++ nlme.TypoFixes/R/gnls.R     2009-05-11 10:15:04.000000000 +0200
@@ -271,7 +271,7 @@
   }
   pLen <- length(pn)
   if (length(start) != pLen)
-    stop ("starting values for parameters are not the correct length")
+    stop ("starting values for parameters are not of the correct length")
   spar <- start
   names(spar) <- pn
   NReal <- sum(naPat)
Nur in nlme.TypoFixes/R: gnls.R~.
diff -ru nlme/R/nlme.R nlme.TypoFixes/R/nlme.R
--- nlme/R/nlme.R       2007-07-27 11:26:37.000000000 +0200
+++ nlme.TypoFixes/R/nlme.R     2009-05-11 10:12:49.000000000 +0200
@@ -523,7 +523,7 @@
   }
   fLen <- length(fn)
   if (length(sfix) != fLen)
-    stop ("starting values for the fixed component are not the correct length")
+    stop ("starting values for the fixed component are not of the correct 
length")
   names(sfix) <- fn
   ##
   ## Random effects names
Nur in nlme.TypoFixes/R: nlme.R~.


On 11 May 2009 at 14:49, Chris Leick wrote:
| Hi,
| 
| The following patch should fix some errors and oddities.
| 
| 
| ReduceTranslation.diff:
| R/corStruct.R:  stop("Initial value of nugget ratio must be between 0 
| and 1")
| R/corStruct.R:  stop("Initial value of nugget ratio must be in (0,1)")
| R/corStruct.R:  stop("Initial value of nugget ratio must be between 0 
| and 1")
| 
| This string need to be translated independently and it is possible to
| reduce these to a single string to reduce translators work.
| 
| 
| TypoFixes.diff:
| 
| Patch fixes a grammatical error (missing "of")
| 
| Greetings,
| Chris
| 
| ----------------------------------------------------------------------
| diff -ru nlme/R/corStruct.R nlme.ReduceTranslation/R/corStruct.R
| --- nlme/R/corStruct.R        2008-02-11 15:05:14.000000000 +0100
| +++ nlme.ReduceTranslation/R/corStruct.R      2009-05-11 10:04:08.000000000 
+0200
| @@ -2144,7 +2144,7 @@
|       }
|        }
|        if ((val[2] <= 0) || (val[2] >= 1)) {
| -     stop("Initial value of nugget ratio must be in (0,1)")
| +     stop("Initial value of nugget ratio must be between 0 and 1")
|        }
|      } else {                         # only range parameter
|        if (length(val) != 1) {
| Nur in nlme.ReduceTranslation/R: corStruct.R~.
| 
| ----------------------------------------------------------------------
| diff -ru nlme/R/gnls.R nlme.TypoFixes/R/gnls.R
| --- nlme/R/gnls.R     2008-02-18 09:47:09.000000000 +0100
| +++ nlme.TypoFixes/R/gnls.R   2009-05-11 10:15:04.000000000 +0200
| @@ -271,7 +271,7 @@
|    }
|    pLen <- length(pn)
|    if (length(start) != pLen)
| -    stop ("starting values for parameters are not the correct length")
| +    stop ("starting values for parameters are not of the correct length")
|    spar <- start
|    names(spar) <- pn
|    NReal <- sum(naPat)
| Nur in nlme.TypoFixes/R: gnls.R~.
| diff -ru nlme/R/nlme.R nlme.TypoFixes/R/nlme.R
| --- nlme/R/nlme.R     2007-07-27 11:26:37.000000000 +0200
| +++ nlme.TypoFixes/R/nlme.R   2009-05-11 10:12:49.000000000 +0200
| @@ -523,7 +523,7 @@
|    }
|    fLen <- length(fn)
|    if (length(sfix) != fLen)
| -    stop ("starting values for the fixed component are not the correct 
length")
| +    stop ("starting values for the fixed component are not of the correct 
length")
|    names(sfix) <- fn
|    ##
|    ## Random effects names
| Nur in nlme.TypoFixes/R: nlme.R~.

-- 
Three out of two people have difficulties with fractions.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to