Commit graph

651 commits

Author SHA1 Message Date
Alexandre Franke
f44e4a9ee9 Update French translation 2018-05-19 15:41:40 +01:00
Eisha CHEN-YEN-SU
f38b73d8a4 i18n: Update french translation 2018-05-19 10:04:04 +02:00
Jordan Petridis
4b26a0e75f CI: Publish docs with gitlab pages. 2018-05-19 07:58:24 +00:00
Alexandre Franke
e29db88366 Display number of room members 2018-05-18 22:03:14 +00:00
Daniel García Moreno
0cce5a47ab Fix cargo run flow without FRACTAL_LOCALEDIR env
In the build.rs we're looking for the FRACTAL_LOCALEDIR env variable
that is written by the cargo.sh script ran by meson but if we want to
run this for development we can't use cargo run because that env doesn't
exists so we'll use fractal-gtk/po as default.
2018-05-18 13:24:25 +02:00
Eisha CHEN-YEN-SU
d4101ccbe4 i18n: Initial french translations
Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:48:17 +02:00
Daniel García Moreno
a54cd6b758 i18n: Initial spanish translations
Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Daniel García Moreno
1905a2b5d1 i18n: bindtextdomain not hardcoded
I've added the locales path to the globals so we can now in the compile
time what directory is the translation to use in bindtextdomain

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Eisha CHEN-YEN-SU
e312370817 meson.build: Add l10n support
Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Eisha CHEN-YEN-SU
26181a82ed LINGUAS: Add a list of translated languages
Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Eisha CHEN-YEN-SU
95b88b78e8 org.gnome.Fractal.desktop: Add comments
This adds translator comments in the .desktop file.

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Eisha CHEN-YEN-SU
fe7824037d POTFILES.in: Add a list of translatable files
This adds a list of the files containing translatable strings used
to generate POT/PO files.

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Eisha CHEN-YEN-SU
d3576ed0fd fractal-gtk: Wrap all translatable strings
This wraps all the translatable strings in the source code with
gettext functions.

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Eisha CHEN-YEN-SU
ea0dfa0023 App: Add the definition of the text domain
This adds the definition of the text domain used by gettext to
translate the strings of the user interface. gettext will search for
a package named "fractal" in the directory "./fractal-gtk/po". Thus
MO files containing the translations must be found in
"./fractal-gtk/po/[LANG]/LC_MESSAGES/fractal.mo".

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Eisha CHEN-YEN-SU
60367530ba Cargo: Add gettext-rs as a dependency
This adds the crate gettext-rs among the dependencies of Fractal
in order to use gettext for i18n.

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00
Daniel García Moreno
ca56d311a1 api: Wait when sync error to avoid 100% usage
When there's no connection multiple calls to sync makes the Fractal
process to consume all the CPU because the long polling timeout isn't
working so we need to wait here to avoid this problem.

Fix #139
2018-05-17 10:25:26 +02:00
Daniel García Moreno
57d6441082 Show gold or silver circle on admin users
Gold is for admins (100 PL) and Silver is for moderators (50PL).
Currently the badge is drawn with a DrawingArea and attached to the
avatar with a GtkOverlay.
2018-05-16 18:45:25 +02:00
Daniel García Moreno
3ae2c30a40 api: Power levels info in the room struct 2018-05-16 18:44:39 +02:00
Daniel García Moreno
96aea94534 gtk: Check if the Fractal schema exists before req 2018-05-16 14:09:15 +02:00
Daniel García Moreno
9a232b5918 passwd: Password storage configuration doc in README 2018-05-15 23:48:35 +02:00
Daniel García Moreno
a53df78a20 passwd: Initial file password storage 2018-05-15 23:22:57 +02:00
Daniel García Moreno
cadea0aa7a GSettings scheme in meson build 2018-05-15 23:22:48 +02:00
Daniel García Moreno
6bdc21398f gspell: Add gspell deps to the flatpak package 2018-05-15 18:49:46 +02:00
Julian Sparber
206035ca1a gspell: add basic spell check
* add gspell as spell checker to fractal, currently only accessible form
the context menu
2018-05-15 14:13:33 +00:00
Bjørn Lie
7dcfa2f4c5 Add InstantMessaging to .desktop Categories.
Making full set Categories=GNOME;GTK;Network;InstantMessaging;

Some distros mandate full usage of the freedesktop spec.
Alternative to using InstantMessaging here would be Chat
2018-05-15 08:31:13 +00:00
Daniel García Moreno
eaadad7e55 ci: rust image for doc generation 2018-05-15 07:53:34 +02:00
Daniel García Moreno
1ed3334f02 CI: Add the deploy stage 2018-05-14 21:12:07 +02:00
Daniel García Moreno
14428ae4bd doc: Fix gitlab-ci yaml indentation 2018-05-14 20:58:42 +02:00
Daniel García Moreno
1e4e668280 doc: Generate rust doc to gitlab pages 2018-05-14 20:57:11 +02:00
Michael Snoyman
9ade049538
Updates to OS X build instructions
* Correct the gtk+3 name for Homebrew
* Makefile is not present
2018-05-14 16:39:40 +03:00
Daniel García Moreno
84761d4d37 New release 0.1.29
New Features:
 * New default avatars for users
 * Initial sync speed up
 * Highlight own username in mentions using pango attributes
2018-05-14 11:51:56 +02:00
Alexandre Franke
e2ddbf690d Handle multi-word display names 2018-05-12 11:57:58 +02:00
Quentin Gliech
0269ede027
scripts/cargo.sh: Specify the Cargo.toml location 2018-05-11 10:37:16 +02:00
Daniel García Moreno
96248c1a94 Fix EMPTY ROOM for 1:1 bug
This patch fix the problem that causes the elimination of member events
from the initial sync.

To calculate 1:1 rooms we use the members in that rooms so if we don't
have that information we should ask to the matrix server.

I've just move some code to the fractal-gtk to calculate the room name
when we receive the list of member in a room. Meantime we'll show a
"..." that I suppose that any user will understand as "loading".

This loading is done in the background so the initial sync works faster
and if we've rooms without name we'll ask to the server about the
members and then we'll change the room name according to the number of
members.
2018-05-10 19:21:45 +02:00
Daniel García Moreno
a8d280b985 api: Ignore member event in the initial sync
This change speedup the initial sync because we're removing a lot of
events that we don't need at the moment. We're getting the list of
members just when we enters clicks in a room.
2018-05-10 16:59:30 +02:00
Eisha CHEN-YEN-SU
5e11e32b21 Message: Implement PartialOrd trait
This gives a manual implementation of the PartialOrd trait for Message
which is a chronological order. We first check that the messages are
not the same in order to be sure that no time offset could make the
comparison erroneous, then we simply compare the dates and times of
the messages.
2018-05-08 17:52:38 +02:00
Julian Sparber
f92387cddd mention: highlight own username in mentions using pango attributes 2018-05-07 21:59:33 +02:00
Eisha CHEN-YEN-SU
38d2d01546 Message: Implement PartialEq trait
This gives a manual implementation of the PartialEq trait for Message
because deriving this trait can give false negatives. So it fixes the
issue of the "New messages" divider not showing at startup.

See https://gitlab.gnome.org/World/fractal/issues/133
2018-05-07 08:51:15 +02:00
Roger Sachan
6b53e1db01 Format README and reflect ruma's namechange to Fest. 2018-05-06 21:08:46 +00:00
Alexandre Franke
b96f4505b6 Fix typography 2018-05-03 20:24:44 +00:00
Arnaud Venturi
b38551f794 Add a link to Gnome Wiki downloads page. 2018-05-03 19:01:35 +00:00
Alexandre Franke
f98bbaea29 Use new color scheme for identicons
We are switching to new colors and now the foreground is a muted variant
of the background color

Part of #218
2018-05-03 15:32:43 +02:00
Alexandre Franke
9b15b8962a Switch to boldest weight for identicons
Regular is less legible, especially at smaller sizes
2018-05-03 15:32:43 +02:00
Daniel García Moreno
0dd818201d gtk: Split appop into several modules 2018-05-03 12:42:55 +02:00
Daniel García Moreno
353fe13523 gtk: split App in several rs modules 2018-05-03 10:20:17 +02:00
Daniel García Moreno
eed332822a New release 0.1.28
New features:
 * Make "Start chat" buttons insensitive
 * Notify for direct messages

Fixes:
 * Update initial_sync notification message
 * Use Pango for room with no avatars
 * Revert "Don't send markdown in the body when parsed"
 * api: Use md5 as unique message id instead of i32
 * markdown: Remove P tag that wraps the html
2018-04-30 11:39:16 +02:00
Daniel García Moreno
577703fc71 markdown: Remove P tag that wraps the html
The Comrak lib that we're using wraps each parsed markdown with a
`<p>...</p>\n` so we need to remove to avoid the modification of the
real message.

See #210
2018-04-29 21:10:14 +02:00
Daniel García Moreno
8d5e98f259 api: Use md5 as unique message id instead of i32
We were using an integer for the message id when we were sending a
message. This id was incremented with each message sent.

Reading the matrix server documentation I've discovered that this id
should be unique:

> Clients should generate an ID unique across requests with the same
> access token; it will be used by the server to ensure idempotency of
> requests.

So this was a problem. I think that this is because some messages never
got sent to the server and we don't get any error back.

To fix that now we generate an unique id for each message using the room
id, the message body and the message date, we concatenate that and make
an md5 sum, so this should be unique.

https://matrix.org/docs/spec/client_server/r0.3.0.html#put-matrix-client-r0-rooms-roomid-send-eventtype-txnid

See #201
2018-04-29 21:10:14 +02:00
Daniel García Moreno
861599adc8 remove not needed ammonia dep 2018-04-29 20:06:11 +02:00
Christopher Davis
6d51f8ad7a Revert "Don't send markdown in the body when parsed"
This reverts commit 7bfe63ac9c.
2018-04-29 12:16:12 +00:00