Last change
on this file since 122 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
731 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Translation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Common/include/Environment.h" |
---|
9 | #include "Common/include/Translation.h" |
---|
10 | #include "Common/include/ErrorMorpheo.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | |
---|
14 | static bool translation_initialized; |
---|
15 | |
---|
16 | void translation (void) |
---|
17 | { |
---|
18 | #ifdef TRANSLATION |
---|
19 | if (not translation_initialized) |
---|
20 | { |
---|
21 | environment(); |
---|
22 | |
---|
23 | std::string dirname = MORPHEO_TOPLEVEL; |
---|
24 | dirname += "/IPs/systemC/processor/Morpheo/locale"; |
---|
25 | |
---|
26 | if (bindtextdomain(MORPHEO_PACKAGE,dirname.c_str()) == NULL) |
---|
27 | throw ERRORMORPHEO("Translation","Error in set directory containing message catalogs.\n"); |
---|
28 | |
---|
29 | translation_initialized = true; |
---|
30 | } |
---|
31 | #endif |
---|
32 | } |
---|
33 | |
---|
34 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.