From 88579c39ccb3891bee4760bfdf56aa6ef7b3e541 Mon Sep 17 00:00:00 2001 From: Nick Logozzo Date: Tue, 12 Mar 2024 22:19:07 -0400 Subject: [PATCH] All - Better Currency String Handling --- docs/po/denaro.pot | 2 +- libdenaro/include/helpers/currencyhelpers.h | 7 +++++ libdenaro/src/helpers/currencyhelpers.cpp | 16 ++++++++++++ libdenaro/src/models/currency.cpp | 4 +++ libdenaro/tests/currencytests.cpp | 26 ++++++++++++++----- .../include/views/mainwindow.h | 4 +++ .../src/controls/currencyconverterdialog.cpp | 13 +--------- .../src/views/mainwindow.cpp | 18 +++++++++++-- .../Controls/CurrencyConverterDialog.xaml.cpp | 13 +--------- resources/po/ar.po | 6 ++--- resources/po/cs.po | 6 ++--- resources/po/da.po | 6 ++--- resources/po/de.po | 6 ++--- resources/po/denaro.pot | 6 ++--- resources/po/es.po | 6 ++--- resources/po/et.po | 6 ++--- resources/po/fi.po | 6 ++--- resources/po/fr.po | 6 ++--- resources/po/gl.po | 6 ++--- resources/po/hi.po | 6 ++--- resources/po/hr.po | 6 ++--- resources/po/id.po | 6 ++--- resources/po/it.po | 6 ++--- resources/po/ja.po | 6 ++--- resources/po/nl.po | 6 ++--- resources/po/oc.po | 6 ++--- resources/po/pl.po | 6 ++--- resources/po/pt.po | 6 ++--- resources/po/pt_BR.po | 6 ++--- resources/po/ro.po | 6 ++--- resources/po/ru.po | 6 ++--- resources/po/sv.po | 6 ++--- resources/po/ta.po | 6 ++--- resources/po/tr.po | 6 ++--- resources/po/ur.po | 6 ++--- resources/po/zh_CN.po | 6 ++--- 36 files changed, 151 insertions(+), 114 deletions(-) diff --git a/docs/po/denaro.pot b/docs/po/denaro.pot index 0f50c4cc..e1e7ee1c 100644 --- a/docs/po/denaro.pot +++ b/docs/po/denaro.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:11-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/libdenaro/include/helpers/currencyhelpers.h b/libdenaro/include/helpers/currencyhelpers.h index 1de7f647..95d342ee 100644 --- a/libdenaro/include/helpers/currencyhelpers.h +++ b/libdenaro/include/helpers/currencyhelpers.h @@ -20,6 +20,13 @@ namespace Nickvision::Money::Shared::CurrencyHelpers * @return The currency string for the amount */ std::string toAmountString(double amount, const Models::Currency& currency, bool showCurrencySymbol = true, bool overwriteDecimal = false); + /** + * @brief Converts a currency string to an amount. + * @param amount The amount string to convert + * @param currency The currency to use to convert the string + * @return The amount for the currency string + */ + double toAmount(std::string amount, const Models::Currency& currency); } #endif //CURRENCYHELPERS_H \ No newline at end of file diff --git a/libdenaro/src/helpers/currencyhelpers.cpp b/libdenaro/src/helpers/currencyhelpers.cpp index d9c699c6..1167a942 100644 --- a/libdenaro/src/helpers/currencyhelpers.cpp +++ b/libdenaro/src/helpers/currencyhelpers.cpp @@ -3,7 +3,9 @@ #include #include #include +#include +using namespace Nickvision; using namespace Nickvision::Money::Shared::Models; class NumberFormat : public std::numpunct @@ -110,4 +112,18 @@ namespace Nickvision::Money::Shared } return builder.str(); } + + double CurrencyHelpers::toAmount(std::string amount, const Currency& currency) + { + if(amount.find(currency.getSymbol()) != std::string::npos) + { + amount = StringHelpers::replace(amount, currency.getSymbol(), ""); + } + std::stringstream builder; + builder.imbue({ builder.getloc(), new NumberFormat(currency) }); + builder << amount; + double result{ 0 }; + builder >> result; + return result; + } } \ No newline at end of file diff --git a/libdenaro/src/models/currency.cpp b/libdenaro/src/models/currency.cpp index 6b50c2a9..8a89a1bb 100644 --- a/libdenaro/src/models/currency.cpp +++ b/libdenaro/src/models/currency.cpp @@ -69,6 +69,10 @@ namespace Nickvision::Money::Shared::Models void Currency::setCode(const std::string& code) { m_code = code; + if(m_code[m_code.size() - 1] == ' ') + { + m_code = m_code.substr(0, m_code.size() - 1); + } } char Currency::getDecimalSeparator() const diff --git a/libdenaro/tests/currencytests.cpp b/libdenaro/tests/currencytests.cpp index 435d247e..656e2aec 100644 --- a/libdenaro/tests/currencytests.cpp +++ b/libdenaro/tests/currencytests.cpp @@ -14,22 +14,27 @@ TEST(CurrencyHelpers, GetUSCurrency) ASSERT_EQ(currency.getAmountStyle(), Models::AmountStyle::SymbolNumber); } -TEST(CurrencyHelpers, USAmountString1) +TEST(CurrencyHelpers, ToUSAmountString1) { ASSERT_EQ(CurrencyHelpers::toAmountString(12347.89, CurrencyHelpers::getSystemCurrency()), "$12,347.89"); } -TEST(CurrencyHelpers, USAmountString2) +TEST(CurrencyHelpers, ToUSAmountString2) { ASSERT_EQ(CurrencyHelpers::toAmountString(100, CurrencyHelpers::getSystemCurrency()), "$100.00"); } -TEST(CurrencyHelpers, USAmountString3) +TEST(CurrencyHelpers, ToUSAmountString3) { ASSERT_EQ(CurrencyHelpers::toAmountString(5.50, CurrencyHelpers::getSystemCurrency(), false), "5.50"); } -TEST(CurrencyHelpers, CustomCurrency1) +TEST(CurrencyHelpers, FromUSAmountString1) +{ + ASSERT_EQ(CurrencyHelpers::toAmount("$12,347.89", CurrencyHelpers::getSystemCurrency()), 12347.89); +} + +TEST(CurrencyHelpers, ToCustomCurrency1) { Currency currency{ "#", "HAS" }; currency.setDecimalSeparator(','); @@ -40,7 +45,16 @@ TEST(CurrencyHelpers, CustomCurrency1) ASSERT_EQ(CurrencyHelpers::toAmountString(12347.89, currency, false), "12.347,89"); } -TEST(CurrencyHelpers, CustomCurrency2) +TEST(CurrencyHelpers, FromCustomCurrency1) +{ + Currency currency{ "#", "HAS" }; + currency.setDecimalSeparator(','); + currency.setGroupSeparator('.'); + currency.setAmountStyle(Models::AmountStyle::NumberSpaceSymbol); + ASSERT_EQ(CurrencyHelpers::toAmount("1.567,21 #", currency), 1567.21); +} + +TEST(CurrencyHelpers, ToCustomCurrency2) { Currency currency{ "@", "HAS" }; currency.setDecimalSeparator('-'); @@ -50,7 +64,7 @@ TEST(CurrencyHelpers, CustomCurrency2) ASSERT_EQ(CurrencyHelpers::toAmountString(2765.9, currency), "@ 2*765-90"); } -TEST(CurrencyHelpers, CustomCurrency3) +TEST(CurrencyHelpers, ToCustomCurrency3) { Currency currency{ "@", "HAS" }; currency.setDecimalSeparator('-'); diff --git a/org.nickvision.money.gnome/include/views/mainwindow.h b/org.nickvision.money.gnome/include/views/mainwindow.h index 5a235a30..e08ba064 100644 --- a/org.nickvision.money.gnome/include/views/mainwindow.h +++ b/org.nickvision.money.gnome/include/views/mainwindow.h @@ -68,6 +68,10 @@ namespace Nickvision::Money::GNOME::Views * @brief Opens the application's keyboard shortcut dialog. */ void keyboardShortcuts(); + /** + * @brief Opens the application's help documentation. + */ + void help(); /** * @brief Opens the application's about dialog. */ diff --git a/org.nickvision.money.gnome/src/controls/currencyconverterdialog.cpp b/org.nickvision.money.gnome/src/controls/currencyconverterdialog.cpp index f89c00d3..634e8c70 100644 --- a/org.nickvision.money.gnome/src/controls/currencyconverterdialog.cpp +++ b/org.nickvision.money.gnome/src/controls/currencyconverterdialog.cpp @@ -114,7 +114,6 @@ namespace Nickvision::Money::GNOME::Controls { std::string sourceText{ gtk_editable_get_text(GTK_EDITABLE(gtk_builder_get_object(m_builder, "sourceAmountRow"))) }; std::string resultText{ gtk_editable_get_text(GTK_EDITABLE(gtk_builder_get_object(m_builder, "resultAmountRow"))) }; - gtk_widget_remove_css_class(GTK_WIDGET(gtk_builder_get_object(m_builder, "sourceAmountRow")), "error"); gtk_widget_remove_css_class(GTK_WIDGET(gtk_builder_get_object(m_builder, "resultAmountRow")), "error"); if(sourceText.empty()) { @@ -122,17 +121,7 @@ namespace Nickvision::Money::GNOME::Controls } else { - double sourceAmount{ 0 }; - try - { - sourceAmount = std::stod(sourceText); - } - catch(const std::exception&) - { - gtk_widget_add_css_class(GTK_WIDGET(gtk_builder_get_object(m_builder, "sourceAmountRow")), "error"); - gtk_editable_set_text(GTK_EDITABLE(gtk_builder_get_object(m_builder, "resultAmountRow")), ""); - return; - } + double sourceAmount{ CurrencyHelpers::toAmount(sourceText, CurrencyHelpers::getSystemCurrency()) }; std::string sourceCurrency{ gtk_string_list_get_string(m_currencyList, adw_combo_row_get_selected(ADW_COMBO_ROW(gtk_builder_get_object(m_builder, "sourceCurrencyRow")))) }; std::string resultCurrency{ gtk_string_list_get_string(m_currencyList, adw_combo_row_get_selected(ADW_COMBO_ROW(gtk_builder_get_object(m_builder, "resultCurrencyRow")))) }; std::optional conversion{ CurrencyConversionService::convert(sourceCurrency, sourceAmount, resultCurrency) }; diff --git a/org.nickvision.money.gnome/src/views/mainwindow.cpp b/org.nickvision.money.gnome/src/views/mainwindow.cpp index de4e9a2a..1e113cae 100644 --- a/org.nickvision.money.gnome/src/views/mainwindow.cpp +++ b/org.nickvision.money.gnome/src/views/mainwindow.cpp @@ -3,14 +3,16 @@ #include #include #include +#include #include "controls/currencyconverterdialog.h" #include "helpers/builder.h" #include "views/preferencesdialog.h" -using namespace Nickvision::Money::GNOME::Controls; -using namespace Nickvision::Money::Shared::Controllers; using namespace Nickvision::App; using namespace Nickvision::Events; +using namespace Nickvision::Localization; +using namespace Nickvision::Money::GNOME::Controls; +using namespace Nickvision::Money::Shared::Controllers; using namespace Nickvision::Notifications; namespace Nickvision::Money::GNOME::Views @@ -53,6 +55,11 @@ namespace Nickvision::Money::GNOME::Views g_signal_connect(actKeyboardShortcuts, "activate", G_CALLBACK(+[](GSimpleAction*, GVariant*, gpointer data){ reinterpret_cast(data)->keyboardShortcuts(); }), this); g_action_map_add_action(G_ACTION_MAP(m_window), G_ACTION(actKeyboardShortcuts)); SET_ACCEL_FOR_ACTION(m_app, "win.keyboardShortcuts", "question"); + //Preferences Action + GSimpleAction* actHelp{ g_simple_action_new("help", nullptr) }; + g_signal_connect(actHelp, "activate", G_CALLBACK(+[](GSimpleAction*, GVariant*, gpointer data){ reinterpret_cast(data)->help(); }), this); + g_action_map_add_action(G_ACTION_MAP(m_window), G_ACTION(actHelp)); + SET_ACCEL_FOR_ACTION(m_app, "win.help", "F1"); //About Action GSimpleAction* actAbout{ g_simple_action_new("about", nullptr) }; g_signal_connect(actAbout, "activate", G_CALLBACK(+[](GSimpleAction*, GVariant*, gpointer data){ reinterpret_cast(data)->about(); }), this); @@ -123,6 +130,13 @@ namespace Nickvision::Money::GNOME::Views gtk_window_present(GTK_WINDOW(shortcuts)); } + void MainWindow::help() + { + std::string helpUrl{ Documentation::getHelpUrl("index") }; + GtkUriLauncher* launcher{ gtk_uri_launcher_new(helpUrl.c_str()) }; + gtk_uri_launcher_launch(launcher, GTK_WINDOW(m_window), nullptr, GAsyncReadyCallback(+[](GObject* source, GAsyncResult* res, gpointer) { gtk_uri_launcher_launch_finish(GTK_URI_LAUNCHER(source), res, nullptr); }), nullptr); + } + void MainWindow::about() { std::string extraDebug; diff --git a/org.nickvision.money.winui/Controls/CurrencyConverterDialog.xaml.cpp b/org.nickvision.money.winui/Controls/CurrencyConverterDialog.xaml.cpp index 0d1813c6..8e5aba20 100644 --- a/org.nickvision.money.winui/Controls/CurrencyConverterDialog.xaml.cpp +++ b/org.nickvision.money.winui/Controls/CurrencyConverterDialog.xaml.cpp @@ -97,7 +97,6 @@ namespace winrt::Nickvision::Money::WinUI::Controls::implementation void CurrencyConverterDialog::onCurrencyChange() { - RowSourceCurrency().Title(winrt::to_hstring(_("Source"))); RowResultCurrency().Title(winrt::to_hstring(_("Result"))); if(TxtSourceAmount().Text().empty()) { @@ -105,17 +104,7 @@ namespace winrt::Nickvision::Money::WinUI::Controls::implementation } else { - double sourceAmount{ 0 }; - try - { - sourceAmount = std::stod(winrt::to_string(TxtSourceAmount().Text())); - } - catch(const std::exception&) - { - RowSourceCurrency().Title(winrt::to_hstring(_("Source (Error)"))); - TxtResultAmount().Text(L""); - return; - } + double sourceAmount{ CurrencyHelpers::toAmount(winrt::to_string(TxtSourceAmount().Text()), CurrencyHelpers::getSystemCurrency())}; std::string sourceCurrency{ winrt::to_string(CmbSourceCurrency().SelectedItem().as()) }; std::string resultCurrency{ winrt::to_string(CmbResultCurrency().SelectedItem().as()) }; std::optional conversion{ CurrencyConversionService::convert(sourceCurrency, sourceAmount, resultCurrency) }; diff --git a/resources/po/ar.po b/resources/po/ar.po index 90c3260c..96212bdd 100644 --- a/resources/po/ar.po +++ b/resources/po/ar.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2023-12-06 07:04+0000\n" "Last-Translator: ButterflyOfFire \n" "Language-Team: Arabic \n" "Language-Team: Czech \n" "Language-Team: LANGUAGE \n" @@ -370,12 +370,12 @@ msgstr "Luk" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "Åbn" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "GitHub Depot" diff --git a/resources/po/de.po b/resources/po/de.po index bbba2da2..d06e7365 100644 --- a/resources/po/de.po +++ b/resources/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2023-08-29 18:53+0000\n" "Last-Translator: Ettore Atalan \n" "Language-Team: German \n" "Language-Team: LANGUAGE \n" @@ -352,12 +352,12 @@ msgstr "" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "" diff --git a/resources/po/es.po b/resources/po/es.po index b930b213..bcae6d35 100644 --- a/resources/po/es.po +++ b/resources/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2023-12-29 06:12+0000\n" "Last-Translator: Óscar Fernández Díaz \n" @@ -375,12 +375,12 @@ msgstr "Cerrar" msgid "Result was copied to clipboard." msgstr "Resultado copiado al portapapeles." -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "Abrir" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "Repositorio de GitHub" diff --git a/resources/po/et.po b/resources/po/et.po index cb42981d..8e0fa47f 100644 --- a/resources/po/et.po +++ b/resources/po/et.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -361,12 +361,12 @@ msgstr "Sulge" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "Ava" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "" diff --git a/resources/po/fi.po b/resources/po/fi.po index a16aedf9..f29f9a50 100644 --- a/resources/po/fi.po +++ b/resources/po/fi.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2023-08-24 20:09+0000\n" "Last-Translator: Jiri Grönroos \n" "Language-Team: Finnish \n" "Language-Team: French \n" "Language-Team: Galician \n" "Language-Team: Hindi \n" "Language-Team: Croatian \n" "Language-Team: Indonesian \n" "Language-Team: Italian \n" "Language-Team: Japanese \n" "Language-Team: Dutch \n" "Language-Team: LANGUAGE \n" @@ -376,12 +376,12 @@ msgstr "Tampar" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "Dobrir" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "Depaus GitHub" diff --git a/resources/po/pl.po b/resources/po/pl.po index a569c64d..b2e37685 100644 --- a/resources/po/pl.po +++ b/resources/po/pl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2023-11-15 07:06+0000\n" "Last-Translator: Michał Dominik \n" "Language-Team: Polish \n" "Language-Team: LANGUAGE \n" @@ -372,12 +372,12 @@ msgstr "Fechar" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "Abrir" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "Repositório do GitHub" diff --git a/resources/po/pt_BR.po b/resources/po/pt_BR.po index b944aed0..e0b71b49 100644 --- a/resources/po/pt_BR.po +++ b/resources/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2024-01-08 06:00+0000\n" "Last-Translator: Cassio Gomes Pereira \n" "Language-Team: Portuguese (Brazil) \n" "Language-Team: Romanian \n" "Language-Team: Russian \n" "Language-Team: LANGUAGE \n" @@ -369,12 +369,12 @@ msgstr "Stäng" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "Öppna" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "GitHub Repo" diff --git a/resources/po/ta.po b/resources/po/ta.po index 49802ac1..b0bea059 100644 --- a/resources/po/ta.po +++ b/resources/po/ta.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -352,12 +352,12 @@ msgstr "" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "" diff --git a/resources/po/tr.po b/resources/po/tr.po index 1ccfb6a4..29478019 100644 --- a/resources/po/tr.po +++ b/resources/po/tr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2023-09-10 21:21+0000\n" "Last-Translator: Sabri Ünal \n" "Language-Team: Turkish \n" "Language-Team: LANGUAGE \n" @@ -355,12 +355,12 @@ msgstr "بند کریں" msgid "Result was copied to clipboard." msgstr "" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:94 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:101 #: org.nickvision.money.winui/MainWindow.xaml.cpp:82 msgid "Open" msgstr "کھولیں" -#: org.nickvision.money.gnome/src/views/mainwindow.cpp:146 +#: org.nickvision.money.gnome/src/views/mainwindow.cpp:160 #: org.nickvision.money.winui/MainWindow.xaml.cpp:75 msgid "GitHub Repo" msgstr "گٹہب ریپو" diff --git a/resources/po/zh_CN.po b/resources/po/zh_CN.po index 4c2b0705..f294a1ba 100644 --- a/resources/po/zh_CN.po +++ b/resources/po/zh_CN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-12 19:14-0400\n" +"POT-Creation-Date: 2024-03-12 22:03-0400\n" "PO-Revision-Date: 2024-02-02 03:01+0000\n" "Last-Translator: aerowolf \n" "Language-Team: Chinese (Simplified)