Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
74fa01a0
Commit
74fa01a0
authored
Jul 07, 2015
by
François Grisez
Browse files
Define ENABLE_NLS instead of HAVE_INTL when internationalization is available
parent
56055005
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
config.h.cmake
config.h.cmake
+1
-1
console/linphonec.c
console/linphonec.c
+2
-2
coreapi/misc.c
coreapi/misc.c
+1
-1
coreapi/private.h
coreapi/private.h
+1
-1
gtk/linphone.h
gtk/linphone.h
+1
-1
gtk/main.c
gtk/main.c
+3
-3
intl/libgettext.h
intl/libgettext.h
+1
-1
No files found.
config.h.cmake
View file @
74fa01a0
...
...
@@ -42,4 +42,4 @@
#cmakedefine HAVE_ZLIB 1
#cmakedefine HAVE_CU_GET_SUITE 1
#cmakedefine HAVE_CU_CURSES 1
#cmakedefine
HAVE_INTL
1
#cmakedefine
ENABLE_NLS
1
console/linphonec.c
View file @
74fa01a0
...
...
@@ -65,7 +65,7 @@
#endif
/*_WIN32_WCE*/
#ifdef
HAVE_INTL
#ifdef
ENABLE_NLS
#include <libintl.h>
#ifndef _
#define _(String) gettext(String)
...
...
@@ -714,7 +714,7 @@ linphonec_init(int argc, char **argv)
default:
break
;
}
#ifdef
HAVE_INTL
#ifdef
ENABLE_NLS
if
(
NULL
==
bindtextdomain
(
GETTEXT_PACKAGE
,
PACKAGE_LOCALE_DIR
))
perror
(
"bindtextdomain failed"
);
#ifndef __ARM__
...
...
coreapi/misc.c
View file @
74fa01a0
...
...
@@ -96,7 +96,7 @@ void linphone_core_set_payload_type_number(LinphoneCore *lc, PayloadType *pt, in
const
char
*
linphone_core_get_payload_type_description
(
LinphoneCore
*
lc
,
PayloadType
*
pt
){
if
(
ms_filter_codec_supported
(
pt
->
mime_type
)){
MSFilterDesc
*
desc
=
ms_filter_get_encoder
(
pt
->
mime_type
);
#ifdef
HAVE_INTL
#ifdef
ENABLE_NLS
return
dgettext
(
"mediastreamer"
,
desc
->
text
);
#else
return
desc
->
text
;
...
...
coreapi/private.h
View file @
74fa01a0
...
...
@@ -65,7 +65,7 @@ extern "C" {
#define PACKAGE_DATA_DIR "."
#endif
#ifdef
HAVE_INTL
#ifdef
ENABLE_NLS
#include <libintl.h>
#ifndef _
#define _(String) dgettext(GETTEXT_PACKAGE,String)
...
...
gtk/linphone.h
View file @
74fa01a0
...
...
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "ldap/ldapprovider.h"
#ifdef
HAVE_INTL
#ifdef
ENABLE_NLS
# include <libintl.h>
# undef _
# define _(String) dgettext (GETTEXT_PACKAGE,String)
...
...
gtk/main.c
View file @
74fa01a0
...
...
@@ -51,7 +51,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <libnotify/notify.h>
#endif
#ifdef
HAVE_INTL
#ifdef
ENABLE_NLS
#include <locale.h>
#endif
...
...
@@ -2098,7 +2098,7 @@ int main(int argc, char *argv[]){
g_setenv
(
"LANGUAGE"
,
lang
,
1
);
}
#ifdef
HAVE_INTL
#ifdef
ENABLE_NLS
setlocale
(
LC_ALL
,
""
);
bindtextdomain
(
GETTEXT_PACKAGE
,
PACKAGE_LOCALE_DIR
);
bind_textdomain_codeset
(
GETTEXT_PACKAGE
,
"UTF-8"
);
...
...
@@ -2148,7 +2148,7 @@ int main(int argc, char *argv[]){
}
}
#if defined(__APPLE__) && defined(
HAVE_INTL
)
#if defined(__APPLE__) && defined(
ENABLE_NLS
)
/*workaround for bundles. GTK is unable to find translations in the bundle (obscure bug again).
So we help it:*/
{
...
...
intl/libgettext.h
View file @
74fa01a0
...
...
@@ -20,7 +20,7 @@
#define _LIBGETTEXT_H 1
/* NLS can be disabled through the configure --disable-nls option. */
#if
HAVE_INTL
#if
ENABLE_NLS
/* Get declarations of GNU message catalog functions. */
# include <libintl.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment