make translations optional
This commit is contained in:
parent
65e2c02ef9
commit
d950f0a7a2
@ -14,8 +14,8 @@ add_project_arguments(['--vapidir',
|
|||||||
join_paths(meson.current_source_dir(), 'src/vapi')],
|
join_paths(meson.current_source_dir(), 'src/vapi')],
|
||||||
language: 'vala')
|
language: 'vala')
|
||||||
|
|
||||||
#subdir('po')
|
subdir('po')
|
||||||
subdir('data')
|
subdir('data')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
#subdir('doc')
|
subdir('doc')
|
||||||
subdir('script')
|
subdir('script')
|
||||||
|
@ -10,3 +10,7 @@ option('bundle_libs',
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: false,
|
value: false,
|
||||||
description: 'Bundle the libs that the executable is linked against')
|
description: 'Bundle the libs that the executable is linked against')
|
||||||
|
option('install_translations',
|
||||||
|
type: 'boolean',
|
||||||
|
value: true,
|
||||||
|
description: 'Install translation files')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
src/sernatur.vala
|
src/sernatur.vala
|
||||||
src/sernatur-window.vala
|
src/sernatur-window.vala
|
||||||
data/ui/sernatur.window.ui
|
data/ui/sernatur.window.ui
|
||||||
data/cl.cromer.ubb.sernatur.gschema.xml
|
data/gschema/cl.cromer.ubb.sernatur.gschema.xml
|
||||||
|
21
po/es.po
21
po/es.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: sernatur\n"
|
"Project-Id-Version: sernatur\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-11-01 18:21-0300\n"
|
"POT-Creation-Date: 2018-11-01 22:00-0300\n"
|
||||||
"PO-Revision-Date: 2018-10-31 18:05-0300\n"
|
"PO-Revision-Date: 2018-10-31 18:05-0300\n"
|
||||||
"Last-Translator: Chris Cromer <chris@cromer.cl>\n"
|
"Last-Translator: Chris Cromer <chris@cromer.cl>\n"
|
||||||
"Language-Team: none\n"
|
"Language-Team: none\n"
|
||||||
@ -18,15 +18,11 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Poedit 2.0.6\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
#: src/sernatur-window.vala:84
|
#: src/sernatur-window.vala:81
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Error"
|
msgstr "Error"
|
||||||
|
|
||||||
#: src/sernatur-window.vala:96
|
#: src/sernatur-window.vala:109
|
||||||
msgid "Connection failed"
|
|
||||||
msgstr "Conexión falló"
|
|
||||||
|
|
||||||
#: src/sernatur-window.vala:124
|
|
||||||
msgid "Server version:"
|
msgid "Server version:"
|
||||||
msgstr "Versión del servidor:"
|
msgstr "Versión del servidor:"
|
||||||
|
|
||||||
@ -46,12 +42,15 @@ msgstr ""
|
|||||||
msgid "_Help"
|
msgid "_Help"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:5
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:5
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:6
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:6
|
||||||
msgid "Host to connect to"
|
msgid "Host to connect to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:12
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:12
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:13
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:13
|
||||||
msgid "Port number to use"
|
msgid "Port number to use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Connection failed"
|
||||||
|
#~ msgstr "Conexión falló"
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
|
install_translations = get_option('install_translations')
|
||||||
|
if install_translations
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
i18n.gettext(meson.project_name(),
|
i18n.gettext(meson.project_name(),
|
||||||
args: '--directory=' + meson.source_root()
|
args: '--directory=' + meson.source_root()
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: sernatur\n"
|
"Project-Id-Version: sernatur\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-11-01 18:21-0300\n"
|
"POT-Creation-Date: 2018-11-01 22:00-0300\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -17,15 +17,11 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
"Content-Type: text/plain; charset=CHARSET\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: src/sernatur-window.vala:84
|
#: src/sernatur-window.vala:81
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/sernatur-window.vala:96
|
#: src/sernatur-window.vala:109
|
||||||
msgid "Connection failed"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/sernatur-window.vala:124
|
|
||||||
msgid "Server version:"
|
msgid "Server version:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -45,12 +41,12 @@ msgstr ""
|
|||||||
msgid "_Help"
|
msgid "_Help"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:5
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:5
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:6
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:6
|
||||||
msgid "Host to connect to"
|
msgid "Host to connect to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:12
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:12
|
||||||
#: data/cl.cromer.ubb.sernatur.gschema.xml:13
|
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:13
|
||||||
msgid "Port number to use"
|
msgid "Port number to use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user