mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-27 20:10:16 +02:00
5.83
-2FA dialog translate
This commit is contained in:
parent
78a94f5959
commit
cfcd1f99ed
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tonikelope</groupId>
|
||||
<artifactId>MegaBasterd</artifactId>
|
||||
<version>5.82</version>
|
||||
<version>5.83</version>
|
||||
<packaging>jar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@ -86,7 +86,7 @@
|
||||
</DimensionLayout>
|
||||
<DimensionLayout dim="1">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="file_tree_scrollpane" alignment="0" pref="224" max="32767" attributes="0"/>
|
||||
<Component id="file_tree_scrollpane" alignment="0" pref="228" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
</Layout>
|
||||
@ -189,6 +189,9 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="18" style="0"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
<Property name="enabled" type="boolean" value="false"/>
|
||||
</Properties>
|
||||
|
@ -178,7 +178,7 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
|
||||
);
|
||||
jPanel1Layout.setVerticalGroup(
|
||||
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(file_tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE)
|
||||
.addComponent(file_tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
|
||||
);
|
||||
|
||||
jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Upload info"));
|
||||
@ -189,6 +189,7 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
|
||||
dir_name_label.setEnabled(false);
|
||||
|
||||
dir_name_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
|
||||
dir_name_textfield.setBorder(null);
|
||||
dir_name_textfield.setDoubleBuffered(true);
|
||||
dir_name_textfield.setEnabled(false);
|
||||
|
||||
|
@ -143,6 +143,9 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="18" style="0"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
<Property name="enabled" type="boolean" value="false"/>
|
||||
</Properties>
|
||||
|
@ -183,6 +183,7 @@ public class FileSplitterDialog extends javax.swing.JDialog {
|
||||
split_size_label.setEnabled(false);
|
||||
|
||||
split_size_text.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
|
||||
split_size_text.setBorder(null);
|
||||
split_size_text.setDoubleBuffered(true);
|
||||
split_size_text.setEnabled(false);
|
||||
|
||||
|
@ -39,8 +39,8 @@
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="email_label" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="please_label" alignment="1" max="32767" attributes="0"/>
|
||||
<Component id="current_code_textfield" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="current_code_textfield" max="32767" attributes="0"/>
|
||||
<Component id="please_label" alignment="0" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</Group>
|
||||
@ -135,16 +135,28 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="24" style="1"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" value="Please enter 2FA PIN CODE:"/>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||
<Connection code="LabelTranslatorSingleton.getInstance().translate("Please enter 2FA PIN CODE")" type="code"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JTextField" name="current_code_textfield">
|
||||
<Properties>
|
||||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||
<Color blue="99" green="66" red="0" type="rgb"/>
|
||||
</Property>
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="24" style="0"/>
|
||||
</Property>
|
||||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||
<Color blue="ff" green="ff" red="ff" type="rgb"/>
|
||||
</Property>
|
||||
<Property name="horizontalAlignment" type="int" value="0"/>
|
||||
<Property name="toolTipText" type="java.lang.String" value=""/>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
|
@ -14,6 +14,8 @@ public class Get2FACode extends javax.swing.JDialog {
|
||||
|
||||
private String _pin_code;
|
||||
|
||||
private static final int MAX_CODE_LENGTH = 6;
|
||||
|
||||
public boolean isCode_ok() {
|
||||
return _code_ok;
|
||||
}
|
||||
@ -89,11 +91,15 @@ public class Get2FACode extends javax.swing.JDialog {
|
||||
status_label.setDoubleBuffered(true);
|
||||
|
||||
please_label.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N
|
||||
please_label.setText("Please enter 2FA PIN CODE:");
|
||||
please_label.setText(LabelTranslatorSingleton.getInstance().translate("Please enter 2FA PIN CODE"));
|
||||
please_label.setDoubleBuffered(true);
|
||||
|
||||
current_code_textfield.setBackground(new java.awt.Color(0, 102, 153));
|
||||
current_code_textfield.setFont(new java.awt.Font("Dialog", 0, 24)); // NOI18N
|
||||
current_code_textfield.setForeground(new java.awt.Color(255, 255, 255));
|
||||
current_code_textfield.setHorizontalAlignment(javax.swing.JTextField.CENTER);
|
||||
current_code_textfield.setToolTipText("");
|
||||
current_code_textfield.setBorder(null);
|
||||
current_code_textfield.setDoubleBuffered(true);
|
||||
current_code_textfield.addKeyListener(new java.awt.event.KeyAdapter() {
|
||||
public void keyTyped(java.awt.event.KeyEvent evt) {
|
||||
@ -122,8 +128,8 @@ public class Get2FACode extends javax.swing.JDialog {
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(email_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(please_label, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(current_code_textfield))))
|
||||
.addComponent(current_code_textfield)
|
||||
.addComponent(please_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
|
||||
.addContainerGap())
|
||||
);
|
||||
layout.setVerticalGroup(
|
||||
@ -174,7 +180,7 @@ public class Get2FACode extends javax.swing.JDialog {
|
||||
|
||||
private void current_code_textfieldKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_current_code_textfieldKeyTyped
|
||||
|
||||
if (!Character.isDigit(evt.getKeyChar()) && evt.getKeyCode() != KeyEvent.VK_BACK_SPACE && evt.getKeyCode() != KeyEvent.VK_DELETE) {
|
||||
if (current_code_textfield.getText().length() == MAX_CODE_LENGTH || (!Character.isDigit(evt.getKeyChar()) && evt.getKeyCode() != KeyEvent.VK_BACK_SPACE && evt.getKeyCode() != KeyEvent.VK_DELETE)) {
|
||||
evt.consume();
|
||||
}
|
||||
|
||||
|
@ -84,6 +84,9 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="18" style="0"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
|
@ -99,6 +99,7 @@ public class GetMasterPasswordDialog extends javax.swing.JDialog {
|
||||
setTitle("Master password unlock");
|
||||
|
||||
current_pass_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
|
||||
current_pass_textfield.setBorder(null);
|
||||
current_pass_textfield.setDoubleBuffered(true);
|
||||
current_pass_textfield.addKeyListener(new java.awt.event.KeyAdapter() {
|
||||
public void keyPressed(java.awt.event.KeyEvent evt) {
|
||||
|
@ -38,6 +38,7 @@ public final class LabelTranslatorSingleton {
|
||||
|
||||
_addTranslation("There are a lot of files in this folder.\nNot all links will be provisioned at once to avoid saturating MegaBasterd", "Hay muchos archivos en esta carpeta.\nNo se aprovisionarán todos los enlaces de una vez para evitar saturar MegaBasterd");
|
||||
_addTranslation("MEGA LINK ERROR!", "¡ENLACE DE MEGA ERRÓNEO!");
|
||||
_addTranslation("Please enter 2FA PIN CODE", "Por favor, introduce el CÓDIGO 2FA");
|
||||
_addTranslation("Font:", "Fuente:");
|
||||
_addTranslation("Loading...", "Cargando...");
|
||||
_addTranslation("DEFAULT", "POR DEFECTO");
|
||||
|
@ -48,7 +48,7 @@ import javax.swing.UIManager;
|
||||
*/
|
||||
public final class MainPanel {
|
||||
|
||||
public static final String VERSION = "5.82";
|
||||
public static final String VERSION = "5.83";
|
||||
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
||||
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
||||
public static final int STREAMER_PORT = 1337;
|
||||
|
@ -105,6 +105,9 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="18" style="0"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
@ -182,6 +185,9 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="18" style="0"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
|
@ -93,6 +93,7 @@ public class SetMasterPasswordDialog extends javax.swing.JDialog {
|
||||
setResizable(false);
|
||||
|
||||
confirm_pass_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
|
||||
confirm_pass_textfield.setBorder(null);
|
||||
confirm_pass_textfield.setDoubleBuffered(true);
|
||||
confirm_pass_textfield.addKeyListener(new java.awt.event.KeyAdapter() {
|
||||
public void keyPressed(java.awt.event.KeyEvent evt) {
|
||||
@ -137,6 +138,7 @@ public class SetMasterPasswordDialog extends javax.swing.JDialog {
|
||||
new_pass_label.setDoubleBuffered(true);
|
||||
|
||||
new_pass_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
|
||||
new_pass_textfield.setBorder(null);
|
||||
new_pass_textfield.setDoubleBuffered(true);
|
||||
|
||||
status_label.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 186 KiB |
Loading…
x
Reference in New Issue
Block a user