Commit Graph

2235 Commits

Author SHA1 Message Date
f9c15845a1 ci: Use cached artifacts in the test
gitlab changed how it interprets the "needs" directive, which caused cargo to recompile. Using cached _build directory saves about 2 minutes.
2021-12-08 19:19:07 +00:00
72a7825c85 popover: Don't complain about missing translations
It's fine to do all via po.
2021-12-08 15:29:57 +01:00
da789bcb87 Remove emoji and terminal from translations
Handled via po. Remove now empty files. The match with resources.rs
shows that some of them weren't even used (e.g. fa-IR) showing why a
switch to po is useful (which allows to maintain us that outside of
code).
2021-12-08 15:29:57 +01:00
2aa9cf26ee popover: Make the ui file match the code file name
UI files are usually named like the code file. Stick to that
pattern.
2021-12-08 15:29:57 +01:00
ac833950ab popover: Add translator notes
Single words are hard to translate in context, give some indication what
they do. They're automatically extracted into the pot file.

  #. translators: This is a emmoji keyboard layout
  #: data/popover.ui:6
  msgid "Emoji"
  msgstr "…"

  #. translators: This is a terminal keyboard layout
  #: data/popover.ui:12
  msgid "Terminal"
  msgstr "…"
2021-12-08 15:29:57 +01:00
9b7e065b0f popover: Move Emoji and Terminal to ui file
This allows them to be translated via po so we don't have to maintain
the translation list by hand or care about empty translation files.

The only downside is that the "overlay layouts" in OVERLAY_NAMES need to
match the ones in the ui file but since a missing one is a clean crash
when selected there's little potential for subtle breackage. We could
even ensure consistency by comparing the two at run time but they change
only slowly this is not much of an issue (compared to how e.g. new
languages can be added now).
2021-12-08 15:27:17 +01:00
20ef5b6925 readme: Update features 2021-12-08 12:21:59 +00:00
90df025b9f readme: Put emphasis on being an input method
There's a lot of expectations to make Squeekboard merely a keyboard for the sake of desktop-like workflows, which would hinder the common use case of entering text. The new wording hopefully doesn't foster such a misunderstanding.
2021-12-08 12:18:40 +00:00
dcz
e776bf005e Merge branch 'email-and-url-variant' into 'master'
Add URL and email variants for US layout

Closes #65

See merge request World/Phosh/squeekboard!495
2021-12-08 11:52:17 +00:00
dcz
aea0d413f3 Merge branch 'po-cleanups' into 'master'
i18n improvements

See merge request World/Phosh/squeekboard!503
2021-12-07 20:41:48 +00:00
a9f5429bcb gitignore: Ignore generated po files 2021-12-07 20:11:58 +01:00
12c10ad726 gitignore: Drop zanata dir
Unused since ages
2021-12-07 20:11:27 +01:00
dcz
79ce23822d Merge branch 'dh-13' into 'master'
debian: Switch to dh 13

See merge request World/Phosh/squeekboard!502
2021-12-06 16:25:32 +00:00
dcz
78735677d2 Merge branch 'pkg-only' into 'master'
gitlab-ci: Add PKG_ONLY

See merge request World/Phosh/squeekboard!498
2021-12-06 16:24:41 +00:00
12cf628c71 Add URL and EMail keyboard variants for us
Closes: #65
2021-12-05 21:26:44 +01:00
da7230e723 po: Add desktop file to translatable files 2021-12-05 21:06:40 +01:00
e91f6419fb data: Make generic name truly generic
And mention that it's an on screen keyboard which is the more widely
used term in end user facing string.
2021-12-05 21:06:40 +01:00
16dd4f9753 server-context-servide: Don't translate application name 2021-12-05 21:04:43 +01:00
b41aedabbf eekboard-context-service: Don't translate property names
No need to bother translators with this.
2021-12-05 21:04:43 +01:00
7a1e646bc9 debian: Install desktop file
Distros like Debian ship it anyway
2021-12-05 20:57:02 +01:00
4f19a81d78 debian: Switch to dh 13
This adds goodies like failing on inexistent files. It's well
supported in Debian Bullseye, PureOS Byzantium and newer versions.
2021-12-05 19:35:19 +01:00
dcz
5054f4c9de Merge branch 'pin-keyboard' into 'master'
Use special pin keyboard

See merge request World/Phosh/squeekboard!492
2021-12-05 18:23:35 +00:00
dcz
6eb3914ab3 Merge branch 'po' into 'master'
Add initial po support

Closes #315

See merge request World/Phosh/squeekboard!497
2021-12-05 18:02:55 +00:00
674c1384db readme: Clarify basic running steps 2021-12-05 17:54:05 +00:00
1b13df3364 docs: Move env vars section to debugging 2021-12-05 17:47:37 +00:00
e48d8bee4d readme: Change self-reference to repo to gnome 2021-12-05 17:46:03 +00:00
0c4d3e5450 debian: Install translations 2021-12-05 18:14:39 +01:00
9d97fa4d29 pin: Use less margin
Introduce a common.css so styles don't deviate unintentionally between
the different themes. Way more stuff can be moved here once this is in.
2021-12-05 17:34:40 +01:00
321dadba34 renderer: Set style class based on input purpose 2021-12-05 17:34:40 +01:00
4903f3d1a0 layout: Keep content purpose around
This allows to add proper CSS style classes based on that
2021-12-05 17:31:12 +01:00
3513bf8de4 Use special pin keyboard
This helps muscle memory
2021-12-05 17:31:12 +01:00
5f40c31cab layout: Drop trailing whitespace
Otherwise sane editor setup is basically impossible since
we want to trim that by default (and not manually like here)
in the future.
2021-12-05 17:31:12 +01:00
dcz
956377fd2f Merge branch 'input-purpose-toggle' into 'master'
Honor input-purpose only changes

Closes #311

See merge request World/Phosh/squeekboard!493
2021-12-05 14:33:54 +00:00
f922374e27 gitlab-ci: Add PKG_ONLY
This allows for easy package builds saving resources.
2021-12-04 17:58:14 +01:00
3306907008 Revert "gresources: Drop popup.ui"
This reverts commit fdcef4aa88.
2021-12-04 13:12:48 +01:00
fdcef4aa88 gresources: Drop popup.ui
It's unused in the code atm
2021-12-03 19:00:22 +01:00
74f55b30ef po: Add German translation 2021-12-03 18:59:52 +01:00
d696c9624e Reuse the unused popover ui file for i18n
Since the current code uses a handcoded approach for popup construction
reuse the unused ui file to keep translatable strings. Since UI file in
popover.rs runs through glib the strings get translated.

Future rework will allow us to get rid of this duplication but since the
ui file went unnoticed for so long who could possibly complain.

Closes: #315
2021-12-03 18:58:24 +01:00
964f1da305 Initialize gettext 2021-12-03 18:58:12 +01:00
dcz
0a09036979 Merge branch 'de_DE-translation' into 'master'
langs: Don't use empty translation file

Closes #313

See merge request World/Phosh/squeekboard!496
2021-12-03 17:30:20 +00:00
73e7908709 langs: Don't use empty translation file
This breaks the translation

Closes: #313
2021-12-03 16:57:26 +01:00
06b17907bf imservice: Invoke eekboard_context_service_set_hint_purpose unconditionally
Since eekboard_context_service_set_hint_purpose() checks if the
hint or purpose changed this doesn't cause unwanted layout reloads.

Closes: #311
2021-12-02 09:19:50 +01:00
912fe0b7b7 entry: Add a random text entry field
This allows to test the case where the purpose changes but nothing else.
2021-12-02 09:19:50 +01:00
937638c582 entry: Set a margin on the grids
Less heavy on the eyes.
2021-12-01 14:40:55 +01:00
894191d3a0 entry: Use a scrolled window
This ensures all entries are reachable even with the OSK unfolded
2021-12-01 14:40:55 +01:00
dcz
9fbb974ce4 Merge branch 'have-more-fun-developing-squeekboard' into 'master'
main: Add debug flags to always show squeekboard on start and to activate GTK inspector

See merge request World/Phosh/squeekboard!485
2021-11-30 14:16:08 +00:00
dcz
e989df8b21 Merge branch 'purpose-pin' into 'master'
Honor input-purpose PIN

See merge request World/Phosh/squeekboard!491
2021-11-30 13:11:02 +00:00
0d7fab2ef4 Honor input-purpose PIN
Otherwise e.g. SIM pins are requested with a numerical keyboard.
2021-11-30 13:29:11 +01:00
dcz
f3eeedc92f Merge branch 'style-check' into 'master'
Move style-check to separate script

See merge request World/Phosh/squeekboard!488
2021-11-23 17:53:02 +00:00
dd708456ff Move style-check to separate script
This avoids having to copy out of .gitlab-ci.yml before submitting an MR
to do a style check.

Could become a meson target at some point.
2021-11-23 18:16:36 +01:00