]> git.vomp.tv Git - vompclient.git/blob - language-data.h
Swedish added
[vompclient.git] / language-data.h
1 /*
2  * language_data.h: Internationalization
3  *
4  * This code is taken from the VDR project and modified for VOMP.
5  * See the main source file 'vdr.c' for original copyright information.
6  * Modifications (C) 2005 D Pickles.
7
8     This file is part of VOMP.
9
10     VOMP is free software; you can redistribute it and/or modify
11     it under the terms of the GNU General Public License as published by
12     the Free Software Foundation; either version 2 of the License, or
13     (at your option) any later version.
14
15     VOMP 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 General Public License for more details.
19
20     You should have received a copy of the GNU General Public License
21     along with VOMP; if not, write to the Free Software
22     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 */
24
25 /*
26  * How to add a new language:
27  *
28  * 1. Announce your translation action on the VOMP forum
29  *    to avoid duplicate work.
30  * 2. Increase the value of 'NUM_LANGUAGES' below.
31  * 3. Insert a new line in the 'Languages' array containing the name of your
32  *    language IN YOUR LANGUAGE, so 'Italiano' not 'Italian' for example.
33  *    Append your language after the last existing language
34  *    but before the 'test' language
35  * 4. Insert a new line in the charSets array containing the name of the character
36  *    set needed for your language. Note that at present only ISO8859-1 is
37  *    supported
38  * 5. Insert a new line in the languageCodes array containing the 3-letter
39  *    abbreviation(s) for your language as used in the channels.conf.
40  * 6. Insert a line in every member of the 'Phrases[]' array,
41  *    containing the translated text for your language. You can use the 'test'
42  *    language to see where the phrases appear on the screen.
43  * 7. If your language requires a character set other than the default iso8859-1
44  *    then work will be needed elsewhere in vomp to manage multiple font files.
45  * 8. Compile VOMP and test the new language by switching to it
46  *    in the "Options" menu.
47  * 9. Send the modified files to Chris to have it included in the next version.
48  *
49  * In case an English phrase is used in more than one context (and might need
50  * different translations in other languages) it can be preceeded with an
51  * arbitrary string to describe its context, separated from the actual phrase
52  * by a '$' character (see for instance "Button$Stop" vs. "Stop").
53  * Of course this means that no English phrase may contain the '$' character!
54  * If this should ever become necessary, the existing '$' would have to be
55  * replaced with something different...
56  */
57
58 #ifdef I18N_HEADER
59
60 #define NUM_LANGUAGES 4
61 #define DEFAULT_LANGUAGE_INDEX 0
62
63 #else
64
65 // The names of the languages (English MUST be first!):
66 const char* const I18n::Languages[] =
67 {
68   "English",
69   "Deutsch", // By André Jagusch
70   "Svenska", // By Lars Fredriksson
71   "Test"
72 };
73
74 // The character set needed for each language:
75 const char* const I18n::charSets[] =
76 {
77   "iso8859-1",
78   "iso8859-1",
79   "iso8859-1",
80   "iso8859-1"
81 };
82
83 // The 3-letter names of the language (this MUST be the third phrase!):
84 const char* const I18n::languageCodes[] =
85 {
86   "eng,dos",
87   "deu,ger",
88   "sve,swe",
89   "tst,xxx"
90 };
91
92 // The phrases to be translated:
93 const I18n::tI18nPhrase I18n::Phrases[] =
94 {
95   // Menu titles:
96   { "VDR",
97     "VDR",
98     "VDR",
99     "VDR",
100   },
101   { "Schedule",
102     "Programm",
103     "Program",
104     "0",
105   },
106   // Welcome screen
107   { "Welcome",
108     "Willkommen",
109     "Välkommen",
110     "1",
111   },
112   { "1. Live TV",
113     "1. Fernsehen",
114     "1. TV",
115     "2",
116   },
117   { "2. Radio",
118     "2. Radio",
119     "2. Radio",
120     "3",
121   },
122   { "3. Recordings",
123     "3. Aufnahmen",
124     "3. Inspelningar"
125     "4",
126   },
127   { "4. Options",
128     "4. Einstellungen",
129     "4. Inställningar"
130     "5",
131   },
132   { "5. Stand by",
133     "5. Stand-by",
134     "5. Stäng av",
135     "6",
136   },
137   { "6. Reboot",
138     "6. Neustart",
139     "6. Starta om",
140     "7",
141   },
142   { "Downloading recordings list",
143     "Lade die Aufnahmen-Liste",
144     "Laddar lista över inspelningar",
145     "8",
146   },
147   // Recordings list
148   { "Recordings - %s",
149     "Aufnahmen - %s",
150     "Inspelningar - %s",
151     "9 - %s",
152   },
153   { "Recordings",
154     "Aufnahmen",
155     "Inspelningar",
156     "10",
157   },
158   { "<dir> %lu\t%s",
159     "<dir> %lu\t%s",
160     "<dir> %lu\t%s",
161     "11 %lu\t%s",
162   },
163   { "[ok] = menu",
164     "[ok] = Menü",
165     "[ok] = meny",
166     "12",
167   },
168   { "%lu%% used, %iGB free",
169     "%lu%% belegt, %iGB frei",
170     "%lu% använt, %iGB ledigt",
171     "13 %lu%% %i",
172   },
173   { "%i to %i of %i", // Also used in channels list
174     "%i bis %i (von %i)",
175     "%i av %i till %i",
176     "14 %i %i %i",
177   },
178   // Question
179   { "Yes",
180     "Ja",
181     "Ja",
182     "15",
183   },
184   { "No",
185     "Nein",
186     "Nej",
187     "16",
188   },
189   // Recording Menu
190   { "Programme menu",
191     "Programm-Menü",
192     "Programmeny",
193     "17",
194   },
195   { "Play",
196     "Wiedergeben",
197     "Spela upp",
198     "18",
199   },
200   { "Resume",
201     "Fortsetzen",
202     "Återuppta",
203     "19",
204   },
205   { "Summary",
206     "Inhalt",
207     "Sammanfattning",
208     "20",
209   },
210   { "Delete",
211     "Löschen",
212     "Ta bort",
213     "21",
214   },
215   { "Programme summary",
216     "Programminhalt",
217     "Programsammanfattning",
218     "22",
219   },
220   { "Summary unavailable",
221     "Inhalt nicht verfügbar",
222     "Ingen sammanfattning tillgänglig",
223     "23",
224   },
225   { "Delete recording",
226     "Aufnahme löschen",
227     "Ta bort inspelning",
228     "24",
229   },
230   { "Are you sure you want to delete this recording?",
231     "Sind Sie sich sicher, dass Sie diese Aufnahme löschen möchten?",
232     "Är du säker att du vill ta bort den här inspelningen",
233     "25",
234   },
235   // Server select
236   { "Choose a VDR server",
237     "Wählen Sie einen VDR-Server",
238     "Välj VDR server",
239     "26",
240   },
241
242   // Option menus
243   { "Options",
244     "Einstellungen",
245     "Inställningar",
246     "27",
247   },
248   { "TV connection type",
249     "TV-Anschlußart",
250     "Typ av TV-anslutning",
251     "28",
252   },
253   { "Remote control type",
254     "Fernbedienungstyp",
255     "Fjärrkontroll",
256     "29",
257   },
258   { "TV aspect ratio",
259     "Seitenverhältnis",
260     "TV-format",
261     "30",
262   },
263   { "16:9 on 4:3 display mode",
264     "16:9 auf 4:3-Modus",
265     "16:9 på 4:3-skärm",
266     "30a",
267   },
268   { "Power state after bootup",
269     "Einschalten nach Neustart",
270     "Läge efter strömborfall",
271     "31",
272   },
273   { "Display channels",
274     "Kanäle anzeigen",
275     "Visa kanaler",
276     "32",
277   },
278   { "Language",
279     "Sprache",
280     "Språk",
281     "33",
282   },
283   { "Press back to exit, <, > or [ok] to change",
284     "Zum Verlassen back drpcken, <, > oder [ok] zum Wechseln",
285     "Tryck [back] för att avsluta, eller [ok] för att ändra",
286     "34",
287   },
288   { "VDR-Pri 0=OK !See forums!",
289     "VDR-Pri 0=OK !Siehe Forum!",
290     "VDR-Prio 0=OK !Se forum!",
291     "34a",
292   },
293   // Option choices
294   { "Old",
295     "Alt",
296     "Gammal modell",
297     "35",
298   },
299   { "New",
300     "Neu",
301     "Ny modell",
302     "36",
303   },
304   { "RGB+composite",
305     "RGB+composite",
306     "RGB+komposit",
307     "37",
308   },
309   { "S-Video",
310     "S-Video",
311     "S-Video",
312     "38",
313   },
314   { "Chop sides",
315     "Seiten abschneiden",
316     "Ta bort på sidorna",
317     "39",
318   },
319   { "Letterbox",
320     "Letterbox",
321     "Letterbox",
322     "40",
323   },
324   { "Last state",
325     "Letzter Zustand",
326     "Återgå til senaste läge",
327     "41",
328   },
329   { "All",
330     "Alle",
331     "Alla",
332     "42",
333   },
334   { "FTA only",
335     "nur FTA",
336     "Endast FTA",
337     "43",
338   },
339   { "On",
340     "An",
341     "På",
342     "44",
343   },
344   { "Off",
345     "Aus",
346     "Av",
347     "45",
348   },
349
350   // Channel Lists
351   { "Channels",
352     "Fernsehkanäle",
353     "Kanaler",
354     "46",
355   },
356   { "Radio Stations",
357     "Radiokanäle",
358     "Radiostationer",
359     "47",
360   },
361   // Banners
362   { "No channel data available",
363     "Keine Daten für diesen Kanal verfügbar",
364     "Ingen programinformation tillgänglig",
365     "48",
366   },
367   { "info",
368     "Info",
369     "Info",
370     "49",
371   },
372   { "info",
373     "Info",
374     "Info",
375     "50",
376   },
377   { "Channel unavailable",
378     "Kanal nicht verfügbar",
379     "Kanalen är inte tillgänglig",
380     "51",
381   },
382   // Connect screen
383   { "Locating server",
384     "Lokalisiere Server",
385     "Letar efter server",
386     "52",
387   },
388   { "Connecting to VDR",
389     "Verbinde zum VDR",
390     "Ansluter till VDR",
391     "53",
392   },
393   { "Login failed",
394     "Login fehlgeschlagen",
395     "Inloggning misslycklades",
396     "54",
397   },
398   { "Connection failed",
399     "Verbindung fehlgeschlagen",
400     "Anslutning misslyckades",
401     "55",
402   },
403   // Command
404   { "Connected, loading config",
405     "Verbunden, lade Einstellungen",
406     "Ansluten, laddar konfigurering",
407     "56",
408   },
409   // End marker.
410   { NULL }
411 };
412
413 #endif