~ubuntu-branches/ubuntu/saucy/ubuntuone-client/saucy-updates

« back to all changes in this revision

Viewing changes to ubuntuone/status/aggregator.py

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2013-03-21 16:46:30 UTC
  • mfrom: (1.1.80)
  • Revision ID: package-import@ubuntu.com-20130321164630-no1if7bo5cnd05se
Tags: 4.1.92-0ubuntu1
* New upstream release.
  - Change the notifications language to not use "publish" but share instead.
  - Put the version in VERSION to make it easier to read for win/mac.

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
class FilePublishingStatus(StatusEvent):
191
191
    """Files that are made public with a url."""
192
192
 
193
 
    MESSAGE_ONE = Q_("A file was just made public at %(new_public_url)s")
 
193
    MESSAGE_ONE = Q_("A share link was just created at %(new_public_url)s")
194
194
 
195
195
    WEIGHT = 50
196
196
 
203
203
        no_of_files = len(events)
204
204
        gettext.dngettext(
205
205
            GETTEXT_PACKAGE,
206
 
            "%(event_count)d file was just made public.",
207
 
            "%(event_count)d files were just made public.",
 
206
            "%(event_count)d file was just shared.",
 
207
            "%(event_count)d files were just shared.",
208
208
            no_of_files) % {'event_count': no_of_files}
209
209
 
210
210
 
211
211
class FileUnpublishingStatus(StatusEvent):
212
212
    """Files that have stopped being published."""
213
213
 
214
 
    MESSAGE_ONE = Q_("A file is no longer published")
 
214
    MESSAGE_ONE = Q_("A share link is no longer available")
215
215
    WEIGHT = 51
216
216
 
217
217
    def many(self, events):
219
219
        no_of_files = len(events)
220
220
        gettext.dngettext(
221
221
            GETTEXT_PACKAGE,
222
 
            "%(event_count)d file is no longer published.",
223
 
            "%(event_count)d files are no longer published.",
 
222
            "%(event_count)d file is no longer shared.",
 
223
            "%(event_count)d files are no longer shared.",
224
224
            no_of_files) % {'event_count': no_of_files}
225
225
 
226
226