Last change
on this file since 83 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
-
Property svn:keywords set to
Id
|
File size:
609 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Translation.cpp 82 2008-05-01 16:48:45Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "../include/Translation.h" |
---|
9 | #include "../include/ErrorMorpheo.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | |
---|
13 | Translation:: Translation (void) |
---|
14 | { |
---|
15 | #ifndef NO_TRANSLATION |
---|
16 | char * top_level = getenv("MORPHEO_TOPLEVEL"); |
---|
17 | |
---|
18 | if (top_level == NULL) |
---|
19 | throw ERRORMORPHEO("Translation","Error morpheo environment is not positioned\n"); |
---|
20 | |
---|
21 | std::string dirname = top_level; |
---|
22 | dirname += "IPs/systemC/processor/Morpheo/locale"; |
---|
23 | |
---|
24 | bindtextdomain(MORPHEO_PACKAGE,dirname.c_str()); |
---|
25 | #endif |
---|
26 | } |
---|
27 | |
---|
28 | Translation::~Translation (void) |
---|
29 | { |
---|
30 | |
---|
31 | } |
---|
32 | |
---|
33 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.