Bug 796988 - Untranslated string in CSV transaction importer

caused by a wrong path
This commit is contained in:
Frank H. Ellenberger 2018-12-21 06:29:31 +01:00
parent 07821be68d
commit 04c31a5d06

View File

@ -2059,11 +2059,11 @@ CsvImpTransAssist::assist_summary_page_prepare ()
gtk_assistant_remove_action_widget (csv_imp_asst, help_button);
gtk_assistant_remove_action_widget (csv_imp_asst, cancel_button);
bl::generator gen;
gen.add_messages_path(gnc_path_get_datadir());
gen.add_messages_domain(PACKAGE);
// FIXME Rather than passing a locale generator below we probably should set std::locale::global appropriately somewhere.
bl::generator gen;
gen.add_messages_path(gnc_path_get_localedir());
gen.add_messages_domain(GETTEXT_PACKAGE);
auto text = std::string("<span size=\"medium\"><b>");
/* Translators: {1} will be replaced with a filename */
text += (bl::format (bl::translate ("The transactions were imported from file '{1}'.")) % m_file_name).str(gen(""));