GitHub - blockersiontko/mini_translator: Made in Python, small translator project using a dictionary in order to understand hashmaps :3 · GitHub
Skip to content

About

Made in Python, small translator project using a dictionary in order to understand hashmaps :3

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Polish to English Mini Dictionary 📚

A simple Python program that translates Polish words into English words. Doesn't have that big of a dictionary, because it was mostly made as a learning project!

Features

  • Translates animal names from Polish to English.
  • Validates user input.
  • Repeats the prompt until a valid animal name is entered.
  • Uses a Python dictionary for fast lookups.
  • Light and dark theme, switchable via a "Toggle theme" button.
  • Custom ap icon and a colored title bar that matches the active theme (Windows only).

Words Included

Polish English
kot cat
pies dog
panda panda
lis fox
wilk wolf
wąż snake
niedźwiedź bear
koń horse
konik morski seahorse
ryba fish
skrzypołcz horseshoe crab

Installation

Clone this repository:

git clone https://github.com/blockersiontko/mini_translator.git

Move into the project directory:

cd mini_translator

How to Run

Run the Python script:

python interface.py

Example

PL: koń
EN: horse

If an invalid word is entered:

PL: kiełbasa
EN: Nie znam takiego słowa!

Repository

GitHub: https://github.com/blockersiontko/mini_translator

Technologies Used

GUI

  • tkinter
  • ttk
  • grid
  • os
  • json
  • ctypes (Windows DWM API for title bar theming)

LIBRARIES

  • tkinter
  • requests (Apache 2.0) - CaseInsensitiveDict

LOGIC

  • Case Insensitive Dictionary - (requests.structures.CaseInsensitiveDict)
  • set() and get()
  • dictionary.py

METADATA

  • metadata.json - app name/version loaded from 'metadata.json'

Future Improvements - V2

  • Both side translation
  • Copy results to clipboard
  • API Connection
  • Color the title bar/Make the program work (Linux + macOS)

License

This project is licensed under the MIT License.

About

Made in Python, small translator project using a dictionary in order to understand hashmaps :3

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages