- Add bundle and poupdate targets
- bundle-messages.sh fixes
This commit is contained in:
31
build.xml
31
build.xml
@ -154,7 +154,36 @@
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile" description="Build jar in ./build">
|
||||
<target name="bundle" depends="compile" description="process the translations">
|
||||
<!-- Update the messages_*.po files -->
|
||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||
<arg value="./bundle-messages.sh" />
|
||||
</exec>
|
||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||
<arg value="./bundle-messages.sh" />
|
||||
</exec>
|
||||
<exec executable="sh" osfamily="windows" failifexecutionfails="false" >
|
||||
<arg value="./bundle-messages.sh" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="poupdate" depends="compile" description="generate the translation files">
|
||||
<!-- Update the messages_*.po files. -->
|
||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
||||
<arg value="./bundle-messages.sh" />
|
||||
<arg value="-p" />
|
||||
</exec>
|
||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
||||
<arg value="./bundle-messages.sh" />
|
||||
<arg value="-p" />
|
||||
</exec>
|
||||
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
||||
<arg value="./bundle-messages.sh" />
|
||||
<arg value="-p" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile, bundle" description="Build jar in ./build">
|
||||
<property name="build.built-by" value="unknown" />
|
||||
<jar jarfile="${build.dir}/syndie.jar">
|
||||
<fileset dir="${build.dir}/obj" />
|
||||
|
@ -65,6 +65,7 @@ do
|
||||
# then ant distclean poupdate.
|
||||
find $JPATHS -name *.java > $TMPFILE
|
||||
xgettext -f $TMPFILE -F -L java --from-code=UTF-8 --add-comments\
|
||||
--keyword=getText \
|
||||
--keyword=strans \
|
||||
--keyword=_x \
|
||||
-o ${i}t
|
||||
|
@ -605,7 +605,7 @@ public class ManageReferenceChooser extends BaseComponent implements Translatabl
|
||||
public void translate(TranslationRegistry registry) {
|
||||
_colDescription.setText(registry.getText("Description"));
|
||||
_colType.setText(registry.getText("Type"));
|
||||
_colTarget.setText(registry.getText(""));
|
||||
_colTarget.setText("");
|
||||
_colName.setText(registry.getText("Name"));
|
||||
_add.setText(registry.getText("Add"));
|
||||
_addChild.setText(registry.getText("Add child"));
|
||||
|
@ -1113,7 +1113,7 @@ public class Syndicator extends BaseComponent implements Translatable, Themeable
|
||||
|
||||
|
||||
public void translate(TranslationRegistry registry) {
|
||||
_colName.setText(registry.getText(""));
|
||||
_colName.setText("");
|
||||
_colName.setImage(ImageUtil.ICON_REF_ARCHIVE);
|
||||
_colTime.setText(registry.getText("Time"));
|
||||
_colStatus.setText(registry.getText("Status"));
|
||||
|
Reference in New Issue
Block a user