aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgr/localemgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgr/localemgr.cpp')
-rw-r--r--src/mgr/localemgr.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mgr/localemgr.cpp b/src/mgr/localemgr.cpp
index bc12f4c..bd43574 100644
--- a/src/mgr/localemgr.cpp
+++ b/src/mgr/localemgr.cpp
@@ -2,7 +2,7 @@
* localemgr.cpp - implementation of class LocaleMgr used to interact with
* registered locales for a sword installation
*
- * $Id: localemgr.cpp,v 1.12 2002/06/19 09:24:44 scribe Exp $
+ * $Id: localemgr.cpp,v 1.14 2002/10/01 22:04:59 dglassey Exp $
*
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -39,6 +39,7 @@
#include <localemgr.h>
#include <filemgr.h>
+SWORD_NAMESPACE_START
LocaleMgr LocaleMgr::systemLocaleMgr;
@@ -47,7 +48,7 @@ LocaleMgr::LocaleMgr(const char *iConfigPath) {
char *prefixPath = 0;
char *configPath = 0;
char configType = 0;
- string path;
+ std::string path;
defaultLocaleName = 0;
@@ -103,7 +104,7 @@ LocaleMgr::~LocaleMgr() {
void LocaleMgr::loadConfigDir(const char *ipath) {
DIR *dir;
struct dirent *ent;
- string newmodfile;
+ std::string newmodfile;
LocaleMap::iterator it;
if ((dir = opendir(ipath))) {
@@ -153,8 +154,8 @@ SWLocale *LocaleMgr::getLocale(const char *name) {
}
-list <string> LocaleMgr::getAvailableLocales() {
- list <string> retVal;
+std::list <std::string> LocaleMgr::getAvailableLocales() {
+ std::list <std::string> retVal;
for (LocaleMap::iterator it = locales.begin(); it != locales.end(); it++)
retVal.push_back((*it).second->getName());
@@ -182,3 +183,5 @@ const char *LocaleMgr::getDefaultLocaleName() {
void LocaleMgr::setDefaultLocaleName(const char *name) {
stdstr(&defaultLocaleName, name);
}
+
+SWORD_NAMESPACE_END