From d34a7b63c7695122d545f90f04465dcbc65239fd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 2 Nov 2014 09:18:48 +0530 Subject: [PATCH] User manual: translate page number references in the PDF output --- manual/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manual/conf.py b/manual/conf.py index c023457496..bbbede5538 100644 --- a/manual/conf.py +++ b/manual/conf.py @@ -18,6 +18,8 @@ sys.path.append(os.path.abspath('.')) import init_calibre init_calibre from calibre.constants import __appname__, __version__ +import calibre.utils.localization as l # Ensure calibre translations are installed +del l import custom custom # General configuration @@ -178,6 +180,7 @@ latex_logo = 'resources/logo.png' latex_show_pagerefs = True latex_show_urls = 'footnote' latex_elements = { -'papersize':'letterpaper', -'fontenc':r'\usepackage[T2A,T1]{fontenc}' + 'papersize':'letterpaper', + 'fontenc':r'\usepackage[T2A,T1]{fontenc}', + 'preamble': r'\renewcommand{\pageautorefname}{%s}' % _('page'), }