Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
linphone
Commits
ea36261c
Commit
ea36261c
authored
Jul 03, 2015
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: rename HAVE_GETTEXT with HAVE_INTL
parent
d40fdde1
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
28 deletions
+23
-28
CMakeLists.txt
CMakeLists.txt
+1
-2
config.h
build/android/config.h
+3
-6
config.h.cmake
config.h.cmake
+1
-1
configure.ac
configure.ac
+1
-2
linphonec.c
console/linphonec.c
+2
-2
misc.c
coreapi/misc.c
+6
-6
private.h
coreapi/private.h
+2
-2
linphone.h
gtk/linphone.h
+1
-1
main.c
gtk/main.c
+5
-5
libgettext.h
intl/libgettext.h
+1
-1
No files found.
CMakeLists.txt
View file @
ea36261c
...
...
@@ -170,8 +170,7 @@ if(MSVC)
include_directories
(
${
MSVC_INCLUDE_DIR
}
)
endif
()
if
(
INTL_FOUND
)
set
(
HAVE_GETTEXT 1
)
add_definitions
(
"-DENABLE_NLS"
)
set
(
HAVE_INTL 1
)
include_directories
(
${
INTL_INCLUDE_DIRECTORIES
}
)
endif
()
...
...
build/android/config.h
View file @
ea36261c
...
...
@@ -10,9 +10,6 @@
/* Define if wizard enabled */
/* #undef BUILD_WIZARD */
/* Tells whether localisation is possible */
/* #undef ENABLE_NLS */
/* Defined when using gsm at nonstandard rates */
/* #undef ENABLE_NONSTANDARD_GSM */
...
...
@@ -60,7 +57,7 @@
/* #undef HAVE_GETIFADDRS */
/* Tells wheter localisation is possible */
/* #undef HAVE_
GETTEXT
*/
/* #undef HAVE_
INTL
*/
/* Define to 1 if you have the `get_current_dir_name' function. */
#define HAVE_GET_CURRENT_DIR_NAME 1
...
...
@@ -153,7 +150,7 @@
/* #undef LINPHONE_CONFIG_DIR */
/* path of liblinphone plugins, not mediastreamer2 plugins */
/* #undef LINPHONE_PLUGINS_DIR */
/* #undef LINPHONE_PLUGINS_DIR */
/* Linphone's version number */
/* #undef LINPHONE_VERSION */
...
...
@@ -205,7 +202,7 @@
/* #undef VERSION */
/* defined if video support is available */
/* #undef VIDEO_ENABLED */
/* #undef VIDEO_ENABLED */
/* Tell whether RSVP support should be compiled. */
/* #undef VINCENT_MAURY_RSVP */
...
...
config.h.cmake
View file @
ea36261c
...
...
@@ -42,4 +42,4 @@
#cmakedefine HAVE_ZLIB 1
#cmakedefine HAVE_CU_GET_SUITE 1
#cmakedefine HAVE_CU_CURSES 1
#cmakedefine HAVE_
GETTEXT
1
#cmakedefine HAVE_
INTL
1
configure.ac
View file @
ea36261c
...
...
@@ -147,8 +147,7 @@ if test "$mingw_found" != "yes" ; then
LIBS="$LIBS $LIBINTL"
else
if test "$USE_NLS" = "yes" ; then
AC_DEFINE(ENABLE_NLS,1,[Tells whether localisation is possible])
AC_DEFINE(HAVE_GETTEXT,1,[Tells wheter localisation is possible])
AC_DEFINE(HAVE_INTL,1,[Tells wheter localisation is possible])
LIBS="$LIBS -lintl"
fi
fi
...
...
console/linphonec.c
View file @
ea36261c
...
...
@@ -65,7 +65,7 @@
#endif
/*_WIN32_WCE*/
#ifdef HAVE_
GETTEXT
#ifdef HAVE_
INTL
#include <libintl.h>
#ifndef _
#define _(String) gettext(String)
...
...
@@ -714,7 +714,7 @@ linphonec_init(int argc, char **argv)
default:
break
;
}
#ifdef
ENABLE_NLS
#ifdef
HAVE_INTL
if
(
NULL
==
bindtextdomain
(
GETTEXT_PACKAGE
,
PACKAGE_LOCALE_DIR
))
perror
(
"bindtextdomain failed"
);
#ifndef __ARM__
...
...
coreapi/misc.c
View file @
ea36261c
...
...
@@ -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
ENABLE_NLS
#ifdef
HAVE_INTL
return
dgettext
(
"mediastreamer"
,
desc
->
text
);
#else
return
desc
->
text
;
...
...
@@ -252,7 +252,7 @@ bool_t linphone_core_check_payload_type_usability(LinphoneCore *lc, const Payloa
linphone_core_get_upload_bandwidth
(
lc
));
bool_t
ret
=
linphone_core_is_payload_type_usable_for_bandwidth
(
lc
,
pt
,
maxbw
);
if
((
pt
->
type
==
PAYLOAD_AUDIO_CONTINUOUS
||
pt
->
type
==
PAYLOAD_AUDIO_PACKETIZED
)
&&
lc
->
sound_conf
.
capt_sndcard
&&
lc
->
sound_conf
.
capt_sndcard
&&
!
(
ms_snd_card_get_capabilities
(
lc
->
sound_conf
.
capt_sndcard
)
&
MS_SND_CARD_CAP_BUILTIN_ECHO_CANCELLER
)
&&
linphone_core_echo_cancellation_enabled
(
lc
)
&&
(
pt
->
clock_rate
!=
16000
&&
pt
->
clock_rate
!=
8000
)
...
...
@@ -715,7 +715,7 @@ void linphone_core_update_ice_state_in_call_stats(LinphoneCall *call)
call
->
stats
[
LINPHONE_CALL_STATS_VIDEO
].
ice_state
=
LinphoneIceStateFailed
;
}
}
ms_message
(
"Call [%p] New ICE state: audio: [%s] video: [%s]"
,
call
,
ms_message
(
"Call [%p] New ICE state: audio: [%s] video: [%s]"
,
call
,
linphone_ice_state_to_string
(
call
->
stats
[
LINPHONE_CALL_STATS_AUDIO
].
ice_state
),
linphone_ice_state_to_string
(
call
->
stats
[
LINPHONE_CALL_STATS_VIDEO
].
ice_state
));
}
...
...
@@ -723,7 +723,7 @@ void linphone_call_stop_ice_for_inactive_streams(LinphoneCall *call) {
int
i
;
IceSession
*
session
=
call
->
ice_session
;
SalMediaDescription
*
desc
=
call
->
localdesc
;
if
(
session
==
NULL
)
return
;
if
(
ice_session_state
(
session
)
==
IS_Completed
)
return
;
...
...
@@ -1628,7 +1628,7 @@ MsZrtpCryptoTypesCount linphone_core_get_zrtp_key_agreement_suites(LinphoneCore
if
(
zrtpConfig
==
NULL
)
{
return
0
;
}
origPtr
=
strdup
(
zrtpConfig
);
zrtpConfig
=
origPtr
;
while
((
entry
=
seperate_string_list
(
&
zrtpConfig
)))
{
...
...
@@ -1650,7 +1650,7 @@ MsZrtpCryptoTypesCount linphone_core_get_zrtp_cipher_suites(LinphoneCore *lc, MS
if
(
zrtpConfig
==
NULL
)
{
return
0
;
}
origPtr
=
strdup
(
zrtpConfig
);
zrtpConfig
=
origPtr
;
while
((
entry
=
seperate_string_list
(
&
zrtpConfig
)))
{
...
...
coreapi/private.h
View file @
ea36261c
...
...
@@ -65,7 +65,7 @@ extern "C" {
#define PACKAGE_DATA_DIR "."
#endif
#ifdef HAVE_
GETTEXT
#ifdef HAVE_
INTL
#include <libintl.h>
#ifndef _
#define _(String) dgettext(GETTEXT_PACKAGE,String)
...
...
@@ -81,7 +81,7 @@ extern "C" {
#ifdef ANDROID
#include <jni.h>
#endif
#ifndef _WIN32
#define WINAPI_FAMILY_PARTITION(x) 1
#endif
...
...
gtk/linphone.h
View file @
ea36261c
...
...
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "ldap/ldapprovider.h"
#ifdef
ENABLE_NLS
#ifdef
HAVE_INTL
# include <libintl.h>
# undef _
# define _(String) dgettext (GETTEXT_PACKAGE,String)
...
...
gtk/main.c
View file @
ea36261c
...
...
@@ -51,7 +51,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <libnotify/notify.h>
#endif
#ifdef
ENABLE_NLS
#ifdef
HAVE_INTL
#include <locale.h>
#endif
...
...
@@ -535,9 +535,9 @@ void linphone_gtk_show_about(void){
static
const
char
*
defcfg
=
"defcfg"
;
about
=
linphone_gtk_create_window
(
"about"
,
the_ui
);
gtk_about_dialog_set_url_hook
(
about_url_clicked
,
NULL
,
NULL
);
memset
(
&
filestat
,
0
,
sizeof
(
filestat
));
if
(
stat
(
license_file
,
&
filestat
)
!=
0
){
license_file
=
"COPYING"
;
...
...
@@ -2102,7 +2102,7 @@ int main(int argc, char *argv[]){
g_setenv
(
"LANGUAGE"
,
lang
,
1
);
}
#ifdef
ENABLE_NLS
#ifdef
HAVE_INTL
setlocale
(
LC_ALL
,
""
);
bindtextdomain
(
GETTEXT_PACKAGE
,
PACKAGE_LOCALE_DIR
);
bind_textdomain_codeset
(
GETTEXT_PACKAGE
,
"UTF-8"
);
...
...
@@ -2152,7 +2152,7 @@ int main(int argc, char *argv[]){
}
}
#if defined(__APPLE__) && defined(
ENABLE_NLS
)
#if defined(__APPLE__) && defined(
HAVE_INTL
)
/*workaround for bundles. GTK is unable to find translations in the bundle (obscure bug again).
So we help it:*/
{
...
...
intl/libgettext.h
View file @
ea36261c
...
...
@@ -20,7 +20,7 @@
#define _LIBGETTEXT_H 1
/* NLS can be disabled through the configure --disable-nls option. */
#if
ENABLE_NLS
#if
HAVE_INTL
/* 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