Last change
on this file since 138 was
131,
checked in by rosiere, 15 years ago
|
1) add constant method
2) test with systemc 2.2.0
|
-
Property svn:keywords set to
Id
|
File size:
757 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Translation.cpp 131 2009-07-08 18:40:08Z 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 | #ifdef TRANSLATION |
---|
15 | static bool translation_initialized; |
---|
16 | #endif |
---|
17 | |
---|
18 | void translation (void) |
---|
19 | { |
---|
20 | #ifdef TRANSLATION |
---|
21 | if (not translation_initialized) |
---|
22 | { |
---|
23 | environment(); |
---|
24 | |
---|
25 | std::string dirname = MORPHEO_TOPLEVEL; |
---|
26 | dirname += "/IPs/systemC/processor/Morpheo/locale"; |
---|
27 | |
---|
28 | if (bindtextdomain(MORPHEO_PACKAGE,dirname.c_str()) == NULL) |
---|
29 | throw ERRORMORPHEO("Translation","Error in set directory containing message catalogs.\n"); |
---|
30 | |
---|
31 | translation_initialized = true; |
---|
32 | } |
---|
33 | #endif |
---|
34 | } |
---|
35 | |
---|
36 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.