掲示板

LR 6.0.5 - Currency symbol Replacement

11年前 に UIKKATTAN THAS .N によって更新されました。

LR 6.0.5 - Currency symbol Replacement

New Member 投稿: 18 参加年月日: 11/07/21 最新の投稿
Hi all !
i want Indian rupees symbol ( ₹) instead of Letters (INR).How to achieve this? in shopping portlet
thumbnail
11年前 に Pavel Savinov によって更新されました。

RE: LR 6.0.5 - Currency symbol Replacement

Junior Member 投稿: 94 参加年月日: 12/09/24 最新の投稿
Hi again!

Create a hook for page /html/portlet/shopping/init.jsp, page for hook attached.
Briefly, i've replaced NumberFormat instance with DecimalFormat instance, like this:

NumberFormat currencyFormat = DecimalFormat.getCurrencyInstance(locale);
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
dfs.setCurrency(currency);
if (currency.getSymbol().equalsIgnoreCase("INR")) {
	String rupeeSymbol = "&&";
	/* replace with your symbol here*/
	dfs.setCurrencySymbol(rupeeSymbol);
}
((DecimalFormat)currencyFormat).setDecimalFormatSymbols(dfs);


Just checked, it works fine on 6.1, but i think that it'll work on 6.0.5 too.

添付ファイル:

11年前 に UIKKATTAN THAS .N によって更新されました。

RE: LR 6.0.5 - Currency symbol Replacement

New Member 投稿: 18 参加年月日: 11/07/21 最新の投稿
Thanks Pavel! its Working Fine.