WISE-Community / WISE-DEPRECATED

Web-based Inquiry Science Environment (WISE).
http://wise.berkeley.edu
Other
32 stars 24 forks source link

Can the project title only be displayed in English? #2249

Open VM8gkAs opened 4 years ago

VM8gkAs commented 4 years ago

Description

Project titles for authoring tools can only be displayed in English. WISE 5.5 doesn't have this problem.

WISE Version: 5.8.1 Operating System: Windows 10 Enterprise 1909 Browser: Microsoft Edge Chromium-based 81.0.416.20

Steps to Reproduce

  1. Click "Create a New Project"
  2. Enter "中文測試/Chinese Test/中国語テスト/중국어 시험"

Actual behavior: Like Picture 1. Expected behavior: Like Picture 3. <Picture 1> 2020-03-05 154158 <Picture 2> 2020-03-05 162528 <Picture 3> 2020-03-05 154244

hirokiterashima commented 4 years ago

Hmm. I cannot reproduce this problem on my local server using the latest from the develop branch and on wise.berkeley.edu.

I wonder if it's a settings issue. Are you running this server locally?

VM8gkAs commented 4 years ago

Sorry, it took so long to respond. I use Docker to create a tomcat container(tomcat:9-jdk8-adoptopenjdk-openj9), and then put the WAR file into the webapps.

1. Read string from database ?

I use "Create a New Project" to create a project. 007

I have tried to modify webapps/wise/wise5/authoringTool/main/main.html. 005

The following figure is the revised result : ( 2 - ?? -> 2 - 中文 ) 006

/legacy/teacher/management/library.html doesn't have this problem. 004

2. Read the contents from JSON file

webapps/wise/wise5/authoringTool/main/main.html 010 webapps/wise/wise5/authoringTool/i18n/i18n_en.json 008 Result : 009

Another question

I have modified defaultLocale = zh_TW in application.properties. The legacy webpage is in Chinese, but why the interface of "Authoring Tool" is still in English ?