From 5b812f5ae063e9e6dadb4eff65bbbe78e977c6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 11 Dec 2007 14:02:35 +0100 Subject: Add a textdomain field to allow using a different i18n catalog for the description translation. --- src/demuxers/demux.h | 5 +++++ src/input/input_plugin.h | 5 +++++ src/xine-engine/audio_decoder.h | 5 +++++ src/xine-engine/audio_out.h | 5 +++++ src/xine-engine/post.h | 5 +++++ src/xine-engine/spu_decoder.h | 5 +++++ src/xine-engine/video_decoder.h | 5 +++++ src/xine-engine/video_out.h | 5 +++++ 8 files changed, 40 insertions(+) diff --git a/src/demuxers/demux.h b/src/demuxers/demux.h index 301fe0f2b..0e57a535a 100644 --- a/src/demuxers/demux.h +++ b/src/demuxers/demux.h @@ -65,6 +65,11 @@ struct demux_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * return MIME types supported for this plugin */ diff --git a/src/input/input_plugin.h b/src/input/input_plugin.h index 31a4f9846..95df4be97 100644 --- a/src/input/input_plugin.h +++ b/src/input/input_plugin.h @@ -60,6 +60,11 @@ struct input_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * ls function, optional: may be NULL * return value: NULL => filename is a file, **char=> filename is a dir diff --git a/src/xine-engine/audio_decoder.h b/src/xine-engine/audio_decoder.h index 7ad46e2f8..df8556902 100644 --- a/src/xine-engine/audio_decoder.h +++ b/src/xine-engine/audio_decoder.h @@ -59,6 +59,11 @@ struct audio_decoder_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * free all class-related resources */ diff --git a/src/xine-engine/audio_out.h b/src/xine-engine/audio_out.h index 415c47cc7..32d9d5813 100644 --- a/src/xine-engine/audio_out.h +++ b/src/xine-engine/audio_out.h @@ -249,6 +249,11 @@ struct audio_driver_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * free all class-related resources */ diff --git a/src/xine-engine/post.h b/src/xine-engine/post.h index 006daa20c..940f269e1 100644 --- a/src/xine-engine/post.h +++ b/src/xine-engine/post.h @@ -66,6 +66,11 @@ struct post_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * free all class-related resources */ diff --git a/src/xine-engine/spu_decoder.h b/src/xine-engine/spu_decoder.h index 7acd8618d..badf15e41 100644 --- a/src/xine-engine/spu_decoder.h +++ b/src/xine-engine/spu_decoder.h @@ -60,6 +60,11 @@ struct spu_decoder_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * free all class-related resources */ diff --git a/src/xine-engine/video_decoder.h b/src/xine-engine/video_decoder.h index 7dfd10a14..249b86b4c 100644 --- a/src/xine-engine/video_decoder.h +++ b/src/xine-engine/video_decoder.h @@ -60,6 +60,11 @@ struct video_decoder_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * free all class-related resources */ diff --git a/src/xine-engine/video_out.h b/src/xine-engine/video_out.h index 161fbd899..e81947276 100644 --- a/src/xine-engine/video_out.h +++ b/src/xine-engine/video_out.h @@ -381,6 +381,11 @@ struct video_driver_class_s { */ const char *description; + /** + * @brief Optional non-standard catalog to use with dgettext() for description. + */ + const char *textdomain; + /* * free all class-related resources */ -- cgit v1.2.3