From 111a2ca97d898c95006362b307a8d3d6d964a45b Mon Sep 17 00:00:00 2001
From: jpikus <jpikus@localhost>
Date: Fri, 05 Dec 2008 07:42:25 +0000
Subject: [PATCH] L10n localization of the generated files

---
 opends/build.xml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/opends/build.xml b/opends/build.xml
index d975784..33238c9 100644
--- a/opends/build.xml
+++ b/opends/build.xml
@@ -147,6 +147,10 @@
   <property name="msg.package.dir" location="${classes.dir}/messages" />
   <property name="msg.src.dir"     location="${msg.dir}/src" />
 
+  <!-- Properties for L10n for generating messages. -->
+  <property name="msgl10n.prop.dir"  location="src/admin/messages/" />
+
+
   <!-- Properties for SNMP extension. -->
   <property name="snmp.mib.dir"      location="src/snmp/resource/mib" />
   <property name="snmp.security.dir" location="src/snmp/resource/security" />
@@ -695,6 +699,13 @@
     </copy>
   </target>
 
+  <!-- copy the l10n message properties files (for generated messages)-->
+  <target name="copyl10nmessages">
+    <echo message="JPI"/>
+    <copy todir="${msg.package.dir}">
+    <fileset dir="${msgl10n.prop.dir}" />
+    </copy>
+  </target>
 
 
   <!--
@@ -760,6 +771,7 @@
     <!-- copy the message properties files -->
     <antcall target="copymessages" />
 
+
     <!-- copy the message descriptor registry file -->
     <copy todir="${classes.dir}/org/opends/messages"
           file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />
@@ -916,6 +928,10 @@
     <!-- copy the message properties files -->
     <antcall target="copymessages" />
 
+    <!-- copy the l10n message properties files -->
+    <antcall target="copyl10nmessages" />
+
+
     <!-- copy the message descriptor registry file -->
     <copy todir="${classes.dir}/org/opends/messages"
           file="${msg.javagen.dir}/org/opends/messages/descriptors.reg" />

--
Gitblit v1.10.0