# Conflicts:
#	nbproject/private/private.xml
#	settings.ini
This commit is contained in:
2025-05-01 20:08:18 +05:00
7 changed files with 25 additions and 17 deletions

View File

@ -5,4 +5,4 @@ do.jlink=false
javac.debug=true
javadoc.preview=true
jlink.strip=false
user.properties.file=C:\\Users\\irigm\\AppData\\Roaming\\NetBeans\\25\\build.properties
user.properties.file=C:\\Users\\ivanov.i\\AppData\\Roaming\\NetBeans\\25\\build.properties

View File

@ -3,8 +3,11 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/O:/MyDocuments/projects/Workspace_JavaWin/GettextDB/src/potoxml/FileFinder.java</file>
<file>file:/O:/MyDocuments/projects/Workspace_JavaWin/GettextDB/src/potoxml/NewJFrame.java</file>
<file>file:/O:/projects/Workspace_Java/GettextDB/src/potoxml/AssemblyJFrame.java</file>
<file>file:/O:/projects/Workspace_Java/GettextDB/src/potoxml/NewJFrame.java</file>
<file>file:/O:/projects/Workspace_Java/GettextDB/src/tools/Tools.java</file>
<file>file:/O:/projects/Workspace_Java/GettextDB/src/tools/Net.java</file>
<file>file:/O:/projects/Workspace_Java/GettextDB/src/tools/Download2.java</file>
</group>
</open-files>
</project-private>

View File

@ -4,9 +4,9 @@ db_user = app_translation_2
db_password = ZsiVuv7l4iTpVJgtP0tg
[path0]
path = O\:\\projects\\Workspace_PHP\\transit.istt.kz
path = O:\\projects\\Workspace_Java\\kz.istransit.jwt-dev
check = trt(
extensions = (.*\\.php$)||(.*\\.xml$)||(.*\\.js$)
extensions = (.*\\.java$)||(.*\\.xml$)||(.*\\.js$)
pattern = [0-9|a-z|A-Z|_]+
type = 5
@ -16,4 +16,5 @@ check = trt(
extensions = (.*\\.php$)||(.*\\.xml$)||(.*\\.js$)
pattern = [0-9|a-z|A-Z|_]+
type = 7
system = 4

View File

@ -76,11 +76,12 @@
<Component class="javax.swing.JTable" name="jTable1">
<Properties>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="4" rowCount="0">
<Table columnCount="5" rowCount="0">
<Column editable="true" title="id" type="java.lang.String"/>
<Column editable="true" title="lng 1" type="java.lang.String"/>
<Column editable="true" title="lng 2" type="java.lang.String"/>
<Column editable="true" title="lng 3" type="java.lang.String"/>
<Column editable="true" title="Type" type="java.lang.String"/>
<Column editable="true" title="Sub" type="java.lang.String"/>
</Table>
</Property>
</Properties>

View File

@ -64,11 +64,11 @@ public class AssemblyJFrame extends javax.swing.JFrame {
},
new String [] {
"id", "lng 1", "lng 2", "lng 3"
"id", "lng 1", "lng 2", "Type", "Sub"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
};
public Class getColumnClass(int columnIndex) {

View File

@ -144,12 +144,13 @@
<Component class="javax.swing.JTable" name="jTable1">
<Properties>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="5" rowCount="0">
<Table columnCount="6" rowCount="0">
<Column editable="true" title="&#x424;&#x430;&#x439;&#x43b;/&#x41f;&#x443;&#x442;&#x44c;" type="java.lang.String"/>
<Column editable="true" title="&#x420;&#x430;&#x441;&#x448;&#x438;&#x440;&#x435;&#x43d;&#x438;&#x44f; &#x444;&#x430;&#x439;&#x43b;&#x43e;&#x432;" type="java.lang.String"/>
<Column editable="true" title="&#x41d;&#x430;&#x437;&#x432;&#x430;&#x43d;&#x438;&#x435; &#x444;&#x443;&#x43d;&#x43a;&#x446;&#x438;&#x438; (" type="java.lang.String"/>
<Column editable="true" title="&#x428;&#x430;&#x431;&#x43b;&#x43e;&#x43d; &#x43f;&#x440;&#x43e;&#x432;&#x435;&#x440;&#x43a;&#x438;" type="java.lang.String"/>
<Column editable="true" title="ID &#x442;&#x438;&#x43f;&#x430; &#x441;&#x43b;&#x43e;&#x432;" type="java.lang.Integer"/>
<Column editable="true" title="&#x41f;&#x43e;&#x434;&#x441;&#x438;&#x441;&#x442;&#x435;&#x43c;&#x430;" type="java.lang.Integer"/>
</Table>
</Property>
</Properties>

View File

@ -75,7 +75,8 @@ public class NewJFrame extends javax.swing.JFrame
String extensions = ini.get("path"+i, "extensions");
String pattern = ini.get("path"+i, "pattern");
String type = ini.get("path"+i, "type");
model.addRow(new Object[]{path, extensions, check, pattern, type });
String system = ini.get("path"+i, "system");
model.addRow(new Object[]{path, extensions, check, pattern, type, system });
System.out.print(path);
}
}
@ -127,11 +128,11 @@ public class NewJFrame extends javax.swing.JFrame
},
new String [] {
"Файл/Путь", "Расширения файлов", "Название функции (", "Шаблон проверки", "ID типа слов"
"Файл/Путь", "Расширения файлов", "Название функции (", "Шаблон проверки", "ID типа слов", "Подсистема"
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class
java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class
};
public Class getColumnClass(int columnIndex) {
@ -308,7 +309,7 @@ public class NewJFrame extends javax.swing.JFrame
pack();
}// </editor-fold>//GEN-END:initComponents
private void parse(Connection conn, String rootDir, String extensions, String check, String pattern, String type)
private void parse(Connection conn, String rootDir, String extensions, String check, String pattern, String type, String sybs)
{
// Просматриваем каталоги
FileFinder finder = new FileFinder();
@ -391,7 +392,7 @@ public class NewJFrame extends javax.swing.JFrame
//Обновляю в базе
if(conn!=null){
try (Statement stmt = conn.createStatement()) {
ResultSet rs = stmt.executeQuery("select main._update_translation_identifier('"+text+"',"+type+");");
ResultSet rs = stmt.executeQuery("select main._update_translation_identifier('"+text+"',"+type+","+sybs+");");
} catch (SQLException e) {
textArea1.append("Error write to DB\n "+e.getMessage());
}
@ -429,7 +430,7 @@ public class NewJFrame extends javax.swing.JFrame
if(jCheckBox1.isSelected()){
String url = jTFDBURL.getText(); //"jdbc:postgresql://10.1.7.74:5432/pilot";
String user = jTFDBUser.getText(); //"translate";
String password = jTFDBUser.getText(); //"translate";
String password = jTFDBPassword.getText(); //"translate";
try {
Class.forName("org.postgresql.Driver");
conn = DriverManager.getConnection(url, user, password);
@ -448,7 +449,8 @@ public class NewJFrame extends javax.swing.JFrame
model.getValueAt(row,1).toString(),
model.getValueAt(row,2).toString(),
model.getValueAt(row,3).toString(),
model.getValueAt(row,4).toString()
model.getValueAt(row,4).toString(),
model.getValueAt(row,5).toString()
);
}