Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

bindtextdomain(3) [php man page]

BINDTEXTDOMAIN(3)							 1							 BINDTEXTDOMAIN(3)

bindtextdomain - Sets the path for a domain

SYNOPSIS
string bindtextdomain (string $domain, string $directory) DESCRIPTION
The bindtextdomain(3) function sets the path for a domain. PARAMETERS
o $domain - The domain o $directory - The directory path RETURN VALUES
The full pathname for the $domain currently being set. EXAMPLES
Example #1 bindtextdomain(3) example <?php $domain = 'myapp'; echo bindtextdomain($domain, '/usr/share/myapp/locale'); ?> The above example will output: /usr/share/myapp/locale PHP Documentation Group BINDTEXTDOMAIN(3)

Check Out this Related Man Page

BINDTEXTDOMAIN(3)					     Library Functions Manual						 BINDTEXTDOMAIN(3)

NAME
bindtextdomain - set directory containing message catalogs SYNOPSIS
#include <libintl.h> char * bindtextdomain (const char * domainname, const char * dirname); DESCRIPTION
The bindtextdomain function sets the base directory of the hierarchy containing message catalogs for a given message domain. A message domain is a set of translatable msgid messages. Usually, every software package has its own message domain. The need for calling bindtextdomain arises because packages are not always installed with the same prefix as the <libintl.h> header and the libc/libintl libraries. Message catalogs will be expected at the pathnames dirname/locale/category/domainname.mo, where locale is a locale name and category is a locale facet such as LC_MESSAGES. domainname must be a non-empty string. If dirname is not NULL, the base directory for message catalogs belonging to domain domainname is set to dirname. The function makes copies of the argument strings as needed. If the program wishes to call the chdir function, it is important that dirname be an absolute pathname; otherwise it cannot be guaranteed that the message catalogs will be found. If dirname is NULL, the function returns the previously set base directory for domain domainname. RETURN VALUE
If successful, the bindtextdomain function returns the current base directory for domain domainname, after possibly changing it. The resulting string is valid until the next bindtextdomain call for the same domainname and must not be modified or freed. If a memory alloca- tion failure occurs, it sets errno to ENOMEM and returns NULL. ERRORS
The following error can occur, among others: ENOMEM Not enough memory available. BUGS
The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI C. SEE ALSO
gettext(3), dgettext(3), dcgettext(3), ngettext(3), dngettext(3), dcngettext(3), textdomain(3), realpath(3) GNU gettext 0.17 May 2001 BINDTEXTDOMAIN(3)
Man Page

8 More Discussions You Might Find Interesting

1. Programming

error trying to compile a c++ source file

i tried to compile a c++ file using the g++ command: g++ <filename>.cpp -out <output_file> and i received the following error message: ld.so.1: gcc: fatal: relocation error: file gcc: symbol bindtextdomain: referenced symbol not found Killed is it that i am using incorrectly the... (1 Reply)
Discussion started by: ldrojasm
1 Replies

2. Shell Programming and Scripting

nawk/ksh help

Hello, First of all, I am trying to duplicate the sum command using ksh/nawk Lets assume the following algorithms work just fine and there is no calculation errors what so ever (which I doubt at this minute). For now, I wanna make sure the script uses the BSD algorithim if -r is used... (0 Replies)
Discussion started by: DeltaX
0 Replies

3. Solaris

Orcallator in solaris servers

Hi, Anybody know configuration/installation of orcalator (sic, orcallater) on unix environment? Please share any document on orcalator. If you have any procedure for orcalator please send me. Already i read orcaware configuration.but it is not configuring. Please do needful.It is very... (11 Replies)
Discussion started by: arjunreddy3
11 Replies

4. Solaris

Samba 3.5.4 compile error

Hello! I am trying install samba 3.5.4. and following this instruction from the source package. So, there are my steps: 1 cd ../samba-3.5.4/source3 2 ./configure (without any arguments) and when i run make it returns error .................................................... Compiling... (2 Replies)
Discussion started by: zhum
2 Replies

5. AIX

Symbol resolution failed for gawk on AIX

Hi, I am installing bison-2.4.3 on AIX. I am facing the below error. Could not load program gawk: Symbol resolution failed for gawk because: Symbol __pthread (number 159) is not exported from dependent module /usr/lib/libpthreads.a(shr_xpg5.o). Symbol libintl_bindtextdomain (number... (5 Replies)
Discussion started by: susmitha_m
5 Replies

6. UNIX for Dummies Questions & Answers

wget error

Hello I am getting the following error please help me out as why I am unable to get wget command right. oracle@host:/home/oracle>wget /usr/lib/dld.sl: Unresolved symbol: libintl_bindtextdomain (code) from wget Abort(coredump) Thanks (15 Replies)
Discussion started by: ronick11
15 Replies

7. AIX

AIX and Value too large to be stored in data type.

root@test8:/config1>oslevel -s 5300-01-00-0000 root@test8:/config1>oslevel -r 5300-01 while moving a file sized 9GB i got this message root@test8:/configapp>mv bkp_14JUN16_oraapp_2.tgz /oraapp bkp_14JUN16_oraapp_2.tgz: Value too large to be stored in data type. possibly need APAR... (2 Replies)
Discussion started by: filosophizer
2 Replies

8. AIX

0509-036 tar error

Hello Everyone, root@test8:/>gunzip < /configapp/bkp_14JUN16_oraapp.tgz | /opt/freeware/bin/tar x> exec(): 0509-036 Cannot load program /opt/freeware/bin/tar because of the following errors: 0509-130 Symbol resolution failed for tar because: 0509-136 Symbol... (2 Replies)
Discussion started by: filosophizer
2 Replies