qulogic/pidgin

Update a bunch of gettext stuff

8 months ago, Gary Kramlich
c2cb3f628555
Update a bunch of gettext stuff

Add support for a PURPLE_LOCALE_DIR environment variable so we can set the
locale directory in a dev environment.

Added purple_get_locale_dir() which will check the environment variable or
fallback to PURPLE_LOCALE_DIR.

Removed the old PACKAGE and PACKAGE_NAME constants and replaced them with
GETTEXT_PACKAGE which is much more self explanatory.

Testing Done:
Compiled with finch enabled and verified no issues.

Reviewed at https://reviews.imfreedom.org/r/2759/
i18n = import('i18n')
# use the glib preset which is defined at
# https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/i18n.py#L93
# at the time of this comment.
i18n.gettext(GETTEXT_PACKAGE, preset : 'glib')
devenv.append('PURPLE_LOCALE_DIR', meson.current_build_dir())