Sponsored Content
Full Discussion: Error Library
Top Forums Shell Programming and Scripting Error Library Post 302352341 by pludi on Friday 11th of September 2009 05:00:21 AM
Old 09-11-2009
Those messages are usually somewhere in the code.

Most (OSS) programs use the gettext library in order to provide translations. The library uses .mo files which contain an ID for a message and the appropriate translation for the current locale, but all in a binary format. The .mo files are "compiled" from .po files in the source distribution at build time, and usually reside (on a Linux system) in /usr/share/locale/<lang code>/LC_MESSAGES/
 

10 More Discussions You Might Find Interesting

1. Programming

Solaris 9 Custom Library Error

Gday People i have a library created in c++ that is used to control custom hardware. The library compiles fine, however when i compile a test program that links the library i get the following errors: Undefined first referenced symbol in file... (3 Replies)
Discussion started by: _Michael_
3 Replies

2. Programming

Shared library creation error

Hi, I am facing problem while creating shared library using makeC++SharedLib_r. I am using the following command makeC++SharedLib_r -E rpcresolver.exp -L/home/myAccount/lib -lcxxbase -lfsbutil_r -lpthreads -bimport:/usr/lib/sna/appc_r.exp -o resolver-shared.o -p 0 rpcresolver.o Every time... (0 Replies)
Discussion started by: satguyz
0 Replies

3. Programming

library not found error

We are trying to execute C/C++ programs in SOlaris 8. Though the exes are compiled in g++, we donot have it installed in the target machine. We have the library files in the target machine and LD_LIBRARY_PATH is set correctly. Now when the exes are run, we are getting the error $ seq ld.so.1:... (1 Reply)
Discussion started by: virtual_j
1 Replies

4. Solaris

swat library error on Solaris 9

Hi, I had define swat in /etc/services, in /etc/inet/inetd.conf. When I start swat http://localhost:901 I receive the follow message: ld.so.1: swat: fatal: libiconv.so.2: open failed: No such file or directory Then I restart the system and the same message is comming. The swat is only... (2 Replies)
Discussion started by: MuellerUrs
2 Replies

5. Programming

Error while loading libstlport_gcc.so library

I am getting error while processing the below line : "DEPENDENCIES=$OMNIWORKS_PATH/tradewind/build/build_dg_c $(SET) "*.pcc" $(SET).pcctmp1 ".cc" h" ... --------------------------------------------- ! ---------------------------------------------------------------------------- ! Build rule... (0 Replies)
Discussion started by: shafi2all
0 Replies

6. Programming

Loading mysql library error..

I am making cpp application with mysql databases. I m able to compile my application, but when i m executing the program, i m getting the loading errror as - error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory can any one... (2 Replies)
Discussion started by: ps_sach
2 Replies

7. Programming

Error during making a shared library

Hi all, I am working with opensolaris and I am trying create a shared native library via using make but I am getting the following error-- make -f /Makefile.SunOS debug javah -jni SerialPort javah -jni SerialInputStream javah -jni SerialOutputStream gcc -mno-app-regs -DSUN... (4 Replies)
Discussion started by: smartgupta
4 Replies

8. Linux

Shared-library error

Hi All, i am facing shared library error, below is the output of the command I am executing on my client # /usr/software/bin/sudo /usr/software/bin/sudo: error while loading shared libraries: libaudit.so.1: cannot open shared object file: No such file or directory # I tried install... (4 Replies)
Discussion started by: muzaffar.k
4 Replies

9. Solaris

Library error while opening firefox

I have Solaris-10 zone, where I can open firefox in GUI via MobaXterm with root user, but when I try to open it with non root user, it fails with below error $ which firefox /usr/bin/firefox $ firefox ld.so.1: firefox-bin: fatal: relocation error: file... (6 Replies)
Discussion started by: solaris_1977
6 Replies

10. UNIX for Beginners Questions & Answers

Compiling GCC 6.3.0 - Error with Library

First of all -- thanks for being patient with me. I hope I'm submitting this correctly. Also I haven't done UNIX Admin since the early 1990's. I'm actually a DBA. But, since I'm the one in the office with the UNIX experience, I'm the SA. I haven't been able to compile GCC 6.3.0 which I need... (9 Replies)
Discussion started by: PJ_Namias
9 Replies
GETTEXT(3)						     Library Functions Manual							GETTEXT(3)

NAME
gettext, dgettext, dcgettext - translate message SYNOPSIS
#include <libintl.h> char * gettext (const char * msgid); char * dgettext (const char * domainname, const char * msgid); char * dcgettext (const char * domainname, const char * msgid, int category); DESCRIPTION
The gettext, dgettext and dcgettext functions attempt to translate a text string into the user's native language, by looking up the trans- lation in a message catalog. The msgid argument identifies the message to be translated. By convention, it is the English version of the message, with non-ASCII charac- ters replaced by ASCII approximations. This choice allows the translators to work with message catalogs, called PO files, that contain both the English and the translated versions of each message, and can be installed using the msgfmt utility. A message domain is a set of translatable msgid messages. Usually, every software package has its own message domain. The domain name is used to determine the message catalog where the translation is looked up; it must be a non-empty string. For the gettext function, it is specified through a preceding textdomain call. For the dgettext and dcgettext functions, it is passed as the domainname argument; if this argument is NULL, the domain name specified through a preceding textdomain call is used instead. Translation lookup operates in the context of the current locale. For the gettext and dgettext functions, the LC_MESSAGES locale facet is used. It is determined by a preceding call to the setlocale function. setlocale(LC_ALL,"") initializes the LC_MESSAGES locale based on the first nonempty value of the three environment variables LC_ALL, LC_MESSAGES, LANG; see setlocale(3). For the dcgettext function, the locale facet is determined by the category argument, which should be one of the LC_xxx constants defined in the <locale.h> header, excluding LC_ALL. In both cases, the functions also use the LC_CTYPE locale facet in order to convert the translated message from the translator's codeset to the current locale's codeset, unless overridden by a prior call to the bind_textdomain_codeset function. The message catalog used by the functions is at the pathname dirname/locale/category/domainname.mo. Here dirname is the directory specified through bindtextdomain. Its default is system and configuration dependent; typically it is prefix/share/locale, where prefix is the instal- lation prefix of the package. locale is the name of the current locale facet; the GNU implementation also tries generalizations, such as the language name without the territory name. category is LC_MESSAGES for the gettext and dgettext functions, or the argument passed to the dcgettext function. If the LANGUAGE environment variable is set to a nonempty value, and the locale is not the "C" locale, the value of LANGUAGE is assumed to contain a colon separated list of locale names. The functions will attempt to look up a translation of msgid in each of the locales in turn. This is a GNU extension. In the "C" locale, or if none of the used catalogs contain a translation for msgid, the gettext, dgettext and dcgettext functions return msgid. RETURN VALUE
If a translation was found in one of the specified catalogs, it is converted to the locale's codeset and returned. The resulting string is statically allocated and must not be modified or freed. Otherwise msgid is returned. ERRORS
errno is not modified. BUGS
The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI C. When an empty string is used for msgid, the functions may return a nonempty string. SEE ALSO
ngettext(3), dngettext(3), dcngettext(3), setlocale(3), textdomain(3), bindtextdomain(3), bind_textdomain_codeset(3), msgfmt(1) GNU gettext 0.18.1 May 2001 GETTEXT(3)
All times are GMT -4. The time now is 09:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy