wso2 / carbon-dashboards

Apache License 2.0
52 stars 124 forks source link

Internationalization is not working because of hardcoded strings #1252

Open ayushi4 opened 3 years ago

ayushi4 commented 3 years ago

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://:9443/carbon Username: admin Password: admin