From 3860b3b77e6870c14a3c86ca06e77cfe89bebef0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 14 Apr 2018 10:57:32 +0530 Subject: [PATCH] String changes --- src/pyj/read_book/prefs/head_foot.pyj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyj/read_book/prefs/head_foot.pyj b/src/pyj/read_book/prefs/head_foot.pyj index 01811ad1a9..90b2a3577b 100644 --- a/src/pyj/read_book/prefs/head_foot.pyj +++ b/src/pyj/read_book/prefs/head_foot.pyj @@ -3,7 +3,7 @@ from __python__ import bound_methods, hash_literals from elementmaker import E -from gettext import gettext as _ +from gettext import gettext as _, ngettext from book_list.globals import get_session_data from dom import unique_id @@ -119,9 +119,9 @@ def format_time_left(seconds): if minutes < 1: return _('almost done') minutes = minutes - return _('{} mins').format(minutes) + return ngettext('{} min', '{} mins', minutes).format(minutes) if not minutes: - return _('{} hours').format(hours) + return ngettext('{} hour', '{} hours', hours).format(hours) return _('{} h {} mins').format(hours, minutes)