You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by sa...@apache.org on 2014/02/15 22:33:29 UTC
svn commit: r1568685 [9/9] - in /bloodhound/trunk:
bloodhound_dashboard/bhdashboard/ bloodhound_dashboard/bhdashboard/locale/
bloodhound_dashboard/bhdashboard/locale/es/
bloodhound_dashboard/bhdashboard/locale/es/LC_MESSAGES/
bloodhound_dashboard/bhdas...
Added: bloodhound/trunk/bloodhound_theme/bhtheme/translation.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/translation.py?rev=1568685&view=auto
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/translation.py (added)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/translation.py Sat Feb 15 21:33:27 2014
@@ -0,0 +1,35 @@
+#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+
+r"""Project dashboard for Apache(TM) Bloodhound
+
+Translation functions and classes.
+"""
+
+from trac.util.translation import domain_functions
+
+#------------------------------------------------------
+# Internationalization
+#------------------------------------------------------
+
+_, ngettext, tag_, tagn_, gettext, N_, add_domain = \
+ domain_functions('bhtheme', ('_', 'ngettext', 'tag_', 'tagn_',
+ 'gettext', 'N_', 'add_domain'))
Added: bloodhound/trunk/bloodhound_theme/messages-js.cfg
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/messages-js.cfg?rev=1568685&view=auto
==============================================================================
--- bloodhound/trunk/bloodhound_theme/messages-js.cfg (added)
+++ bloodhound/trunk/bloodhound_theme/messages-js.cfg Sat Feb 15 21:33:27 2014
@@ -0,0 +1,8 @@
+# mapping file for extracting messages from javascript files into
+# <path>/locale/messages-js.pot (see setup.cfg)
+[javascript: **.js]
+
+[extractors]
+javascript_script = trac.util.dist:extract_javascript_script
+
+[javascript_script: **.html]