]> git.sesse.net Git - vlc/blob - include/vlc_config_cat.h
Correct widespread misuse of the word 'subtitle'
[vlc] / include / vlc_config_cat.h
1 /*****************************************************************************
2  * vlc_config_cat.h : Definition of configuration categories
3  *****************************************************************************
4  * Copyright (C) 2003 VLC authors and VideoLAN
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 it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * 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 # include <vlc_plugin.h>
28
29 /*
30  *  First, we need help strings for the General Settings and for the
31  *  Plugins screen
32  */
33 #define MAIN_TITLE N_( "VLC preferences" )
34 #define MAIN_HELP N_( \
35     "Select \"Advanced Options\" to see all options." )
36
37 /* Interface */
38 #define INTF_TITLE N_("Interface")
39 #define INTF_HELP  N_( "Settings for VLC's interfaces" )
40
41 #define INTF_GENERAL_HELP N_( "Main interfaces settings" )
42
43 #define INTF_MAIN_TITLE  N_( "Main interfaces" )
44 #define INTF_MAIN_HELP N_( "Settings for the main interface" )
45
46 #define INTF_CONTROL_TITLE N_( "Control interfaces" )
47 #define INTF_CONTROL_HELP N_( "Settings for VLC's control interfaces" )
48
49 #define INTF_HOTKEYS_TITLE N_( "Hotkeys settings" )
50 #define INTF_HOTKEYS_HELP N_( "Hotkeys settings" )
51
52 /* Audio */
53 #define AUDIO_TITLE N_( "Audio" )
54 #define AUDIO_HELP N_( "Audio settings" )
55
56 #define AUDIO_GENERAL_HELP N_("General audio settings")
57
58 #define AFILTER_TITLE N_("Filters")
59 #define AFILTER_HELP N_( "Audio filters are used to process the audio stream." )
60
61 #define AVISUAL_TITLE N_("Visualizations")
62 #define AVISUAL_HELP N_( "Audio visualizations" )
63
64 #define AOUT_TITLE N_( "Output modules" )
65 #define AOUT_HELP N_("General settings for audio output modules.")
66
67 #define AMISC_TITLE N_("Miscellaneous")
68 #define AMISC_HELP N_( "Miscellaneous audio settings and modules." )
69
70 /* Video */
71 #define VIDEO_TITLE N_("Video")
72 #define VIDEO_HELP N_("Video settings")
73
74 #define VIDEO_GENERAL_HELP N_( "General video settings" )
75
76 #define _VOUT_TITLE N_("Output modules" )
77 #define VOUT_HELP N_( \
78     "Choose your preferred video output and configure it here." )
79
80 #define VFILTER_TITLE N_("Filters" )
81 #define VFILTER_HELP N_( \
82     "Video filters are used to process the video stream." )
83
84 #define SUBPIC_TITLE N_( "Subtitles / OSD")
85 #define SUBPIC_HELP N_( "Settings related to On-Screen-Display,"\
86         " subtitles and \"overlay subpictures\"")
87 /*
88 #define TEXT_TITLE N_("Text rendering")
89 #define TEXT_HELP N_( \
90     "Use the settings of the \"freetype\" module to choose the font you " \
91     "want VLC to use for text rendering (to display subtitles for example).")
92 */
93 /* Input */
94 #define INPUT_TITLE N_( "Input / Codecs" )
95 #define INPUT_HELP N_( "Settings for input, demultiplexing, " \
96          "decoding and encoding")
97
98 #define ACCESS_TITLE N_( "Access modules" )
99 #define ACCESS_HELP N_( \
100     "Settings related to the various access methods. " \
101     "Common settings you may want to alter are HTTP proxy or " \
102     "caching settings." )
103
104 #define STREAM_FILTER_TITLE N_( "Stream filters" )
105 #define STREAM_FILTER_HELP N_( \
106     "Stream filters are special modules that allow advanced operations on " \
107     "the input side of VLC. Use with care..." )
108
109 #define DEMUX_TITLE N_("Demuxers")
110 #define DEMUX_HELP N_( "Demuxers are used to separate audio and video streams." )
111
112 #define VDEC_TITLE  N_( "Video codecs" )
113 #define VDEC_HELP N_( "Settings for the video, images or video+audio decoders and encoders." )
114
115 #define ADEC_TITLE  N_( "Audio codecs" )
116 #define ADEC_HELP N_( "Settings for the audio-only decoders and encoders." )
117
118 #define SDEC_TITLE N_( "Subtitle codecs")
119 #define SDEC_HELP N_( "Settings for subtitle, teletext and CC decoders and encoders." )
120
121 #define ADVANCED_TITLE N_("General Input" )
122 #define ADVANCED_HELP N_( "General input settings. Use with care..." )
123
124 /* Sout */
125 #define SOUT_TITLE N_( "Stream output" )
126 #define SOUT_HELP N_( \
127       "Stream output settings are used when acting as a streaming server " \
128       "or when saving incoming streams.\n" \
129       "Streams are first muxed and then sent through an \"access output\" "\
130       "module that can either save the stream to a file, or stream " \
131       "it (UDP, HTTP, RTP/RTSP).\n" \
132       "Sout streams modules allow advanced stream processing (transcoding, "\
133       "duplicating...).")
134
135 #define SOUT_GENERAL_HELP N_( "General stream output settings")
136
137 #define SOUT_MUX_TITLE N_( "Muxers" )
138 #define SOUT_MUX_HELP N_( \
139        "Muxers create the encapsulation formats that are used to " \
140        "put all the elementary streams (video, audio, ...) " \
141        "together. This setting allows you to always force a specific muxer. " \
142        "You should probably not do that.\n" \
143        "You can also set default parameters for each muxer." )
144
145 #define SOUT_ACO_TITLE N_( "Access output" )
146 #define SOUT_ACO_HELP N_( \
147    "Access output modules control the ways the muxed streams are sent. " \
148    "This setting allows you to always force a specific access output method. " \
149    "You should probably not do that.\n" \
150    "You can also set default parameters for each access output.")
151
152 #define SOUT_PACKET_TITLE N_( "Packetizers" )
153 #define SOUT_PACKET_HELP N_( \
154         "Packetizers are used to \"preprocess\" the elementary "\
155         "streams before muxing. " \
156         "This setting allows you to always force a packetizer. " \
157         "You should probably not do that.\n" \
158         "You can also set default parameters for each packetizer." )
159
160 #define SOUT_STREAM_TITLE N_("Sout stream")
161 #define SOUT_STREAM_HELP N_( "Sout stream modules allow to build a sout " \
162                 "processing chain. Please refer to the Streaming Howto for " \
163                 "more information. You can configure default options for " \
164                 "each sout stream module here.")
165
166 #define SOUT_VOD_TITLE N_( "VOD" )
167 #define SOUT_VOD_HELP N_( "VLC's implementation of Video On Demand" )
168
169
170 /* Playlist */
171 #define PLAYLIST_TITLE N_( "Playlist" )
172 #define PLAYLIST_HELP N_( "Settings related to playlist behaviour " \
173         "(e.g. playback mode) and to modules that automatically add "\
174         "items to the playlist (\"service discovery\" modules).")
175
176 #define PGENERAL_HELP N_( "General playlist behaviour")
177 #define SD_TITLE N_("Services discovery")
178 #define SD_HELP N_("Services discovery modules are facilities "\
179         "that automatically add items to playlist.")
180
181 /* Advanced */
182 #define AADVANCED_TITLE N_( "Advanced" )
183 #define AADVANCED_HELP N_( "Advanced settings. Use with care...")
184
185 #define MISC_TITLE N_( "Advanced settings" )
186
187
188 /* OLD */
189 #if 0
190 #define NETWORK_TITLE N_( "Network" )
191 #define NETWORK_HELP N_( "These modules provide network functions to all " \
192                 "other parts of VLC." )
193
194 #define CHROMA_TITLE N_("Chroma modules settings")
195 #define CHROMA_HELP N_("These settings affect chroma transformation modules.")
196
197 #define PACKETIZER_TITLE  N_("Packetizer modules settings" )
198 #define PACKETIZER_HELP "These are general settings for the "\
199         "packetizers used in VLC's stream output subsystem."
200
201 #define ENCODER_TITLE N_("Encoders settings")
202 #define ENCODER_HELP N_( \
203     "These are general settings for video/audio/subtitle encoding modules.")
204
205
206 #define DIALOGS_TITLE N_("Dialog providers settings")
207 #define DIALOGS_HELP  N_( \
208     "Dialog providers can be configured here.")
209
210 #define SUBTITLE_DEMUX_TITLE N_("Subtitle demuxer settings")
211 #define SUBTITLE_DEMUX_HELP N_( \
212     "In this section you can force the behavior of the subtitle demuxer, " \
213     "for example by setting the subtitle type or file name.")
214
215 /*
216  *  A little help for modules with unknown capabilities
217  */
218
219 #define UNKNOWN_TITLE N_("No help available" )
220 #define UNKNOWN_HELP N_("There is no help available for these modules.")
221 #endif
222
223 /* This function is deprecated and is kept only for compatibility */
224 static const struct config_category_t categories_array[] =
225 {
226     /* Interface */
227     { CAT_INTERFACE, INTF_TITLE, INTF_HELP },
228     { SUBCAT_INTERFACE_GENERAL, INTF_TITLE, INTF_GENERAL_HELP },
229     { SUBCAT_INTERFACE_MAIN, INTF_MAIN_TITLE, INTF_MAIN_HELP },
230     { SUBCAT_INTERFACE_CONTROL, INTF_CONTROL_TITLE, INTF_CONTROL_HELP },
231     { SUBCAT_INTERFACE_HOTKEYS, INTF_HOTKEYS_TITLE, INTF_HOTKEYS_HELP },
232
233     { CAT_AUDIO, AUDIO_TITLE, AUDIO_HELP },
234     { SUBCAT_AUDIO_GENERAL, AUDIO_TITLE, AUDIO_GENERAL_HELP },
235     { SUBCAT_AUDIO_AOUT, AOUT_TITLE, AOUT_HELP },
236     { SUBCAT_AUDIO_AFILTER, AFILTER_TITLE, AFILTER_HELP },
237     { SUBCAT_AUDIO_VISUAL, AVISUAL_TITLE, AVISUAL_HELP },
238     { SUBCAT_AUDIO_MISC, AMISC_TITLE, AMISC_HELP },
239
240     { CAT_VIDEO, VIDEO_TITLE, VIDEO_HELP },
241     { SUBCAT_VIDEO_GENERAL, VIDEO_TITLE, VIDEO_GENERAL_HELP },
242     { SUBCAT_VIDEO_VOUT, _VOUT_TITLE, VOUT_HELP },
243     { SUBCAT_VIDEO_VFILTER, VFILTER_TITLE, VFILTER_HELP },
244     { SUBCAT_VIDEO_SUBPIC, SUBPIC_TITLE, SUBPIC_HELP },
245
246     { CAT_INPUT, INPUT_TITLE, INPUT_HELP },
247     { SUBCAT_INPUT_GENERAL, INPUT_TITLE, INPUT_HELP },
248     { SUBCAT_INPUT_ACCESS, ACCESS_TITLE, ACCESS_HELP },
249     { SUBCAT_INPUT_DEMUX, DEMUX_TITLE, DEMUX_HELP },
250     { SUBCAT_INPUT_VCODEC, VDEC_TITLE, VDEC_HELP },
251     { SUBCAT_INPUT_ACODEC, ADEC_TITLE, ADEC_HELP },
252     { SUBCAT_INPUT_SCODEC, SDEC_TITLE, SDEC_HELP },
253     { SUBCAT_INPUT_STREAM_FILTER, STREAM_FILTER_TITLE, STREAM_FILTER_HELP },
254
255     { CAT_SOUT, SOUT_TITLE, SOUT_HELP },
256     { SUBCAT_SOUT_GENERAL, SOUT_TITLE, SOUT_GENERAL_HELP },
257     { SUBCAT_SOUT_STREAM, SOUT_STREAM_TITLE, SOUT_STREAM_HELP },
258     { SUBCAT_SOUT_MUX, SOUT_MUX_TITLE, SOUT_MUX_HELP },
259     { SUBCAT_SOUT_ACO, SOUT_ACO_TITLE, SOUT_ACO_HELP },
260     { SUBCAT_SOUT_PACKETIZER, SOUT_PACKET_TITLE, SOUT_PACKET_HELP },
261     { SUBCAT_SOUT_VOD, SOUT_VOD_TITLE, SOUT_VOD_HELP },
262
263     { CAT_PLAYLIST, PLAYLIST_TITLE , PLAYLIST_HELP },
264     { SUBCAT_PLAYLIST_GENERAL, PLAYLIST_TITLE, PGENERAL_HELP },
265     { SUBCAT_PLAYLIST_SD, SD_TITLE, SD_HELP },
266
267     { CAT_ADVANCED, AADVANCED_TITLE, AADVANCED_HELP },
268     { SUBCAT_ADVANCED_MISC, MISC_TITLE, AADVANCED_HELP },
269
270     { -1, NULL, NULL }
271 };
272
273 VLC_USED
274 static inline const char *config_CategoryNameGet( int i_value )
275 {
276     int i = 0;
277     while( categories_array[i].psz_name != NULL )
278     {
279         if( categories_array[i].i_id == i_value )
280         {
281             return vlc_gettext(categories_array[i].psz_name);
282         }
283         i++;
284     }
285     return NULL;
286 }
287
288 VLC_USED
289 static inline const char *config_CategoryHelpGet( int i_value )
290 {
291     int i = 0;
292     while( categories_array[i].psz_help != NULL )
293     {
294         if( categories_array[i].i_id == i_value )
295         {
296             return vlc_gettext(categories_array[i].psz_help);
297         }
298         i++;
299     }
300     return NULL;
301 }
302
303 #endif /* VLC_HELP_H */