hsato03 opened a new pull request, #12863:
URL: https://github.com/apache/cloudstack/pull/12863
### Description
This PR aims to extend the `config.json` file with the `defaultLanguage`
variable to allow the definition of the default language used by ACS.
The default value of this variable is `en`, meaning the default language
will be English. To change the variable's value to other languages, it must be
set with the language code of the desired language. For example, to set the
default ACS language to Brazilian Portuguese, the variable should have the
value `pt_BR`.
<details><summary>Table of supported language codes</summary>
| Language code | Language |
| ------ | ------ |
| `en` | English |
| `hi` | Hindi |
| `ja_JP` | Japanese |
| `ko_KR` | Korean |
| `zh_CN` | Chinese (Simplified) |
| `ar` | Arabic |
| `ca` | Catalan |
| `de_DE` | German |
| `es` | Spanish |
| `fr_FR` | French |
| `it_IT` | Italian |
| `hu` | Hungarian |
| `nl_NL` | Dutch |
| `nb_NO` | Norwegian Bokmål |
| `pl` | Polish |
| `pt_BR` | Brazilian Portuguese |
| `ru_RU` | Russian |
| `el_GR` | Greek |
</details>
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [X] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, and the tests you ran to
-->
1. I modified the `config.json` file by setting the `defaultLanguage`
variable to the value `ja_JP`. Then, I opened the ACS GUI in an incognito tab
and verified that ACS was in Japanese;
2. I created a public GUI theme using the new variable with the value
`pt_BR`. Then, I opened the ACS GUI in an incognito tab and verified that ACS
was in Brazilian Portuguese;
```
create guitheme name="pt_BR theme" jsonconfiguration='{"defaultLanguage":
"pt_BR"}'
```
3. I removed the GUI theme and the `defaultLanguage` variable from the
`config.json` file. Then, I opened the ACS GUI in an incognito tab and verified
that the English language was still used by default.
#### How did you try to break this feature and the system with this change?
<!-- see how your change affects other areas of the code, etc. -->
<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]