Skip to content
Commit bbab1ceb authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Debarshi Ray
Browse files

backend: Use constructor to setup gettext

To ensure the translation data are loaded from the correct prefix even
if libintl and gnome-online-accounts are installed in different
prefixes, we must call bindtextdomain and bind_textdomain_codeset
before translating messages.

To keep the code clean, gconstructor.h from GLib is copied to support
running code when the library is loaded, so we can have a constructor
to call gettext functions.

https://bugzilla.gnome.org/show_bug.cgi?id=760440
parent ba9cc7bf
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