Add language selector#63
Open
OmerAti wants to merge 13 commits into
Open
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.
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. |
Member
|
Sorry I'll get to this soon, great job btw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added multi-language support to the user interface (initial implementation)