~ubuntu-branches/ubuntu/raring/accessodf/raring

« back to all changes in this revision

Viewing changes to l10n/build.xml

  • Committer: Package Import Robot
  • Author(s): Sebastian Humenda
  • Date: 2012-04-09 11:21:13 UTC
  • Revision ID: package-import@ubuntu.com-20120409112113-v0kmfdj1ks80xoj8
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<project name="odt2braille-l10n" default="l10n" basedir=".">
 
3
    <description>Convert UTF-8 encoded properties files into ASCII encoded files.</description>
 
4
        
 
5
        <target name="l10n">
 
6
        
 
7
            <property name="jdk.home" value="C:\Program Files (x86)\Java\jdk1.6.0_17"/>
 
8
                <property name="native2ascii.executable" value="${jdk.home}/bin/native2ascii"/>
 
9
        
 
10
        <macrodef name="utf8-to-ascii">
 
11
                <attribute name="path"/>
 
12
                <attribute name="dir"/>
 
13
            <sequential>
 
14
                <delete>
 
15
                    <fileset dir="../@{dir}/@{path}" includes="*.properties"/>
 
16
                </delete>
 
17
                <apply executable="${native2ascii.executable}"
 
18
                       dest="../@{dir}/@{path}"
 
19
                       parallel="false">
 
20
                    <arg value="-encoding"/>
 
21
                    <arg value="utf-8"/>
 
22
                    <srcfile/>
 
23
                    <targetfile/>
 
24
                    <fileset dir="@{path}" includes="*.utf.properties"/>
 
25
                    <mapper type="glob" from="*.utf.properties" to="*.properties"/>
 
26
                </apply>
 
27
            </sequential>
 
28
        </macrodef>
 
29
        
 
30
        <utf8-to-ascii path="be/docarch/accessibility/ooo/l10n" dir="addon"/>
 
31
        <utf8-to-ascii path="be/docarch/accessibility/ooo/toolpanel/l10n" dir="addon"/>
 
32
 
 
33
        </target>
 
34
</project>