File: translator.h

package info (click to toggle)
sludge 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,844 kB
  • ctags: 2,981
  • sloc: cpp: 31,952; sh: 1,259; xml: 874; makefile: 672
file content (32 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 *  Translator.h
 *  Sludge Dev Kit
 *
 *  Created by Rikard Peterson on 2009-08-06.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#ifdef __cplusplus
extern "C" {
#endif	
	

enum lineType {TYPE_NEW, TYPE_NONE, TYPE_TRANS, TYPE_SEARCH};


struct transLine {
	char * transFrom, * transTo;
	enum lineType type;
	char exists;
	struct transLine * next;
};

bool loadTranslationFile (char * fileIn, struct transLine ** firstTransLine, char **langName, unsigned int *lanID);
bool saveTranslationFile (const char * filename, struct transLine * firstTransLine, const char *langName, unsigned int lan);
bool updateFromProject (const char * filename, struct transLine **firstTransLine);
void newFile (struct transLine ** firstTransLine);

#ifdef __cplusplus
}
#endif