Skip to content

zava8/QOnlineTranslator

 
 

Repository files navigation

QOnlineTranslator

GitHub (pre-)release

QOnlineTranslator is a library for Qt5 that provides free usage of Google, Yandex, Bing, LibreTranslate and Lingva translate API.

Example:

QCoreApplication app(argc, argv);

QOnlineTranslator translator;
translator.translate("Hello world", QOnlineTranslator::Google);
QObject::connect(&translator, &QOnlineTranslator::finished, [&] {
    if (translator.error() == QOnlineTranslator::NoError)
        qInfo() << translator.translation();
    else
        qCritical() << translator.errorString();
});

return QCoreApplication::exec();

For real example of usage you can look into my other project: Crow Translate.

Requirements

Linux: GCC 7 +

Windows: MSVC2017 / MinGW 7 +

Installation

To include the library files you could use FetchContent CMake module. Or you can add it as a git submodule to your project and include it's contents:

QMake:

include(src/third-party/qonlinetranslator/qonlinetranslator.pri)

CMake:

add_subdirectory(src/third-party/qonlinetranslator)

About

a लiबरaरय फoर qट5 टhaट परoviडeस फरee uसage oफ googलe, यaनडex aनड बińg टरaनसलaटe aपi. #vowelहiनदi zava8.github.io mck82.vercel.app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 94.9%
  • C 4.0%
  • Other 1.1%