Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trans string #143

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions invenio_theme/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

"""Configuration for Invenio-Theme."""

from flask_babelex import gettext as _

REQUIREJS_CONFIG = 'js/build.js'

SASS_BIN = 'node-sass'
Expand Down Expand Up @@ -97,7 +99,7 @@
THEME_FRONTPAGE = False
"""Enable or disable basic frontpage view."""

THEME_FRONTPAGE_TITLE = 'Invenio'
THEME_FRONTPAGE_TITLE = _('Invenio')
"""The title shown on the fronpage."""

THEME_FRONTPAGE_TEMPLATE = 'invenio_theme/frontpage.html'
Expand All @@ -112,7 +114,7 @@
THEME_BREADCRUMB_ROOT_ENDPOINT = ''
"""The endpoint for the Home view in the breadcrumbs."""

THEME_SITENAME = 'Invenio'
THEME_SITENAME = _('Invenio')
"""The name of the site to be used on the header and as a title."""

THEME_401_TEMPLATE = 'invenio_theme/401.html'
Expand Down
2 changes: 1 addition & 1 deletion invenio_theme/templates/invenio_theme/admin_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</a>
<nav class="navbar navbar-static-top" role="navigation">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="sr-only">{{_('Toggle navigation')}}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="text-center">
<form action="/search">
<div class="form-group">
<div class="input-group">
<input type="text" name="q" class="input-lg form-control" placeholder="Type and press enter to search">
<input type="text" name="q" class="input-lg form-control" placeholder="{{_ ('Type and press enter to search')}}">
<div class="input-group-btn">
<button type="submit" class="btn btn-lg btn-default"><i class="fa fa-search"></i></button>
</div>
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@

install_requires = [
'Flask>=0.11.1',
'Flask-BabelEx>=0.9.2',
'Flask-BabelEx>=0.9.3',
'Flask-Breadcrumbs>=0.4.0',
'Flask-Menu>=0.5.0',
'invenio-assets>=1.1.0',
'invenio-i18n>=1.1.0',
'jsmin>=2.1.6',
'Werkzeug>=0.16.1,<1.0.0'
]

packages = find_packages()
Expand Down