Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

get_config_text(3alleg4) [netbsd man page]

get_config_text(3alleg4)					  Allegro manual					  get_config_text(3alleg4)

NAME
get_config_text - Returns a string translated to the current language. Allegro game programming library. SYNOPSIS
#include <allegro.h> const char *get_config_text(const char *msg); DESCRIPTION
This function is primarily intended for use by internal library code, but it may perhaps be helpful to application programmers as well. It uses the `language.dat' or `XXtext.cfg' files (where XX is a language code) to look up a translated version of the parameter in the cur- rently selected language. This is basically the same thing as calling get_config_string() with `[language]' as the section, `msg' as the variable name, and `msg' as the default value, but it contains some special code to handle Unicode format conversions. The `msg' parameter is always given in ASCII format, but the returned string will be converted into the current text encoding, with memory being allocated as required, so you can assume that this pointer will persist without having to manually allocate storage space for each string. Note that if you are planning on distributing your game on the Unix platform there is a special issue with how to deal with the `lan- guage.dat' file. Read section "Files shared by Allegro" of the chapter "Unix specifics" to learn more about this. RETURN VALUE
Returns a suitable translation if one can be found or a copy of the parameter if nothing else is available. SEE ALSO
get_config_string(3alleg4), reload_config_texts(3alleg4) Allegro version 4.4.2 get_config_text(3alleg4)

Check Out this Related Man Page

get_config_text(3alleg4)					  Allegro manual					  get_config_text(3alleg4)

NAME
get_config_text - Returns a string translated to the current language. Allegro game programming library. SYNOPSIS
#include <allegro.h> const char *get_config_text(const char *msg); DESCRIPTION
This function is primarily intended for use by internal library code, but it may perhaps be helpful to application programmers as well. It uses the `language.dat' or `XXtext.cfg' files (where XX is a language code) to look up a translated version of the parameter in the cur- rently selected language. This is basically the same thing as calling get_config_string() with `[language]' as the section, `msg' as the variable name, and `msg' as the default value, but it contains some special code to handle Unicode format conversions. The `msg' parameter is always given in ASCII format, but the returned string will be converted into the current text encoding, with memory being allocated as required, so you can assume that this pointer will persist without having to manually allocate storage space for each string. Note that if you are planning on distributing your game on the Unix platform there is a special issue with how to deal with the `lan- guage.dat' file. Read section "Files shared by Allegro" of the chapter "Unix specifics" to learn more about this. RETURN VALUE
Returns a suitable translation if one can be found or a copy of the parameter if nothing else is available. SEE ALSO
get_config_string(3alleg4), reload_config_texts(3alleg4) Allegro version 4.4.2 get_config_text(3alleg4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

HP UX Unix ???

Hi folksss.. I know this one is out of the topic... but want to ask: Does anyone have HP UX Unix that I can get from ?? Please help. I want to learn it very much. P.S: I have DSL... :) Thanks (5 Replies)
Discussion started by: helpme2
5 Replies

2. Programming

C or C++?

Hello! Which one (C or C++) should I learn for Unix System?, Which one is more useful for Unix System? Thanks John (1 Reply)
Discussion started by: jung1975
1 Replies

3. UNIX for Dummies Questions & Answers

C with Tk

Is there any tutorials to use Tk with C instead of perl or other programming language...beacuse I wan't to learn C (1 Reply)
Discussion started by: CreamHarry
1 Replies

4. OS X (Apple)

Want to learn Unix on PB

I've got a 15" PB running Panther and I truly want to delve into the Unix base. I want to learn what is going on under my system and I want to learn how to be able to work in the Unix environment. I've had some experience with Redhat and Mandrake Linux, so I'm not afraid of the shell prompt. I'd... (2 Replies)
Discussion started by: MortonM33
2 Replies

5. HP-UX

HP-UX 10.x help.....

Hi, I have HP-UX Cds and I need to know if is it possible to install it on a common PC because I have a HP-9000 with HP-UX 10.x and I have to learn Unix. Yo nunca he trabajado con Unix, yo tengo la experiencia en la administración de Sistema operativo de Windows. I have looked for... (3 Replies)
Discussion started by: efrenba
3 Replies

6. Programming

Please read...

Ok i want to learn a programming language just to fool around with and such. Eventually going to try to customize an OS to what i want it to be. What is the best programming language to start out with? Also where can i get information on that for beginners. Any info, and if possible reasons why... (3 Replies)
Discussion started by: Corrail
3 Replies

7. Programming

Learn C or C++

Hi, Apologies if this question has been asked before. I would like to know which language is better to learn in terms of programming in unix? is C dying out and being replaced by C++ or is it a combination of the 2 or just mainly C? Thanks C19 (2 Replies)
Discussion started by: c19h28O2
2 Replies

8. Programming

c language

is there any difference between "char*" and "char *" (1 Reply)
Discussion started by: amol munde
1 Replies

9. BSD

installing free BSD

Hello friends. I am new to Unix although i am very flexible to any programming language. i was a window user. Now, no more. I have decided myself to switch to unix. Here is my problem: I burned the free BSD into my new RW CD's. I inserted the bootable manager first then, it was scanning and... (5 Replies)
Discussion started by: bonjour2006
5 Replies

10. Programming

How to read the CTS and DSR of RS232 in Unix using C language?

Hello to all Gurus out there, Could you show me a source code in Unix platform using C language. I want to read the status or voltage level of the DSR and CTS. Thanks a lot, Swing5 (2 Replies)
Discussion started by: Swing5
2 Replies

11. Shell Programming and Scripting

UNIX Certifications

Hi All, Can anybody let me know if there is any Unix certification course which will provide basically programming in Unix. (4 Replies)
Discussion started by: darshakraut
4 Replies

12. Programming

Some questions for mini game

Hello fellow programmers!:) First of all excuse me for my English, i am from abroad... I am trying to learn the C++ programming language as it is one of the most basic languages.So,instead of just creating small examples for each feature(like class,input/output etc), I decided to create a mini... (6 Replies)
Discussion started by: bashuser2
6 Replies

13. Programming

How is a new Web Development language written ?

I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm asking... (1 Reply)
Discussion started by: Anna Hussie
1 Replies

14. Programming

How is a new Web Development language written ?

I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm... (3 Replies)
Discussion started by: Anna Hussie
3 Replies

15. Ubuntu

Modifying PATH (LINUX, Ubuntu)

Hello, I'm a newbi to Unix and the last few weeks I have been trying to learn Unix through a book called Unix in 24 hours. I have tried advanced shell programming (that's what the chapter is called) today and what the excersise was all about was to create mylocate - a version of locate that is... (1 Reply)
Discussion started by: Tolmac
1 Replies