Skip to content

caioponcedeleon/old_php_translator_project

Repository files navigation

Portuguese → Invented Language Translator (2013)

PHP JavaScript jQuery HTML CSS

⚠️ Note: GitHub lists some files as "Hack" — but this is just a misclassification of old PHP code.

🗂️ Archival project from 2013, when I was 15 years old
One of my earliest experiments with PHP, JavaScript, and databases.
A playful translator that converts Portuguese into a constructed language I invented.


📖 Story

Back in 2013, when I was 15, I decided to create a "translator" that would convert Portuguese (my mother language) into a constructed language I invented.

At the time, I was just starting to explore programming, and I wanted to see if I could turn an idea into something interactive. This project became one of my first full PHP application: a simple tool that took user input, swapped words for their equivalents in my constructed language, and displayed the result in the browser. The system also has a very simple admin dashboard which allowed me to add vocabulary to the database (Portuguese and "Camks" words — the name of my constructed language).

Even though it’s technically very simple, it represents an important milestone in my coding journey — the point where I realised programming could bring imagination to life.


⚙️ How it works

  1. Database of words
    A small database mapped Portuguese words to equivalents in my invented language. Example:
  • casa (house) → casona
  • água (water) → vótér
  • comer (eat) → manjar
  • Eu me chamo... (I'm called...) → jim mi j'appeleave...
  1. PHP word replacement
  • A PHP script scanned user-submitted text.
  • Using 'str_replace', it swapps each Portuguese word with its "translation".
  1. jQuery interactivity
  • A simple jQuery interface allowed input and displayed the result without reloading the page.

🖥️ Tech used

GitHub detected the following language breakdown for this project:

  • JavaScript — 45.3%
  • HTML — 19.0%
  • CSS — 12.5%
  • PHP — 23.2%

💡 Why I keep it here

This project is not meant to showcase professional-level skills — it’s an archive piece.

I include it here because it:

  • The early stages of my programming journey;
  • Demonstrates curiosity, creativity, and experimentation at an early stage;
  • Reminds me how far I’ve come in terms of coding practices and knowledge.

If you’re browsing my GitHub, check out my more recent projects for examples of my current skills.
This one is just a nostalgic stop along the way 🚀


📸 Screenshots

Here are some screenshots of the project interface from 2013:

Index Page
The main landing page where users could input Portuguese text and see it translated. The user can also change the translation direction, translating from my language to Portuguese. (The note with a list of trial sentences was added recently).
Admin Page
The simple admin interface for managing the dictionary and reviewing entries. The admin can either add new words to the database (left), or check the words that have already been added and edit them (right).
Adding more words
This page features a straightforward form for adding new words to the database. Admins input each word in both Camks (the invented language) and Portuguese. The form has two rows so that singular and plural forms of a word can be added at the same time.
List of Registered Words
This page shows all words currently stored in the database and provides options to edit them. A progress bar visualises the database's growth, increasing by 1% for every 100 words added.
Editing words
A simple page brings a form to edit each entry.

🕹️ Running it (for fun)

A live version of this project is available online for testing: Try it here

You can however clone the repository and run it in your machine! Since this was built in 2013, I had to update some aspects of the code in order for it to run with modern PHP versions (as the one ran by my localhost and my server). Setup is very simple:

  1. Install PHP (any version that supports mysqli).
  2. Create a MySQL/MariaDB database with word mappings (sql file is included to be imported).
  3. Run the project locally and input some Portuguese text.
  4. Watch it get transformed into my invented language.

To see more live-previews of old projects, click here:

See Portfolio Button

✍️ Project by me at age 15 (August 2013). Preserved here as part of my coding journey.

About

A 2013 web app that “translates” Portuguese into my own constructed language — one of my first experiments with PHP, MySQL & jQuery.

Topics

Resources

License

Stars

Watchers

Forks