Skip to content
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

Internationalization is not working because of hardcoded strings #1252

Open
ayushi4 opened this issue Mar 5, 2021 · 0 comments
Open

Internationalization is not working because of hardcoded strings #1252

ayushi4 opened this issue Mar 5, 2021 · 0 comments

Comments

@ayushi4
Copy link

ayushi4 commented Mar 5, 2021

Description:
Some strings remain untranslated because they are hardcoded.
In the left hand side tabs, there are three keywords, "Configure", "Home", "Monitor" that remain untranslated.

Below are the tabs which are hard-coded in English and are not internationalized.
• Home
Location: CARBON_HOME/repository/components/plugins/org.wso2.carbon.ui_4.6.0/web/index.html +69
Code: <li class="home"><a href="index.html">Home</a></li>
• Configure
Location: CARBON_HOME/repository/components/plugins/org.wso2.carbon.ui_4.6.0/web/admin/js/template.js +229
Code: var menuSliderTxt3 = "<span>Configure</span>";
• Monitor
Location: CARBON_HOME/repository/components/plugins/org.wso2.carbon.ui_4.6.0/web/admin/js/template.js +228
Code: var menuSliderTxt2 = "<span>Monitor</span>";

The strings "Configure", "Home", "Monitor" are hardcoded in English only. And it won't translate by adding a Resources.properties file

Similarly, there are many strings that remain untranslated due to the fact that they are hardcoded as string in the code and its i18n will be possible only when they are replaced by i18n variables (Resource Key).

Affected Product Version:
WSO2 IS Carbon Portal v5.10.0

Steps to reproduce:
Introduce a Resource_(language-code).properties file for required language by translating the default Resource.properties (English) file and then deploy WSO2 Carbon Portal.
Login to admin portal @ https://<ip_address>:9443/carbon
Username: admin
Password: admin

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

No branches or pull requests

1 participant