Updated module to be compatible with the new rewritten Fluency module.#10
Updated module to be compatible with the new rewritten Fluency module.#10SkyLundy wants to merge 2 commits intorobertweiss:mainfrom
Conversation
Some bugfixes. Version bump.
|
As a module user note: I test the PR, and it makes the module functional again. Thx! |
|
Hey! Thanks to @SkyLundy and @robertweiss for your great modules! |
|
@SkyLundy @robertweiss ... sorry, seams like I did something wrong. Now I installed both of your modules via ProcessWire and copied |
|
@SkyLundy Your patch is unfortunate not more working. I get with tracy:
68: $this->localizedStrings = (object) [
69: 'translate' => FluencyLocalization::get('inputfieldTranslateButtons', 'translate'),
70: 'translated' => FluencyLocalization::get('standaloneTranslator', 'fieldLabelTranslated'),
71: 'rateLimitError' => FluencyLocalization::get('errors', FluencyErrors::RATE_LIMIT_EXCEEDED),
72: ];Is there a possibility to implement this page wide translation as a built-in function in fluency? |
|
Good day @robertweiss ! |
Refactored to work with the new Fluency module's API.
ConfiguredLanguageDataobjects that encapsulate much of the data neededConfiguredLanguageDataobject removed the need to manually parse language codes or determine which should be usedtranslatemethod returns localized error messages that will now be shown after page load if problems occurred during translationItems that don't affect functionality:
I ended up having to make some modifications to how Fluency initializes itself so that it can be used by other modules, so users will need to upgrade Fluency to the latest for these modules to work together.