~ubuntu-branches/ubuntu/utopic/gnome-clocks/utopic

« back to all changes in this revision

Viewing changes to src/utils.vala

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jeremy Bicha, Andreas Henriksson
  • Date: 2013-06-17 23:06:05 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130617230605-0f2b1s4fz0fefk17
Tags: 3.8.2-1
[ Jeremy Bicha ]
* New upstream release
* debian/control.in:
  - Drop alternate build-depends on valac-0.18 since it's no longer in
    Debian and unnecessary

[ Andreas Henriksson ]
* Add missing Licence field to debian/copyright as required
  by the spec for machine readable copyright file. Thanks lintian.
* Drop "Added runtime dependency to libgweather-common"
  - libgweather-3-3 has been fixed to depend on newer libgweather-common

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
 
165
165
    public static string plural (Day d) {
166
166
        assert (d >= 0 && d < 7);
167
 
        return plurals[d].dup ();
 
167
        return plurals[d];
168
168
    }
169
169
 
170
170
    public static string abbreviation (Day d) {
183
183
                 (new GLib.DateTime.utc (1, 1, 7, 0, 0, 0)).format ("%a"),
184
184
            };
185
185
        }
186
 
        return abbreviations[d].dup ();
 
186
        return abbreviations[d];
187
187
    }
188
188
 
189
189
    private bool[] days= {
228
228
        }
229
229
 
230
230
        if (n == 0) {
231
 
            r = "".dup ();
 
231
            r = "";
232
232
        } else if (n == 1) {
233
233
            r = plural ((Day) first);
234
234
        } else if (n == 7) {
235
 
            r = _("Every Day").dup ();
 
235
            r = _("Every Day");
236
236
        } else if (days_equal (weekdays)) {
237
 
            r = _("Weekdays").dup ();
 
237
            r = _("Weekdays");
238
238
        } else {
239
239
            string[] abbrs = {};
240
240
            for (int i = 0; i < 7; i++) {