[kmymoney/5.0] kmymoney: Added message contexts to support Korean translation
Thomas Baumgart
null at kde.org
Fri May 1 08:18:28 BST 2020
Git commit 187764863a426b95271b5f637f7ed6883f7e44ba by Thomas Baumgart.
Committed on 01/05/2020 at 07:18.
Pushed by tbaumgart into branch '5.0'.
Added message contexts to support Korean translation
GUI:
M +1 -1 kmymoney/dialogs/kavailablecurrencydlg.ui
M +1 -1 kmymoney/dialogs/kcurrencyeditdlg.ui
M +2 -2 kmymoney/dialogs/kequitypriceupdatedlg.ui
M +3 -3 kmymoney/dialogs/settings/ksettingsonlinequotes.cpp
M +1 -1 kmymoney/models/equitiesmodel.cpp
M +1 -1 kmymoney/models/securitiesmodel.cpp
M +1 -1 kmymoney/plugins/csv/import/investmentwizardpage.cpp
M +1 -1 kmymoney/plugins/csv/import/investmentwizardpage.ui
M +1 -1 kmymoney/plugins/csv/import/securitiesdlg.ui
M +2 -2 kmymoney/widgets/kmymoneycashflowcombo.cpp
M +2 -2 kmymoney/widgets/transaction_p.h
https://commits.kde.org/kmymoney/187764863a426b95271b5f637f7ed6883f7e44ba
diff --git a/kmymoney/dialogs/kavailablecurrencydlg.ui b/kmymoney/dialogs/kavailablecurrencydlg.ui
index ddba3fc9f..63048544e 100644
--- a/kmymoney/dialogs/kavailablecurrencydlg.ui
+++ b/kmymoney/dialogs/kavailablecurrencydlg.ui
@@ -49,7 +49,7 @@
</column>
<column>
<property name="text">
- <string>Symbol</string>
+ <string comment="@title currency symbol column">Symbol</string>
</property>
</column>
</widget>
diff --git a/kmymoney/dialogs/kcurrencyeditdlg.ui b/kmymoney/dialogs/kcurrencyeditdlg.ui
index 919c6b286..0e2a9428d 100644
--- a/kmymoney/dialogs/kcurrencyeditdlg.ui
+++ b/kmymoney/dialogs/kcurrencyeditdlg.ui
@@ -49,7 +49,7 @@
</column>
<column>
<property name="text">
- <string>Symbol</string>
+ <string comment="@title currency symbol column">Symbol</string>
</property>
</column>
</widget>
diff --git a/kmymoney/dialogs/kequitypriceupdatedlg.ui b/kmymoney/dialogs/kequitypriceupdatedlg.ui
index c07429a2f..e1d2aae1a 100644
--- a/kmymoney/dialogs/kequitypriceupdatedlg.ui
+++ b/kmymoney/dialogs/kequitypriceupdatedlg.ui
@@ -56,7 +56,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
- <string>From</string>
+ <string comment="@label:chooser Date">From</string>
</property>
</widget>
</item>
@@ -66,7 +66,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
- <string>To</string>
+ <string comment="@label:chooser Date">To</string>
</property>
</widget>
</item>
diff --git a/kmymoney/dialogs/settings/ksettingsonlinequotes.cpp b/kmymoney/dialogs/settings/ksettingsonlinequotes.cpp
index 040db4aba..15a8d557b 100644
--- a/kmymoney/dialogs/settings/ksettingsonlinequotes.cpp
+++ b/kmymoney/dialogs/settings/ksettingsonlinequotes.cpp
@@ -81,9 +81,9 @@ KSettingsOnlineQuotes::KSettingsOnlineQuotes(QWidget *parent) :
d->ui->m_deleteButton->setIcon(Icons::get(Icon::EditDelete));
d->ui->m_newButton->setIcon(Icons::get(Icon::DocumentNew));
- d->ui->m_editIdentifyBy->addItem(i18n("Symbol"), WebPriceQuoteSource::identifyBy::Symbol);
- d->ui->m_editIdentifyBy->addItem(i18n("Identification number"), WebPriceQuoteSource::identifyBy::IdentificationNumber);
- d->ui->m_editIdentifyBy->addItem(i18n("Name"), WebPriceQuoteSource::identifyBy::Name);
+ d->ui->m_editIdentifyBy->addItem(i18nc("@item:inlistbox Stock", "Symbol"), WebPriceQuoteSource::identifyBy::Symbol);
+ d->ui->m_editIdentifyBy->addItem(i18nc("@item:inlistbox Stock", "Identification number"), WebPriceQuoteSource::identifyBy::IdentificationNumber);
+ d->ui->m_editIdentifyBy->addItem(i18nc("@item:inlistbox Stock", "Name"), WebPriceQuoteSource::identifyBy::Name);
connect(d->ui->m_dumpCSVProfile, &QAbstractButton::clicked, this, &KSettingsOnlineQuotes::slotDumpCSVProfile);
connect(d->ui->m_updateButton, &QAbstractButton::clicked, this, &KSettingsOnlineQuotes::slotUpdateEntry);
diff --git a/kmymoney/models/equitiesmodel.cpp b/kmymoney/models/equitiesmodel.cpp
index 0bd0b0646..e82b96668 100644
--- a/kmymoney/models/equitiesmodel.cpp
+++ b/kmymoney/models/equitiesmodel.cpp
@@ -351,7 +351,7 @@ QString EquitiesModel::getHeaderName(const Column column)
case Equity:
return i18n("Equity");
case Symbol:
- return i18n("Symbol");
+ return i18nc("@title stock symbol column", "Symbol");
case Value:
return i18n("Value");
case Quantity:
diff --git a/kmymoney/models/securitiesmodel.cpp b/kmymoney/models/securitiesmodel.cpp
index 097cca6fd..ed9c3a318 100644
--- a/kmymoney/models/securitiesmodel.cpp
+++ b/kmymoney/models/securitiesmodel.cpp
@@ -272,7 +272,7 @@ QString SecuritiesModel::getHeaderName(const Column column)
case Security:
return i18n("Security");
case Symbol:
- return i18n("Symbol");
+ return i18nc("@title stock symbol column", "Symbol");
case Type:
return i18n("Type");
case Market:
diff --git a/kmymoney/plugins/csv/import/investmentwizardpage.cpp b/kmymoney/plugins/csv/import/investmentwizardpage.cpp
index 537284f82..b0ef37cfe 100644
--- a/kmymoney/plugins/csv/import/investmentwizardpage.cpp
+++ b/kmymoney/plugins/csv/import/investmentwizardpage.cpp
@@ -66,7 +66,7 @@ InvestmentPage::InvestmentPage(CSVWizard *dlg, CSVImporterCore *imp) :
m_dlg->m_colTypeName.insert(Column::Fee, i18n("Fee"));
m_dlg->m_colTypeName.insert(Column::Date, i18n("Date"));
m_dlg->m_colTypeName.insert(Column::Amount, i18n("Amount"));
- m_dlg->m_colTypeName.insert(Column::Symbol, i18n("Symbol"));
+ m_dlg->m_colTypeName.insert(Column::Symbol, i18nc("@title stock symbol column", "Symbol"));
m_dlg->m_colTypeName.insert(Column::Name, i18n("Name"));
m_dlg->m_colTypeName.insert(Column::Memo, i18n("Memo"));
diff --git a/kmymoney/plugins/csv/import/investmentwizardpage.ui b/kmymoney/plugins/csv/import/investmentwizardpage.ui
index 4f2edca46..b52b3b1dc 100644
--- a/kmymoney/plugins/csv/import/investmentwizardpage.ui
+++ b/kmymoney/plugins/csv/import/investmentwizardpage.ui
@@ -305,7 +305,7 @@ select it here.</string>
<item row="2" column="4">
<widget class="QLabel" name="labelInv_symbolCol">
<property name="text">
- <string>Symbol</string>
+ <string comment="@label:listbox stock symbol">Symbol</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
diff --git a/kmymoney/plugins/csv/import/securitiesdlg.ui b/kmymoney/plugins/csv/import/securitiesdlg.ui
index 0800a75d9..ea7fbc785 100644
--- a/kmymoney/plugins/csv/import/securitiesdlg.ui
+++ b/kmymoney/plugins/csv/import/securitiesdlg.ui
@@ -74,7 +74,7 @@ Please complete every missing name or symbol.</string>
</column>
<column>
<property name="text">
- <string>Symbol</string>
+ <string comment="@title stock symbol column">Symbol</string>
</property>
</column>
<column>
diff --git a/kmymoney/widgets/kmymoneycashflowcombo.cpp b/kmymoney/widgets/kmymoneycashflowcombo.cpp
index cbb7ba5ee..bb4ce69d3 100644
--- a/kmymoney/widgets/kmymoneycashflowcombo.cpp
+++ b/kmymoney/widgets/kmymoneycashflowcombo.cpp
@@ -60,8 +60,8 @@ KMyMoneyCashFlowCombo::KMyMoneyCashFlowCombo(Account::Type accountType, QWidget*
addItem(i18nc("Activity for income categories", "Received"), QVariant((int)eRegister::CashFlowDirection::Payment));
addItem(i18nc("Activity for expense categories", "Paid"), QVariant((int)eRegister::CashFlowDirection::Deposit));
} else {
- addItem(i18n("Pay to"), QVariant((int)eRegister::CashFlowDirection::Payment));
- addItem(i18n("From"), QVariant((int)eRegister::CashFlowDirection::Deposit));
+ addItem(i18nc("Payee", "Pay to"), QVariant((int)eRegister::CashFlowDirection::Payment));
+ addItem(i18nc("Payer", "From"), QVariant((int)eRegister::CashFlowDirection::Deposit));
}
connect(this, &KMyMoneyMVCCombo::itemSelected, this, &KMyMoneyCashFlowCombo::slotSetDirection);
diff --git a/kmymoney/widgets/transaction_p.h b/kmymoney/widgets/transaction_p.h
index af3f671de..759c8aa7c 100644
--- a/kmymoney/widgets/transaction_p.h
+++ b/kmymoney/widgets/transaction_p.h
@@ -79,9 +79,9 @@ namespace KMyMoneyRegister
m_payee = file->payee(m_split.payeeId()).name();
}
if (m_parent->account().isIncomeExpense()) {
- m_payeeHeader = m_split.shares().isNegative() ? i18n("From") : i18n("Pay to");
+ m_payeeHeader = m_split.shares().isNegative() ? i18nc("Payer", "From") : i18nc("Payee", "Pay to");
} else {
- m_payeeHeader = m_split.shares().isNegative() ? i18n("Pay to") : i18n("From");
+ m_payeeHeader = m_split.shares().isNegative() ? i18nc("Payee", "Pay to") : i18nc("Payer", "From");
}
// load the tag
More information about the kde-doc-english
mailing list