diff options
author | Johnny_M <klasse@partyheld.de> | 2017-10-01 12:53:57 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-10-02 16:35:15 +0200 |
commit | 17d0dc46471083a02d943272dafba14158641de5 (patch) | |
tree | 1946362f6ee1b1429c636154f0a41cf56abf4f03 /scaddins | |
parent | df778416981ab02d42182e5c2e46dc09ba2e2a3c (diff) |
Translate German variable names in Calc (financial)
These names of variables correspond to German function names in Calc
and were translated to their English equivalents. For used translations,
see, e.g., https://translations.documentfoundation.org/de/libo54_help/translate/#search=kapz&sfields=target
Change-Id: Ifffa1ae8394cafde6dd7a78626b957e07919d5c9
Reviewed-on: https://gerrit.libreoffice.org/42991
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/financial.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx index d5ad25e6dbb4..eed81aaaa955 100644 --- a/scaddins/source/analysis/financial.cxx +++ b/scaddins/source/analysis/financial.cxx @@ -123,15 +123,15 @@ double SAL_CALL AnalysisAddIn::getEffect( double fNominal, sal_Int32 nPeriods ) double SAL_CALL AnalysisAddIn::getCumprinc( double fRate, sal_Int32 nNumPeriods, double fVal, sal_Int32 nStartPer, sal_Int32 nEndPer, sal_Int32 nPayType ) { - double fRmz, fKapZ; + double fPmt, fPpmt; if( nStartPer < 1 || nEndPer < nStartPer || fRate <= 0.0 || nEndPer > nNumPeriods || nNumPeriods <= 0 || fVal <= 0.0 || ( nPayType != 0 && nPayType != 1 ) ) throw css::lang::IllegalArgumentException(); - fRmz = GetRmz( fRate, nNumPeriods, fVal, 0.0, nPayType ); + fPmt = GetRmz( fRate, nNumPeriods, fVal, 0.0, nPayType ); - fKapZ = 0.0; + fPpmt = 0.0; sal_uInt32 nStart = sal_uInt32( nStartPer ); sal_uInt32 nEnd = sal_uInt32( nEndPer ); @@ -139,9 +139,9 @@ double SAL_CALL AnalysisAddIn::getCumprinc( double fRate, sal_Int32 nNumPeriods, if( nStart == 1 ) { if( nPayType <= 0 ) - fKapZ = fRmz + fVal * fRate; + fPpmt = fPmt + fVal * fRate; else - fKapZ = fRmz; + fPpmt = fPmt; nStart++; } @@ -149,27 +149,27 @@ double SAL_CALL AnalysisAddIn::getCumprinc( double fRate, sal_Int32 nNumPeriods, for( sal_uInt32 i = nStart ; i <= nEnd ; i++ ) { if( nPayType > 0 ) - fKapZ += fRmz - ( GetZw( fRate, double( i - 2 ), fRmz, fVal, 1 ) - fRmz ) * fRate; + fPpmt += fPmt - ( GetZw( fRate, double( i - 2 ), fPmt, fVal, 1 ) - fPmt ) * fRate; else - fKapZ += fRmz - GetZw( fRate, double( i - 1 ), fRmz, fVal, 0 ) * fRate; + fPpmt += fPmt - GetZw( fRate, double( i - 1 ), fPmt, fVal, 0 ) * fRate; } - RETURN_FINITE( fKapZ ); + RETURN_FINITE( fPpmt ); } double SAL_CALL AnalysisAddIn::getCumipmt( double fRate, sal_Int32 nNumPeriods, double fVal, sal_Int32 nStartPer, sal_Int32 nEndPer, sal_Int32 nPayType ) { - double fRmz, fZinsZ; + double fPmt, fIpmt; if( nStartPer < 1 || nEndPer < nStartPer || fRate <= 0.0 || nEndPer > nNumPeriods || nNumPeriods <= 0 || fVal <= 0.0 || ( nPayType != 0 && nPayType != 1 ) ) throw css::lang::IllegalArgumentException(); - fRmz = GetRmz( fRate, nNumPeriods, fVal, 0.0, nPayType ); + fPmt = GetRmz( fRate, nNumPeriods, fVal, 0.0, nPayType ); - fZinsZ = 0.0; + fIpmt = 0.0; sal_uInt32 nStart = sal_uInt32( nStartPer ); sal_uInt32 nEnd = sal_uInt32( nEndPer ); @@ -177,7 +177,7 @@ double SAL_CALL AnalysisAddIn::getCumipmt( double fRate, sal_Int32 nNumPeriods, if( nStart == 1 ) { if( nPayType <= 0 ) - fZinsZ = -fVal; + fIpmt = -fVal; nStart++; } @@ -185,14 +185,14 @@ double SAL_CALL AnalysisAddIn::getCumipmt( double fRate, sal_Int32 nNumPeriods, for( sal_uInt32 i = nStart ; i <= nEnd ; i++ ) { if( nPayType > 0 ) - fZinsZ += GetZw( fRate, double( i - 2 ), fRmz, fVal, 1 ) - fRmz; + fIpmt += GetZw( fRate, double( i - 2 ), fPmt, fVal, 1 ) - fPmt; else - fZinsZ += GetZw( fRate, double( i - 1 ), fRmz, fVal, 0 ); + fIpmt += GetZw( fRate, double( i - 1 ), fPmt, fVal, 0 ); } - fZinsZ *= fRate; + fIpmt *= fRate; - RETURN_FINITE( fZinsZ ); + RETURN_FINITE( fIpmt ); } |