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
33
34
35
36
37
38
39
40
|
#ifndef LOCALIZE_H
#define LOCALIZE_H
#include "XLIFFFile.h"
#include <map>
#include <string>
using namespace std;
struct Reject
{
string file;
string name;
string comment;
};
struct Settings
{
string id;
string oldVersion;
string currentVersion;
vector<string> apps;
vector<Reject> reject;
};
int read_settings(const string& filename, map<string,Settings>* result, const string& rootDir);
string translated_file_name(const string& file, const string& locale);
bool keep_this_trans_unit(const string& file, const TransUnit& unit, void* cookie);
int validate_config(const string& settingsFile, const map<string,Settings>& settings,
const string& configs);
int validate_configs(const string& settingsFile, const map<string,Settings>& settings,
const vector<string>& configs);
int select_files(vector<string> *resFiles, const string& config,
const map<string,Settings>& settings, const string& rootDir);
int select_files(vector<vector<string> > *allResFiles, const vector<string>& configs,
const map<string,Settings>& settings, const string& rootDir);
#endif // LOCALIZE_H
|