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

Adding translation for ToDo List #335

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Adding translation for ToDo List #335

merged 2 commits into from
Dec 19, 2024

Conversation

iamwinner422
Copy link
Contributor

Description

Please describe your changes and the purpose of this pull request.

Related Issues

  • Issue #<195>

Checklist

  • I have read and followed the Contributing Guidelines.
  • I have added necessary tests.
  • The project builds and runs without issues.
    CaptureO

@prem-k-r
Copy link
Collaborator

Two more strings line 88 and 93 :)

I think we should have been adding new texts at the end lol.. it's harder to track right now

@iamwinner422
Copy link
Contributor Author

iamwinner422 commented Dec 18, 2024

Two more strings line 88 and 93 :)

I think we should have been adding new texts at the end lol.. it's harder to track right now

Yeah! That's a good idea

@XengShi XengShi merged commit 72223f1 into XengShi:main Dec 19, 2024
XengShi added a commit that referenced this pull request Dec 27, 2024
* Fixed the Centering of menu icon (#324)

* Fixed the Menu Icon

* Added Fix for Dark Mode

* Fixed slight white Outline in MenuIcon

* Fixed slight white Outline in MenuIcon

* Fixed Circle Width of Menu Icon

* Added solid bg behind userText, date & shortcut names

* Added Todo List Feature (#322)

* Added Todo List Feature

* Added a To Do List Toggle in Settings

* Fixed the To Do List loosing focus issue

* Fixed the Errors in Todo List

* Removed the Use of innerHTML to prevent XSS vulnerabilities

* Fixed the Blink Issue and Made the Alert Translatable and Added some Translations

* Removed todo Translations

* Made a few changes to Todo List translations

* Changed Todo Input Placeholder

* Fixed Silly Mistakes

* Switched to JSON Based Approach for To Do List

* Fixed Issue when todoList was not in Local Storage

* Sanitized User Input and Reduced redundancy in Todo code

* Added Comments

* Optimised Todo functions for Reduced Resource Usage

* Removed Alert for when no input is given to ToDo Input Box

* Firefox Reset Setting button width (#287)

* Update style.css

center align date

* Update script.js

shortcuts name text shadow

* Update style.css

fix firefox resetbtn width

* Update script.js

clearbutton color for dark theme

* Update style.css

restrict

* Update style.css

revert center

* Update script.js

replaced innnerhtml

* Update script.js

pasto

* Update script.js

reverted to avoid conflicts

* Update languages.js

Marathi numerals

* Update script.js

revert

* Update languages.js

revert

* Minor changes (#310)

* Update style.css

removed color palette hover text

* Update languages.js

removed page reload hint

* Update index.html

corrected size and icon of meta ai

* Update style.css

readjusted spacings

* Update style.css

+1

* Update languages.js

hindi translation update

* Update languages.js

* Update README.md

added french

* Update languages.js

meta ai trans

* Update style.css

* Update style.css

* Update style.css

savebtn click effect

* Update script.js

hover effect for upload and random wp

* Update languages.js

* Update script.js

* Update feedback.html

GITHUB LINK UPDATE

* Update github-shortcut.svg

opacity changed

* Update script.js

moved try, and cordinate fetching instead of city name from ipinfo

* Update README.md

fix conflicts

* Update script.js

removed shadow for dark mode

* Update script.js

solid bg

* Update style.css

revert from css

* Update script.js (#325)

innerhtml mutable

* Fixed the Todo Item Overflow (#326)

* Enhancement related to To-Do list (#330)

* Update style.css

limit scrollbar

* Update index.html

svg cleanup and scaling

* Update style.css

cleanup

* Update style.css

more cleanup

* Update style.css

+ symbol

* Update script.js

for dark

* Update style.css

cross color

* Update script.js

for dark

* Update languages.js

* Update languages.js

bn

* Update script.js

fix conflicts

* Fixed Search Suggestion for Chromium browsers (#345)

* Update manifest.json

added host permissions

* Update script.js

https

* Update languages.js

* Added ID translation for alert and to-do list (and sync translation for restore) (#340)

* Adding translation for ToDo List (#335)

* Adding translation for ToDo List

* Adding the translation for the rest strings

* l10n: Update Czech translation (#338)

* l10n: Add Czech translation of To Do list

* l10n: Add Czech translation of pick color button

* l10n: Add Czech translation for messages from dialog boxes

* Fixed the Flash Issue during Reload (#336)

* Added Color Changing Loading Screen

* Replaced Loading Image with Optimised one

* Removed Async from the Script Tag

* Added Preload.js

* Feature: Added Pinning Functionality to ToDo List (#337)

* Added Pinning Functionality to ToDo List

* Renamed Todo Span and Fixed Minor Indentation Issues

* Update script.js

darktheme removebtn hover

* Update style.css

minor adjustments

* Update style.css

* Update style.css

* Update style.css

font size 17 to 16

* Updated Todo SVGs

* Added No deletion of Pending Tasks and Resetting of Pinned Completed tasks

---------

Co-authored-by: Prem Kumar <60751338+prem-k-r@users.noreply.github.com>

* add Azerbaijani language (#348)

* add Azerbaijani language

* update README.md

* Azerbaijan language updated

* Azerbaijan language updated

* Azerbaijan language missing words added

* Azerbaijan language fixing problems

* Azerbaijan language last edit

* Azerbaijan language last edit

* Update pt-br translations (#341)

* Update pt-br translations

- Updated translations in pt-br

* Portuguese 100% updated

added "todoListHeading" because the logic that was there did not work to get the same text from "todoListText"

Portuguese is also fully implemented according to the latest update.

* Storing Images as Blobs Instead of Base64 (#351)

* Update script.js

base64 to blobs

* Update languages.js

delete removed alert

* Update languages.js

delete duplicate and unnecessary

* Update languages.js

* Introducing New Bookmark System for the Extention (#349)

* Introducing New Bookmark System for the Extention

* Reverted BG

* Error fixes...

* Mirror Changes

Fixed Icon issue on taking permission and fixed gapps right arrow being placed over.

* Enhanced Bookmarks UI

* Updated Bookmarks Bar

* Fixed Bookmarks Scrollbar

* Minor Fixes

* Used icons which doesn't have padding

Co-Authored-By: Prem Kumar <60751338+prem-k-r@users.noreply.github.com>

* Added Mobile Bookmarks

* Changed the Searchbar id

* Changed the space formats

* Removed all useless comments and added brave navigator

* Added comment back again and added navigator.brave.isBrave too

* Added z-index on rotating of the arrow key

* Maintained some space on the code

* Added Bookmarks Toggle

* Added All Folders View and Default Folders for Each Browser

* Update style.css

minor style update

* Update script.js

some functionalities

* Update script.js

* Update script.js

Ctrl+Click to Open in a New Tab

* Delete favicon/icon.png

* Add files via upload

* Delete favicon/icon.png

* Add files via upload

* Bangla translation for bookmark added

* Firefox icon fixed

* Update manifest(firefox).json

* Update script.js

* Added Grid View

* Update script.js

* Revert "Feature/bookmark enhancements"

* Update index.html

* Update languages.js

* Fixed gapps arrow got placed over

* Update script.js

* Update script.js

* Update style.css

* Update manifest.json

* Update manifest.json

removed bg.js

* Fixed Errors and Added Toggle

* Update script.js

fix delete in firefox

* Fixed Conflicts

* Fixed Unfolding Issue

* Update script.js

fix conflicts

* Update index.html

* Fixed Bookmark Search Issues

* Made Favicon Bigger and Replaced search icon url with SVG

* Made Bookmarks load only when arrow is clicked or right arrow key is pressed

* Fixed Issues

* Attempt to Fix All Issues

* API not defined error fixed

* Corrected Language in Bangla

* Fixed Arrow Error

* Fixed Bookmark Dark Mode and Added Support for Bookmark Translation

* Added Requested Changes

* Made the Arrow Smaller

* Update script.js

* Update style.css

* Delete svgs/bookmarksSearch.svg

* Add files via upload

* Update style.css

* Update languages.js

---------

Co-authored-by: ThunderBlaze <darkthunderstormshiva@gmail.com>
Co-authored-by: Prem Kumar <60751338+prem-k-r@users.noreply.github.com>
Co-authored-by: Shivansh <68265106+Thunder-Blaze@users.noreply.github.com>

* Added stylish rounded corner

* Style corners

* Bookmark strings translation (for hi and bn) (#361)

* Update index.html

* Update languages.js

* WeatherAPI api key update for main branch (#347)

* Update manifest.json

* Update script.js

api keys

* Update manifest(firefox).json

* Language organization (#357)

* Update pt-br translations

- Updated translations in pt-br

* Portuguese 100% updated

added "todoListHeading" because the logic that was there did not work to get the same text from "todoListText"

Portuguese is also fully implemented according to the latest update.

* Language organization

Fixed duplications in the code.
Languages ​​separated into their own files.

* Update pt.js

No necessary

* Refactor translation logic for improved maintainability

This commit refactors the translation logic to make it more concise and maintainable.

Key changes include:
- Replaced the `translationMap` array with a simpler array of strings representing the element IDs.
- Introduced a `placeholderMap` array for handling placeholder translations with custom keys.
- Created a new `applyTranslations` function to encapsulate the translation logic, reducing code duplication and increasing readability.
- Unified the logic for applying translations to placeholders and innerText into the new function.
- Improved the overall structure of the `applyLanguage` function, making it more straightforward and easier to understand.

These changes enhance code clarity, reduce redundancy, and facilitate future modifications related to internationalization.

* Updated language files

Updated according to merge conflicts;
New String translated into  Portuguese-BR;

#Tested.

* improved translation logic

Fixed keys with different keys;
Fixed Chinese variables (cn -> ch); (Tested)
Page updates language without reloading the entire page again; (Working but Google Translate tries to translate from the previous language (possible to see in the console));

* Conflicts fixed

* Add language key analysis tool

Introduces a language analysis tool in the `tools` directory.
This tool identifies complete and incomplete translations, displaying missing keys for incomplete languages.
Access is manual via the `tools` directory.

* Delete .DS_Store

* Delete teste

* Update languages.js

* Update en.js

* Update pt.js

* Update en.js

* Update script.js

removed proxy alert

* Update script.js

typo

* Update zh.js

* Update hi.js

* update 24/12/2024

updated language helper tool to show remaining strings;
page updated to correctly translate weather;
Languages ​​updated from ChengShi repository.

* Update cs.js

* Update it.js

* Update tr.js

* Update bn.js

* Update vi.js

* Update ru.js

* Update ru.js

paste error

* Update bn.js

paste error

* Update bn.js

* Update uz.js

* Update es.js

* Update ja.js

* Update ko.js

* Update idn.js

* Update idn.js

* Update mr.js

* Update fr.js

* Update az.js

* Update background.js

---------

Co-authored-by: Prem Kumar <60751338+prem-k-r@users.noreply.github.com>

* Update manifest(firefox).json (#373)

* Changed Bookmark Icon (#378)

* Changed Bookmark Icon

* Fixed Dark Mode Bookmark Icon

* Made Bookmark Tooltip Translatable

* Updating Bookmarks strings using fr.js in locales folder (#376)

* Added ID translation for bookmarks and invalid backup file message (#380)

* Fix color in firefox 2 (#371)

* Fix colour glithes

* returned isFireFox

* Request changes applied.

* Alert to consloe error.

* Request changes applied.

* Added Slovenian translations (#379)

* l10n: Update Czech translation (#367)

* l10n: Add Czech translation for bookmarks

* l10n: Add Czech translation of invalid backup file

* refactor: Reformat Czech translation file

* Fix/bookmark icon (#382)

* Changed Bookmark Icon

* Fixed Dark Mode Bookmark Icon

* Made Bookmark Tooltip Translatable

* Made Bookmark Icon move only when Google Apps is Enabled

* Fixed Some Things

* Reduced Redundancy in Language Page (#381)

* Requested Changes

* Updated Manifest

* Restored Manifest

* Version 3 to 3.0

---------

Co-authored-by: XengShi <48722764+XengShi@users.noreply.github.com>
Co-authored-by: Prem Kumar <60751338+prem-k-r@users.noreply.github.com>
Co-authored-by: Ayyas-RF <berrzert9@gmail.com>
Co-authored-by: 422.io <iamwinner422@gmail.com>
Co-authored-by: Michal Šmahel <48548230+ceskyDJ@users.noreply.github.com>
Co-authored-by: Hasan Bakhtiar <52384595+hasanbakhtiar@users.noreply.github.com>
Co-authored-by: Maycon Vitor Correa <105678497+MestreWalla@users.noreply.github.com>
Co-authored-by: It'z RJ <86042583+itz-rj-here@users.noreply.github.com>
Co-authored-by: giwi <107575390+giwih@users.noreply.github.com>
Co-authored-by: Aleks Marinič <37543086+Linux-Alex@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

3 participants