Files
openide/java/java-impl/resources/fileTemplates/code/I18nized Expression.java.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

39 lines
2.0 KiB
HTML

<html>
<body>
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
<tr>
<td ><font face="verdana" size="-1">
Replaces a string literal expression (e.g. </font><code>String s = "Hello";</code><font face="verdana" size="-1">)
with an internationalized Java code expression
(e.g. </font><code>String s = myResourceBundle.getString("hello");</code><font face="verdana" size="-1">).<br>
This built-in template is editable. Along with Java expressions and comments, you can also use the predefined variables that
will be then expanded into the corresponding values.</font>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
<tr>
<td colspan="3"><font face="verdana" size="-1">Predefined variables take the following values:</font></td>
</tr>
<tr>
<td valign="top"><nobr><font face="verdana" size="-2"><b>${RESOURCE_BUNDLE}</b></font></nobr></td>
<td width="10">&nbsp;</td>
<td width="100%" valign="top"><font face="verdana" size="-1">Expression of the <b>java.util.ResourceBundle</b> type, instance of which is available in this context.</font></td>
</tr>
<tr>
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PROPERTY_KEY}</b></font></nobr></td>
<td width="10">&nbsp;</td>
<td width="100%" valign="top"><font face="verdana" size="-1">Property key name which is specified in the corresponding properties file.
Typically it is the value that is used for <b>ResourceBundle.getString()</b> method parameter.
</font></td>
</tr>
<tr>
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PROPERTY_VALUE}</b></font></nobr></td>
<td width="10">&nbsp;</td>
<td width="100%" valign="top"><font face="verdana" size="-1">Property value which is defined in the corresponding properties file.
This is the original Java string literal value.
</font></td>
</tr>
</table>
</body>
</html>