Last change
on this file since 131 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
|
Rev | Line | |
---|
[82] | 1 | /* |
---|
| 2 | * $Id: Translation.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[88] | 8 | #include "Common/include/Environment.h" |
---|
| 9 | #include "Common/include/Translation.h" |
---|
| 10 | #include "Common/include/ErrorMorpheo.h" |
---|
[82] | 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | |
---|
[131] | 14 | #ifdef TRANSLATION |
---|
[88] | 15 | static bool translation_initialized; |
---|
[131] | 16 | #endif |
---|
[88] | 17 | |
---|
| 18 | void translation (void) |
---|
[82] | 19 | { |
---|
[88] | 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"; |
---|
[82] | 27 | |
---|
[88] | 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 | } |
---|
[82] | 33 | #endif |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.