2000-03-10 13:52:19 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef LANGUAGE_H
|
|
|
|
#define LANGUAGE_H
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
struct Language {
|
|
|
|
string lang;
|
|
|
|
string display;
|
2000-03-17 10:14:46 +00:00
|
|
|
bool RightToLeft;
|
2000-03-10 13:52:19 +00:00
|
|
|
};
|
|
|
|
|
2000-04-26 13:57:28 +00:00
|
|
|
#if 0
|
|
|
|
bool operator==(Language const & l1, Language const & l2)
|
|
|
|
{
|
|
|
|
return l1.lang == l2.lang
|
|
|
|
&& l1.display == l2.display
|
|
|
|
&& l1.RightToLeft == l2.RightToLeft;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool operator!=(Language const l1, Language const & l2)
|
|
|
|
{
|
|
|
|
return !(l1 == l2);
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2000-04-04 00:19:15 +00:00
|
|
|
typedef std::map<string, Language> Languages;
|
2000-03-10 13:52:19 +00:00
|
|
|
extern Languages languages;
|
2000-03-17 10:14:46 +00:00
|
|
|
extern Language const * default_language;
|
2000-04-26 13:57:28 +00:00
|
|
|
extern Language const *ignore_language;
|
2000-03-10 13:52:19 +00:00
|
|
|
|
|
|
|
#endif
|