summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2002-06-12 15:09:06 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2002-06-12 15:09:06 +0000
commit7dc7c81286e9258cc0e430ac1a832f4bf5719340 (patch)
tree4b79319e490d94c33f156fed0c3ad90374bf2de3 /src
parentfaa32e3b9704292362b298c8cf5e0c5c7b71ac9d (diff)
downloadxine-lib-7dc7c81286e9258cc0e430ac1a832f4bf5719340.tar.gz
xine-lib-7dc7c81286e9258cc0e430ac1a832f4bf5719340.tar.bz2
some additional i18n for dxr3
CVS patchset: 2068 CVS date: 2002/06/12 15:09:06
Diffstat (limited to 'src')
-rw-r--r--src/dxr3/dxr3_decode_spu.c6
-rw-r--r--src/dxr3/dxr3_decode_video.c36
-rw-r--r--src/dxr3/dxr3_mpeg_encoders.c18
-rw-r--r--src/dxr3/dxr3_scr.c10
-rw-r--r--src/dxr3/video_out_dxr3.c45
5 files changed, 54 insertions, 61 deletions
diff --git a/src/dxr3/dxr3_decode_spu.c b/src/dxr3/dxr3_decode_spu.c
index 6f4dc5fbe..6b3a37d47 100644
--- a/src/dxr3/dxr3_decode_spu.c
+++ b/src/dxr3/dxr3_decode_spu.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: dxr3_decode_spu.c,v 1.4 2002/05/25 19:19:17 siggi Exp $
+ * $Id: dxr3_decode_spu.c,v 1.5 2002/06/12 15:09:07 mroi Exp $
*/
/* dxr3 spu decoder plugin.
@@ -97,9 +97,9 @@ spu_decoder_t *init_spu_decoder_plugin(int iface_version, xine_t *xine)
int dashpos;
if (iface_version != 8) {
- printf( "dxr3_decode_spu: plugin doesn't support plugin API version %d.\n"
+ printf(_("dxr3_decode_spu: plugin doesn't support plugin API version %d.\n"
"dxr3_decode_spu: this means there's a version mismatch between xine and this "
- "dxr3_decode_spu: decoder plugin. Installing current plugins should help.\n",
+ "dxr3_decode_spu: decoder plugin. Installing current plugins should help.\n"),
iface_version);
return NULL;
}
diff --git a/src/dxr3/dxr3_decode_video.c b/src/dxr3/dxr3_decode_video.c
index f46ad2dd9..3ee7799bf 100644
--- a/src/dxr3/dxr3_decode_video.c
+++ b/src/dxr3/dxr3_decode_video.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: dxr3_decode_video.c,v 1.7 2002/06/12 12:22:34 f1rmb Exp $
+ * $Id: dxr3_decode_video.c,v 1.8 2002/06/12 15:09:07 mroi Exp $
*/
/* dxr3 video decoder plugin.
@@ -124,9 +124,9 @@ video_decoder_t *init_video_decoder_plugin(int iface_version, xine_t *xine)
int64_t cur_offset;
if (iface_version != 9) {
- printf( "dxr3_decode_video: plugin doesn't support plugin API version %d.\n"
+ printf(_("dxr3_decode_video: plugin doesn't support plugin API version %d.\n"
"dxr3_decode_video: this means there's a version mismatch between xine and this\n"
- "dxr3_decode_video: decoder plugin. Installing current plugins should help.\n",
+ "dxr3_decode_video: decoder plugin. Installing current plugins should help.\n"),
iface_version);
return NULL;
}
@@ -161,11 +161,10 @@ video_decoder_t *init_video_decoder_plugin(int iface_version, xine_t *xine)
this->video_decoder.close = dxr3_close;
this->video_decoder.dispose = dxr3_dispose;
this->video_decoder.priority = cfg->register_num(cfg,
- "dxr3.decoder_priority", 10,
- _("Dxr3: video decoder priority"),
- _("Decoder priorities greater 5 enable hardware decoding, 0 disables it."),
- dxr3_update_priority, this);
-
+ "dxr3.decoder_priority", 10, _("Dxr3: video decoder priority"),
+ _("Decoder priorities greater 5 enable hardware decoding, 0 disables it."),
+ dxr3_update_priority, this);
+
this->scr = NULL;
this->xine = xine;
@@ -173,21 +172,18 @@ video_decoder_t *init_video_decoder_plugin(int iface_version, xine_t *xine)
this->repeat_first_field = 0;
this->sync_every_frame = cfg->register_bool(cfg,
- "dxr3.sync_every_frame", 0,
- _("Try to sync video every frame"),
- _("This is relevant for progressive video only (most PAL films)."),
- dxr3_update_sync_mode, this);
+ "dxr3.sync_every_frame", 0, _("Try to sync video every frame"),
+ _("This is relevant for progressive video only (most PAL films)."),
+ dxr3_update_sync_mode, this);
this->sync_retry = 0;
this->enhanced_mode = cfg->register_bool(cfg,
- "dxr3.alt_play_mode", 1,
- _("Use alternate Play mode"),
- _("Enabling this option will utilise a smoother play mode."),
- dxr3_update_enhanced_mode, this);
+ "dxr3.alt_play_mode", 1, _("Use alternate Play mode"),
+ _("Enabling this option will utilise a smoother play mode."),
+ dxr3_update_enhanced_mode, this);
this->correct_durations = cfg->register_bool(cfg,
- "dxr3.correct_durations", 0,
- _("Correct frame durations in broken streams"),
- _("Enable this for streams with wrong frame durations."),
- dxr3_update_correct_durations, this);
+ "dxr3.correct_durations", 0, _("Correct frame durations in broken streams"),
+ _("Enable this for streams with wrong frame durations."),
+ dxr3_update_correct_durations, this);
/* set a/v offset to compensate dxr3 internal delay */
cur_offset = this->xine->metronom->get_option(this->xine->metronom, METRONOM_AV_OFFSET);
diff --git a/src/dxr3/dxr3_mpeg_encoders.c b/src/dxr3/dxr3_mpeg_encoders.c
index 3fb7f1bdc..0f1b60f32 100644
--- a/src/dxr3/dxr3_mpeg_encoders.c
+++ b/src/dxr3/dxr3_mpeg_encoders.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: dxr3_mpeg_encoders.c,v 1.3 2002/06/12 12:22:34 f1rmb Exp $
+ * $Id: dxr3_mpeg_encoders.c,v 1.4 2002/06/12 15:09:08 mroi Exp $
*/
/* mpeg encoders for the dxr3 video out plugin.
@@ -170,10 +170,10 @@ static int rte_on_update_format(dxr3_driver_t *drv, dxr3_frame_t *frame)
}
this->rte_bitrate = drv->config->register_range(drv->config,
- "dxr3.rte_bitrate", 10000, 1000, 20000,
- _("Dxr3enc: rte mpeg output bitrate (kbit/s)"),
- _("The bitrate the mpeg encoder library librte should use for dxr3's encoding mode"),
- NULL, NULL);
+ "dxr3.rte_bitrate", 10000, 1000, 20000,
+ _("Dxr3enc: rte mpeg output bitrate (kbit/s)"),
+ _("The bitrate the mpeg encoder library librte should use for dxr3's encoding mode"),
+ NULL, NULL);
this->rte_bitrate *= 1000; /* config in kbit/s, rte wants bit/s */
/* FIXME: this needs to be replaced with a codec option call.
@@ -371,10 +371,10 @@ static int fame_on_update_format(dxr3_driver_t *drv, dxr3_frame_t *frame)
this->fp = init_fp;
this->fp.quality = drv->config->register_range(drv->config,
- "dxr3.fame_quality", 90, 10, 100,
- _("Dxr3enc: fame mpeg encoding quality"),
- _("The encoding quality of the libfame mpeg encoder library."),
- NULL,NULL);
+ "dxr3.fame_quality", 90, 10, 100,
+ _("Dxr3enc: fame mpeg encoding quality"),
+ _("The encoding quality of the libfame mpeg encoder library."),
+ NULL,NULL);
#if LOG_ENC
/* the really interesting bit is the quantizer scale. The formula
* below is copied from libfame's sources (could be changed in the
diff --git a/src/dxr3/dxr3_scr.c b/src/dxr3/dxr3_scr.c
index bbc157211..9ad245403 100644
--- a/src/dxr3/dxr3_scr.c
+++ b/src/dxr3/dxr3_scr.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: dxr3_scr.c,v 1.3 2002/06/12 12:22:34 f1rmb Exp $
+ * $Id: dxr3_scr.c,v 1.4 2002/06/12 15:09:08 mroi Exp $
*/
/* dxr3 scr plugin.
@@ -61,10 +61,10 @@ dxr3_scr_t *dxr3_scr_init(xine_t *xine)
this = (dxr3_scr_t *)malloc(sizeof(dxr3_scr_t));
confstr = xine->config->register_string(xine->config,
- CONF_LOOKUP, CONF_DEFAULT, CONF_NAME, CONF_HELP, NULL, NULL);
+ CONF_LOOKUP, CONF_DEFAULT, CONF_NAME, CONF_HELP, NULL, NULL);
if ((this->fd_control = open(confstr, O_WRONLY)) < 0) {
printf("dxr3_scr: Failed to open control device %s (%s)\n",
- confstr, strerror(errno));
+ confstr, strerror(errno));
free(this);
return NULL;
}
@@ -78,8 +78,8 @@ dxr3_scr_t *dxr3_scr_init(xine_t *xine)
this->scr_plugin.exit = dxr3_scr_exit;
this->priority = xine->config->register_num(
- xine->config, "dxr3.scr_priority", 10, "Dxr3: SCR plugin priority",
- "Scr priorities greater 5 make the dxr3 xine's master clock.",
+ xine->config, "dxr3.scr_priority", 10, _("Dxr3: SCR plugin priority"),
+ _("Scr priorities greater 5 make the dxr3 xine's master clock."),
dxr3_scr_update_priority, this);
this->offset = 0;
this->last_pts = 0;
diff --git a/src/dxr3/video_out_dxr3.c b/src/dxr3/video_out_dxr3.c
index 0ce1a6e80..a9985a0b3 100644
--- a/src/dxr3/video_out_dxr3.c
+++ b/src/dxr3/video_out_dxr3.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_dxr3.c,v 1.24 2002/06/12 12:22:34 f1rmb Exp $
+ * $Id: video_out_dxr3.c,v 1.25 2002/06/12 15:09:08 mroi Exp $
*/
/* mpeg1 encoding video out plugin for the dxr3.
@@ -111,11 +111,12 @@ vo_info_t *get_video_out_plugin_info()
static vo_info_t vo_info_dxr3 = {
5, /* api version */
"dxr3",
- "xine video output plugin for dxr3 cards",
+ NULL,
VISUAL_TYPE_X11,
10 /* priority */
};
+ vo_info_dxr3.description = _("xine video output plugin for dxr3 cards");
return &vo_info_dxr3;
}
@@ -149,17 +150,15 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen)
this->aspect = ASPECT_FULL;
this->overlay_enabled = 0;
this->swap_fields = config->register_bool(config,
- "dxr3.enc_swap_fields", 0,
- _("swap odd and even lines"),
- NULL, dxr3_update_swap_fields, this);
+ "dxr3.enc_swap_fields", 0, _("swap odd and even lines"),
+ NULL, dxr3_update_swap_fields, this);
this->add_bars = config->register_bool(config,
- "dxr3.enc_add_bars", 1,
- _("Add black bars to correct aspect ratio"),
- _("If disabled, will assume source has 4:3 aspect ratio."), dxr3_update_add_bars, this);
+ "dxr3.enc_add_bars", 1, _("Add black bars to correct aspect ratio"),
+ _("If disabled, will assume source has 4:3 aspect ratio."), dxr3_update_add_bars, this);
this->enhanced_mode = config->register_bool(config,
- "dxr3.enc_alt_play_mode", 1,
- _("dxr3: use alternate play mode for mpeg encoder playback"),
- _("Enabling this option will utilise a smoother play mode"), dxr3_update_enhanced_mode, this);
+ "dxr3.enc_alt_play_mode", 1,
+ _("dxr3: use alternate play mode for mpeg encoder playback"),
+ _("Enabling this option will utilise a smoother play mode"), dxr3_update_enhanced_mode, this);
confstr = config->register_string(config, CONF_LOOKUP, CONF_DEFAULT, CONF_NAME, CONF_HELP, NULL, NULL);
strncpy(this->devname, confstr, 128);
@@ -219,8 +218,9 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen)
#endif
if (encoder) {
encoder = config->register_enum(config, "dxr3.encoder",
- 0, available_encoders, _("the encoder for non mpeg content"),
- _("Content other than mpeg has to pass an additional reencoding stage, because the dxr3 handles mpeg only."), NULL, NULL);
+ 0, available_encoders, _("the encoder for non mpeg content"),
+ _("Content other than mpeg has to pass an additional reencoding stage, "
+ "because the dxr3 handles mpeg only."), NULL, NULL);
#ifdef HAVE_LIBRTE
if ((strcmp(available_encoders[encoder], "rte") == 0) && !dxr3_rte_init(this)) {
printf("video_out_dxr3: Mpeg encoder rte failed to init.\n");
@@ -249,18 +249,15 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen)
printf("video_out_dxr3: cannot read bcs values (%s)\n",
strerror(errno));
this->bcs.contrast = config->register_range(config, "dxr3.contrast",
- this->bcs.contrast, 100, 900,
- _("Dxr3: contrast control"), NULL, NULL, NULL);
+ this->bcs.contrast, 100, 900, _("Dxr3: contrast control"), NULL, NULL, NULL);
this->bcs.saturation = config->register_range(config, "dxr3.saturation",
- this->bcs.saturation, 100, 900,
- _("Dxr3: saturation control"), NULL, NULL, NULL);
+ this->bcs.saturation, 100, 900, _("Dxr3: saturation control"), NULL, NULL, NULL);
this->bcs.brightness = config->register_range(config, "dxr3.brightness",
- this->bcs.brightness, 100, 900,
- _("Dxr3: brightness control"), NULL, NULL, NULL);
+ this->bcs.brightness, 100, 900, _("Dxr3: brightness control"), NULL, NULL, NULL);
/* overlay or tvout? */
confnum = config->register_enum(config, "dxr3.videoout_mode", 0, videoout_modes,
- _("Dxr3: videoout mode (tv or overlay)"), NULL, NULL, NULL);
+ _("Dxr3: videoout mode (tv or overlay)"), NULL, NULL, NULL);
#if LOG_VID
printf("video_out_dxr3: overlaymode = %s\n", videoout_modes[confnum]);
#endif
@@ -278,11 +275,11 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen)
this->overlay_enabled = 1;
this->tv_switchable = 1;
confstr = config->register_string(config, "dxr3.keycolor", "0x80a040",
- _("Dxr3: overlay colorkey value"), NULL, NULL, NULL);
+ _("Dxr3: overlay colorkey value"), NULL, NULL, NULL);
sscanf(confstr, "%x", &this->overlay.colorkey);
confstr = config->register_string(config, "dxr3.color_interval", "50.0",
- _("Dxr3: overlay colorkey range"),
- _("A greater value widens the tolerance for the overlay keycolor"), NULL, NULL);
+ _("Dxr3: overlay colorkey range"),
+ _("A greater value widens the tolerance for the overlay keycolor"), NULL, NULL);
sscanf(confstr, "%f", &this->overlay.color_interval);
} else {
printf("video_out_dxr3: please run autocal, overlay disabled\n");
@@ -293,7 +290,7 @@ vo_driver_t *init_video_out_plugin(config_values_t *config, void *visual_gen)
/* init tvmode */
confnum = config->register_enum(config, "dxr3.preferred_tvmode", 3, tv_modes,
- _("dxr3 preferred tv mode"), NULL, NULL, NULL);
+ _("dxr3 preferred tv mode"), NULL, NULL, NULL);
switch (confnum) {
case 0: /* ntsc */
this->tv_mode = EM8300_VIDEOMODE_NTSC;