Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Add babel translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Oct 11, 2017
1 parent 497dcf2 commit 5c672cd
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[python: **.py]
[jinja2: **/templates/**.html.jinja2]
extensions=jinja2.ext.autoescape,jinja2.ext.with_,jinja2.ext.do
3 changes: 3 additions & 0 deletions babel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
pybabel extract -F babel.cfg -k _ -k __ -k ngettext -o hgapp/translations/messages.pot .
pybabel update -D hgapp -i hgapp/translations/messages.pot -d hgapp/translations
35 changes: 35 additions & 0 deletions hgapp/translations/messages.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translations template for PROJECT.
# Copyright (C) 2017 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2017-10-12 01:38+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.5.1\n"

#: hgapp/views/login.py:21
msgid "You are now logged out"
msgstr ""

#: hgapp/views/login.py:43
msgid "You denied the request to login"
msgstr ""

#: hgapp/views/login.py:46
msgid "Error: {error}"
msgstr ""

#: hgapp/views/login.py:49
msgid "NA"
msgstr ""

0 comments on commit 5c672cd

Please sign in to comment.