~oxide-developers/oxide/oxide.trunk

« back to all changes in this revision

Viewing changes to shared/browser/media/oxide_video_capture_device_factory_linux.cc

  • Committer: Olivier Tilloy
  • Date: 2016-04-29 11:39:09 UTC
  • mfrom: (1459.1.1 trunk)
  • Revision ID: olivier.tilloy@canonical.com-20160429113909-bj1o8c8siw75fy2l
Internationalize the user-facing strings for the names of the cameras.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// vim:expandtab:shiftwidth=2:tabstop=2:
2
 
// Copyright (C) 2015 Canonical Ltd.
 
2
// Copyright (C) 2015-2016 Canonical Ltd.
3
3
 
4
4
// This library is free software; you can redistribute it and/or
5
5
// modify it under the terms of the GNU Lesser General Public
18
18
 
19
19
#include "oxide_video_capture_device_factory_linux.h"
20
20
 
 
21
#include <libintl.h>
21
22
#include <utility>
22
23
 
23
24
#include "base/logging.h"
47
48
const char* GetDeviceNameFromCameraType(CameraType type) {
48
49
  switch (type) {
49
50
    case BACK_FACING_CAMERA_TYPE:
50
 
      return "Rear camera";
 
51
      return dgettext(OXIDE_GETTEXT_DOMAIN, "Rear camera");
51
52
    case FRONT_FACING_CAMERA_TYPE:
52
 
      return "Front camera";
 
53
      return dgettext(OXIDE_GETTEXT_DOMAIN, "Front camera");
53
54
  }
54
55
 
55
56
  NOTREACHED();