GNOME Bugzilla – Bug 760417
[PATCH] ephy-profile-migrator --help shows translated characters as question marks on some locales
Last modified: 2016-01-13 18:47:27 UTC
Please see the attached patch. ephy-profile-migrator should call setlocale in main function in order to correctly show translated messages. Running 'ephy-profile-migrator --help' with zh_TW.UTF-8 locale shows: ??? ephy-profile-migrator [???] ????? -h, --help ??????? ??????? -d, --do-step ???? n ????? -v, --version ?????????? -p, --profile-dir ?????????????
Created attachment 318685 [details] [review] ephy-profile-migrator: Call setlocale in main function It is required to correctly show translated messages on some locales.
Review of attachment 318685 [details] [review]: You don't also need the usual: bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); ?
Created attachment 318943 [details] [review] ephy-profile-migrator: Call setlocale and gettext functions in main function It is required to correctly show translated messages on some locales. Yes, I should add them to make it find the correct .mo file.
Review of attachment 318943 [details] [review]: Thanks!
Attachment 318943 [details] pushed as 16cc92e - ephy-profile-migrator: Call setlocale and gettext functions in main function