~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/browser/pofile.py

  • Committer: Curtis Hovey
  • Date: 2011-08-21 14:21:06 UTC
  • mto: This revision was merged to the branch mainline in revision 13745.
  • Revision ID: curtis.hovey@canonical.com-20110821142106-x93hajd6iguma8gx
Update test that was enforcing bad grammar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Browser code for Translation files."""
21
21
import re
22
22
import urllib
23
23
 
24
 
from lazr.restful.utils import smartquote
25
24
from zope.component import getUtility
26
25
from zope.publisher.browser import FileUpload
27
26
 
38
37
from canonical.launchpad.webapp.batching import BatchNavigator
39
38
from canonical.launchpad.webapp.interfaces import ILaunchBag
40
39
from canonical.launchpad.webapp.menu import structured
 
40
from canonical.lazr.utils import smartquote
41
41
from lp.app.errors import (
42
42
    NotFoundError,
43
43
    UnexpectedFormData,
206
206
 
207
207
        return """
208
208
            New to translating in Launchpad?
209
 
            <a href="/+help-translations/new-to-translating.html"
210
 
            target="help">Read our guide</a>.
 
209
            <a href="/+help/new-to-translating.html" target="help">
 
210
                Read our guide</a>.
211
211
            """
212
212
 
213
213
    @property
343
343
                else:
344
344
                    groups.append(_(u"%s assigned by %s") % (
345
345
                        translator.translator.displayname, group.title))
346
 
 
347
346
            # There are at most two translation groups, so just using 'and'
348
347
            # is fine here.
349
 
            statement = _(u"This translation is managed by %s.") % (
350
 
                u" and ".join(groups))
 
348
            statement = (_(u"This translation is managed by ") +
 
349
                         _(u" and ").join(groups))+"."
351
350
        else:
352
351
            statement = _(u"No translation group has been assigned.")
353
352
        return statement
396
395
        show_option_changed = (
397
396
            old_show_option is not None and old_show_option != self.show)
398
397
        if show_option_changed:
399
 
            # Start will be 0 by default.
400
 
            force_start = True
 
398
            force_start = True # start will be 0, by default
401
399
        else:
402
400
            force_start = False
403
401
        return POFileBatchNavigator(self._getSelectedPOTMsgSets(),
795
793
        show_option_changed = (
796
794
            old_show_option is not None and old_show_option != self.show)
797
795
        if show_option_changed:
798
 
            # Start will be 0 by default.
799
 
            force_start = True
 
796
            force_start = True # start will be 0, by default
800
797
        else:
801
798
            force_start = False
802
799
        return POFileBatchNavigator(self._getSelectedPOTMsgSets(),