-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Conversation
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
There was a problem hiding this 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. |
Sorry I'll get to this soon, great job btw |
Added multi-language support to the user interface (initial implementation)