Forums

JW Player for WordPress – Flash & HTML5 Video Player
[Plugin: JW Player Plugin for WordPress] Media title when runing multilingual site (3 posts)

  1. brasofilo
    Member
    Posted 2 years ago #

    to have translated titles in the playlist i modified line 42 of the file jw-player-plugin-for-wordpress/media/JWPlaylistGenerator.php

    wrapped $playlist_item->post_title with __()

    from:
    echo "\n\t\t\t".'<title>' . esc_attr(stripslashes($playlist_item->post_title)) . '</title>';

    to:
    echo "\n\t\t\t".'<title>' . esc_attr(stripslashes(__($playlist_item->post_title))) . '</title>';

    btw, i'm using qtranslate, so a media with the title [:pt]Meu titulo[:en]My title will render in the correct language inside the playlist

    http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/

  2. LongTail Video
    Member
    Plugin Author

    Posted 2 years ago #

    @brasofilo,

    Thank you for posting your modification. I'll look into adding it into the plugin for the next release.

  3. brasofilo
    Member
    Posted 2 years ago #

    cool, LongTail
    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic