diff --git a/src/wagtail_personalisation/locale/en/LC_MESSAGES/django.po b/src/wagtail_personalisation/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000..abb0d35 --- /dev/null +++ b/src/wagtail_personalisation/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,352 @@ +# Wagtail Personalisation english translation strings. +# Copyright (C) 2017 Lab Digital B.V. +# This file is distributed under the same license as the wagtail_personalisation package. +# Boris Besemer , 2017. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: wagtail_personalisation 0.1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 09:30-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: blocks.py:20 +msgid "Personalisation segment" +msgstr "" + +#: blocks.py:21 +msgid "Only show this content block for users in this segment" +msgstr "" + +#: config.py:8 +msgid "Wagtail Personalisation" +msgstr "" + +#: models.py:26 +msgid "Enabled" +msgstr "" + +#: models.py:27 +msgid "Disabled" +msgstr "" + +#: models.py:39 +msgid "Should the segment persist between visits?" +msgstr "" + +#: models.py:42 +msgid "Should the segment match all the rules or just one of them?" +msgstr "" + +#: models.py:60 +msgid "Rules" +msgstr "" + +#: models.py:167 +msgid "Content" +msgstr "" + +#: models.py:169 +msgid "Variations" +msgstr "" + +#: models.py:171 +msgid "Promote" +msgstr "" + +#: models.py:173 +msgid "Settings" +msgstr "" + +#: rules.py:29 rules.py:48 +msgid "Abstract segmentation rule" +msgstr "" + +#: rules.py:63 +msgid "Starting time" +msgstr "" + +#: rules.py:64 +msgid "Ending time" +msgstr "" + +#: rules.py:74 +msgid "Time Rule" +msgstr "" + +#: rules.py:85 +msgid "These users visit between" +msgstr "" + +#: rules.py:86 +msgid "{} and {}" +msgstr "" + +#: rules.py:103 +msgid "Monday" +msgstr "" + +#: rules.py:104 +msgid "Tuesday" +msgstr "" + +#: rules.py:105 +msgid "Wednesday" +msgstr "" + +#: rules.py:106 +msgid "Thursday" +msgstr "" + +#: rules.py:107 +msgid "Friday" +msgstr "" + +#: rules.py:108 +msgid "Saturday" +msgstr "" + +#: rules.py:109 +msgid "Sunday" +msgstr "" + +#: rules.py:122 +msgid "Day Rule" +msgstr "" + +#: rules.py:146 +msgid "These users visit on" +msgstr "" + +#: rules.py:162 +msgid "Regular expression to match the referrer" +msgstr "" + +#: rules.py:169 +msgid "Referral Rule" +msgstr "" + +#: rules.py:182 +msgid "These visits originate from" +msgstr "" + +#: rules.py:183 rules.py:366 +msgid "{}" +msgstr "" + +#: rules.py:202 +msgid "More than" +msgstr "" + +#: rules.py:203 +msgid "Less than" +msgstr "" + +#: rules.py:204 +msgid "Equal to" +msgstr "" + +#: rules.py:247 +msgid "Visit count Rule" +msgstr "" + +#: rules.py:251 +msgid "These users visited {}" +msgstr "" + +#: rules.py:254 +msgid "{} {} times" +msgstr "" + +#: rules.py:271 +msgid "The query parameter to search for" +msgstr "" + +#: rules.py:273 +msgid "The value of the parameter to match" +msgstr "" + +#: rules.py:282 +msgid "Query Rule" +msgstr "" + +#: rules.py:293 +msgid "These users used a URL with the query" +msgstr "" + +#: rules.py:294 +msgid "?{}={}" +msgstr "" + +#: rules.py:312 +msgid "Mobile phone" +msgstr "" + +#: rules.py:313 +msgid "Tablet" +msgstr "" + +#: rules.py:314 +msgid "Desktop" +msgstr "" + +#: rules.py:323 +msgid "Device Rule" +msgstr "" + +#: rules.py:354 +msgid "Logged in Rule" +msgstr "" + +#: rules.py:360 +msgid "Logged in" +msgstr "" + +#: rules.py:362 +msgid "Not logged in" +msgstr "" + +#: rules.py:365 +msgid "These visitors are" +msgstr "" + +#: 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" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:30 +msgid "This segment has been visited" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:31 +msgid "time" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:34 +msgid "This segment has been active for" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:35 +msgid "day" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:43 +msgid "The visitor must match" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:45 +msgid "Any rule" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:47 +msgid "All rules" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:52 +msgid "The persistence of this segment is" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:54 +msgid "This segment persists in between visits" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:54 +msgid "Persistent" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:56 +msgid "This segment is re-evaluated on every visit" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:56 +msgid "Fleeting" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:76 +msgid "Enable this segment" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:78 +msgid "Disable this segment" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:80 +msgid "Configure this segment" +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:88 +#, python-format +msgid "" +"\n" +" \n" +" Add " +"a new %(name)s\n" +" \n" +" " +msgstr "" + +#: templates/modeladmin/wagtail_personalisation/segment/dashboard.html:101 +#: templates/modeladmin/wagtail_personalisation/segment/index.html:45 +#, python-format +msgid "Page %(current_page)s of %(num_pages)s." +msgstr "" + +#: 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 add " +"one?\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" +msgstr "" + +#: wagtail_hooks.py:126 +msgid "Create a new variant" +msgstr "" + +#: wagtail_hooks.py:146 +msgid "Create this variant" +msgstr "" + +#: wagtail_hooks.py:159 +msgid "Segments" +msgstr "" diff --git a/src/wagtail_personalisation/models.py b/src/wagtail_personalisation/models.py index 8ec9199..04554c0 100644 --- a/src/wagtail_personalisation/models.py +++ b/src/wagtail_personalisation/models.py @@ -28,8 +28,8 @@ class Segment(ClusterableModel): STATUS_DISABLED = 'disabled' STATUS_CHOICES = ( - (STATUS_ENABLED, 'Enabled'), - (STATUS_DISABLED, 'Disabled'), + (STATUS_ENABLED, _('Enabled')), + (STATUS_DISABLED, _('Disabled')), ) name = models.CharField(max_length=255) @@ -64,7 +64,7 @@ class Segment(ClusterableModel): "{}_related".format(rule._meta.db_table), label=rule.__str__, ) for rule in AbstractBaseRule.__subclasses__() - ], heading="Rules"), + ], heading=_("Rules")), ] super(Segment, self).__init__(*args, **kwargs) diff --git a/src/wagtail_personalisation/rules.py b/src/wagtail_personalisation/rules.py index 9e3f0f4..c6f1ee7 100644 --- a/src/wagtail_personalisation/rules.py +++ b/src/wagtail_personalisation/rules.py @@ -46,7 +46,7 @@ class AbstractBaseRule(models.Model): """ description = { 'title': _('Abstract segmentation rule'), - 'value': _(''), + 'value': '', } return description @@ -159,7 +159,7 @@ class ReferralRule(AbstractBaseRule): """ regex_string = models.TextField( - _("Regex string to match the referer with")) + _("Regular expression to match the referrer")) panels = [ FieldPanel('regex_string'), @@ -290,7 +290,7 @@ class QueryRule(AbstractBaseRule): def description(self): description = { - 'title': _('These users used a url with the query'), + 'title': _('These users used a URL with the query'), 'value': _('?{}={}').format( self.parameter, self.value @@ -351,7 +351,7 @@ class UserIsLoggedInRule(AbstractBaseRule): ] def __str__(self): - return _('Logged In Rule') + return _('Logged in Rule') def test_user(self, request=None): return request.user.is_authenticated() == self.is_logged_in diff --git a/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html b/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html index 257d8fc..7b72511 100644 --- a/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html +++ b/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html @@ -27,7 +27,7 @@
  • - {% trans "This segmented has been visited" %} + {% trans "This segment has been visited" %} {{ segment.visit_count|localize }} {% trans "time" %}{{ segment.visit_count|pluralize }}
  • @@ -53,7 +53,7 @@ {% if segment.persistent %} {% trans "Persistent" %} {% else %} - {% trans "Fleeting" %} + {% trans "Fleeting" %} {% endif %}
  • diff --git a/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/index.html b/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/index.html index 221c776..16e7f5e 100644 --- a/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/index.html +++ b/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/index.html @@ -16,7 +16,6 @@
{% endif %} {% endblock %} -
{% block result_list %} {% if not all_count %}