" views" needs placeholder and plural form

Bug #1617924 reported by GunChleoc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
YouTube Scope
New
Undecided
Unassigned

Bug Description

The string " views" in /src/youtube/scope/preview.cpp has hard-coded word order, and also does not allow proper translation of plural forms.

This is the line:

    header.add_attribute_value("subtitle", sc::Variant(format_fixed(s.view_count) + _(" views") +
                                                       u8" \u261d " + format_fixed(s.like_count) +
                                                       u8" \u261f " + format_fixed(s.dislike_count) +
                                                       u8" \u270E " + format_fixed(s.comment_count)));

The translation should be fetched with ngettext("%d view", "%d views", s.view_count) and the %d in the result then be replaced by format_fixed(s.view_count).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.