Skip to content

Add language selector #63

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

OmerAti
Copy link

@OmerAti OmerAti commented Jun 14, 2025

Added multi-language support to the user interface (initial implementation)

  • Multiple languages are now supported.
  • Page keys are made dynamic using the __() translation function.
  • Static texts converted to translatable strings.
  • Error and informational messages updated for multi-language support.
  • Similar translation structures will be added to other files in future updates.

OmerAti added 13 commits June 14, 2025 16:44
This commit adds a new `languages.php` file to support internationalization (i18n). 
It will be used to store and manage language-specific strings for the UI.
Update the files needed for language selection
Update the files needed for language selection
the code of the language option
the code of the language option
@ValwareIRC ValwareIRC requested a review from Copilot June 14, 2025 15:13
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds multi-language support to the UI by refactoring static text into translatable strings using the __() function and introducing new language files. Key changes include updating error and informational messages across several files, adding a language selector on the login page, and refactoring navigation menus and config error messages for i18n.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
settings/rpc-servers.php Replaced hardcoded messages with translation keys for error and status messages.
login/index.php Updated login page texts to use __() and added a language selector dropdown.
lang/tr_TR.php Added Turkish translation file with new and updated translation keys.
lang/en-US.php Updated English translation file with new keys for multi-language support.
index.php Updated UI headings and badges to use translation functions.
inc/languages.php Introduced language loading and selection functionality with validation.
inc/defines.php Updated defined constants to use translated messages.
inc/connection.php Replaced static error messages with translation keys and updated sprintf formatting.
inc/common.php Refactored error handling and navigation arrays to use __() calls for international text.

@ValwareIRC
Copy link
Member

Sorry I'll get to this soon, great job btw

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.

2 participants