Merge pull request #779 from normanjaeckel/FixTransStrings

Fix whitespaces in translated strings.
This commit is contained in:
Oskar Hahn 2013-06-25 09:28:19 -07:00
commit 0e29200bac
4 changed files with 21 additions and 33 deletions

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-06-21 23:28+0200\n" "POT-Creation-Date: 2013-06-25 00:58+0200\n"
"Language: en\n" "Language: en\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -1182,7 +1182,7 @@ msgid "General"
msgstr "" msgstr ""
#: core/templates/core/version.html:5 core/templates/core/version.html.py:8 #: core/templates/core/version.html:5 core/templates/core/version.html.py:8
#: core/templates/core/version.html:11 motion/pdf.py:105 #: core/templates/core/version.html:11 motion/pdf.py:105 motion/views.py:358
#: motion/templates/motion/motion_detail.html:26 #: motion/templates/motion/motion_detail.html:26
#: motion/templates/motion/motion_diff.html:35 #: motion/templates/motion/motion_diff.html:35
#: motion/templates/motion/motion_diff.html:39 #: motion/templates/motion/motion_diff.html:39
@ -1543,7 +1543,7 @@ msgstr ""
msgid "published" msgid "published"
msgstr "" msgstr ""
#: motion/signals.py:166 #: motion/signals.py:166 motion/views.py:360
msgid "permitted" msgid "permitted"
msgstr "" msgstr ""
@ -1608,15 +1608,15 @@ msgid "All supporters removed"
msgstr "" msgstr ""
#: motion/views.py:245 #: motion/views.py:245
msgid "Motion version " msgid "Motion version"
msgstr "" msgstr ""
#: motion/views.py:247 #: motion/views.py:247
msgid " created" msgid "created"
msgstr "" msgstr ""
#: motion/views.py:247 #: motion/views.py:247
msgid " updated" msgid "updated"
msgstr "" msgstr ""
#: motion/views.py:292 utils/views.py:380 #: motion/views.py:292 utils/views.py:380
@ -1633,14 +1633,6 @@ msgstr ""
msgid "Are you sure you want permit version %s?" msgid "Are you sure you want permit version %s?"
msgstr "" msgstr ""
#: motion/views.py:358
msgid "Version "
msgstr ""
#: motion/views.py:360
msgid " permitted"
msgstr ""
#: motion/views.py:386 #: motion/views.py:386
msgid "At least one version number is not valid." msgid "At least one version number is not valid."
msgstr "" msgstr ""
@ -1698,7 +1690,7 @@ msgid "Poll"
msgstr "" msgstr ""
#: motion/views.py:658 #: motion/views.py:658
msgid "State changed to " msgid "State changed to"
msgstr "" msgstr ""
#: motion/views.py:661 #: motion/views.py:661

View File

@ -4,13 +4,9 @@
# This file is distributed under the same license as the OpenSlides package. # This file is distributed under the same license as the OpenSlides package.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-06-21 23:35+0200\n" "POT-Creation-Date: 2013-06-25 00:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Language: en\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"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"

View File

@ -242,9 +242,9 @@ class MotionUpdateView(MotionEditMixin, UpdateView):
number = self.version.version_number number = self.version.version_number
created = self.used_new_version created = self.used_new_version
self.object.write_log( self.object.write_log(
[ugettext_noop('Motion version '), [ugettext_noop('Motion version'),
str(number), ' %d ' % number,
ugettext_noop(' created') if created else ugettext_noop(' updated')], ugettext_noop('created') if created else ugettext_noop('updated')],
self.request.user) self.request.user)
def get_initial(self): def get_initial(self):
@ -355,9 +355,9 @@ class VersionPermitView(SingleObjectMixin, QuestionMixin, RedirectView):
self.object.active_version = self.version self.object.active_version = self.version
self.object.save(update_fields=['active_version']) self.object.save(update_fields=['active_version'])
self.object.write_log( self.object.write_log(
message_list=[ugettext_noop('Version '), message_list=[ugettext_noop('Version'),
str(self.version.version_number), ' %d ' % self.version.version_number,
ugettext_noop(' permitted')], ugettext_noop('permitted')],
person=self.request.user) person=self.request.user)
version_permit = VersionPermitView.as_view() version_permit = VersionPermitView.as_view()
@ -655,7 +655,7 @@ class MotionSetStateView(SingleObjectMixin, RedirectView):
else: else:
self.object.save(update_fields=['state', 'identifier']) self.object.save(update_fields=['state', 'identifier'])
self.object.write_log( self.object.write_log(
message_list=[ugettext_noop('State changed to '), self.object.state.name], message_list=[ugettext_noop('State changed to'), ' %s' % self.object.state.name],
person=self.request.user) person=self.request.user)
messages.success(request, messages.success(request,
_('The state of the motion was set to %s.') _('The state of the motion was set to %s.')

View File

@ -331,7 +331,7 @@ class TestMotionUpdateView(MotionViewTestCase):
response = self.admin_client.post(self.url, {'title': 'new motion_title', response = self.admin_client.post(self.url, {'title': 'new motion_title',
'text': 'motion text', 'text': 'motion text',
'workflow': 2}) 'workflow': 2})
self.assertEqual(MotionLog.objects.get(pk=1).message_list, ['Motion version ', '1', ' updated']) self.assertEqual(MotionLog.objects.get(pk=1).message_list, ['Motion version', ' 1 ', 'updated'])
# Update motion by creating a new version # Update motion by creating a new version
self.motion1.set_state(6) # Set to state 'permitted' which has versioning=True self.motion1.set_state(6) # Set to state 'permitted' which has versioning=True
@ -340,7 +340,7 @@ class TestMotionUpdateView(MotionViewTestCase):
response = self.admin_client.post(self.url, {'title': 'new motion_title', response = self.admin_client.post(self.url, {'title': 'new motion_title',
'text': 'new motion text', 'text': 'new motion text',
'workflow': 2}) 'workflow': 2})
self.assertEqual(MotionLog.objects.get(pk=2).message_list, ['Motion version ', '2', ' created']) self.assertEqual(MotionLog.objects.get(pk=2).message_list, ['Motion version', ' 2 ', 'created'])
# Update motion with so called 'trivial changes' # Update motion with so called 'trivial changes'
config['motion_allow_disable_versioning'] = True config['motion_allow_disable_versioning'] = True
@ -348,20 +348,20 @@ class TestMotionUpdateView(MotionViewTestCase):
'text': 'more new motion text', 'text': 'more new motion text',
'disable_versioning': 'on', 'disable_versioning': 'on',
'workflow': 2}) 'workflow': 2})
self.assertEqual(MotionLog.objects.get(pk=3).message_list, ['Motion version ', '2', ' updated']) self.assertEqual(MotionLog.objects.get(pk=3).message_list, ['Motion version', ' 2 ', 'updated'])
# Update motion without changes in the version data # Update motion without changes in the version data
response = self.admin_client.post(self.url, {'title': 'new motion_title', response = self.admin_client.post(self.url, {'title': 'new motion_title',
'text': 'more new motion text', 'text': 'more new motion text',
'workflow': 2}) 'workflow': 2})
self.assertEqual(MotionLog.objects.get(pk=4).message_list, ['Motion version ', '2', ' updated']) self.assertEqual(MotionLog.objects.get(pk=4).message_list, ['Motion version', ' 2 ', 'updated'])
# Update motion without changes in the version data but also with the 'trivial changes' flag # Update motion without changes in the version data but also with the 'trivial changes' flag
response = self.admin_client.post(self.url, {'title': 'new motion_title', response = self.admin_client.post(self.url, {'title': 'new motion_title',
'text': 'more new motion text', 'text': 'more new motion text',
'disable_versioning': 'on', 'disable_versioning': 'on',
'workflow': 2}) 'workflow': 2})
self.assertEqual(MotionLog.objects.get(pk=5).message_list, ['Motion version ', '2', ' updated']) self.assertEqual(MotionLog.objects.get(pk=5).message_list, ['Motion version', ' 2 ', 'updated'])
class TestMotionDeleteView(MotionViewTestCase): class TestMotionDeleteView(MotionViewTestCase):