Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gnome-todo
gnome-todo
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 172
    • Issues 172
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • gnome-todognome-todo
  • Merge Requests
  • !28

The source project of this merge request has been removed.
Closed
Opened Feb 14, 2018 by Rafał Lużyński@rluzynski
  • Report abuse
Report abuse

get_string_for_date: Use "Yesterday" and "n days ago" correctly.

  • Overview 2
  • Changes 1

Some languages don't have plurals, some reuse the singular form for numbers like 21, 31, 41... Therefore if you want to display "Yesterday" instead of "1 day ago" you must do it explicitly. You can't rely on ngettext(), you can't assume that n == 1 is always singular and n != 1 is always plural.

Assignee
Assign to
Reviewer
Request review from
GNOME 3.28
Milestone
GNOME 3.28 (Past due)
Assign milestone
Time tracking
Reference: GNOME/gnome-todo!28
Source branch: master