Commits

Anonymous committed 37712ff

BH i18n #694 : add and remove translation markers

Comments (0)

Files changed (1)

t694/t694_r1534486_bloodhound_i18n.diff

      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:with="view = view or 'standard'">
  
+@@ -92,8 +93,7 @@
+             ${interval.title}
+           </p>
+           <p style="font-size: 150%">
+-            <a href="${interval_hrefs[idx] if interval_hrefs else '#'}"
+-                i18n:msg="count" >
++            <a href="${interval_hrefs[idx] if interval_hrefs else '#'}">
+               ${interval.count}
+             </a> &nbsp;
+           </p>
 diff --git a/bloodhound_dashboard/bhdashboard/widgets/templates/widget_relations.html b/bloodhound_dashboard/bhdashboard/widgets/templates/widget_relations.html
 --- a/bloodhound_dashboard/bhdashboard/widgets/templates/widget_relations.html
 +++ b/bloodhound_dashboard/bhdashboard/widgets/templates/widget_relations.html
  
  from multiproduct.env import Product, ProductEnvironment
  
+@@ -106,28 +106,28 @@
+                 self.bind_params(name, options, *params)
+         
+         field_maps = {'type': {'admin_url': 'type',
+-                               'title': 'Types',
++                               'title': _('Types'),
+                                },
+                       'status': {'admin_url': None,
+-                                 'title': 'Statuses',
++                                 'title': _('Statuses'),
+                                  },
+                       'priority': {'admin_url': 'priority',
+-                                   'title': 'Priorities',
++                                   'title': _('Priorities'),
+                                    },
+                       'milestone': {'admin_url': 'milestones',
+-                                    'title': 'Milestones',
++                                    'title': _('Milestones'),
+                                     },
+                       'component': {'admin_url': 'components',
+-                                    'title': 'Components',
++                                    'title': _('Components'),
+                                     },
+                       'version': {'admin_url': 'versions',
+-                                  'title': 'Versions',
++                                  'title': _('Versions'),
+                                   },
+                       'severity': {'admin_url': 'severity',
+-                                   'title': 'Severities',
++                                   'title': _('Severities'),
+                                    },
+                       'resolution': {'admin_url': 'resolution',
+-                                     'title': 'Resolutions',
++                                     'title': _('Resolutions'),
+                                      },
+                       }
+         _field = []
+@@ -152,8 +152,7 @@
+                         hint = _('Contact your administrator for further details')
+                     return 'widget_alert.html', \
+                             {
+-                                'title' : Markup(_('%(field)s',
+-                                            field=field_maps[fieldnm]['title'])),
++                                'title' : Markup(field_maps[fieldnm]['title']),
+                                 'data' : dict(msgtype='info',
+                                     msglabel="Note",
+                                     msgbody=Markup(_('''No values are
 diff --git a/bloodhound_dashboard/bhdashboard/widgets/timeline.py b/bloodhound_dashboard/bhdashboard/widgets/timeline.py
 --- a/bloodhound_dashboard/bhdashboard/widgets/timeline.py
 +++ b/bloodhound_dashboard/bhdashboard/widgets/timeline.py