7

updates faulty strings

This commit is contained in:
blurrah
2017-05-31 16:30:18 +02:00
parent a4cf8120b4
commit 18eea8a9b1
3 changed files with 128 additions and 96 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: wagtail_personalisation 0.1.0\n" "Project-Id-Version: wagtail_personalisation 0.1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-31 03:00-0500\n" "POT-Creation-Date: 2017-05-31 09:30-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,11 +17,11 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: blocks.py:19 #: blocks.py:20
msgid "Personalisation segment" msgid "Personalisation segment"
msgstr "" msgstr ""
#: blocks.py:20 #: blocks.py:21
msgid "Only show this content block for users in this segment" msgid "Only show this content block for users in this segment"
msgstr "" msgstr ""
@ -29,43 +29,43 @@ msgstr ""
msgid "Wagtail Personalisation" msgid "Wagtail Personalisation"
msgstr "" msgstr ""
#: models.py:29 #: models.py:26
msgid "Enabled" msgid "Enabled"
msgstr "" msgstr ""
#: models.py:30 #: models.py:27
msgid "Disabled" msgid "Disabled"
msgstr "" msgstr ""
#: models.py:35 #: models.py:39
msgid "Should the segment persist between visits?" msgid "Should the segment persist between visits?"
msgstr "" msgstr ""
#: models.py:38 #: models.py:42
msgid "Should the segment match all the rules or just one of them?" msgid "Should the segment match all the rules or just one of them?"
msgstr "" msgstr ""
#: models.py:56 #: models.py:60
msgid "Rules" msgid "Rules"
msgstr "" msgstr ""
#: models.py:137 #: models.py:167
msgid "Content" msgid "Content"
msgstr "" msgstr ""
#: models.py:139 #: models.py:169
msgid "Variations" msgid "Variations"
msgstr "" msgstr ""
#: models.py:141 #: models.py:171
msgid "Promote" msgid "Promote"
msgstr "" msgstr ""
#: models.py:143 #: models.py:173
msgid "Settings" msgid "Settings"
msgstr "" msgstr ""
#: rules.py:30 rules.py:45 #: rules.py:29 rules.py:48
msgid "Abstract segmentation rule" msgid "Abstract segmentation rule"
msgstr "" msgstr ""
@ -77,244 +77,276 @@ msgstr ""
msgid "Ending time" msgid "Ending time"
msgstr "" msgstr ""
#: rules.py:84 #: rules.py:74
msgid "Time Rule" msgid "Time Rule"
msgstr "" msgstr ""
#: rules.py:88 #: rules.py:85
msgid "These users visit between" msgid "These users visit between"
msgstr "" msgstr ""
#: rules.py:89 #: rules.py:86
msgid "{} and {}" msgid "{} and {}"
msgstr "" msgstr ""
#: rules.py:106 #: rules.py:103
msgid "Monday" msgid "Monday"
msgstr "" msgstr ""
#: rules.py:107 #: rules.py:104
msgid "Tuesday" msgid "Tuesday"
msgstr "" msgstr ""
#: rules.py:108 #: rules.py:105
msgid "Wednesday" msgid "Wednesday"
msgstr "" msgstr ""
#: rules.py:109 #: rules.py:106
msgid "Thursday" msgid "Thursday"
msgstr "" msgstr ""
#: rules.py:110 #: rules.py:107
msgid "Friday" msgid "Friday"
msgstr "" msgstr ""
#: rules.py:111 #: rules.py:108
msgid "Saturday" msgid "Saturday"
msgstr "" msgstr ""
#: rules.py:112 #: rules.py:109
msgid "Sunday" msgid "Sunday"
msgstr "" msgstr ""
#: rules.py:136 #: rules.py:122
msgid "Day Rule" msgid "Day Rule"
msgstr "" msgstr ""
#: rules.py:152 #: rules.py:146
msgid "These users visit on" msgid "These users visit on"
msgstr "" msgstr ""
#: rules.py:153 rules.py:192 rules.py:400 #: rules.py:162
msgid "{}" msgid "Regular expression to match the referrer"
msgstr "" msgstr ""
#: rules.py:168 #: rules.py:169
msgid "Regex string to match the referer with"
msgstr ""
#: rules.py:187
msgid "Referral Rule" msgid "Referral Rule"
msgstr "" msgstr ""
#: rules.py:191 #: rules.py:182
msgid "These visits originate from" msgid "These visits originate from"
msgstr "" msgstr ""
#: rules.py:211 #: rules.py:183 rules.py:366
msgid "{}"
msgstr ""
#: rules.py:202
msgid "More than" msgid "More than"
msgstr "" msgstr ""
#: rules.py:212 #: rules.py:203
msgid "Less than" msgid "Less than"
msgstr "" msgstr ""
#: rules.py:213 #: rules.py:204
msgid "Equal to" msgid "Equal to"
msgstr "" msgstr ""
#: rules.py:270 #: rules.py:247
msgid "Visit count Rule" msgid "Visit count Rule"
msgstr "" msgstr ""
#: rules.py:274 #: rules.py:251
msgid "These users visited {}" msgid "These users visited {}"
msgstr "" msgstr ""
#: rules.py:277 #: rules.py:254
msgid "{} {} times" msgid "{} {} times"
msgstr "" msgstr ""
#: rules.py:294 #: rules.py:271
msgid "The query parameter to search for" msgid "The query parameter to search for"
msgstr "" msgstr ""
#: rules.py:296 #: rules.py:273
msgid "The value of the parameter to match" msgid "The value of the parameter to match"
msgstr "" msgstr ""
#: rules.py:317 #: rules.py:282
msgid "Query Rule" msgid "Query Rule"
msgstr "" msgstr ""
#: rules.py:321 #: rules.py:293
msgid "These users used a url with the query" msgid "These users used a URL with the query"
msgstr "" msgstr ""
#: rules.py:322 #: rules.py:294
msgid "?{}={}" msgid "?{}={}"
msgstr "" msgstr ""
#: rules.py:340 #: rules.py:312
msgid "Mobile phone" msgid "Mobile phone"
msgstr "" msgstr ""
#: rules.py:341 #: rules.py:313
msgid "Tablet" msgid "Tablet"
msgstr "" msgstr ""
#: rules.py:342 #: rules.py:314
msgid "Desktop" msgid "Desktop"
msgstr "" msgstr ""
#: rules.py:367 #: rules.py:323
msgid "Device Rule" msgid "Device Rule"
msgstr "" msgstr ""
#: rules.py:391 #: rules.py:354
msgid "Logged In Rule" msgid "Logged in Rule"
msgstr "" msgstr ""
#: rules.py:394 #: rules.py:360
msgid "Logged in" msgid "Logged in"
msgstr "" msgstr ""
#: rules.py:396 #: rules.py:362
msgid "Not logged in" msgid "Not logged in"
msgstr "" msgstr ""
#: rules.py:399 #: rules.py:365
msgid "These visitors are" msgid "These visitors are"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:12 #: templates/modeladmin/wagtail_personalisation/segment/base.html:28
msgid "Switch view"
msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:14
#: templates/modeladmin/wagtail_personalisation/segment/index.html:14
msgid "Filter" msgid "Filter"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:28 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:30
msgid "This segmented has been visited" msgid "This segment has been visited"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:29 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:31
msgid "time" msgid "time"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:32 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:34
msgid "This segment has been active for" msgid "This segment has been active for"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:33 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:35
msgid "day" msgid "day"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:41 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:43
msgid "The visitor must match" msgid "The visitor must match"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:43 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:45
msgid "Any rule" msgid "Any rule"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:45 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:47
msgid "All rules" msgid "All rules"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:50 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:52
msgid "The persistence of this segment is" msgid "The persistence of this segment is"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:52 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:54
msgid "This segment persists in between visits" msgid "This segment persists in between visits"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:52 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:54
msgid "Persistent" msgid "Persistent"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:54 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:56
msgid "This segment is reevaluated on every visit" msgid "This segment is re-evaluated on every visit"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:54 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:56
msgid "Fleeting" msgid "Fleeting"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:74 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:76
msgid "Enable this segment" msgid "Enable this segment"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:74 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:78
msgid "enable"
msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:76
msgid "Disable this segment" msgid "Disable this segment"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:76 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:80
msgid "disable"
msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:78
msgid "Configure this segment" msgid "Configure this segment"
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:78 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:88
msgid "configure this"
msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:87
#, python-format #, python-format
msgid "Add a new %(name)s" msgid ""
"\n"
" <a class=\"block suggestion\" href="
"\"%(url)s\">\n"
" <span class=\"suggestive_text\">Add "
"a new %(name)s</span>\n"
" </a>\n"
" "
msgstr "" msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:97 #: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:101
#: templates/modeladmin/wagtail_personalisation/segment/index.html:45
#, python-format #, python-format
msgid "Page %(current_page)s of %(num_pages)s." msgid "Page %(current_page)s of %(num_pages)s."
msgstr "" msgstr ""
#: wagtail_hooks.py:167 #: templates/modeladmin/wagtail_personalisation/segment/index.html:24
#, python-format
msgid ""
"No %(name)s have been created yet. One of the following must be created "
"before you can add any %(name)s:"
msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:29
#, python-format
msgid "No %(name)s have been created yet."
msgstr ""
#: templates/modeladmin/wagtail_personalisation/segment/index.html:31
#, python-format
msgid ""
"\n"
" Why not <a href=\"%(url)s\">add "
"one</a>?\n"
" "
msgstr ""
#: views.py:60
#, python-brace-format
msgid "{visits} visits"
msgstr ""
#: views.py:63
#, python-brace-format
msgid "{days} days"
msgstr ""
#: wagtail_hooks.py:121
msgid "Variants" msgid "Variants"
msgstr "" msgstr ""
#: wagtail_hooks.py:172 #: wagtail_hooks.py:126
msgid "Create a new variant" msgid "Create a new variant"
msgstr "" msgstr ""
#: wagtail_hooks.py:191 #: wagtail_hooks.py:146
msgid "Create this variant" msgid "Create this variant"
msgstr "" msgstr ""
#: wagtail_hooks.py:204 #: wagtail_hooks.py:159
msgid "Segments" msgid "Segments"
msgstr "" msgstr ""

View File

@ -159,7 +159,7 @@ class ReferralRule(AbstractBaseRule):
""" """
regex_string = models.TextField( regex_string = models.TextField(
_("Regex string to match the referer with")) _("Regular expression to match the referrer"))
panels = [ panels = [
FieldPanel('regex_string'), FieldPanel('regex_string'),
@ -290,7 +290,7 @@ class QueryRule(AbstractBaseRule):
def description(self): def description(self):
description = { description = {
'title': _('These users used a url with the query'), 'title': _('These users used a URL with the query'),
'value': _('?{}={}').format( 'value': _('?{}={}').format(
self.parameter, self.parameter,
self.value self.value
@ -351,7 +351,7 @@ class UserIsLoggedInRule(AbstractBaseRule):
] ]
def __str__(self): def __str__(self):
return _('Logged In Rule') return _('Logged in Rule')
def test_user(self, request=None): def test_user(self, request=None):
return request.user.is_authenticated() == self.is_logged_in return request.user.is_authenticated() == self.is_logged_in

View File

@ -27,7 +27,7 @@
<div class="inspect_container"> <div class="inspect_container">
<ul class="inspect segment_stats"> <ul class="inspect segment_stats">
<li class="visit_stat"> <li class="visit_stat">
{% trans "This segmented has been visited" %} {% trans "This segment has been visited" %}
<span>{{ segment.visit_count|localize }} {% trans "time" %}{{ segment.visit_count|pluralize }}</span> <span>{{ segment.visit_count|localize }} {% trans "time" %}{{ segment.visit_count|pluralize }}</span>
</li> </li>
<li class="days_stat"> <li class="days_stat">
@ -53,7 +53,7 @@
{% if segment.persistent %} {% if segment.persistent %}
<span title="{% trans "This segment persists in between visits" %}">{% trans "Persistent" %}</span> <span title="{% trans "This segment persists in between visits" %}">{% trans "Persistent" %}</span>
{% else %} {% else %}
<span title="{% trans "This segment is reevaluated on every visit" %}">{% trans "Fleeting" %}</span> <span title="{% trans "This segment is re-evaluated on every visit" %}">{% trans "Fleeting" %}</span>
{% endif %} {% endif %}
</li> </li>