// -------------------------------------------------------------- -*- C++ -*- // File: doc/fondation/userman/src/internationalization/checkLocalizedDbm.cpp // -------------------------------------------------------------------------- // Copyright (C) 1990-2008 by ILOG. // All Rights Reserved. // -------------------------------------------------------------------------- #include <ilviews/ilv.h> #include <ilviews/base/message.h> #include <ilog/pathlist.h> int main(int argc, char* argv[]) { if (!IlvSetLocale()) { exit(1); } IlvDisplay* display = new IlvDisplay("CheckLocalizedDbm", 0, argc, argv); IlvPrint("Current Views display language: %s\n", display->getCurrentLanguage()->name()); const char* path = display->getPath(); IlPathList plist(path? path : "./"); IlvPrint("Current path: %s\n", plist.getString().getValue()); display->getDatabase()->read("my-file.dbm", display); return 0; } |
IlvPathList::findInPath file ilviews/locale/fr_FR.ISO-8859-1/views.dbm not in ./. IlvPathList::findInPath found: <$ILVHOME>/data/ilviews/locale/fr_FR.ISO-8859-1/views.dbm. Current Views display language: fr_FR Current path: ./ IlvPathList::findInPath file locale/fr_FR.ISO-8859-1/my-file.dbm not in ./. IlvPathList::findInPath file locale/fr_FR.ISO-8859-1/my-file.dbm not in <$ILVHOME>/data/. IlvPathList::findInPath file locale/fr_FR.ISO-8859-1/my-file.dbm not in <$ILVHOME>/data/icon/. IlvPathList::findInPath file locale/fr_FR.ISO-8859-1/my-file.dbm not in <$ILVHOME>/data/images/. IlvDisplay::findInPath Couldn’t find ’locale/fr_FR.ISO-8859-1/my-file.dbm’ IlvPathList::findInPath file my-file.dbm not in ./. IlvPathList::findInPath file my-file.dbm not in <$ILVHOME>/data/. IlvPathList::findInPath file my-file.dbm not in <$ILVHOME>/data/icon/. IlvPathList::findInPath file my-file.dbm not in <$ILVHOME>/data/images/. IlvDisplay::findInPath Couldn’t find ’my-file.dbm’ |