summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitignore54
-rw-r--r--Makefile.am8
-rw-r--r--configure.ac4
-rw-r--r--po/LINGUAS1
-rw-r--r--po/Makevars9
-rw-r--r--po/POTFILES.in18
-rw-r--r--po/pt_BR.po32
-rw-r--r--src/lib/translation.h14
8 files changed, 139 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index e6fb1b4..80d6bdd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,15 @@
1*.o 1*.o
2*.header
2*.lo 3*.lo
3*.la 4*.la
4*~ 5*~
6*.sed
7*.sin
8*.template
5.libs 9.libs
6.deps 10.deps
7.dirstamp 11.dirstamp
12ABOUT-NLS
8aclocal.m4 13aclocal.m4
9autom4te.cache/ 14autom4te.cache/
10compile 15compile
@@ -12,6 +17,7 @@ config.guess
12config.h 17config.h
13config.h.in 18config.h.in
14config.log 19config.log
20config.rpath
15config.status 21config.status
16config.sub 22config.sub
17configure 23configure
@@ -25,6 +31,37 @@ m4/ltoptions.m4
25m4/ltsugar.m4 31m4/ltsugar.m4
26m4/ltversion.m4 32m4/ltversion.m4
27m4/lt~obsolete.m4 33m4/lt~obsolete.m4
34m4/codeset.m4
35m4/fcntl-o.m4
36m4/gettext.m4
37m4/glibc2.m4
38m4/glibc21.m4
39m4/iconv.m4
40m4/intdiv0.m4
41m4/intl.m4
42m4/intldir.m4
43m4/intlmacosx.m4
44m4/intmax.m4
45m4/inttypes-pri.m4
46m4/inttypes_h.m4
47m4/lcmessage.m4
48m4/lib-ld.m4
49m4/lib-link.m4
50m4/lib-prefix.m4
51m4/lock.m4
52m4/longlong.m4
53m4/nls.m4
54m4/po.m4
55m4/printf-posix.m4
56m4/progtest.m4
57m4/size_max.m4
58m4/stdint_h.m4
59m4/threadlib.m4
60m4/uintmax_t.m4
61m4/visibility.m4
62m4/wchar_t.m4
63m4/wint_t.m4
64m4/xsize.m4
28Makefile 65Makefile
29Makefile.in 66Makefile.in
30missing 67missing
@@ -32,4 +69,19 @@ stamp-h1
32*.edj 69*.edj
33*.eet 70*.eet
34src/bin/epulse 71src/bin/epulse
35*.desktop \ No newline at end of file 72*.desktop
73po/Makefile.in.in
74po/Makevars.template
75po/POTFILES
76po/Rules-quot
77po/boldquot.sed
78po/en@boldquot.header
79po/en@quot.header
80po/epulse.pot
81po/insert-header.sin
82po/quot.sed
83po/remove-potcdate.sed
84po/remove-potcdate.sin
85po/stamp-po
86po/*.gmo
87po/*.mo
diff --git a/Makefile.am b/Makefile.am
index 63de1e8..7978f0b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,6 +70,8 @@ src_module_module_la_LIBADD = \
70 70
71src_module_module_la_LDFLAGS = -module -avoid-version 71src_module_module_la_LDFLAGS = -module -avoid-version
72 72
73SUBDIRS = po
74
73include Makefile_Theme.am 75include Makefile_Theme.am
74 76
75EXTRA_DIST += \ 77EXTRA_DIST += \
@@ -77,4 +79,10 @@ EXTRA_DIST += \
77 mksubmit \ 79 mksubmit \
78 autogen.sh 80 autogen.sh
79 81
82.PHONY: update-potfiles
83update-potfiles:
84 cd $(top_srcdir) && \
85 find -type f -name '*.[ch]' | sort > po/POTFILES.in
86
87
80clean-local: 88clean-local:
diff --git a/configure.ac b/configure.ac
index a86f54a..60ab0a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,6 +28,9 @@ EFL_COMPILER_FLAG([-fvisibility=hidden])
28# Checks for programs. 28# Checks for programs.
29EFL_WITH_BIN([edje], [edje-cc], [edje_cc]) 29EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
30 30
31AM_GNU_GETTEXT_VERSION([0.18])
32AM_GNU_GETTEXT([external], [need-ngettext])
33
31# Checks for libraries. 34# Checks for libraries.
32PKG_CHECK_MODULES([EFL], 35PKG_CHECK_MODULES([EFL],
33 [ 36 [
@@ -65,6 +68,7 @@ AC_SUBST(pkgdir)
65# Checks for library functions. 68# Checks for library functions.
66 69
67AC_CONFIG_FILES([ 70AC_CONFIG_FILES([
71po/Makefile.in \
68Makefile 72Makefile
69]) 73])
70AC_OUTPUT([ 74AC_OUTPUT([
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..da462d3
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1 @@
pt_BR \ No newline at end of file
diff --git a/po/Makevars b/po/Makevars
new file mode 100644
index 0000000..a188318
--- /dev/null
+++ b/po/Makevars
@@ -0,0 +1,9 @@
1DOMAIN = $(PACKAGE)
2subdir = po
3top_builddir = ..
4EXTRA_LOCALE_CATEGORIES =
5USE_MSGCTXT = yes
6MSGMERGE_OPTIONS =
7XGETTEXT_OPTIONS = --keyword=_ --keyword=d_:1 --keyword=P_:1,2 \
8 --keyword=dP_:1,2 --keyword=N_ --keyword=NP_:1,2 \
9 --from-code=UTF-8 --foreign-user \ No newline at end of file
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..a99e6cb
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,18 @@
1./config.h
2./src/bin/main.c
3./src/bin/main_window.c
4./src/bin/main_window.h
5./src/bin/playbacks_view.c
6./src/bin/playbacks_view.h
7./src/bin/sinks_view.c
8./src/bin/sinks_view.h
9./src/bin/sources_view.c
10./src/bin/sources_view.h
11./src/lib/common.c
12./src/lib/common.h
13./src/lib/epulse.c
14./src/lib/epulse.h
15./src/lib/epulse_ml.c
16./src/lib/translation.h
17./src/module/e_mod_main.c
18./src/module/e_mod_main.h
diff --git a/po/pt_BR.po b/po/pt_BR.po
new file mode 100644
index 0000000..51dc550
--- /dev/null
+++ b/po/pt_BR.po
@@ -0,0 +1,32 @@
1# Brazilian Portuguese translation for epulse
2# Flavio Ceolin <flavio.ceolin@gmail.com>, 2014.
3#
4msgid ""
5msgstr ""
6"Project-Id-Version: epulse v1\n"
7"Report-Msgid-Bugs-To: \n"
8"POT-Creation-Date: 2014-03-31 16:58-0300\n"
9"PO-Revision-Date: 2014-02-14 00:19-0200\n"
10"Last-Translator: Flavio Ceolin <flavio.ceolin@gmail.com>\n"
11"Language-Team: Enlightenment\n"
12"Language: pt_BR\n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/src/lib/translation.h b/src/lib/translation.h
new file mode 100644
index 0000000..6877b33
--- /dev/null
+++ b/src/lib/translation.h
@@ -0,0 +1,14 @@
1#ifndef __TRANSLATION_H__
2#define __TRANSLATION_H__
3
4#include <libintl.h>
5
6
7#define _(str) gettext(str)
8#define d_(str, dom) dgettext(dom, str)
9#define P_(str, str_p, n) ngettext(str, str_p, n)
10#define dP_(str, str_p, n, dom) dngettext(dom, str, str_p, n)
11#define N_(str) str
12#define NP_(str, str_p) str, str_p
13
14#endif /* __TRANSLATION_H__ */