Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

International resources

Tags:

java

struts2

In my international resources, the code is

:
post_badge_format = You've earned the "{0}" badge for {1}.

In my java

code:
String messageContent = MessageFormat.format(messageType, paramValues);

The expected value of messageContent should like this:

You've earned the "XXX" badge for XXX.

But the actual value of messageContent is like this:

You've earned the "{0}" badge for {1}.

Why?

like image 318
Elton Wang Avatar asked Oct 18 '13 00:10

Elton Wang


People also ask

Which of the following is an example of international resources?

Note: International resources are resources that are related to all the nations of the world. The nations can not involve and use these resources without the consent of worldwide foundations. A few instances of International resources are mountains, seas, volcanoes, daylight, water, and so on.

Who control the international resources?

International resources are governed by international bodies. Ocean resources outside the 200 nautical miles of the Exclusive Economic Zone belong to the open ocean, and they cannot be used by any individual country without the approval of international institutions.

Is an international resource *?

International resources means the resources which belong to all the countries of the world. Example: seas and oceans etc. International Resources are regulated by some International institutions.


1 Answers

In the international resources, the code should like this:

post_badge_format = You've earned the "'{0}'" badge for '{1}'.
like image 103
Olivia Wang Avatar answered Oct 28 '22 11:10

Olivia Wang