编写JAVA代码,执行后可以将资源文件AccountingUiLabels_zh_CN.properties和AccountingUiLabels.properties中对应的同名属性值合并,生成AccountingUiLabels.xml比如:AccountingUiLabels.propertie内容如下:
————————————————————————————————
AccountingAccount=AccountAccountingAccountId=Account IDAccountingAccountLimit=Account LimitAccountingAccountNumber=Account NumberAccountingAccountType=Account TypeAccountingAccounting=AccountingAccountingAcctRecon=Account ReconciliationAccountingAcctRecons=Account Reconciliations
————————————————————————————————AccountingUiLabels_zh_CN.properties
————————————————————————————————
AccountingAccount=\u5e10\u6237AccountingAccountId=\u5e10\u53f7\u7f16\u53f7AccountingAccountLimit=\u8d26\u6237\u91d1\u989d\u9650\u5236AccountingAccountNumber=\u5e10\u53f7AccountingAccountType=\u5e10\u6237\u7c7b\u578bAccountingAccounts=\u5e10\u6237
————————————————————————————————需要生成的AccountingUiLabels.xml内容如下:
————————————————————————————————
<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <property key="AccountingAccount">
        <value xml:lang="en">Account</value>
        <value xml:lang="zh">账户</value>
    </property>
    <property key="AccountingAccountId">
        <value xml:lang="en">Account ID</value>
        <value xml:lang="zh">账户标识</value>
    </property>
    <property key="AccountingAccountLimit">
        <value xml:lang="en">Account Limit</value>
        <value xml:lang="zh">账户金额限制</value>
    </property>
    <property key="AccountingAccountNumber">
        <value xml:lang="en">Account Number</value>
        <value xml:lang="zh">账户编号</value>
    </property>
    <property key="AccountingAccountType">
        <value xml:lang="en">Account Type</value>
        <value xml:lang="zh">账户类型</value>
    </property>
    <property key="AccountingAccounting">
        <value xml:lang="en">Accounting</value>
    </property>
    <property key="AccountingAccounts">
        <value xml:lang="zh">账户</value>
    </property>
    <property key="AccountingAcctRecon">
        <value xml:lang="en">Account Reconciliation</value>
    </property>
    <property key="AccountingAcctRecons">
        <value xml:lang="en">Account Reconciliations</value>
    </property>
</resource>
————————————————————————————————

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【damong1316】截止到2008-07-21 22:06:11的历史汇总数据(不包括此帖):
    发帖的总数量:1                        发帖的总分数:0                        每贴平均分数:0                        
    回帖的总数量:0                        得分贴总数量:0                        回帖的得分率:0%                       
    结贴的总数量:1                        结贴的总分数:0                        
    无满意结贴数:0                        无满意结贴分:0                        
    未结的帖子数:0                        未结的总分数:0                        
    结贴的百分比:100.00%               结分的百分比:---------------------
    无满意结贴率:0.00  %               无满意结分率:---------------------
    敬礼!