From patchwork Tue Oct 11 10:35:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 4622 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C7A0723EF7 for ; Tue, 11 Oct 2011 10:35:18 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 975CCA18324 for ; Tue, 11 Oct 2011 10:35:18 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id 31so9756955ywp.11 for ; Tue, 11 Oct 2011 03:35:18 -0700 (PDT) Received: by 10.223.77.71 with SMTP id f7mr16916375fak.33.1318329318148; Tue, 11 Oct 2011 03:35:18 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.24.41 with SMTP id r9cs152881laf; Tue, 11 Oct 2011 03:35:17 -0700 (PDT) Received: by 10.227.134.145 with SMTP id j17mr6269631wbt.79.1318329315211; Tue, 11 Oct 2011 03:35:15 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id 13si15787589wbw.138.2011.10.11.03.35.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Oct 2011 03:35:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RDZg2-0008Sj-Lq for ; Tue, 11 Oct 2011 10:35:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 9C5AFE03DF for ; Tue, 11 Oct 2011 10:35:14 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-server X-Launchpad-Branch: ~linaro-validation/lava-server/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 259 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-server/trunk] Rev 259: Use gettext in breadcrumbs Message-Id: <20111011103514.21793.87717.launchpad@ackee.canonical.com> Date: Tue, 11 Oct 2011 10:35:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14124"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: c8a8b34ac7020115c5e7ff11cb635398067bf50c ------------------------------------------------------------ revno: 259 committer: Zygmunt Krynicki branch nick: trunk timestamp: Tue 2011-10-11 11:58:09 +0200 message: Use gettext in breadcrumbs modified: lava_projects/views.py --- lp:lava-server https://code.launchpad.net/~linaro-validation/lava-server/trunk You are subscribed to branch lp:lava-server. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription === modified file 'lava_projects/views.py' --- lava_projects/views.py 2011-10-11 09:58:00 +0000 +++ lava_projects/views.py 2011-10-11 09:58:09 +0000 @@ -43,7 +43,7 @@ ) -@BreadCrumb("Projects") +@BreadCrumb(_("Projects")) def project_root(request): template_name = "lava_projects/project_root.html" t = loader.get_template(template_name) @@ -54,7 +54,7 @@ return HttpResponse(t.render(c)) -@BreadCrumb("List of all projects", project_root) +@BreadCrumb(_("List of all projects"), project_root) def project_list(request): return object_list( request, @@ -103,7 +103,7 @@ return HttpResponse(t.render(c)) -@BreadCrumb("Register new project", +@BreadCrumb(_("Register new project"), parent=project_root) @login_required def project_register(request): @@ -134,7 +134,7 @@ return HttpResponse(t.render(c)) -@BreadCrumb("Reconfigure", +@BreadCrumb(_("Reconfigure"), parent=project_detail, needs=['project_identifier']) @login_required @@ -174,7 +174,7 @@ return HttpResponse(t.render(c)) -@BreadCrumb("Change identifier", +@BreadCrumb(_("Change identifier"), parent=project_update, needs=['project_identifier']) @login_required