Opened 15 months ago

Last modified 9 months ago

#13126 accepted Patch - Bug Fix

'Listings' not showing movie rating for non-English languages

Reported by: Francois Gouget <fgouget@…> Owned by: Stuart Auchterlonie
Priority: minor Milestone: 29.2
Component: Plugin - MythWeb Version: Master Head
Severity: medium Keywords: patch
Cc: Ticket locked: no

Description

Following bug 13125 I switched my session language from English to French. This allowed me to recover the right category markup on the 'Listings' page.

However I immediately lost the star rating information for movies. For instance with my session language set to English I had:

Daredevil (2003, ★★½)

But as soon as I switched to French all I had left was:

Daredevil

Win some, lose some :-(

At least the fix for this one is easy: $program->category_type is not localized so it should be compared to 'movie' not t('movie') in modules/tv/tmpl/default/list_cell_program.php.

Attachments (1)

patch.diff (1.1 KB) - added by Francois Gouget <fgouget@…> 15 months ago.
Fixes #13126 - A program's category type is not localized.

Download all attachments as: .zip

Change History (4)

Changed 15 months ago by Francois Gouget <fgouget@…>

Attachment: patch.diff added

Fixes #13126 - A program's category type is not localized.

comment:1 Changed 15 months ago by Francois Gouget <fgouget@…>

I pushed a patch to GitHub? and created a pull request in case that's more practical: https://github.com/MythTV/mythweb/pull/24

comment:2 Changed 15 months ago by sphery

Component: MythTV - Web FrontendPlugin - MythWeb
Owner: changed from stuartm to Stuart Auchterlonie

comment:3 Changed 9 months ago by Stuart Auchterlonie

Milestone: needs_triage29.2
Status: newaccepted
Note: See TracTickets for help on using tickets.