Daniel García Moreno
ae80f56720
i18n: New module to use gettext with params
...
We can't use format with dynamic strings so we can't use gettext
response with format. To format translatable strings easily I've created
a new module so we can use like this:
```
let literal = i18n("TESTINGx gettext");
let nonamed_params = i18n_f("TESTING! gettext {} and {}", &["one", "two"]);
let named_params =i18n_k("TESTING2 gettext {one} and {two}",
&[("one", "1"),
("two", "two")]);
```
2018-06-18 13:41:09 +02:00
Daniel García Moreno
b7165e351a
i18n: Update POTFILES
2018-06-18 08:21:13 +02:00
Eisha CHEN-YEN-SU
39055633e7
message.rs: Add the ability to download files
...
This adds a popover that appears when the user clicks on the attached
file's button that proposes to "Open" the file (with xdg-open) or
to "Download" it.
See https://gitlab.gnome.org/World/fractal/issues/76
2018-06-18 00:31:31 +02:00
Eisha CHEN-YEN-SU
d5a20f41bc
MediaViewer: Remove code duplication
...
This removes code duplication between the "Save as" function of the
media viewer and the "Download" function of attached files.
See https://gitlab.gnome.org/World/fractal/issues/76
2018-06-18 00:31:17 +02:00
Eisha CHEN-YEN-SU
3893270366
files.rs: Add a method to save media
...
See https://gitlab.gnome.org/World/fractal/issues/76
2018-06-18 00:28:56 +02:00
Eisha CHEN-YEN-SU
f7887adffb
MediaViewer: Add the ability to save the media
...
See https://gitlab.gnome.org/World/fractal/issues/76
2018-06-18 00:28:56 +02:00
Eisha CHEN-YEN-SU
f310cb1eef
Image: Store the image's local path
...
See https://gitlab.gnome.org/World/fractal/issues/76
2018-06-18 00:28:56 +02:00
Eisha CHEN-YEN-SU
fb42490d55
UI: Implement media viewer overflow menu
...
See https://gitlab.gnome.org/World/fractal/issues/76
2018-06-18 00:28:56 +02:00
Piotr Drąg
5dc73ff477
Update Polish translation
2018-06-17 15:03:04 +00:00
Eisha CHEN-YEN-SU
5e009af26a
MediaViewer: Move navigation buttons to overlays
...
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-14 13:15:15 +02:00
Eisha CHEN-YEN-SU
5d341b338f
media_viewer.rs: Remove unused debug logging
...
This removes some debug logging outputs that were previously
forgotten.
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-14 12:12:31 +02:00
Daniel Mustieles
916c8bf8c2
Update Spanish translation
2018-06-14 09:29:33 +00:00
Piotr Drąg
61c2118495
Update POTFILES.in
2018-06-13 22:42:27 +02:00
Daniel García Moreno
a099b5538a
image: Widget creation with multiple methods for config
...
I've added an option for fit to width and as we've a lot of options in
the constructor I've split the construction into several methods that
and a finish method called build that construct the real widget. This
way we've default values and the code is easier to read.
2018-06-12 18:29:46 +02:00
Eisha CHEN-YEN-SU
657c5d51c1
MediaViewer: Implement the full screen mode
...
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:17:33 +02:00
Eisha CHEN-YEN-SU
77943c0068
MediaViewer: Display the filename in the title
...
This displays the image's filename in the headerbar's title.
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:18:13 +02:00
Eisha CHEN-YEN-SU
1cc4785731
MediaViewer: Implement media viewer zoom
...
This implements the ability to use the zoom in the media viewer.
The user can zoom in and zoom out with the buttons around the zoom
entry and they can also enter an arbitrary zoom percentage.
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:18:00 +02:00
Eisha CHEN-YEN-SU
17b5b3885f
Image: Add the ability to center the image
...
This adds the ability to center the selected image in the media
viewer.
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:17:33 +02:00
Eisha CHEN-YEN-SU
2876eb6ccf
MediaViewer: Implement image navigation
...
This implements the ability to navigate through the images of the
loaded messages in a room.
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:17:47 +02:00
Eisha CHEN-YEN-SU
d3e88adfb4
MediaViewer: Display image in the media viewer
...
This adds the ability to display the selected image in the media
viewer.
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:17:33 +02:00
Eisha CHEN-YEN-SU
4be5c85f6a
Image: Make the size optional
...
This makes the size optional when creating a new Image widget so that
the image is automatically scaled to its parent widget's size.
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:16:43 +02:00
Eisha CHEN-YEN-SU
3ea23f89fe
UI: Implement the media viewer design
...
See https://gitlab.gnome.org/World/fractal/issues/13
2018-06-12 17:16:12 +02:00
Piotr Drąg
f09dc5a5a8
Update Polish translation
2018-06-10 14:42:48 +00:00
Daniel García Moreno
240a563902
flatpak: Use gspell gitlab repo
2018-06-09 23:00:55 +02:00
Daniel García Moreno
36a8e47cd2
Fix attach file with the current message queue flow
...
I've moved the image/attach message creation from the backend to the
frontend so now we need to create the message with the file path in the
url field to attach a file. This simplifies the backend and allow us
more control over the temp message that we're showing because we can
render the temp message with the image
2018-06-08 18:16:01 +02:00
Daniel García Moreno
5c0316cbbd
fractal-api renamed to fractal-matrix-api
2018-06-08 15:51:37 +02:00
Daniel García Moreno
72fa9e0919
api: fractal-api ready to publish in crates.io
2018-06-08 14:20:42 +02:00
Daniel García Moreno
0b2622b1ad
Add a message queue and retry send on failure
...
I've added a message queue for new messages to keep the list of temp
messages, this messages are sent one by one and that means that we'll
preserve the order always.
If a send message fails the app tries to resend the same message again
and don't try to send any new message util the first one is sent
correctly.
Fix #201 , #173 and #140
2018-06-08 13:11:16 +02:00
Alexandre Franke
16e6e80517
passwd: Improve handling of uninstalled schemas
2018-06-07 23:59:08 +02:00
Saurav Sachidanand
a5ae75ab5c
Don't highlight message containing username if it was sent by same user
2018-06-07 22:47:14 +05:30
Piotr Drąg
2ba6b7b81a
backend_loop: Use Unicode apostrophes in new translatable strings
...
See https://developer.gnome.org/hig/stable/typography.html
2018-06-07 04:55:31 +00:00
Piotr Drąg
db5de771de
accountsettings: Fix placeholder translations
2018-06-06 18:35:17 +02:00
Daniel García Moreno
3f61661ccd
i18n: Update the POTFILES with new rs and ui files
2018-06-06 18:07:56 +02:00
Sriram Ramkrishna
749df5866d
Fixed keywords syntax and removed a keyword
...
Removed 'comms' and replaced commas with semicolons.
2018-06-06 15:48:32 +00:00
Daniel García Moreno
ea50b2cf5d
Merge branch 'user-preferences'
2018-06-06 17:47:00 +02:00
Daniel García Moreno
b2dcae62b1
accountsettings: Reduce indentation deep
...
I've created some functions to reduce the indentation
2018-06-06 17:45:12 +02:00
Daniel García Moreno
0e51469390
Context for "Log In" translation in main_window
...
Fix #255
2018-06-06 16:53:44 +02:00
Marek Černocký
1626676e3c
Add Czech translation
2018-06-06 14:49:55 +00:00
Julian Sparber
b81f1ecf82
accountsettings: add closures to address button callback
...
In order to use ? operator we need to wrap the callback in an other
closures which retruns a Option
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 16:45:50 +02:00
Daniel García Moreno
a4c0907d3c
Join split string inside gettext
...
It seems that gettext doesn't detect correctly strings that are splitted
in several lines with \ so we need to keep that in one line.
Fix #254
2018-06-06 16:45:40 +02:00
Julian Sparber
200440d30d
accountsettings: remove seperator in user settings menu
...
* remove seperator between user info and account settings link
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 15:36:28 +02:00
Julian Sparber
e88663e188
accountsettings: make animation for destruction revealer slower
...
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 15:36:28 +02:00
Julian Sparber
0068fde053
accountsettings: fix valignment of label name/email/phone
...
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 15:36:28 +02:00
Julian Sparber
140da51149
accountsettings: scroll to advanced/destruction section when open
...
* Set space between advanced and destruction section to 12px
* Hide check button for username input when the username is still the
current one
* glue scroll view to the bottom when advanced/destruction section open
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 15:36:28 +02:00
Julian Sparber
f1e86bdc5e
accountsettings: add placeholder text
...
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 15:36:28 +02:00
Julian Sparber
c4d608b1de
accountsettings: show spinner will updating the avatar
...
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 15:36:28 +02:00
Julian Sparber
41a07a870c
accountsettings: generate client secret for each request
...
* Generate a 36 char long secret needed by the API calls
for adding phone numbers and email addresses
* Simplify callback for the address button and remove duplicated code
https://gitlab.gnome.org/World/fractal/issues/21
2018-06-06 15:34:57 +02:00
Rafael Fontenelle
09c875d1f6
Update Brazilian Portuguese translation
2018-06-06 02:13:54 +00:00
Sriram Ramkrishna
a4a017010c
Merge branch 'master' of gitlab.gnome.org:sri/fractal
2018-06-05 13:35:17 -06:00
Sriram Ramkrishna
232754d39d
Added more keywords to the desktop file.
...
Added more search terms for the shell overview to search on.
2018-06-05 13:33:07 -06:00