Opened 11 years ago

Closed 10 years ago

#5913 closed patch (fixed)

Enabling translation of screen names in mythweather

Reported by: meik <meik.piepmeyer.lists@…> Owned by: stuartm
Priority: minor Milestone: 0.22
Component: Plugin - MythWeather Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

Currently, the screen names are not translated (e.g."current conditions"). This patch enables the translation of that name, both when viewing the weather screens and when setting up the screens.

The struct ScreenListInfo stores a field name. This is currently used as an identifier for the type of screen and as the displayed name. Te patch adds the field title which will hold the translated name to be displayed. The name field will only be used as an identifier.

Now ScreenListInfo holds the translated title, so there is no need to pass the name of the screen to the constuctors of the WeatherScreens anymore.

Attachments (1)

screen-names.diff (11.3 KB) - added by meik <meik.piepmeyer.lists@…> 11 years ago.
initial patch

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by meik <meik.piepmeyer.lists@…>

Attachment: screen-names.diff added

initial patch

comment:1 Changed 10 years ago by paulh

Component: mythweatherPlugin - MythWeather

comment:2 Changed 10 years ago by stuartm

Owner: changed from Isaac Richards to stuartm
Status: newassigned
Type: enhancementpatch

comment:3 Changed 10 years ago by stuartm

Status: assignedaccepted

comment:4 Changed 10 years ago by stuartm

Resolution: fixed
Status: acceptedclosed

(In [21512]) Allow translation of mythweather screens. Only applies to non-custom screens and the exact method may change in 0.23. Original patch from meik, updated for current trunk. Fixes #5913

Note: See TracTickets for help on using tickets.