Commit 00fc2403 authored by Lyndon Brown's avatar Lyndon Brown Committed by Jean-Baptiste Kempf
Browse files

spu(audiobargraph_v,logo,marq,rss): fix poor positioning text/docs

 - offsets can be used for both absolute and relative positioning (except
   offsetting from center).
 - the `i_pos` attribute holds indication of absolute mode, not just
   relative, which was incorrectly stated in marq and rss. (note that
   logo and bargraph have an `i_absolute` attribute, but this is actually
   unneeded and can be removed later).

labels are synchronised across plugins to reduce translator burden and
improve consistency.
parent 16a61233
......@@ -41,10 +41,10 @@
* Module descriptor
*****************************************************************************/
#define POSX_TEXT N_("X coordinate")
#define POSX_LONGTEXT N_("X coordinate of the bargraph.")
#define POSY_TEXT N_("Y coordinate")
#define POSY_LONGTEXT N_("Y coordinate of the bargraph.")
#define POSX_TEXT N_("X offset")
#define POSX_LONGTEXT N_("X offset, from top-left, or from relative position." )
#define POSY_TEXT N_("Y offset")
#define POSY_LONGTEXT N_("Y offset, from top-left, or from relative position." )
#define TRANS_TEXT N_("Transparency of the bargraph")
#define TRANS_LONGTEXT N_("Bargraph transparency value " \
"(from 0 for full transparency to 255 for full opacity).")
......
......@@ -55,12 +55,12 @@
#define DELAY_TEXT N_("Logo individual image time in ms")
#define DELAY_LONGTEXT N_("Individual image display time of 0 - 60000 ms.")
#define POSX_TEXT N_("X coordinate")
#define POSX_LONGTEXT N_("X coordinate of the logo. You can move the logo " \
"by left-clicking it." )
#define POSY_TEXT N_("Y coordinate")
#define POSY_LONGTEXT N_("Y coordinate of the logo. You can move the logo " \
"by left-clicking it." )
#define POSX_TEXT N_("X offset")
#define POSX_LONGTEXT N_("X offset, from top-left, or from relative position. " \
"You can move the logo by left-clicking it." )
#define POSY_TEXT N_("Y offset")
#define POSY_LONGTEXT N_("Y offset, from top-left, or from relative position. " \
"You can move the logo by left-clicking it." )
#define OPACITY_TEXT N_("Opacity of the logo")
#define OPACITY_LONGTEXT N_("Logo opacity value " \
"(from 0 for full transparency to 255 for full opacity)." )
......
......@@ -70,8 +70,9 @@ typedef struct
{
vlc_mutex_t lock;
int i_xoff, i_yoff; /* offsets for the display string in the video window */
int i_pos; /* permit relative positioning (top, bottom, left, right, center) */
int i_xoff, i_yoff; /* positioning offsets */
int i_pos; /* positioning: absolute, or relative location (top, bottom, left, right, center) */
vlc_tick_t i_timeout;
char *format; /**< marquee text format */
......@@ -93,9 +94,9 @@ typedef struct
#define FILE_TEXT N_("Text file")
#define FILE_LONGTEXT N_("File to read the marquee text from.")
#define POSX_TEXT N_("X offset")
#define POSX_LONGTEXT N_("X offset, from the left screen edge." )
#define POSX_LONGTEXT N_("X offset, from top-left, or from relative position." )
#define POSY_TEXT N_("Y offset")
#define POSY_LONGTEXT N_("Y offset, down from the top." )
#define POSY_LONGTEXT N_("Y offset, from top-left, or from relative position." )
#define TIMEOUT_TEXT N_("Timeout")
#define TIMEOUT_LONGTEXT N_("Number of milliseconds the marquee must remain " \
"displayed. Default value is " \
......
......@@ -103,8 +103,9 @@ typedef struct
vlc_timer_t timer; /* Timer to refresh the rss feeds */
bool b_fetched;
int i_xoff, i_yoff; /* offsets for the display string in the video window */
int i_pos; /* permit relative positioning (top, bottom, left, right, center) */
int i_xoff, i_yoff; /* positioning offsets */
int i_pos; /* positioning: absolute, or relative location (top, bottom, left, right, center) */
vlc_tick_t i_speed;
int i_length;
......@@ -139,9 +140,9 @@ typedef struct
#define IMAGE_LONGTEXT N_("Display feed images if available.")
#define POSX_TEXT N_("X offset")
#define POSX_LONGTEXT N_("X offset, from the left screen edge." )
#define POSX_LONGTEXT N_("X offset, from top-left, or from relative position." )
#define POSY_TEXT N_("Y offset")
#define POSY_LONGTEXT N_("Y offset, down from the top." )
#define POSY_LONGTEXT N_("Y offset, from top-left, or from relative position." )
#define OPACITY_TEXT N_("Opacity")
#define OPACITY_LONGTEXT N_("Opacity (inverse of transparency) of " \
"overlay text. 0 = transparent, 255 = totally opaque." )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment