[vlc-commits] Add context to view point messages for translation (fixes #19374)

Theppitak Karoonboonyanan git at videolan.org
Fri Dec 29 18:35:46 CET 2017


vlc | branch: master | Theppitak Karoonboonyanan <theppitak at gmail.com> | Sat Dec 30 00:22:00 2017 +0700| [751f09f71c188e3121e1bf6d18371a8668aed19f] | committer: Rémi Denis-Courmont

Add context to view point messages for translation (fixes #19374)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=751f09f71c188e3121e1bf6d18371a8668aed19f
---

 src/input/es_out.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 787726dc82..2284f86542 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3249,14 +3249,15 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
            }
            info_category_AddInfo( p_cat, _("Projection"), "%s", _(psz_loc_name) );
 
-           info_category_AddInfo( p_cat, _("Yaw"), "%.2f",
-                                  fmt->video.pose.yaw );
-           info_category_AddInfo( p_cat, _("Pitch"), "%.2f",
-                                  fmt->video.pose.pitch );
-           info_category_AddInfo( p_cat, _("Roll"), "%.2f",
-                                  fmt->video.pose.roll );
-           info_category_AddInfo( p_cat, _("Field of view"), "%.2f",
-                                  fmt->video.pose.fov );
+           info_category_AddInfo( p_cat, vlc_pgettext("ViewPoint", "Yaw"),
+                                  "%.2f", fmt->video.pose.yaw );
+           info_category_AddInfo( p_cat, vlc_pgettext("ViewPoint", "Pitch"),
+                                  "%.2f", fmt->video.pose.pitch );
+           info_category_AddInfo( p_cat, vlc_pgettext("ViewPoint", "Roll"),
+                                  "%.2f", fmt->video.pose.roll );
+           info_category_AddInfo( p_cat,
+                                  vlc_pgettext("ViewPoint", "Field of view"),
+                                  "%.2f", fmt->video.pose.fov );
        }
        if ( fmt->video.mastering.max_luminance )
        {



More information about the vlc-commits mailing list