mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-31 23:38:20 -04:00
Added it translation. Switched to wepp.
This commit is contained in:
parent
8e21a3c038
commit
a8f62f187c
10 changed files with 84 additions and 44 deletions
|
@ -10,6 +10,12 @@ It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-1733
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
|
||||||
|
### v0.15.2 · *2011-09-18*
|
||||||
|
|
||||||
|
* added it translation by [Salvo Gentile](http://github.com/SalvoGentile) and [Marco Patriarca](http://github.com/Fexys)
|
||||||
|
* switched build process from scripp to wepp
|
||||||
|
|
||||||
|
|
||||||
### v0.15.1 · *2011-09-06*
|
### v0.15.1 · *2011-09-06*
|
||||||
|
|
||||||
* fixed security issues with the zipped download feature
|
* fixed security issues with the zipped download feature
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
custom = true
|
custom = true
|
||||||
|
|
||||||
|
|
||||||
# project
|
# project
|
||||||
project.name = h5ai
|
project.name = h5ai
|
||||||
project.version = 0.15.1
|
project.version = 0.15.2
|
||||||
|
|
||||||
|
|
||||||
# src
|
# src
|
||||||
src.dir = src
|
src.dir = src
|
||||||
|
|
||||||
|
|
||||||
# build
|
# build
|
||||||
build.dir = build
|
build.dir = build
|
||||||
release.dir = release
|
release.dir = release
|
||||||
|
|
||||||
|
|
||||||
# libs
|
# tools
|
||||||
lib.scripp.jar = tools/scripp.jar
|
wepp = tools/wepp
|
||||||
|
|
||||||
|
|
38
build.xml
38
build.xml
|
@ -3,8 +3,10 @@
|
||||||
name="h5ai"
|
name="h5ai"
|
||||||
basedir="."
|
basedir="."
|
||||||
default="release"
|
default="release"
|
||||||
xmlns:scripp="antlib:de.larsjung.scripp.ant"
|
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<import file="tools/wepp.ant.xml" />
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<property file="build.properties" />
|
<property file="build.properties" />
|
||||||
<tstamp>
|
<tstamp>
|
||||||
|
@ -12,20 +14,13 @@
|
||||||
</tstamp>
|
</tstamp>
|
||||||
<property name="build.label" value="${project.name} ${project.version} b${build.stamp}" />
|
<property name="build.label" value="${project.name} ${project.version} b${build.stamp}" />
|
||||||
<echo>Build: ${build.label}</echo>
|
<echo>Build: ${build.label}</echo>
|
||||||
<taskdef
|
|
||||||
resource="de/larsjung/scripp/ant/antlib.xml"
|
|
||||||
uri="antlib:de.larsjung.scripp.ant"
|
|
||||||
classpath="${lib.scripp.jar}"
|
|
||||||
/>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean" depends="init">
|
||||||
<delete dir="${build.dir}" />
|
<delete dir="${build.dir}" />
|
||||||
<delete dir="${release.dir}" />
|
<delete dir="${release.dir}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="build-prepare" depends="clean">
|
<target name="build-prepare" depends="clean">
|
||||||
<mkdir dir="${build.dir}" />
|
<mkdir dir="${build.dir}" />
|
||||||
<copy todir="${build.dir}">
|
<copy todir="${build.dir}">
|
||||||
|
@ -41,19 +36,16 @@
|
||||||
</replace>
|
</replace>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="build" depends="build-prepare">
|
<target name="build" depends="build-prepare">
|
||||||
<scripp.dir dir="${build.dir}/h5ai/css" />
|
<wepp.dir dir="${build.dir}/h5ai/css" />
|
||||||
<scripp.dir dir="${build.dir}/h5ai/js" />
|
<wepp.dir dir="${build.dir}/h5ai/js" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="build-uncompressed" depends="build-prepare">
|
<target name="build-uncompressed" depends="build-prepare">
|
||||||
<scripp.dir dir="${build.dir}/h5ai/css" compress="false" />
|
<wepp.dir dir="${build.dir}/h5ai/css" args="--nc" />
|
||||||
<scripp.dir dir="${build.dir}/h5ai/js" compress="false" />
|
<wepp.dir dir="${build.dir}/h5ai/js" args="--nc" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="release" depends="build">
|
<target name="release" depends="build">
|
||||||
<mkdir dir="${release.dir}" />
|
<mkdir dir="${release.dir}" />
|
||||||
<zip destfile="${release.dir}/${project.name}-${project.version}.zip" basedir="${build.dir}" />
|
<zip destfile="${release.dir}/${project.name}-${project.version}.zip" basedir="${build.dir}" />
|
||||||
|
@ -62,20 +54,4 @@
|
||||||
<delete file="${release.dir}/${project.name}-${project.version}.tar" />
|
<delete file="${release.dir}/${project.name}-${project.version}.tar" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<macrodef name="scripp.dir">
|
|
||||||
<attribute name="dir" />
|
|
||||||
<attribute name="compress" default="true" />
|
|
||||||
<sequential>
|
|
||||||
<scripp:process compress="@{compress}">
|
|
||||||
<fileset dir="@{dir}" includes="**/*.less,**/*.css,**/*.js" excludes="inc/**/*,**/*.min.css,**/*.min.js" />
|
|
||||||
<globmapper from="*.less" to="*.css" />
|
|
||||||
<globmapper from="*.css" to="*.css" />
|
|
||||||
<globmapper from="*.js" to="*.js" />
|
|
||||||
</scripp:process>
|
|
||||||
<delete dir="@{dir}/inc">
|
|
||||||
<fileset dir="@{dir}" includes="**/*.less" />
|
|
||||||
</delete>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Binary file not shown.
BIN
release/h5ai-0.15.2.tar.gz
Normal file
BIN
release/h5ai-0.15.2.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -234,9 +234,9 @@ h5aiLangs = {
|
||||||
"size": "Boyut",
|
"size": "Boyut",
|
||||||
"parentDirectory": "Üst Dizin",
|
"parentDirectory": "Üst Dizin",
|
||||||
"empty": "boş",
|
"empty": "boş",
|
||||||
"folders": "folders",
|
"folders": "klasörler",
|
||||||
"files": "files",
|
"files": "dosyalar",
|
||||||
"download": "download"
|
"download": "indir"
|
||||||
},
|
},
|
||||||
|
|
||||||
"pt": {
|
"pt": {
|
||||||
|
@ -278,7 +278,7 @@ h5aiLangs = {
|
||||||
"empty": "tukšs",
|
"empty": "tukšs",
|
||||||
"folders": "mapes",
|
"folders": "mapes",
|
||||||
"files": "faili",
|
"files": "faili",
|
||||||
"download": "download"
|
"download": "lejupielādēt"
|
||||||
},
|
},
|
||||||
|
|
||||||
"zh-cn": {
|
"zh-cn": {
|
||||||
|
@ -321,5 +321,19 @@ h5aiLangs = {
|
||||||
"folders": "папки",
|
"folders": "папки",
|
||||||
"files": "файлы",
|
"files": "файлы",
|
||||||
"download": "download"
|
"download": "download"
|
||||||
}
|
},
|
||||||
|
|
||||||
|
"it": {
|
||||||
|
"lang": "italiano",
|
||||||
|
"details": "dettagli",
|
||||||
|
"icons": "icone",
|
||||||
|
"name": "Nome",
|
||||||
|
"lastModified": "Ultima modifica",
|
||||||
|
"size": "Dimensione",
|
||||||
|
"parentDirectory": "Cartella Superiore",
|
||||||
|
"empty": "vuota",
|
||||||
|
"folders": "cartelle",
|
||||||
|
"files": "file",
|
||||||
|
"download": "download"
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
BIN
tools/scripp.jar
BIN
tools/scripp.jar
Binary file not shown.
4
tools/wepp
Executable file
4
tools/wepp
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#! /usr/bin/env node
|
||||||
|
// -*- js -*-
|
||||||
|
|
||||||
|
require("wepp").processArgs(process.argv);
|
40
tools/wepp.ant.xml
Normal file
40
tools/wepp.ant.xml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project name="wepp.macros" basedir=".">
|
||||||
|
|
||||||
|
<macrodef name="wepp">
|
||||||
|
<attribute name="file" />
|
||||||
|
<attribute name="toFile" />
|
||||||
|
<attribute name="args" default="" />
|
||||||
|
<sequential>
|
||||||
|
<exec executable="${wepp}">
|
||||||
|
<arg line="@{args}" />
|
||||||
|
<arg value="--in" />
|
||||||
|
<arg value="@{file}" />
|
||||||
|
<arg value="--out" />
|
||||||
|
<arg value="@{toFile}" />
|
||||||
|
</exec>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<macrodef name="wepp.dir">
|
||||||
|
<attribute name="dir" />
|
||||||
|
<attribute name="args" default="" />
|
||||||
|
<sequential>
|
||||||
|
<exec executable="${wepp}">
|
||||||
|
<arg line="@{args}" />
|
||||||
|
<arg value="--inDir" />
|
||||||
|
<arg value="@{dir}" />
|
||||||
|
<arg value="--outDir" />
|
||||||
|
<arg value="@{dir}" />
|
||||||
|
</exec>
|
||||||
|
<delete dir="@{dir}/inc">
|
||||||
|
<fileset
|
||||||
|
dir="."
|
||||||
|
includes="@{dir}/**/*.less"
|
||||||
|
excludes="@{dir}/inc/**,@{dir}/lib/**"
|
||||||
|
/>
|
||||||
|
</delete>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
</project>
|
Loading…
Add table
Add a link
Reference in a new issue