mirror of
https://github.com/mirror/jdownloader.git
synced 2024-11-23 20:19:50 +00:00
Translator
git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@16887 ebf7c1c2-ba36-0410-9fe8-c592906822b4
This commit is contained in:
parent
d9c218fa26
commit
f9e04479fb
@ -282,7 +282,7 @@
|
||||
<copy todir="${dist}/jd/plugins/hoster/">
|
||||
<fileset dir="${cls}/jd/plugins/hoster/">
|
||||
<include name="**/*" />
|
||||
<exclude name="RTMPDownload*"/>
|
||||
<exclude name="RTMPDownload*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<mkdir dir="${dist}/jd/plugins/decrypter/" />
|
||||
@ -303,14 +303,20 @@
|
||||
<echo message="Creating @{package}" />
|
||||
<mkdir dir="${dist}/extensions" />
|
||||
|
||||
|
||||
|
||||
<loadfile property="@{include}.revision" srcFile="src/org/jdownloader/extensions/@{include}/.svn/entries">
|
||||
<filterchain>
|
||||
<headfilter lines="1" skip="10" />
|
||||
<striplinebreaks />
|
||||
</filterchain>
|
||||
</loadfile>
|
||||
<echo message="src/org/jdownloader/extensions/@{include}/.svn/entries Revision ${@{include}.revision}" />
|
||||
<echo file="${cls}/org/jdownloader/extensions/@{include}/version.dat">${extension.revision}</echo>
|
||||
<jar jarfile="${dist}/extensions/@{package}.jar" manifest="${dist}/Manifest.MF">
|
||||
<fileset dir="${cls}">
|
||||
<include name="org/jdownloader/extensions/@{include}" />
|
||||
<include name="org/jdownloader/extensions/@{include}/**/*" />
|
||||
</fileset>
|
||||
<fileset dir="src">
|
||||
<include name="org/jdownloader/extensions/@{include}" />
|
||||
<include name="org/jdownloader/extensions/@{include}/**/*" />
|
||||
<exclude name="**/*.java" />
|
||||
</fileset>
|
||||
</jar>
|
||||
@ -322,24 +328,24 @@
|
||||
<manifest file="${dist}/Manifest.MF">
|
||||
<attribute name="Created-By" value="JD-Team and Friends" />
|
||||
</manifest>
|
||||
<buildAddon package="JDChat" include="chat/**/*" />
|
||||
<buildAddon package="infobar" include="infobar/**/*" />
|
||||
<buildAddon package="JDScheduler" include="schedule/**/*" />
|
||||
<buildAddon package="JDShutdown" include="shutdown/**/*" />
|
||||
<buildAddon package="improveddock" include="improveddock/**/*" />
|
||||
<buildAddon package="JDInfoFileWriter" include="infofilewriter/**/*" />
|
||||
<buildAddon package="JDTray" include="jdtrayicon/**/*" />
|
||||
<buildAddon package="JDPremium" include="jdpremclient/**/*" />
|
||||
<buildAddon package="JDGrowl" include="growl/**/*" />
|
||||
<buildAddon package="AntiShutdown" include="antistandby/**/*" />
|
||||
<buildAddon package="scriptlauncher" include="scriptlauncher/**/*" />
|
||||
<buildAddon package="JDFeedMe" include="jdfeedme/**/*" />
|
||||
<buildAddon package="AntiReconnect" include="antireconnect/**/*" />
|
||||
<buildAddon package="Extraction" include="extraction/**/*" />
|
||||
<buildAddon package="folderwatch" include="folderwatch/**/*" />
|
||||
<buildAddon package="webinterface" include="webinterface/**/*" />
|
||||
<buildAddon package="neembuu" include="neembuu/**/*" />
|
||||
<buildAddon package="translator" include="translator/**/*" />
|
||||
<buildAddon package="JDChat" include="chat" />
|
||||
<buildAddon package="infobar" include="infobar" />
|
||||
<buildAddon package="JDScheduler" include="schedule" />
|
||||
<buildAddon package="JDShutdown" include="shutdown" />
|
||||
<buildAddon package="improveddock" include="improveddock" />
|
||||
|
||||
<buildAddon package="JDTray" include="jdtrayicon" />
|
||||
|
||||
<buildAddon package="JDGrowl" include="growl" />
|
||||
<buildAddon package="AntiShutdown" include="antistandby" />
|
||||
|
||||
|
||||
<buildAddon package="AntiReconnect" include="antireconnect" />
|
||||
<buildAddon package="Extraction" include="extraction" />
|
||||
<buildAddon package="folderwatch" include="folderwatch" />
|
||||
<buildAddon package="webinterface" include="webinterface" />
|
||||
<buildAddon package="neembuu" include="neembuu" />
|
||||
<buildAddon package="translator" include="translator" />
|
||||
<delete file="${dist}/Manifest.MF" failonerror="false" />
|
||||
</target>
|
||||
|
||||
|
@ -32,7 +32,7 @@ public abstract class ExtensionConfigPanel<T extends AbstractExtension> extends
|
||||
|
||||
plg.getSettings().getStorageHandler().getEventSender().addListener(this);
|
||||
if (!clean) {
|
||||
header = new Header(plg.getName(), plg.getIcon(32), keyHandlerEnabled);
|
||||
header = new Header(plg.getName(), plg.getIcon(32), keyHandlerEnabled, extension.getVersion());
|
||||
|
||||
add(header, "spanx,growx,pushx");
|
||||
|
||||
|
@ -22,6 +22,7 @@ public class Header extends JPanel {
|
||||
private JLabel label;
|
||||
private JCheckBox enabled;
|
||||
private JLabel iconLabel;
|
||||
private int version;
|
||||
|
||||
public Header(String name, ImageIcon icon) {
|
||||
super(new MigLayout("ins 0", "[35!]5[]10[grow,fill]"));
|
||||
@ -37,11 +38,21 @@ public class Header extends JPanel {
|
||||
}
|
||||
|
||||
public Header(String name, ImageIcon icon, BooleanKeyHandler listener) {
|
||||
|
||||
}
|
||||
|
||||
public Header(String name, ImageIcon icon, BooleanKeyHandler listener, int version) {
|
||||
|
||||
super(new MigLayout("ins 0", "[35!]5[]10[grow,fill]10[]2[]"));
|
||||
iconLabel = new JLabel(icon);
|
||||
add(iconLabel, "alignx right");
|
||||
if (version > 0) {
|
||||
label = new JLabel("<html><u><b>" + name + "</b> Version " + version + "</u></html>");
|
||||
} else {
|
||||
label = new JLabel("<html><u><b>" + name + "</b></u></html>");
|
||||
}
|
||||
|
||||
this.version = version;
|
||||
label.setBorder(null);
|
||||
|
||||
add(label);
|
||||
|
@ -679,12 +679,15 @@ public class TranslatorGui extends AddonPanel<TranslatorExtension> implements Li
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (getExtension().getLoadedLocale() != null && getExtension().getTranslationEntries() != null) {
|
||||
int[] sel = table.getSelectedRows();
|
||||
|
||||
if (sel.length > 0) {
|
||||
lbl.setText("Translation: " + getExtension().getLoadedLocale() + " - " + getExtension().getPercent() + "% translated (" + getExtension().getOK() + "/" + getExtension().getTranslationEntries().size() + ") " + "Selected: " + sel.length);
|
||||
|
||||
} else {
|
||||
lbl.setText("Translation: " + getExtension().getLoadedLocale() + " - " + getExtension().getPercent() + "% translated (" + getExtension().getOK() + "/" + getExtension().getTranslationEntries().size() + ")");
|
||||
}
|
||||
} else {
|
||||
lbl.setText("Please Log In & Load a Language");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user