summaryrefslogtreecommitdiffstats
path: root/kmymoney2/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/main.cpp')
-rw-r--r--kmymoney2/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/main.cpp b/kmymoney2/main.cpp
index 4896a57..7dde3b4 100644
--- a/kmymoney2/main.cpp
+++ b/kmymoney2/main.cpp
@@ -132,7 +132,7 @@ int main(int argc, char *argv[])
TDEApplication* a = new TDEApplication();
- if(KGlobal::locale()->monetaryDecimalSymbol().isEmpty()) {
+ if(TDEGlobal::locale()->monetaryDecimalSymbol().isEmpty()) {
KMessageBox::error(0, i18n("The monetary decimal symbol is not correctly set in the TDE Control Center's Country/Region & Language settings. Please set it to a reasonable value and start KMyMoney again."), i18n("Invalid settings"));
delete a;
exit(1);
@@ -145,16 +145,16 @@ int main(int argc, char *argv[])
args = TDECmdLineArgs::parsedArgs();
// setup the MyMoneyMoney locale settings according to the KDE settings
- MyMoneyMoney::setThousandSeparator(*(KGlobal::locale()->monetaryThousandsSeparator().latin1()));
- MyMoneyMoney::setDecimalSeparator(*(KGlobal::locale()->monetaryDecimalSymbol().latin1()));
- MyMoneyMoney::setNegativeMonetarySignPosition(static_cast<MyMoneyMoney::signPosition>(KGlobal::locale()->negativeMonetarySignPosition()));
- MyMoneyMoney::setPositiveMonetarySignPosition(static_cast<MyMoneyMoney::signPosition>(KGlobal::locale()->positiveMonetarySignPosition()));
- MyMoneyMoney::setNegativePrefixCurrencySymbol(KGlobal::locale()->negativePrefixCurrencySymbol());
- MyMoneyMoney::setPositivePrefixCurrencySymbol(KGlobal::locale()->positivePrefixCurrencySymbol());
+ MyMoneyMoney::setThousandSeparator(*(TDEGlobal::locale()->monetaryThousandsSeparator().latin1()));
+ MyMoneyMoney::setDecimalSeparator(*(TDEGlobal::locale()->monetaryDecimalSymbol().latin1()));
+ MyMoneyMoney::setNegativeMonetarySignPosition(static_cast<MyMoneyMoney::signPosition>(TDEGlobal::locale()->negativeMonetarySignPosition()));
+ MyMoneyMoney::setPositiveMonetarySignPosition(static_cast<MyMoneyMoney::signPosition>(TDEGlobal::locale()->positiveMonetarySignPosition()));
+ MyMoneyMoney::setNegativePrefixCurrencySymbol(TDEGlobal::locale()->negativePrefixCurrencySymbol());
+ MyMoneyMoney::setPositivePrefixCurrencySymbol(TDEGlobal::locale()->positivePrefixCurrencySymbol());
TQCString language = args->getOption("lang");
if(!language.isEmpty()) {
- if(!KGlobal::locale()->setLanguage(language)) {
+ if(!TDEGlobal::locale()->setLanguage(language)) {
tqWarning("Unable to select language '%s'. This has one of two reasons:\n\ta) the standard TDE message catalogue is not installed\n\tb) the KMyMoney message catalogue is not installed", language.data());
}
}