Skip to content

Commit

Permalink
Merge pull request #3157 from mkavish1407/g11n-java-client
Browse files Browse the repository at this point in the history
removing version info from VIPComponentFilter
  • Loading branch information
sjiang-cb authored May 22, 2024
2 parents e6790c9 + 786e329 commit 4585f0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void doFilter(ServletRequest request, ServletResponse response,
response.setContentType("text/javascript;charset=UTF-8");
os.write(("var translation = {" + "\"messages\" : " + messages + ", "
+ "\"productName\" : \"" + gc.getInstance().getProductName()
+ "\", " + "\"version\" : \"" + gc.getInstance().getVersion()
+ "\", " + "\"vipServer\" : \""
+ gc.getInstance().getVipServer() + "\", " + "\"pseudo\" : \""
+ gc.getInstance().isPseudo() + "\", "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void init() throws ServletException {
public void testDoFilter() throws IOException, ServletException {
String normalMsg = "var translation = {\"messages\" : {\"LeadTest\":\"[{0}] 测试警示\",\"table.host\":\"主机\",\"global_text_username\":\"用户名\"," +
"\"sample.plural.key1\":\"{0, plural, other{\\\"{1}\\\"上有#个文件。}}\"}," +
" \"productName\" : \"JavaclientTest\", \"version\" : \"1.0.0\", \"vipServer\" : \"http://localhost:8099\", " +
" \"productName\" : \"JavaclientTest\", \"vipServer\" : \"http://localhost:8099\", " +
"\"pseudo\" : \"false\", \"collectSource\" : \"false\"};";

String errorMsg = "{\"code\":400, \"message\": \"Request parameter 'locale' is required!\"}";
Expand Down

0 comments on commit 4585f0a

Please sign in to comment.