]> git.sesse.net Git - vlc/blob - include/vlc_config_cat.h
include/* : Relecture. refs #438
[vlc] / include / vlc_config_cat.h
1 /*****************************************************************************
2  * vlc_help.h: Help strings
3  *****************************************************************************
4  * Copyright (C) 2003 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *          Anil Daoud <anil@videolan.org>
9  *
10  * This program 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  * 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 General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #ifndef _VLC_HELP_H
26 #define _VLC_HELP_H 1
27
28 /*
29  *  First, we need help strings for the General Settings and for the
30  *  Plugins screen
31  */
32 #define MAIN_TITLE N_( "VLC preferences" )
33 #define MAIN_HELP N_( \
34     "Select \"Advanced Options\" to see all options." )
35
36 #define GENERAL_TITLE N_("General")
37
38 /* Interface */
39 #define INTF_TITLE N_("Interface")
40 #define INTF_HELP  N_( "Settings for VLC's interfaces" )
41
42 #define INTF_GENERAL_HELP N_( "General interface setttings" )
43
44 #define INTF_MAIN_TITLE  N_( "Main interfaces" )
45 #define INTF_MAIN_HELP N_( "Settings for the main interface" )
46
47 #define INTF_CONTROL_TITLE N_( "Control interfaces" )
48 #define INTF_CONTROL_HELP N_( "Settings for VLC's Control interfaces" )
49
50 #define INTF_HOTKEYS_TITLE N_( "Hotkeys settings" )
51 #define INTF_HOTKEYS_HELP N_( "Hotkeys settings" )
52
53 /* Audio */
54 #define AUDIO_TITLE N_( "Audio" )
55 #define AUDIO_HELP N_( "Audio settings" )
56
57 #define AUDIO_GENERAL_TITLE N_( "General audio settings" )
58 #define AUDIO_GENERAL_HELP N_("General audio settings")
59
60 #define AFILTER_TITLE N_("Filters")
61 #define AFILTER_HELP N_( \
62     "Audio filters are used to postprocess the audio stream." )
63
64 #define AVISUAL_TITLE N_("Visualizations")
65 #define AVISUAL_HELP N_( \
66     "Audio visualizations" )
67
68 #define AOUT_TITLE N_( "Output modules" )
69 #define AOUT_HELP N_("These are general settings for audio output modules.")
70
71 #define AMISC_TITLE N_("Miscellaneous")
72 #define AMISC_HELP N_( "Miscellaneous audio settings and modules" )
73
74 /* Video */
75 #define VIDEO_TITLE N_("Video")
76 #define VIDEO_HELP N_("Video settings")
77
78 #define VIDEO_GENERAL_TITLE N_( "General video settings")
79 #define VIDEO_GENERAL_HELP N_( "General video settings" )
80
81 #define _VOUT_TITLE N_("Output modules" )
82 #define VOUT_HELP N_( \
83     "Choose your preferred video output and configure it here." )
84
85 #define VFILTER_TITLE N_("Filters" )
86 #define VFILTER_HELP N_( \
87     "Video filters are used to postprocess the video stream." )
88
89 #define SUBPIC_TITLE N_( "Subtitles/OSD")
90 #define SUBPIC_HELP N_( "Miscellaneous settings related to On-Screen-Display, subtitles and overlay subpictures")
91 /*
92 #define TEXT_TITLE N_("Text rendering")
93 #define TEXT_HELP N_( \
94     "Use the settings of the \"freetype\" module to choose the font you " \
95     "want VLC to use for text rendering (to display subtitles for example).")
96 */
97 /* Input */
98 #define INPUT_TITLE N_( "Input / Codecs" )
99 #define INPUT_HELP N_( "These are the settings for the input, demultiplexing " \
100          "and decoding parts of VLC. Encoder settings can also be found here." )
101
102 #define ACCESS_TITLE N_( "Access modules" )
103 #define ACCESS_HELP N_( \
104     "Settings related to the various access methods used by VLC. " \
105     "Common settings you may want to alter are HTTP proxy or " \
106     "caching settings." )
107
108 #define ACCESS_FILTER_TITLE N_( "Access filters" )
109 #define ACCESS_FILTER_HELP N_( \
110     "Access filters are special modules that allow advanced operations on " \
111     "the input side of VLC. You should not touch anything here unless you " \
112     "know what you are doing." )
113
114 #define DEMUX_TITLE N_("Demuxers")
115 #define DEMUX_HELP N_( "Demuxers are used to separate audio and video streams." )
116
117 #define VDEC_TITLE  N_( "Video codecs" )
118 #define VDEC_HELP N_( "Settings for the video-only decoders and encoders" )
119
120 #define ADEC_TITLE  N_( "Audio codecs" )
121 #define ADEC_HELP N_( "Settings for the audio-only decoders and encoders" )
122
123 #define SDEC_TITLE N_( "Other codecs")
124 #define SDEC_HELP N_( "Settings for audio+video and miscellaneous decoders and encoders" )
125
126 #define ADVANCED_TITLE N_("General")
127 #define ADVANCED_HELP N_( "General input settings. Use with care." )
128
129 /* Sout */
130 #define SOUT_TITLE N_( "Stream output" )
131 #define SOUT_HELP N_( \
132       "Stream output is what allows VLC to act as a streaming server " \
133       "or to save incoming streams.\n" \
134       "Streams are first muxed and then sent through an \"access output\" "\
135       "module that can either save the stream to a file, or stream " \
136       "it (UDP, HTTP, RTP/RTSP).\n" \
137       "Sout streams modules allow advanced stream processing (transcoding, "\
138       "duplicating...).")
139
140 #define SOUT_GENERAL_HELP N_( "General stream output settings")
141
142 #define SOUT_MUX_TITLE N_( "Muxers" )
143 #define SOUT_MUX_HELP N_( "Muxers create the encapsulation formats that are used to " \
144                           "put all the elementary streams (video, audio, ...) " \
145                           "together. This setting allows you to always force a specific muxer. " \
146                           "You should probably not do that.\n" \
147                           "You can also set default parameters for each muxer." )
148 #define SOUT_ACO_TITLE N_( "Access output" )
149 #define SOUT_ACO_HELP N_( "Access output modules control the ways the muxed streams are sent. " \
150                           "This setting allows you to always force a specific access output method. " \
151                           "You should probably not do that.\n" \
152                           "You can also set default parameters for each access output.")
153
154 #define SOUT_PACKET_TITLE N_( "Packetizers" )
155 #define SOUT_PACKET_HELP N_( "Packetizers are used to \"preprocess\" the elementary "\
156                               "streams before muxing. " \
157                           "This setting allows you to always force a packetizer. " \
158                           "You should probably not do that.\n" \
159                           "You can also set default parameters for each packetizer." )
160
161 #define SOUT_STREAM_TITLE N_("Sout stream")
162 #define SOUT_STREAM_HELP N_( "Sout stream modules allow to build a sout " \
163                 "processing chain. Please refer to the Streaming Howto for " \
164                 "more information. You can configure default options for " \
165                 "each sout stream module here.")
166
167 #define SOUT_SAP_TITLE N_( "SAP" )
168 #define SOUT_SAP_HELP N_( "SAP is a way to publically announce streams that are being "\
169                           "sent using multicast UDP or RTP." )
170
171 #define SOUT_VOD_TITLE N_( "VOD" )
172 #define SOUT_VOD_HELP N_( "VLC's implementation of Video On Demand" )
173
174
175 /* Playlist */
176 #define PLAYLIST_TITLE N_( "Playlist" )
177 #define PLAYLIST_HELP N_( "Settings related to playlist behaviour (e.g. playback mode) and to modules that automatically add items to the playlist ('service discovery modules').")
178
179 #define PGENERAL_HELP N_( "General playlist behaviour")
180 #define SD_TITLE N_("Services discovery")
181 #define SD_HELP N_("Services discovery modules are facilities that automatically add items to playlist.")
182
183 /* Advanced */
184 #define AADVANCED_TITLE N_( "Advanced" )
185 #define AADVANCED_HELP N_( "Advanced settings. Use with care.")
186
187 #define CPU_TITLE N_( "CPU features" )
188 #define CPU_HELP N_( "You can choose to disable some CPU accelerations here. You should probably not touch that." )
189
190 #define MISC_TITLE N_( "Advanced settings" )
191 #define MISC_HELP N_( "Other advanced settings")
192
193 #define NETWORK_TITLE N_( "Network" )
194 #define NETWORK_HELP N_( "These modules provide network functions to all " \
195                 "other parts of VLC." )
196
197 /* OLD */
198
199 #define CHROMA_TITLE N_("Chroma modules settings")
200 #define CHROMA_HELP N_("These settings affect chroma transformation modules.")
201
202 #define PACKETIZER_TITLE  N_("Packetizer modules settings" )
203 #define PACKETIZER_HELP "These are general settings for the packetizers used in VLC's sout-processes."
204
205 #define ENCODER_TITLE N_("Encoders settings")
206 #define ENCODER_HELP N_( \
207     "These are general settings for video/audio/subtitles encoding modules.")
208
209
210
211 #define DIALOGS_TITLE N_("Dialog providers settings")
212 #define DIALOGS_HELP  N_( \
213     "Dialog providers can be configured here.")
214
215 #define SUBTITLE_DEMUX_TITLE N_("Subtitle demuxer settings")
216 #define SUBTITLE_DEMUX_HELP N_( \
217     "In this section you can force the behavior of the subtitle demuxer, " \
218     "for example by setting the subtitles type or file name.")
219
220 #define VIDEO_FILTER2_TITLE N_("Video filters settings")
221 #define VIDEO_FILTER2_HELP " "
222
223 /*
224  *  A little help for modules with unknown capabilities
225  */
226
227 #define UNKNOWN_TITLE N_("No help available" )
228 #define UNKNOWN_HELP N_("There is no help available for these modules.")
229
230 /*****************************************************************************
231  * GetCapabilityHelp: Display the help for one capability.
232  *****************************************************************************/
233 static inline char * GetCapabilityHelp( char *psz_capability, int i_type)
234 {
235 /*
236     if( psz_capability == NULL) return " ";
237
238     if( !strcasecmp(psz_capability,"access_demux") )
239         return i_type == 1 ? ACCESS_TITLE : ACCESS_HELP;
240     if( !strcasecmp(psz_capability,"access2") )
241         return i_type == 1 ? ACCESS_TITLE : ACCESS_HELP;
242     if( !strcasecmp(psz_capability,"audio filter") )
243         return i_type == 1 ? AUDIO_FILTER_TITLE : AUDIO_FILTER_HELP;
244     if( !strcasecmp(psz_capability,"audio filter2") )
245         return i_type == 1 ? AUDIO_FILTER2_TITLE : AUDIO_FILTER2_HELP;
246     if( !strcasecmp(psz_capability,"audio output") )
247         return i_type == 1 ? AOUT_TITLE : AOUT_HELP;
248     if( !strcasecmp(psz_capability,"chroma") )
249         return i_type == 1 ? CHROMA_TITLE : CHROMA_HELP;
250     if( !strcasecmp(psz_capability,"decoder") )
251         return i_type == 1 ? DECODER_TITLE : DECODER_HELP;
252     if( !strcasecmp(psz_capability,"packetizer") )
253         return i_type == 1 ? PACKETIZER_TITLE : PACKETIZER_HELP;
254     if( !strcasecmp(psz_capability,"encoder") )
255         return i_type == 1 ? ENCODER_TITLE : ENCODER_HELP;
256     if( !strcasecmp(psz_capability,"demux2") )
257         return i_type == 1 ? DEMUX_TITLE : DEMUX_HELP;
258     if( !strcasecmp(psz_capability,"interface") )
259         return i_type == 1 ? INTERFACE_TITLE : INTERFACE_HELP;
260     if( !strcasecmp(psz_capability,"dialogs provider") )
261         return i_type == 1 ? DIALOGS_TITLE : DIALOGS_HELP;
262     if( !strcasecmp(psz_capability,"network") )
263         return i_type == 1 ? NETWORK_TITLE : NETWORK_HELP;
264     if( !strcasecmp(psz_capability,"sout access") )
265         return i_type == 1 ? SOUT_ACCESS_TITLE : SOUT_ACCESS_HELP;
266     if( !strcasecmp(psz_capability,"sout mux") )
267         return i_type == 1 ? SOUT_MUX_TITLE : SOUT_MUX_HELP;
268     if( !strcasecmp(psz_capability,"sout stream") )
269         return i_type == 1 ? SOUT_STREAM_TITLE : SOUT_STREAM_HELP;
270     if( !strcasecmp(psz_capability,"subtitle demux") )
271         return i_type == 1 ? SUBTITLE_DEMUX_TITLE : SUBTITLE_DEMUX_HELP;
272     if( !strcasecmp(psz_capability,"text renderer") )
273         return i_type == 1 ? TEXT_TITLE : TEXT_HELP;
274     if( !strcasecmp(psz_capability,"video output") )
275         return i_type == 1 ? _VOUT_TITLE : VOUT_HELP;
276     if( !strcasecmp(psz_capability,"video filter") )
277         return i_type == 1 ? VIDEO_FILTER_TITLE : VIDEO_FILTER_HELP;
278     if( !strcasecmp(psz_capability,"video filter2") )
279         return i_type == 1 ? VIDEO_FILTER2_TITLE : VIDEO_FILTER2_HELP;
280
281     */
282     return " ";
283 }
284
285
286 static struct config_category_t categories_array[] =
287 {
288     /* Interface */
289     { CAT_INTERFACE, INTF_TITLE, INTF_HELP },
290     { SUBCAT_INTERFACE_GENERAL, GENERAL_TITLE, INTF_GENERAL_HELP },
291     { SUBCAT_INTERFACE_MAIN, INTF_MAIN_TITLE, INTF_MAIN_HELP },
292     { SUBCAT_INTERFACE_CONTROL, INTF_CONTROL_TITLE, INTF_CONTROL_HELP },
293     { SUBCAT_INTERFACE_HOTKEYS, INTF_HOTKEYS_TITLE, INTF_HOTKEYS_HELP },
294
295     { CAT_AUDIO, AUDIO_TITLE, AUDIO_HELP },
296     { SUBCAT_AUDIO_GENERAL, AUDIO_GENERAL_TITLE, AUDIO_GENERAL_HELP },
297     { SUBCAT_AUDIO_AOUT, AOUT_TITLE, AOUT_HELP },
298     { SUBCAT_AUDIO_AFILTER, AFILTER_TITLE, AFILTER_HELP },
299     { SUBCAT_AUDIO_VISUAL, AVISUAL_TITLE, AVISUAL_HELP },
300     { SUBCAT_AUDIO_MISC, AMISC_TITLE, AMISC_HELP },
301
302     { CAT_VIDEO, VIDEO_TITLE, VIDEO_HELP },
303     { SUBCAT_VIDEO_GENERAL, VIDEO_GENERAL_TITLE, VIDEO_GENERAL_HELP },
304     { SUBCAT_VIDEO_VOUT, _VOUT_TITLE, VOUT_HELP },
305     { SUBCAT_VIDEO_VFILTER, VFILTER_TITLE, VFILTER_HELP },
306     { SUBCAT_VIDEO_SUBPIC, SUBPIC_TITLE, SUBPIC_HELP },
307
308     { CAT_INPUT, INPUT_TITLE, INPUT_HELP },
309     { SUBCAT_INPUT_GENERAL, ADVANCED_TITLE, ADVANCED_HELP },
310     { SUBCAT_INPUT_ACCESS, ACCESS_TITLE, ACCESS_HELP },
311     { SUBCAT_INPUT_ACCESS_FILTER, ACCESS_FILTER_TITLE, ACCESS_FILTER_HELP },
312     { SUBCAT_INPUT_DEMUX, DEMUX_TITLE, DEMUX_HELP },
313     { SUBCAT_INPUT_VCODEC, VDEC_TITLE, VDEC_HELP },
314     { SUBCAT_INPUT_ACODEC, ADEC_TITLE, ADEC_HELP },
315     { SUBCAT_INPUT_SCODEC, SDEC_TITLE, SDEC_HELP },
316
317     { CAT_SOUT, SOUT_TITLE, SOUT_HELP },
318     { SUBCAT_SOUT_GENERAL, GENERAL_TITLE, SOUT_GENERAL_HELP },
319     { SUBCAT_SOUT_STREAM, SOUT_STREAM_TITLE, SOUT_STREAM_HELP },
320     { SUBCAT_SOUT_MUX, SOUT_MUX_TITLE, SOUT_MUX_HELP },
321     { SUBCAT_SOUT_ACO, SOUT_ACO_TITLE, SOUT_ACO_HELP },
322     { SUBCAT_SOUT_PACKETIZER, SOUT_PACKET_TITLE, SOUT_PACKET_HELP },
323     { SUBCAT_SOUT_SAP, SOUT_SAP_TITLE, SOUT_SAP_HELP },
324     { SUBCAT_SOUT_VOD, SOUT_VOD_TITLE, SOUT_VOD_HELP },
325
326     { CAT_PLAYLIST, PLAYLIST_TITLE , PLAYLIST_HELP },
327     { SUBCAT_PLAYLIST_GENERAL, GENERAL_TITLE, PGENERAL_HELP },
328     { SUBCAT_PLAYLIST_SD, SD_TITLE, SD_HELP },
329
330     { CAT_ADVANCED, AADVANCED_TITLE, AADVANCED_HELP },
331     { SUBCAT_ADVANCED_CPU, CPU_TITLE, CPU_HELP },
332     { SUBCAT_ADVANCED_MISC, MISC_TITLE, MISC_HELP },
333
334     { -1, NULL, NULL }
335 };
336
337
338 inline char *config_CategoryNameGet( int i_value )
339 {
340     int i = 0 ;
341     while( categories_array[i].psz_name != NULL )
342     {
343         if( categories_array[i].i_id == i_value )
344         {
345             return categories_array[i].psz_name;
346         }
347         i++;
348     }
349     return NULL;
350 }
351
352 inline char *config_CategoryHelpGet( int i_value )
353 {
354     int i = 0 ;
355     while( categories_array[i].psz_help != NULL )
356     {
357         if( categories_array[i].i_id == i_value )
358         {
359             return categories_array[i].psz_help;
360         }
361         i++;
362     }
363     return NULL;
364 }
365
366 #endif /* VLC_HELP_H */