Nikhil Tanwar
08d6376eed
Economical space usage in search form
...
No pre defined height for devices with with max-width 590px now. The previous height took a good amount of space on some devices.
2023-03-02 12:45:25 +05:30
Nikhil Tanwar
3cdc6c41c4
Stick kiwixNav on top
...
The filters menu will always stay on top now.
2023-03-02 12:45:25 +05:30
Veloman Yunkan
973ac28dcb
Merge pull request #901 from kiwix/translatewiki
...
Localisation updates from https://translatewiki.net .
2023-03-01 19:26:40 +04:00
Veloman Yunkan
a855b422c7
Updated the list of translations
2023-03-01 19:16:30 +04:00
Veloman Yunkan
28673c1bb8
Handling of translation jsons w/o the language name
...
If a translation JSON file doesn't contain the 'name' (self-name)
attribute of the translation language then that language is not included
in the list of languages available in the UI language selector.
2023-03-01 19:16:06 +04:00
translatewiki.net
df4b16e485
Localisation updates from https://translatewiki.net .
2023-02-27 13:05:55 +01:00
Matthieu Gautier
936707f73b
Merge pull request #846 from kiwix/frontend_i18n
2023-02-22 15:44:56 +01:00
Veloman Yunkan
9e2a601d52
Translated filter-by-tag messages
2023-02-22 18:02:48 +04:00
Veloman Yunkan
1d074cda40
Changed the UI language selector in ZIM viewer
...
The UI language selector in the viewer is now the same as on the welcome
page. This comes with some (mostly CSS) code duplication.
2023-02-22 18:02:41 +04:00
Veloman Yunkan
5850e0d489
The OPDS feed icon is never hidden
2023-02-22 18:01:28 +04:00
Veloman Yunkan
904615a51a
Modal language selector on the welcome page
...
The language selector on the welcome page has been replaced with
a smaller button that opens a modal language selector. Though the
code for introducing such a modal language selector has been added
in i18n.js, its appearance relies on styles defined in index.css.
Once this new UI for changing the UI language is approved, it must be
used in the ZIM viewer too.
Known issues:
- selecting the language with arrow keys (using the keyboard only,
without pressing space first, so that the full list of languages is
shown) doesn't work because as soon as the current language is changed
the modal language selector disappears.
2023-02-22 18:01:21 +04:00
Veloman Yunkan
763fb86ad0
userlang query param is removed from the URL
...
If the userlang query param is present in the URL it is used to set the
UI language and then is removed from the URL.
Unlike the ZIM viewer, changing the UI language on the welcome page
isn't recorded in the navigation history (and probably it should work
the same way in the ZIM viewer where the appearance of the web page is
affected by the UI language changes to a significantly smaller extent).
2023-02-22 17:59:37 +04:00
Veloman Yunkan
fbf6d97f5e
Translation of the library OPDS feed link hints
2023-02-22 17:59:18 +04:00
Veloman Yunkan
c85466995d
Added a TTL parameter to setCookie()
2023-02-22 17:58:57 +04:00
Veloman Yunkan
514d6e6514
Added UI language selector on the welcome page
...
Also:
- Moved the language selector to the right hand side on the ZIM viewer
page (to be consistent with the welcome page)
2023-02-22 17:58:46 +04:00
Veloman Yunkan
351bc87231
Moved initUILanguageSelector() into i18n.js
2023-02-22 17:56:28 +04:00
Veloman Yunkan
ac742e9da2
Redirection of slashless root URL
...
With non-empty root location, the canonic form of the root URL for a
kiwix server is now required to end with a slash (to match the situation
for an empty root location). This requirement enables usage of relative
URLs on the welcome page and resources/scripts loaded through that page.
A slashless root URL is redirected to the slashful version.
2023-02-22 17:54:20 +04:00
Veloman Yunkan
0581da44fe
Internationalization of download options
2023-02-22 17:54:01 +04:00
Veloman Yunkan
2825c4c63d
Fixed links to various download option icons
2023-02-22 17:53:42 +04:00
Veloman Yunkan
fa7d044037
One more translation on the welcome page
...
This translation has to deal with handling of plural forms which is a
tricky part of internationalization, but we are not going to complicate
things in our code and will offload the headache to translators (they
will have to invent a single message for all numbers).
2023-02-22 17:53:23 +04:00
Veloman Yunkan
d42fa22450
Translation of static text on the welcome page
...
Note that i18n/test.json overgrew the non-compressible size limit, that
is why it had to move to a richer neighbourhood.
2023-02-22 17:53:03 +04:00
Veloman Yunkan
7307a9a1b7
First translation on the welcome page
2023-02-22 17:50:22 +04:00
Kelson
bf80367b5a
Merge pull request #898 from kiwix/improve-macos-ci
...
Improve macOS Ci workflow
2023-02-20 16:49:22 +01:00
Emmanuel Engelhart
a04646b7b2
Simplify ninja and meson calls
2023-02-20 16:36:30 +01:00
Emmanuel Engelhart
cfe3f8e3d9
Better use HTTPS in place of HTTP
2023-02-19 17:10:08 +01:00
Emmanuel Engelhart
2d0cff2dc1
Better definition of env variables
2023-02-19 17:10:04 +01:00
Emmanuel Engelhart
b24157ddf9
Not necessary to specify bash, already the default
2023-02-19 16:42:37 +01:00
Emmanuel Engelhart
c57b5ba1ad
Install meson using Homebrew
2023-02-19 16:36:28 +01:00
Emmanuel Engelhart
fe646511d1
Python3 is already available
2023-02-19 16:29:31 +01:00
Emmanuel Engelhart
cc31846152
Don't install unused packages
2023-02-19 16:22:23 +01:00
Emmanuel Engelhart
cb4938c5f8
Improve a bit the readability of the workflow
2023-02-19 16:21:30 +01:00
Emmanuel Engelhart
b1055e814a
Use fix macOS version in CI
2023-02-19 16:12:21 +01:00
Kelson
13951c13df
Merge pull request #895 from kiwix/better-package-ci-triggers
...
Better triggers for packages builds
2023-02-16 16:28:46 +01:00
Emmanuel Engelhart
60fbe7f714
Better triggers for packages builds
2023-02-11 16:55:45 +01:00
Matthieu Gautier
595817852d
Merge pull request #894 from kiwix/zerocount_catalog_query
2023-02-10 19:28:53 +01:00
Veloman Yunkan
2e0124710a
`?count=0` OPDS catalog queries return 0 results
...
... which is a useful way of finding out the total number of results
with the least consumption of resources.
2023-02-10 19:15:29 +01:00
Veloman Yunkan
340fadd9be
Testing of /catalog/search?count=-1
2023-02-10 19:13:33 +01:00
Veloman Yunkan
4bdc1d76c6
Testing of /catalog/v2/entries for count={0,-1}
2023-02-10 19:11:39 +01:00
Veloman Yunkan
738c06ada6
Merge pull request #892 from kiwix/jsonico_mimetypes
...
A better favicon.ico with correct MIME-type
2023-02-10 18:13:28 +04:00
Veloman Yunkan
93bb0f098b
A slightly better favicon.ico
...
Replaced the favicon embedded in kiwix-serve with a slightly better one
(taken from https://www.kiwix.org/favicon.ico ).
2023-02-10 15:07:00 +01:00
Veloman Yunkan
e8c8a297b5
Registered MIME-types for .ico and .json
...
As a result, favicon.ico stopped being considered a compressible resource.
2023-02-10 15:07:00 +01:00
Veloman Yunkan
f4f7879ff3
New unit test ServerTest.MimeTypes
...
The new unit test demonstrates that for embedded resources with .ico and
.json extensions MIME-types are incorrect.
2023-02-10 15:07:00 +01:00
Kelson
706108256b
Merge pull request #891 from kiwix/hbsLang
...
Add Serbo-croate language name
2023-02-10 09:33:34 +01:00
Nikhil Tanwar
12f0614350
Add Serbo-croate language name
...
Adds "srpskohrvatski" as name for "hbs" language tag.
2023-02-10 09:20:23 +05:30
Matthieu Gautier
29519df906
Merge pull request #882 from kiwix/rssFeed
2023-02-09 16:43:52 +01:00
Nikhil Tanwar
6b8f9aa6ab
Add specific link for Kiwix RSS Feed
...
Added an image of rss logo on the welcome page which links to the RSS feed with current filters
2023-02-09 20:50:52 +05:30
Nikhil Tanwar
e3a211e41c
Add RSS Feed extension in head
...
This change adds a <link> element in the head node of welcome page.
Browsers with extensions for RSS will show a sign to navigate to the feed.
The link changes based on current set filters.
2023-02-09 20:47:32 +05:30
Matthieu Gautier
fa80be87be
Merge pull request #890 from kiwix/url_encoding_of_redirects
2023-02-09 11:22:21 +01:00
Veloman Yunkan
51206f4037
fixup! URI-encoding when redirecting legacy URLs to /content
...
The alleged bug seems rather an issue with httplib which seems to
URI-encode any + present in query parameters.
2023-02-09 11:10:37 +01:00
Veloman Yunkan
c2fffacbbd
Renamed a data member
2023-02-09 10:40:23 +01:00