Imported Upstream version 1.5
[routino] / src / translations.h
1 /***************************************
2  $Header: /home/amb/routino/src/RCS/translations.h,v 1.4 2010/05/29 13:54:23 amb Exp $
3
4  Load the translations from a file and the functions for handling them.
5
6  Part of the Routino routing software.
7  ******************/ /******************
8  This file Copyright 2010 Andrew M. Bishop
9
10  This program is free software: you can redistribute it and/or modify
11  it under the terms of the GNU Affero General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  GNU Affero General Public License for more details.
19
20  You should have received a copy of the GNU Affero General Public License
21  along with this program.  If not, see <http://www.gnu.org/licenses/>.
22  ***************************************/
23
24
25 #ifndef TRANSLATIONS_H
26 #define TRANSLATIONS_H    /*+ To stop multiple inclusions. +*/
27
28 #include "types.h"
29
30
31 /* Variable declations */
32
33 extern char *translate_copyright_creator[2];
34 extern char *translate_copyright_source[2];
35 extern char *translate_copyright_license[2];
36
37 extern char *translate_heading[9];
38 extern char *translate_turn[9];
39
40 extern char *translate_highway[Way_Count];
41
42 extern char *translate_route_shortest;
43 extern char *translate_route_quickest;
44
45 extern char *translate_html_waypoint;
46 extern char *translate_html_junction;
47
48 extern char *translate_html_title;
49 extern char *translate_html_start[2];
50 extern char *translate_html_segment[2];
51 extern char *translate_html_node[2];
52 extern char *translate_html_stop[2];
53 extern char *translate_html_total[2];
54
55 extern char *translate_gpx_desc;
56 extern char *translate_gpx_name;
57 extern char *translate_gpx_step;
58 extern char *translate_gpx_final;
59
60 extern char *translate_gpx_start;
61 extern char *translate_gpx_inter;
62 extern char *translate_gpx_trip;
63 extern char *translate_gpx_finish;
64
65 /* Functions */
66
67 int ParseXMLTranslations(const char *filename,const char *language);
68
69 #endif /* TRANSLATIONS_H */