[vlc-commits] darwin/error: add partial l10n and doc

Felix Paul Kühne git at videolan.org
Sun Dec 29 18:12:52 CET 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Dec 29 18:12:33 2013 +0100| [4a414dfc8fdcc347ba368f4eaf1de6d822a6fdd0] | committer: Felix Paul Kühne

darwin/error: add partial l10n and doc

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a414dfc8fdcc347ba368f4eaf1de6d822a6fdd0
---

 po/POTFILES.in     |    1 +
 src/darwin/error.c |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5c38666..3a7a3f7 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -74,6 +74,7 @@ src/config/file.c
 src/config/help.c
 src/config/intf.c
 src/config/keys.c
+src/darwin/error.c
 src/extras/libc.c
 src/extras/tdestroy.c
 src/input/access.c
diff --git a/src/darwin/error.c b/src/darwin/error.c
index 971934d..e51b912 100644
--- a/src/darwin/error.c
+++ b/src/darwin/error.c
@@ -30,14 +30,14 @@
 
 const char *vlc_strerror_c(int errnum)
 {
-    /* C run-time errors */
+    /* We cannot simply use strerror() here, since it is not thread-safe. */
     if ((unsigned)errnum < (unsigned)sys_nerr)
         return sys_errlist[errnum];
 
-    return "Unknown error";
+    return _("Unknown error");
 }
 
 const char *vlc_strerror(int errnum)
 {
-    return vlc_gettext(vlc_strerror_c(errnum));
+    return vlc_strerror_c(errnum);
 }



More information about the vlc-commits mailing list