A free, out-of-the-box translation and OCR tool open-sourced with WPF

A free, out-of-the-box translation and OCR tool open-sourced with WPF

Share with you a free (MIT License), out-of-the-box, ready-to-use translation and OCR tool open-sourced with WPF: STranslate.

Last updated 3/8/2024 5:19 AM
追逐时光者
3 min read
Category
WPF
Tags
.NET WPF Open Source Translation OCR Tool

Preface

Today, DaYao shares with you a WPF open-source, free (MIT License), ready-to-use, instant translation and OCR tool: STranslate.

Introduction to WPF

WPF is a powerful desktop application framework used to build Windows applications with rich user interfaces. It provides flexible layout, data binding, styles and templates, animation effects, and other features, enabling developers to create attractive and highly interactive applications.

Tool Shortcuts

Global Shortcuts

Can be customized

  • Alt + A: Open the software interface, input content and press Enter to translate
  • Alt + D: Copy the currently selected content with mouse and translate it
  • Alt + S: Screenshot the selected area and translate the content
  • Alt + G: Open the main interface
  • Alt + Shift + D: Enable mouse hover word selection, translate immediately when selecting text
  • Alt + Shift + S: Fully offline text recognition (based on PaddleOCR)
  • Alt + Shift + F: Silent OCR (automatically copy to clipboard after OCR)

In-App Shortcuts

Cannot be modified

  • ESC: Hide the interface (including canceling requests)
  • Ctrl + ,: Open settings
  • Ctrl + Shift + A: Show/hide input box
  • Ctrl + Shift + Q: Exit the program
  • Ctrl + Shift + T: Pin/unpin the window
  • Ctrl + Scroll Up: Enlarge text
  • Ctrl + Scroll Down: Reduce text
  • Ctrl + `: Restore default text size
  • Ctrl + +: Enlarge interface (width, max height)
  • Ctrl + -: Reduce interface (width, max height)
  • Ctrl + 0: Restore interface to configured size (width, max height)
  • Ctrl + Alt + +: Increase width
  • Ctrl + Alt + -: Decrease width
  • Ctrl + Shift + +: Increase max height
  • Ctrl + Shift + -: Decrease max height
  • Ctrl + 1...8: Copy translation service results in order
  • Ctrl + 9: Copy the last translation service result

Running the Tool Source Code

Set STranslate as the startup project to run:

Tool Download

Download from GitHub

Download from Gitee

Screenshots of Tool Features

Project Source Code Address

For more practical features and functionalities, please visit the project's open-source address 👀. Don't forget to give the project a Star for support 💖.

https://github.com/ZGGSONG/STranslate

Keep Exploring

Related Reading

More Articles
Same category / Same tag 9/13/2025

Migration Series from WPF to Avalonia: Why I Must Migrate My WPF Application to Avalonia

In the past few years, our host computer software has mainly been developed using WPF and WinForm . These technologies work well on the Windows platform and have accompanied us from small-scale trial production to the current stage of large-scale delivery. However, with business development and changes in customer requirements, the single Windows technology stack has gradually become a hurdle we must overcome.

Continue Reading
Same category / Same tag 1/26/2025

Implementing Internationalization in WPF Using Custom XML Files

This article details the method of implementing internationalization in WPF applications using custom XML files, including installing the necessary NuGet packages, dynamically retrieving the language list, dynamically switching languages, using translated strings in code and XAML interfaces, and provides a source code link to help developers easily achieve internationalization in WPF applications.

Continue Reading