Commit 13053ed7 authored by Stephane Mankowski's avatar Stephane Mankowski

Skrooge doesn't use per-locale bank icons

BUG:422155
parent ff679cc5
......@@ -2,6 +2,7 @@ skrooge (2.23.0)
*Correction bug 420557: Broken transaction group after CSV import
*Correction bug 412262: documentation references obsolete "Merge operations" menu item
*Correction bug 422154: Jumpy tab order in Accounts entry form
*Correction bug 422155: Skrooge doesn't use per-locale bank icons
*Correction: Drag and drop file works only for operations. Not for all other objects.
*Correction: cryptocompare fails if too many values are requested (>2000)
*Correction: Change icon for trackers by a "crosshairs"
......
......@@ -124,6 +124,8 @@ void SKGStatisticPlugin::refresh()
m_stats[QStringLiteral("current.app_version")] = KAboutData::applicationData().version();
m_stats[QStringLiteral("current.language")] = QLocale::languageToString(QLocale().language());
m_stats[QStringLiteral("current.country")] = QLocale::countryToString(QLocale().country());
m_stats[QStringLiteral("current.country.code")] = QLocale().name().split("_").at(0);
m_stats[QStringLiteral("current.locale")] = QLocale().name();
// OS
#ifdef Q_OS_WIN32
......
......@@ -169,7 +169,7 @@ SKGBankPluginWidget::SKGBankPluginWidget(QWidget* iParent, SKGDocumentBank* iDoc
connect(ui.kView->getView(), &SKGTreeView::selectionChangedDelayed, this, [ = ] {this->onSelectionChanged();});
// Search file list
QString listIconFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "skrooge/images/logo/l10n/" % QLocale::countryToString(QLocale().country()) % "/list_bank.txt");
QString listIconFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "skrooge/images/logo/l10n/" % QLocale().name().split("_").at(0) % "/list_bank.txt");
if (listIconFile.isEmpty()) {
listIconFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("skrooge/images/logo/list_bank.txt"));
}
......
......@@ -85,7 +85,7 @@ bool SKGCategoriesPlugin::setupActions(SKGDocument* iDocument)
connect(actImportStdCat, &QAction::triggered, this, &SKGCategoriesPlugin::importStandardCategories);
registerGlobalAction(QStringLiteral("import_standard_categories"), actImportStdCat);
const auto dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "skrooge/categories/" % QLocale::countryToString(QLocale().country()), QStandardPaths::LocateDirectory);
const auto dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "skrooge/categories/" % QLocale().name().split("_").at(0), QStandardPaths::LocateDirectory);
for (const auto& dir : dirs) {
QDirIterator it(dir, QStringList() << QStringLiteral("*.qif"));
while (it.hasNext()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment