Commit Graph

18 Commits

Author SHA1 Message Date
Christopher Davis
5b2edc73ec build: Build resources with meson instead of build.rs
Allows us to get rid of build.rs, which was only used to
compile resources. static_resource.rs is now created by
meson, and the meson path is used for include_bytes!.

Closes https://gitlab.gnome.org/World/podcasts/issues/55
2019-03-07 04:35:31 +00:00
Christopher Davis
395e31ff85 build: Use config.rs instead of env! macro
Previously we were using the env! macro to determine
build-time variables like version, app ID, and locale dir.
Instead of relying on env vars, we can create a configuration
file with meson and import it.
2019-03-07 04:35:31 +00:00
Jordan Petridis
46cfa79e89
Update .gitignore 2018-08-26 12:39:26 +03:00
Jordan Petridis
ee95512321
Update .gitignore 2018-08-18 17:37:06 +03:00
Daniel García Moreno
bea4915317 Translation support and initial spanish translation
Added translation support based on the Fractal i18n. To do this I've
added the gettext-rs crate dep. I'm using my own fork because the
official gettext-rs release includes the gettext source files and that
increase the distribution package a lot and for distribution with
flatkap we don't need to build gettext, the lib is in the gnome sdk. So
this gettext-rs fork is the same, but removing the not needed gettext
source files.

The i18n.rs file adds some useful functions to translate strings. These
functions wraps the original gettext and adds more functionality, to be
able to translate compound strings, something that's not supported by
the gettext function.

The 'i18n' function works like the gettext, receives a plain string
without params.

The 'i18n_f' function receives a string with "{}" and a ref to an array
of &str with substitutions for the "{}" in the original string. The
substitution is done by order.

The 'i18n_k' function receives a string with "{named}" and a ref to an
array of (&str, &str) with substitutions for the "{named}" in the
original string. The substitution is done by name, where the first &str
in the tuple is the name and the second the string to use for the
replace.

This mod also include ni18n variants of the three functions for plural
and singular translations.

I've also created the spanish translation.

See #61

https://gitlab.gnome.org/World/podcasts/issues/61
2018-08-02 15:24:19 +02:00
Jordan Petridis
ecf50dde2b
Update .gitignore 2018-07-15 22:16:06 +03:00
Jordan Petridis
d2eb98f859
Update gitignore file. 2018-07-01 00:54:28 +03:00
Jordan Petridis
5425ca35b3
Cleanup .gitignore a bit 2018-03-19 11:52:02 +02:00
Jordan Petridis
7d9781052f
hammond-data: Rework the modules privacy. 2018-01-20 07:28:30 +02:00
Jordan Petridis
855b1517a7
Feed: Removee unimplemented! hack to guard against my future stupidity. 2018-01-19 19:20:21 +02:00
Jordan Petridis
2f801043c1
In place update a podcast row instead of replace. 2017-11-25 18:22:56 +02:00
Jordan Petridis
62da8bbb52
Use source_id as the unique identifieble field for the podcast table. 2017-11-25 01:56:10 +02:00
Jordan Petridis
be7b89dffb
NOT WORKING. Intial flatpak manifest. 2017-11-13 10:23:05 +02:00
Jordan Petridis
1199c9aa81
Now building with meson. 2017-11-11 13:29:11 +02:00
Jordan Petridis
80ae1b0c88
Accidently included .gresource file into the git repo. Added gitignore rule. 2017-11-06 12:27:53 +02:00
Jordan Petridis
9e7a6f5ecd
IT DISPLAYS STUFF!! 2017-10-10 01:26:16 +03:00
Jordan Petridis
dad74dc706
Fixed epoch implementation for episode. 2017-09-22 14:10:13 +03:00
Jordan Petridis
44eb261b95
Initial yak shaving. 2017-09-15 03:24:17 +03:00