gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-www] branch master updated: remove toplevel i18nfix, exists in in


From: gnunet
Subject: [taler-www] branch master updated: remove toplevel i18nfix, exists in inc.
Date: Sat, 14 Dec 2019 17:46:44 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository www.

The following commit(s) were added to refs/heads/master by this push:
     new 375496d  remove toplevel i18nfix, exists in inc.
375496d is described below

commit 375496de12fc29466a438c0efef3be0decccb6cc
Author: ng0 <address@hidden>
AuthorDate: Sat Dec 14 16:46:19 2019 +0000

    remove toplevel i18nfix, exists in inc.
---
 i18nfix.py | 33 ---------------------------------
 1 file changed, 33 deletions(-)

diff --git a/i18nfix.py b/i18nfix.py
deleted file mode 100644
index 331706a..0000000
--- a/i18nfix.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env python3
-# This file is in the public domain.
-
-"""
-Extract translations from a Jinja2 template, stripping leading newlines.
-
-@author Florian Dold
-"""
-
-import jinja2.ext
-import re
-
-def normalize(message):
-    message = message.strip()
-    # collapse whitespaces (including newlines) into one space.
-    message = re.sub("\s+", " ", message)
-    return message
-
-
-def babel_extract(fileobj, keywords, comment_tags, options):
-    res = jinja2.ext.babel_extract(fileobj, keywords, comment_tags, options)
-    for lineno, funcname, message, comments in res:
-        message = normalize(message)
-        yield lineno, funcname, message, comments
-
-def wrap_gettext(f):
-    """
-    Call gettext with whitespace normalized.
-    """
-    def wrapper(message):
-        message = normalize(message)
-        return f(message)
-    return wrapper

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]