2.7.0: the Dust-blower
This is a huge release implementing many things I wanted to have in LWT. As for the most important features you get:
- Auto-translation (using ggl.php)
- Auto-romanization of Japanese
- Responsive design
- And much more...
Added
- The translation and romanization of new words can now be automatic.
- Supported automatic translation is achieved using LibreTranslate.
- Romanization using MeCab (Japanese only) toward katakana only.
- A lot of improvements for language creation/edition:
- More intuitive fields, better interactions with the user, etc...
- A "Pop-Up" checkbox helps you choose if the website should be displayed in a pop-up.
- LWT becomes easier to install and maintain for users:
- An installer for Linux users at
INSTALL.shhelps installing requirements and configuration. - Database creation wizard (
database_wizard.php) to help setting the connection with the database. - A server data page at
server_data.phpshowing all relevant information.
- An installer for Linux users at
- In
index.php:get_server_data_tablereplacesget_server_dataas a better designed function.index_do_main_pagenow renders the page to avoid global variables.- You get warnings if the PHP version is too low, or if a newer version of LWT is released.
pagestart_kernel_nobodyininc/kernel.phpthat displays the minimal HTML formatting.inc/classes/folder for a better incorporation of OOP.inc/classes/Termdefines theTermclass representing a word or multi-word.inc/classes/Languagedefines theLanguageclass representing a language.
- Post-Install Documentation added:
- MeCab without and with Docker, Thanks to @99MengXin for the link (#94).
- LibreTranslate integration.
- TTS issues, as suggested by @asdrubalivan in #85.
Changed
- Graphic review:
- Headers reviewed. Most h4 headers became div.bigger, and h3 became h1 level headers.
- We now use responsive design instead of fixed-size.
- All themes updated accordingly, so themes were modified.
do_text_page(do_text.php) anddo_test_page(do_test.php) now enlarge the body.
echo_lwt_logoininc/session_utility.phpechoes a logo, without information on the table set used
because it was useless. This information is now displayed on the welcome page.- Access to the database prefix edition at
start.phpwas reviewed and simplified. It is still considered a legacy feature. - Language creation reviewed:
- When creating a new language, the language wizard do no longer display in a pop-up but in the main window.
- Select option boxes replaced by checkboxes (better accessibility).
- Updated hoverIntent jQuery Plug-in
from 1.8.0 to 1.10.2. This brings some bug fixes. - "TO DO" changed to a more explicit "Unknown words" in text header.
- Refactored
bulk_translate_word.php. It has a better visual aspect and works better. - Updated composer dependencies.
- vimeo/psalm updated from ^4.12 to ^5.6.
- phpunit/phpunit updated from ^9.5 to ^10.0.
- Changed to the text from YouTube feature (
text_from_yt.php):- Refactored.
- Moved from root folder to
inc/. - This is still an experimental feature!
- Moved Google API files:
- Moved
googleTimeToken.phpfrom root folder toinc/google_time_token.php. - Moved
googleTranslateClass.phpfrom root folder toinc/classes/GoogleTranslate.php.
- Moved
- Updates in demo database:
- Faster to install.
install_demo_db_sql.gzuncompressed toinstall_demo_db.sql. Functions adapted. - Dict links changed: ### replaced by lwt_term, * replaced by lwt_popup=1, some dict url protocol changed to https.
- Faster to install.
Fixed
- Markdown: enforced consistency with official style recommendations. The documentation display got improved.
- The default date for new words was note accepted depending on the SQL configuration, causing issues with Docker installation. See #78.
- Bulk translate words:
- Translating with bulk translate was not updating word rendering.
- All broom icons icon were display in the screen top-right corner, and not
at the right if text field.
- Main page (
index.php) was not rendered properly on non-default theme. - Changing language name was breaking this, this is fixed:
- Text header was sometimes not available.
- It was breaking full text-to-speech dispatcher. Issue signaled with issue #80
- Support for PHP 7.4 restored, wrappers for
str_starts_with,str_ends_with,str_contains. - The encoding of
docs/info.htmlis finally fixed! ggl.phpfeature fixed!- Multi-words:
- Wrong link to documentation (
docs/info.phpinstead ofdocs/info.html) on the help button (main page). Signaled by babaeali on Discord. - Depending on browser, clicking on deletion button for active texts had no effect.
Deprecated
- Dictionary and translator URIs changed:
- They should always be proper URLs.
- Replacing
###bylwt_termis strongly recommended! - "*" At the beginning of an URI should be replaced by
lwt_popup=1as an argument. ggl.phpshould be replaced by the file full URL, for instance "http://localhost/lwt/ggl.php".