summaryrefslogtreecommitdiff
path: root/capplets/time-admin/src/main.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-06-16 12:08:54 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2019-06-18 11:48:23 +0200
commit0e6a3adb67754172193451ba467a8f655acb8f84 (patch)
treeafdb551f466fc9f3e3d2f3d6d7cc3ebc9c6b2723 /capplets/time-admin/src/main.c
parent66368a189dea7ab666cb4089ee30b6ba04ba5132 (diff)
downloadmate-control-center-0e6a3adb67754172193451ba467a8f655acb8f84.tar.bz2
mate-control-center-0e6a3adb67754172193451ba467a8f655acb8f84.tar.xz
time-admin: Remove po-timezones
Diffstat (limited to 'capplets/time-admin/src/main.c')
-rw-r--r--capplets/time-admin/src/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/capplets/time-admin/src/main.c b/capplets/time-admin/src/main.c
index f33864f7..fe16b7c7 100644
--- a/capplets/time-admin/src/main.c
+++ b/capplets/time-admin/src/main.c
@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+#include <glib/gi18n.h>
#include <polkit/polkit.h>
#include "time-tool.h"
@@ -228,7 +229,7 @@ static char *translate(const char *value)
g_autofree gchar *zone_translated = NULL;
char *name;
- zone_translated = g_strdup (dgettext (GETTEXT_PACKAGE_TIMEZONES,value));
+ zone_translated = g_strdup (_(value));
name = g_strdup_printf (C_("timezone loc", "%s"),zone_translated);
return name;
@@ -436,9 +437,10 @@ int main(int argc, char **argv)
{
TimeAdmin ta;
- bindtextdomain (PACKAGE,MATELOCALEDIR);
- textdomain (PACKAGE);
- bind_textdomain_codeset (GETTEXT_PACKAGE_TIMEZONES, "UTF-8");
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
gtk_init(&argc, &argv);