Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to Nc27 #1

Closed
szaimen opened this issue Oct 19, 2023 · 8 comments
Closed

update to Nc27 #1

szaimen opened this issue Oct 19, 2023 · 8 comments

Comments

@szaimen
Copy link

szaimen commented Oct 19, 2023

Hi, Nc27 is already out since a while. Would be cool if your app was compatible with Nc27 as well. Thanks for your work! :)

@v1r0x
Copy link
Owner

v1r0x commented Nov 3, 2023

Hi, thanks for the hint! I'll look into it and see if and what changes are needed for an update 👍

@jospoortvliet
Copy link

Hi @v1r0x ! This is cool, on-server translation! Look forward to the update - note that Nc 28 is also near already...

@v1r0x
Copy link
Owner

v1r0x commented Nov 15, 2023

Thanks for your nice feedback!

I just released a new version (1.1.0) with a simple GUI in the additional settings (admin settings) and support for NC 27 and 28.

Can you confirm that it works for you on either NC 27 or NC 28 Beta? Thanks!

@nunesgh
Copy link

nunesgh commented Nov 16, 2023

I have installed the app on Nextcloud 27, but Source/Target Language settings are always returning to en/de and I cannot find the app anywhere to actually use it.

Also, the error below was logged.
[integration_libretranslate] Error: Exception: en is not an available language. at <<closure>>

 0. /var/www/nextcloud/apps/integration_libretranslate/vendor/jefs42/libretranslate/src/LibreTranslate.php line 61
    Jefs42\LibreTranslate->setSource()
 1. /var/www/nextcloud/apps/integration_libretranslate/lib/LibretranslateProvider.php line 72
    Jefs42\LibreTranslate->__construct()
 2. <<closure>>
    OCA\IntegrationLibreTranslate\LibretranslateProvider->__construct()
 3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
    ReflectionClass->newInstanceArgs()
 4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
    OC\AppFramework\Utility\SimpleContainer->buildClass()
 5. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve()
 6. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
    OC\AppFramework\Utility\SimpleContainer->query()
 7. /var/www/nextcloud/lib/private/ServerContainer.php line 155
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
 8. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
    OC\ServerContainer->query()
 9. /var/www/nextcloud/lib/private/Translation/TranslationManager.php line 128
    OC\AppFramework\Utility\SimpleContainer->get()
10. /var/www/nextcloud/lib/private/Translation/TranslationManager.php line 145
    OC\Translation\TranslationManager->getProviders()
11. /var/www/nextcloud/apps/text/lib/Service/InitialStateProvider.php line 43
    OC\Translation\TranslationManager->canDetectLanguage()
12. /var/www/nextcloud/apps/text/lib/Listeners/LoadViewerListener.php line 54
    OCA\Text\Service\InitialStateProvider->provideState()
13. /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php line 86
    OCA\Text\Listeners\LoadViewerListener->handle()
14. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OC\EventDispatcher\ServiceEventListener->__invoke()
15. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
16. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 94
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
17. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 106
    OC\EventDispatcher\EventDispatcher->dispatch()
18. /var/www/nextcloud/apps/dashboard/lib/Controller/DashboardController.php line 87
    OC\EventDispatcher\EventDispatcher->dispatchTyped()
19. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Dashboard\Controller\DashboardController->index()
20. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
21. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
22. /var/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
23. /var/www/nextcloud/lib/base.php line 1068
    OC\Route\Router->match()
24. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /apps/dashboard/

[PHP] Error: foreach() argument must be of type array|object, null given at /var/www/nextcloud/apps/integration_libretranslate/vendor/jefs42/libretranslate/src/LibreTranslate.php#119

GET /apps/dashboard/

@v1r0x
Copy link
Owner

v1r0x commented Nov 16, 2023

Thanks! I just uploaded a new version, that should fix setting source/target language.

When the app is enabled you can decide which of installed translation providers you want to use (NC admin settings > Artificial Intelligence). This provider is then available in e.g. Text editor or Deck card editor

grafik

@nunesgh
Copy link

nunesgh commented Nov 17, 2023

Thank you for the updated version. The settings are now being kept, but the errors are still appearing on the logs.

@v1r0x
Copy link
Owner

v1r0x commented Nov 17, 2023

Are they only in the logs or is it impossible to use the app?

@szaimen
Copy link
Author

szaimen commented Dec 6, 2023

I just tested today and it works with Nc27. Thanks for fixing this! :)

@szaimen szaimen closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants