summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-20 17:50:31 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-24 00:43:55 +0200
commita57401251cd49841f892139144cc6b3c48f53fb9 (patch)
treef43f3f490c2485e33833802fd47d33bfac3aa7e3 /test/test.cc
parent09fbc3882ea919d67427ec7c90c8051871145074 (diff)
Move tell_gettext_about_language_change() up to test.cc
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc
index f518cdccc..ce6a9ad20 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -1095,3 +1095,13 @@ Editor::replace(string a, string b)
boost::algorithm::replace_all(_content, a, b);
BOOST_REQUIRE(_content != old_content);
}
+
+
+/* From https://www.gnu.org/software/gettext/manual/gettext.html */
+void tell_gettext_about_language_change()
+{
+ extern int _nl_msg_cat_cntr;
+ _nl_msg_cat_cntr++;
+}
+
+