mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
Always define ENABLE_NLS
GLib guarantees libintl API is always available, provided by proxy-libintl as last resort. GLib itself unconditionally define ENABLE_NLS. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2028>
This commit is contained in:
parent
82ca0e291b
commit
e950095867
5 changed files with 5 additions and 6 deletions
|
@ -52,6 +52,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
|
cdata.set('ENABLE_NLS', 1)
|
||||||
|
|
||||||
if cc.get_id() == 'msvc'
|
if cc.get_id() == 'msvc'
|
||||||
msvc_args = [
|
msvc_args = [
|
||||||
|
@ -572,7 +573,6 @@ endif
|
||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
cdata.set('ENABLE_NLS', 1)
|
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,7 @@ if cc.has_link_argument('-Wl,-Bsymbolic-functions')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
core_conf = configuration_data()
|
core_conf = configuration_data()
|
||||||
|
core_conf.set('ENABLE_NLS', 1)
|
||||||
|
|
||||||
# Symbol visibility
|
# Symbol visibility
|
||||||
if cc.get_id() == 'msvc'
|
if cc.get_id() == 'msvc'
|
||||||
|
@ -476,7 +477,6 @@ subdir('tests')
|
||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
core_conf.set('ENABLE_NLS', 1)
|
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
|
|
@ -119,6 +119,7 @@ if glib_checks.disabled() or (glib_checks.auto() and not gst_version_is_dev)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
|
cdata.set('ENABLE_NLS', 1)
|
||||||
|
|
||||||
check_headers = [
|
check_headers = [
|
||||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||||
|
@ -494,7 +495,6 @@ endif
|
||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
cdata.set('ENABLE_NLS', 1)
|
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,8 @@ if have_cxx and cxx.has_link_argument('-Wl,-Bsymbolic-functions')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
|
cdata.set('ENABLE_NLS', 1)
|
||||||
|
|
||||||
check_headers = [
|
check_headers = [
|
||||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||||
['HAVE_INTTYPES_H', 'inttypes.h'],
|
['HAVE_INTTYPES_H', 'inttypes.h'],
|
||||||
|
@ -302,7 +304,6 @@ subdir('tests')
|
||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
cdata.set('ENABLE_NLS', 1)
|
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
|
|
@ -11,8 +11,6 @@ Internationalization notes
|
||||||
- use dgettext (possibly disguised as _) to translate from a set domain
|
- use dgettext (possibly disguised as _) to translate from a set domain
|
||||||
|
|
||||||
- How to make your plug-in code translatable:
|
- How to make your plug-in code translatable:
|
||||||
- include <gst/gst-i18n-plugin.h> in all files that mark strings for
|
|
||||||
translation, or do the bindtextdomain call
|
|
||||||
- in plugin_init, add a block like this:
|
- in plugin_init, add a block like this:
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
|
|
Loading…
Reference in a new issue