mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 796988 - Untranslated string in CSV transaction importer
caused by a wrong path
This commit is contained in:
parent
07821be68d
commit
04c31a5d06
@ -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, help_button);
|
||||||
gtk_assistant_remove_action_widget (csv_imp_asst, cancel_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.
|
// 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>");
|
auto text = std::string("<span size=\"medium\"><b>");
|
||||||
/* Translators: {1} will be replaced with a filename */
|
/* 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(""));
|
text += (bl::format (bl::translate ("The transactions were imported from file '{1}'.")) % m_file_name).str(gen(""));
|
||||||
|
Loading…
Reference in New Issue
Block a user