Add Multi-language Support and Refactor Installation and Control Scripts
Description
-
Enhanced Language Support:
-
Added Language Files: Introduced language-specific files
en.sh,fa.sh, andzh.shfor English, Persian, and Chinese, respectively. -
Dynamic Language Selection: Implemented language selection functionality in
quick_start.sh,install.sh, and1pctlscripts to support multiple languages.
-
Added Language Files: Introduced language-specific files
-
Updated Scripts:
-
install.sh:- Integrated language variables to replace hard-coded text.
- Added logic to handle language selection and file loading based on user preference.
-
1pctl:- Updated to support language selection similar to
install.sh. - Enhanced prompts and messages to utilize language-specific variables.
- Updated to support language selection similar to
-
quick_start.sh:- Implemented user language selection and saved the choice for future use.
-
Files Modified
-
1pctl: Added language handling and updated user interface messages. -
install.sh: Refactored to use language-specific variables and improved error handling. -
quick_start.sh: Added language selection logic and file handling. -
lang/en.sh: English language file. -
lang/fa.sh: Persian language file. -
lang/zh.sh: Chinese language file.
This commit enhances the user experience by allowing interaction in multiple languages and improves script usability across different locales.
- [x] Made sure tests are passing and test coverage is added if needed
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
感谢支持 🙏
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment