[Libreoffice-commits] core.git: sc/inc sc/source
Lukas Röllin
lsroellin at gmail.com
Sat Feb 18 14:03:09 UTC 2017
sc/inc/datauno.hxx | 2 -
sc/source/core/tool/interpr3.cxx | 16 +++++++-------
sc/source/filter/inc/tool.h | 24 +++++++++++-----------
sc/source/ui/Accessibility/AccessibleDocument.cxx | 2 -
sc/source/ui/app/transobj.cxx | 2 -
5 files changed, 23 insertions(+), 23 deletions(-)
New commits:
commit fc2cc56178353fe67bbfdcf8b9392345343bb098
Author: Lukas Röllin <lsroellin at gmail.com>
Date: Fri Feb 17 22:54:16 2017 +0100
German comment translations
Change-Id: Ic6885cdc22a8353842502e681e08708cedf09f5c
Reviewed-on: https://gerrit.libreoffice.org/34381
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx
index 115d5e7..52c2604 100644
--- a/sc/inc/datauno.hxx
+++ b/sc/inc/datauno.hxx
@@ -90,7 +90,7 @@ public:
static void FillProperties(
css::uno::Sequence<css::beans::PropertyValue>& rSeq,
const ScSortParam& rParam );
- //! SortAscending muss aus der SheetSortDescriptor service-Beschreibung raus
+ //! SortAscending needs to get out of the SheetSortDescriptor service description
static long GetPropertyCount()
{
return 9; // TableSortDescriptor and SheetSortDescriptor
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index a6ef366..47625c5 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -1612,14 +1612,14 @@ void ScInterpreter::ScExpDist()
double x = GetDouble(); // x
if (lambda <= 0.0)
PushIllegalArgument();
- else if (kum == 0.0) // Dichte
+ else if (kum == 0.0) // density
{
if (x >= 0.0)
PushDouble(lambda * exp(-lambda*x));
else
PushInt(0);
}
- else // Verteilung
+ else // distribution
{
if (x > 0.0)
PushDouble(1.0 - exp(-lambda*x));
@@ -1756,10 +1756,10 @@ void ScInterpreter::ScWeibull()
double x = GetDouble(); // x
if (alpha <= 0.0 || beta <= 0.0 || x < 0.0)
PushIllegalArgument();
- else if (kum == 0.0) // Dichte
+ else if (kum == 0.0) // Density
PushDouble(alpha/pow(beta,alpha)*pow(x,alpha-1.0)*
exp(-pow(x/beta,alpha)));
- else // Verteilung
+ else // Distribution
PushDouble(1.0 - exp(-pow(x/beta,alpha)));
}
}
@@ -2613,14 +2613,14 @@ bool ScInterpreter::CalculateTest(bool _bTemplin
}
fT = fabs(fSum1/fCount1 - fSum2/fCount2)/sqrt(fS1+fS2);
double c = fS1/(fS1+fS2);
- // GetTDist wird mit GetBetaDist berechnet und kommt auch mit nicht ganzzahligen
- // Freiheitsgraden klar. Dann stimmt das Ergebnis auch mit Excel ueberein (#52406#):
+ // GetTDist is calculated via GetBetaDist and also works with non-integral
+ // degrees of freedom. The result matches Excel
fF = 1.0/(c*c/(fCount1-1.0)+(1.0-c)*(1.0-c)/(fCount2-1.0));
}
else
{
- // laut Bronstein-Semendjajew
- double fS1 = (fSumSqr1 - fSum1*fSum1/fCount1) / (fCount1 - 1.0); // Varianz
+ // according to Bronstein-Semendjajew
+ double fS1 = (fSumSqr1 - fSum1*fSum1/fCount1) / (fCount1 - 1.0); // Variance
double fS2 = (fSumSqr2 - fSum2*fSum2/fCount2) / (fCount2 - 1.0);
fT = fabs( fSum1/fCount1 - fSum2/fCount2 ) /
sqrt( (fCount1-1.0)*fS1 + (fCount2-1.0)*fS2 ) *
diff --git a/sc/source/filter/inc/tool.h b/sc/source/filter/inc/tool.h
index b6fb1c4..97624ad 100644
--- a/sc/source/filter/inc/tool.h
+++ b/sc/source/filter/inc/tool.h
@@ -24,9 +24,9 @@
#include <document.hxx>
#include <osl/diagnose.h>
-// Defaultwerte
-const sal_uInt8 nDezStd = 0; // Dezimalstellen fuer Standard-Zellen
-const sal_uInt8 nDezFloat = 2; // " " Float-Zellen
+// Default values
+const sal_uInt8 nDezStd = 0; // Decimal points for standard cells
+const sal_uInt8 nDezFloat = 2; // " " float cells
struct LotusContext;
@@ -47,8 +47,8 @@ typedef sal_uInt16 StampTyp;
class FormIdent
{
private:
- StampTyp nStamp; // Identifikations-Schluessel
- SfxUInt32Item* pAttr; // zugehoeriges Attribut
+ StampTyp nStamp; // ID key
+ SfxUInt32Item* pAttr; // associated attribute
public:
FormIdent( void )
{
@@ -85,12 +85,12 @@ public:
class FormCache
{
private:
- FormIdent aIdents[ nSize_ ]; //gepufferte Formate
+ FormIdent aIdents[ nSize_ ]; //buffered formats
bool bValid[ nSize_ ];
- FormIdent aCompareIdent; // zum Vergleichen
- SvNumberFormatter* pFormTable; // Value-Format-Table-Anker
+ FormIdent aCompareIdent; // for comparing
+ SvNumberFormatter* pFormTable; // value format table anchor
StampTyp nIndex;
- LanguageType eLanguage; // Systemsprache
+ LanguageType eLanguage; // System language
SfxUInt32Item* NewAttr( sal_uInt8 nFormat, sal_uInt8 nSt );
public:
@@ -103,9 +103,9 @@ public:
inline const SfxUInt32Item* FormCache::GetAttr( sal_uInt8 nFormat, sal_uInt8 nSt )
{
- // PREC: nFormat = Lotus-Format-Byte
- // nSt = Stellenzahl
- // POST: return = zu nFormat und nSt passendes SC-Format
+ // PREC: nFormat = Lotus format byte
+ // nSt = Number of digit
+ // POST: return = SC-format fitting nFormat and nSt
SfxUInt32Item* pAttr;
SfxUInt32Item* pRet;
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 90c0519..ceee7ec 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -442,7 +442,7 @@ void ScChildrenShapes::Notify(SfxBroadcaster&, const SfxHint& rHint)
AddShape(xShape, true);
}
break;
- case SdrHintKind::ObjectRemoved : // Zeichenobjekt aus Liste entfernt
+ case SdrHintKind::ObjectRemoved : // Removed drawing object from list
{
uno::Reference<drawing::XShape> xShape (pObj->getUnoShape(), uno::UNO_QUERY);
if (xShape.is())
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 16880d5..3edc86d 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -694,7 +694,7 @@ void ScTransferObj::InitDocShell(bool bLimitToPageSize)
const SfxItemSet& rSourceSet = pStyleSheet->GetItemSet();
aPaperSize = static_cast<const SvxSizeItem&>( rSourceSet.Get(ATTR_PAGE_SIZE)).GetSize();
- // CopyStyleFrom kopiert SetItems mit richtigem Pool
+ // CopyStyleFrom copies SetItems with correct pool
ScStyleSheetPool* pDestPool = rDestDoc.GetStyleSheetPool();
pDestPool->CopyStyleFrom( pStylePool, aStyleName, SfxStyleFamily::Page );
}
More information about the Libreoffice-commits
mailing list