Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Annotation of /trunk/src/translations.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1784 - (hide annotations) (download) (as text)
Sat Aug 15 13:08:37 2015 UTC (9 years, 7 months ago) by amb
File MIME type: text/x-chdr
File size: 2456 byte(s)
Merge libroutino branch back into the trunk.

1 amb 361 /***************************************
2     Load the translations from a file and the functions for handling them.
3    
4     Part of the Routino routing software.
5     ******************/ /******************
6 amb 1784 This file Copyright 2010-2015 Andrew M. Bishop
7 amb 361
8     This program is free software: you can redistribute it and/or modify
9     it under the terms of the GNU Affero General Public License as published by
10     the Free Software Foundation, either version 3 of the License, or
11     (at your option) any later version.
12    
13     This program is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     GNU Affero General Public License for more details.
17    
18     You should have received a copy of the GNU Affero General Public License
19     along with this program. If not, see <http://www.gnu.org/licenses/>.
20     ***************************************/
21    
22    
23     #ifndef TRANSLATIONS_H
24     #define TRANSLATIONS_H /*+ To stop multiple inclusions. +*/
25    
26 amb 411 #include "types.h"
27    
28    
29 amb 1784 /* Type declarations */
30 amb 361
31 amb 1784 typedef struct _Translation
32     {
33     char *language;
34 amb 375
35 amb 1784 char *raw_copyright_creator[2];
36     char *raw_copyright_source[2];
37     char *raw_copyright_license[2];
38 amb 361
39 amb 1784 char *xml_copyright_creator[2];
40     char *xml_copyright_source[2];
41     char *xml_copyright_license[2];
42 amb 411
43 amb 1784 char *xml_heading[9];
44     char *xml_turn[9];
45     char *xml_ordinal[10];
46 amb 378
47 amb 1784 char *notxml_heading[9];
48     char *notxml_turn[9];
49     char *notxml_ordinal[10];
50 amb 893
51 amb 1784 char *raw_highway[Highway_Count];
52 amb 378
53 amb 1784 char *xml_route_shortest;
54     char *xml_route_quickest;
55 amb 378
56 amb 1784 char *html_waypoint;
57     char *html_junction;
58     char *html_roundabout;
59 amb 361
60 amb 1784 char *html_title;
61     char *html_start;
62     char *html_segment;
63     char *html_node;
64     char *html_rbnode;
65     char *html_stop;
66     char *html_total;
67     char *html_subtotal;
68 amb 361
69 amb 1784 char *nothtml_waypoint;
70     char *nothtml_junction;
71     char *nothtml_roundabout;
72 amb 361
73 amb 1784 char *nothtml_title;
74     char *nothtml_start;
75     char *nothtml_segment;
76     char *nothtml_node;
77     char *nothtml_rbnode;
78     char *nothtml_stop;
79     char *nothtml_total;
80     char *nothtml_subtotal;
81    
82     char *gpx_desc;
83     char *gpx_name;
84     char *gpx_step;
85     char *gpx_final;
86    
87     char *gpx_start;
88     char *gpx_inter;
89     char *gpx_trip;
90     char *gpx_finish;
91     }
92     Translation;
93    
94    
95 amb 680 /* Functions in translations.c */
96    
97 amb 1784 int ParseXMLTranslations(const char *filename,const char *language,int all);
98 amb 361
99 amb 1784 char **GetTranslationLanguages(void);
100 amb 680
101 amb 1784 Translation *GetTranslation(const char *language);
102    
103     void FreeXMLTranslations(void);
104    
105    
106 amb 361 #endif /* TRANSLATIONS_H */

Properties

Name Value
cvs:description Header file for translations.