[cheese] fileutil: implement translation of Webcam folder
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] fileutil: implement translation of Webcam folder
- Date: Thu, 24 Mar 2016 14:19:50 +0000 (UTC)
commit b1a348cada555202cfe08e7b8eab61e9d2497b36
Author: Илья Кузьмин <dargonaxxe gmail com>
Date: Wed Mar 23 00:12:41 2016 +0600
fileutil: implement translation of Webcam folder
In this commit I added the feature that folder containing captured
photos and videos has a name that suits the locale is used by system.
The problem is that folder to save captured pics and videos has strict
name "Webcam".
To fix this problem I used gettext method.
https://bugzilla.gnome.org/show_bug.cgi?id=761958
libcheese/cheese-fileutil.c | 5 +++--
po/POTFILES.in | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-fileutil.c b/libcheese/cheese-fileutil.c
index 6eb4c3f..e65e742 100644
--- a/libcheese/cheese-fileutil.c
+++ b/libcheese/cheese-fileutil.c
@@ -26,6 +26,7 @@
#include <glib.h>
#include <gio/gio.h>
#include <string.h>
+#include <glib/gi18n-lib.h>
#include "cheese-fileutil.h"
@@ -279,7 +280,7 @@ cheese_fileutil_init (CheeseFileUtil *fileutil)
/* Get XDG. */
if (video_path)
{
- priv->video_path = g_build_filename (video_path, "Webcam", NULL);
+ priv->video_path = g_build_filename (video_path, _("Webcam"), NULL);
}
else
{
@@ -299,7 +300,7 @@ cheese_fileutil_init (CheeseFileUtil *fileutil)
/* Get XDG. */
if (photo_path)
{
- priv->photo_path = g_build_filename (photo_path, "Webcam", NULL);
+ priv->photo_path = g_build_filename (photo_path, _("Webcam"), NULL);
}
else
{
diff --git a/po/POTFILES.in b/po/POTFILES.in
index bbd2b88..c4ef1ce 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -12,6 +12,7 @@ libcheese/cheese-avatar-chooser.c
libcheese/cheese-avatar-widget.c
libcheese/cheese-camera.c
libcheese/cheese-camera-device.c
+libcheese/cheese-fileutil.c
libcheese/cheese-widget.c
src/cheese-application.vala
src/cheese-countdown.vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]