path: root/util.h
diff options
authorDimitar Petrovski <>2013-02-22 08:52:10 (GMT)
committerDimitar Petrovski <>2013-02-22 08:52:10 (GMT)
commit60376c4c1f0a4b65cb07b89d5c095015ec3b1215 (patch)
tree17ffec6570452b26bb21436eabafdb24de5bf88b /util.h
parentc9a302eff85ad0d6c337743b7373b4ee0c7bded3 (diff)
Added ability to translate themes. Examples added
Fixed handling of duplicate epg entries Added new SKY themes Added checking/updating of themes files on load
Diffstat (limited to 'util.h')
1 files changed, 9 insertions, 0 deletions
diff --git a/util.h b/util.h
index bef2a3e..2a4cd51 100644
--- a/util.h
+++ b/util.h
@@ -10,6 +10,7 @@
#include <time.h>
#include <stdlib.h>
#include <string>
+#include <map>
class cChannel;
struct tChannelID;
@@ -68,6 +69,12 @@ void CleanString(unsigned char *String);
void decodeText2(const unsigned char *from, int len, char *buffer, int buffsize);
char *freesat_huffman_decode(const unsigned char *src, size_t size);
void sortSchedules(cSchedules * Schedules, tChannelID channelID);
+ * Locate the translation of a given Theme (Category, Genre) string in the translation map
+ * @param the text to search
+ * @return found translation or the source text if not found.
+ */
+std::string findThemeTr(const char*);
//struct sNode
@@ -95,6 +102,8 @@ struct hufftab
extern struct hufftab *tables[2][128];
extern int table_size[2][128];
//static sNodeH* sky_tables[2];
+extern std::map<std::string,std::string> tableDict;
class cCharsetFixer