Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
translator.h.svn-base
Package: openkore-2.0.7.zip [view]
Upload User: market2
Upload Date: 2018-11-18
Package Size: 18786k
Code Size: 1k
Category:
Game Hook Crack
Development Platform:
Windows_Unix
- #ifndef _TRANSLATOR_H_
- #define _TRANSLATOR_H_
- #include "filereader.h"
- /**
- * The Translator class looks up translations stored in .mo files.
- * See http://www.gnu.org/software/gettext/manual/html_chapter/gettext_8.html#SEC136
- * for file format description.
- */
- class Translator {
- private:
- FileReader *reader;
- unsigned int origTableOffset;
- unsigned int translationTableOffset;
- unsigned int count;
- const char *getOrigMessage (unsigned int index);
- const char *getTranslationMessage (unsigned int index, unsigned int &len);
- public:
- /**
- * Create a new Translator object. Throws an exception if the
- * translation file cannot be loaded.
- *
- * @param filename Filename of the .gmo file which contains translations.
- * @pre filename != NULL
- */
- Translator (const char *filename);
- ~Translator ();
- /**
- * Translate a message.
- *
- * @param message The message to translate.
- * @param msglen message's length.
- * @param retlen The length of the return value message, if the return
- * value is not NULL.
- * @return A translation of message. If message cannot be translated, then
- * NULL is returned.
- *
- * @pre message != NULL && msglen >= 0
- */
- const char *translate (const char *message, unsigned int &retlen);
- };
- #endif /* _TRANSLATOR_H_ */