Author: jleroux
Date: Fri Sep 23 18:09:19 2016
New Revision: 1762077
URL: http://svn.apache.org/viewvc?rev=1762077&view=rev
Log:
Improves: Translate the svn and git info footers
(OFBIZ-7798)
We slightly changed the old format of the footer. The old format used only the
translated words _uiLabelMap.CommonBuiltOn_ and _uiLabelMap.CommonWith_.
On the other hand, the new format contains the words Branch, Revision,
Built On and Java Version.
We need to translate all four words in the CommonUiLabels.xml and then
incorporate them
old version:
" - Release-revision : ${releasePath}-r${info.entry.commit(revision)},
${uiLabelMap.CommonBuiltOn} ${dateTime} ${uiLabelMap.CommonWith}
Java ${java.version}
new version:
"Branch: ${info.entry.url.text()}" + System.lineSeparator()
"Revision: ${info.entry.commit.@revision}" + System.lineSeparator()
"Built on: ${timestamp}" + System.lineSeparator()
"Java Version: ${org.gradle.internal.jvm.Jvm.current()}"
Thanks: Taher Alkhateeb for the 1st patch
Modified:
ofbiz/trunk/build.gradle
ofbiz/trunk/framework/common/config/CommonUiLabels.xml
ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml
Modified: ofbiz/trunk/build.gradle
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1762077&r1=1762076&r2=1762077&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Fri Sep 23 18:09:19 2016
@@ -801,10 +801,10 @@ task gitInfoFooter(group: committerGroup
revision = revisionOutput.toString()
gitFooterFile.delete()
gitFooterFile.createNewFile()
- gitFooterFile << '${uiLabelMap.Branch} : ' + "${branch}" +
System.lineSeparator()
- gitFooterFile << '${uiLabelMap.Revision} : ' + "${revision}" +
System.lineSeparator()
- gitFooterFile << '${uiLabelMap.BuiltOn} : ' + "${timestamp}" +
System.lineSeparator()
- gitFooterFile << '${uiLabelMap.JavaVersion} : ' +
"${org.gradle.internal.jvm.Jvm.current()}"
+ gitFooterFile << '${uiLabelMap.CommonBranch} : ' + "${branch}" +
System.lineSeparator()
+ gitFooterFile << '${uiLabelMap.CommonRevision} : ' + "${revision}" +
System.lineSeparator()
+ gitFooterFile << '${uiLabelMap.CommonBuiltOn} : ' + "${timestamp}" +
System.lineSeparator()
+ gitFooterFile << '${uiLabelMap.CommonJavaVersion} : ' +
"${org.gradle.internal.jvm.Jvm.current()}"
}
task svnInfoFooter(group: committerGroup, description: 'Update the Subversion
revision info in the footer if Subversion is used') << {
@@ -824,10 +824,10 @@ task svnInfoFooter(group: committerGroup
def info = new XmlParser().parseText(svnOutput.toString())
svnFooterFile.delete()
svnFooterFile.createNewFile()
- svnFooterFile << '${uiLabelMap.Branch} : ' + "${info.entry.url.text()}" +
System.lineSeparator()
- svnFooterFile << '${uiLabelMap.Revision} : ' +
"${info.entry.commit.@revision}" + System.lineSeparator()
- svnFooterFile << '${uiLabelMap.BuiltOn} : ' + "${timestamp}" +
System.lineSeparator()
- svnFooterFile << '${uiLabelMap.JavaVersion} : ' +
"${org.gradle.internal.jvm.Jvm.current()}"
+ svnFooterFile << '${uiLabelMap.CommonBranch} : ' +
"${info.entry.url.text()}" + System.lineSeparator()
+ svnFooterFile << '${uiLabelMap.CommonRevision} : ' +
"${info.entry.commit.@revision}" + System.lineSeparator()
+ svnFooterFile << '${uiLabelMap.CommonBuiltOn} : ' + "${timestamp}" +
System.lineSeparator()
+ svnFooterFile << '${uiLabelMap.CommonJavaVersion} : ' +
"${org.gradle.internal.jvm.Jvm.current()}"
}
/* ========================================================
Modified: ofbiz/trunk/framework/common/config/CommonUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/config/CommonUiLabels.xml?rev=1762077&r1=1762076&r2=1762077&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/config/CommonUiLabels.xml (original)
+++ ofbiz/trunk/framework/common/config/CommonUiLabels.xml Fri Sep 23 18:09:19
2016
@@ -1363,6 +1363,10 @@
<value xml:lang="zh-CN">让å©</value>
<value xml:lang="zh-TW">åå ±</value>
</property>
+ <property key="CommonBranch">
+ <value xml:lang="en">branch</value>
+ <value xml:lang="fr">branche</value>
+ </property>
<property key="CommonBuiltOn">
<value xml:lang="en">built on</value>
<value xml:lang="fr">compilée le</value>
@@ -5836,6 +5840,10 @@
<value xml:lang="zh-CN">䏿</value>
<value xml:lang="zh-TW">䏿</value>
</property>
+ <property key="CommonJavaVersion">
+ <value xml:lang="en">with java version:</value>
+ <value xml:lang="fr">avec la version de Java : </value>
+ </property>
<property key="CommonJuly">
<value xml:lang="ar">ÙÙÙÙÙ</value>
<value xml:lang="cs">Äervenec</value>
@@ -9969,6 +9977,10 @@
<value xml:lang="zh-CN">è¯è®º</value>
<value xml:lang="zh-TW">è©è«</value>
</property>
+ <property key="CommonRevision">
+ <value xml:lang="en">revision</value>
+ <value xml:lang="fr">révision</value>
+ </property>
<property key="CommonRole">
<value xml:lang="en">Role</value>
<value xml:lang="nl">Rol</value>
Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml?rev=1762077&r1=1762076&r2=1762077&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml (original)
+++ ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml Fri Sep 23
18:09:19 2016
@@ -2843,18 +2843,6 @@
<value xml:lang="zh">Javaç±»å</value>
<value xml:lang="zh-TW">JAVAé¡å</value>
</property>
- <property key="WebtoolsJavaVersionIs5">
- <value xml:lang="de">Hinweis: Einige Funktionen benötigen Java 5; ist
die Java-Version [${javaVer}] tatsächlich 5 oder höher?</value>
- <value xml:lang="en">Note: certain things only work in Java 5. Java
Version is ${javaVer}; is Java 5 ?</value>
- <value xml:lang="fr">Note: certaines choses ne fonctionnent qu'avec
Java 5. La version de Java est: ${javaVer}; c'est Java 5 ?</value>
- <value xml:lang="it">Nota: certe cose funzionano solo con Java 5.
Versione Java è ${javaVer}; è Java 5 ?</value>
- <value xml:lang="ja">注æ: Java 5 ã§ã®ã¿å®è¡å¯è½ã§ããJava
ãã¼ã¸ã§ã³ã¯ ${javaVer}</value>
- <value xml:lang="pt">Nota: certas coisas só funcionam em Java 5. A
versão Java é de R ${javaVer}; é Java 5?</value>
- <value xml:lang="th">หมายà¹à¸«à¸à¸¸:
à¸à¸²à¸£à¸à¸³à¸à¸²à¸à¸à¸²à¸à¸à¸¢à¹à¸²à¸à¸à¸°à¸à¹à¸à¸à¸à¸³à¹à¸
Java 5. Java à¹à¸§à¸à¸£à¹à¸à¸±à¸à¸à¸µà¹${javaVer}; Java 5 ?</value>
- <value xml:lang="vi">Ghi chú: chá» thá»±c hiá»n ÄÆ°á»£c trên Java
5. Phiên bản Java của bạn ${javaVer} có phải là Java 5?</value>
- <value xml:lang="zh">注æï¼æäºç¨åºåªè½è¿è¡å¨Java
5ä¸ãJavaçæ¬æ¯${javaVer}ï¼æ¯Java 5åï¼</value>
- <value xml:lang="zh-TW">注æ:æäºç¨å¼åªè½å·è¡å¨JAVA
5ä¸.JAVAçæ¬æ¯${javaVer};æ¯JAVA 5åï¼</value>
- </property>
<property key="WebtoolsJob">
<value xml:lang="de">Job</value>
<value xml:lang="en">Job</value>