diff --git a/bananaSPLIT/UserInterface/resources/translations/about_en.qm b/bananaSPLIT/UserInterface/resources/translations/about_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/about_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/about_en.ts b/bananaSPLIT/UserInterface/resources/translations/about_en.ts new file mode 100644 index 0000000..15420a3 --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/about_en.ts @@ -0,0 +1,28 @@ + + + + + about + + + About SPEx + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:20pt; font-weight:600;">About SPEx<br /></span><span style=" font-size:12pt;">Versione {ver}</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">SPEx (Split Parse &amp; Extract) e' un tool, utile ai linguisti che devono costruire un corpus, che ha come funzione principale dividere e ripulire da elementi non necessari raccolte di &quot;articoli&quot; scaricati da database online quali </span><span style=" font-size:12pt; font-style:italic;">LexisNexis</span><span style=" font-size:12pt;">.</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">Pui tranquillamente suggerire SPEx ad un tuo collega, ci fa molto piacere! Ricordati solo di mandarci (o farci mandare) una mail con scopo e impressioni di utilizzo: questo ci aiuta a tenere traccia di quanti ricercatori stanno usando SPEx e pensare a sviluppi futuri di questo tool. </span></p> +<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">SPEx non e' soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.<br />Essendo un progetto &quot;del tempo libero&quot;, bug e proposte di espansione verranno sicuramente presi in considerazione ma non possiamo dirvi nulla riguardo alle tempistiche.</span></p> +<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">Contatti:</span><br /><span style=" font-size:10pt;">12parsec.software@gmail.com</span></p> +<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">Download:<br /></span><a href="https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8"><span style=" text-decoration: underline; color:#0000ff;">https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8</span></a></p></body></html> + + + + diff --git a/bananaSPLIT/UserInterface/resources/translations/advopt_en.qm b/bananaSPLIT/UserInterface/resources/translations/advopt_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/advopt_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/advopt_en.ts b/bananaSPLIT/UserInterface/resources/translations/advopt_en.ts new file mode 100644 index 0000000..f8286c9 --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/advopt_en.ts @@ -0,0 +1,32 @@ + + + + + editconf + + + Opzioni Avanzate + + + + + ATTENZIONE!! Quello che scrivi qui potrebbe rompere tutto! + + + + + Da grandi poteri derivano grandi responsabilita' + + + + + Cancel + + + + + OK + + + + diff --git a/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.qm b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.ts b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.ts new file mode 100644 index 0000000..01201d7 --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.ts @@ -0,0 +1,92 @@ + + + + + advtitolo2 + + + Form + + + + + Modifica ordine elementi nome file + + + + + Scegli l'ordine degli elementi nel nome file + + + + + Data, Titolo, Numero + + + + + Data, Numero, Titolo + + + + + Titolo, Data, Numero + + + + + Titolo, Numero, Data + + + + + Numero, Data, Titolo + + + + + Numero, Titolo, Data + + + + + Data, Titolo + + + + + Data, Numero + + + + + Titolo, Data + + + + + Titolo, Numero + + + + + Numero, Data + + + + + Numero, Titolo + + + + + Annulla + + + + + OK + + + + diff --git a/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.qm b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.ts b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.ts new file mode 100644 index 0000000..2cf5371 --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.ts @@ -0,0 +1,78 @@ + + + + + advtitolo3 + + + Avanzate Titolo + + + + + (Terzo Elemento) + + + + + + + Numero + + + + + + + Data + + + + + + + Titolo + + + + + Secondo Elemento + + + + + Seleziona l'ordine degli elementi nel nomi file + + + + + Prefisso Titolo + + + + + Primo elemento + + + + + Modifica ordine elementi nome file + + + + + Annulla + + + + + OK + + + + + Suffisso Titolo + + + + diff --git a/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.qm b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.ts b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.ts new file mode 100644 index 0000000..d9b585b --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.ts @@ -0,0 +1,47 @@ + + + + + advtitolo + + + Form + + + + + Modifica ordine elementi nome file + + + + + Indica la posizione dell'elemento nel nome del file + + + + + Data + + + + + Titolo + + + + + Numero + + + + + Avanti + + + + + Indietro + + + + diff --git a/bananaSPLIT/UserInterface/resources/translations/guimain.qm b/bananaSPLIT/UserInterface/resources/translations/guimain.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/guimain.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/mainwindow.ts b/bananaSPLIT/UserInterface/resources/translations/mainwindow.ts deleted file mode 100644 index a517e46..0000000 --- a/bananaSPLIT/UserInterface/resources/translations/mainwindow.ts +++ /dev/null @@ -1,130 +0,0 @@ - - - - - mainwin - - - bananaSPLIT - - - - - Finestra dei messaggi - Message Box - - - - Preset corrente: - Current Preset: - - - - - - ... - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:6.6pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p></body></html> - - - - - Selezione Input - Input Select - - - - - -> - - - - - Cartella sorgente - Source Folder - - - - Cartella destinazione - Destination Folder - - - - File disponibili per la conversione - Avalable Files - - - - Versione dei File - File Version - - - - Nuova - New - - - - Vecchia - Old - - - - Avanti - Next - - - - File - - - - - - Opzioni - Options - - - - Help - - - - - Carica Preset - Load Preset - - - - Salva Preset - Save Preset - - - - Lingua Interfaccia - Interface Language - - - - Avanzate - Advenced - - - - Manuale - User Manual - - - - About SPEx - - - - diff --git a/bananaSPLIT/UserInterface/resources/translations/mainwindow_en.qm b/bananaSPLIT/UserInterface/resources/translations/mainwindow_en.qm index 1ce50ad..9dad8df 100644 Binary files a/bananaSPLIT/UserInterface/resources/translations/mainwindow_en.qm and b/bananaSPLIT/UserInterface/resources/translations/mainwindow_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/mainwindow_en.ts b/bananaSPLIT/UserInterface/resources/translations/mainwindow_en.ts new file mode 100644 index 0000000..fd10b12 --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/mainwindow_en.ts @@ -0,0 +1,130 @@ + + + + + mainwin + + + bananaSPLIT + + + + + Finestra dei messaggi + + + + + Preset corrente: + + + + + + + ... + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:6.6pt; font-weight:400; font-style:normal;"> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:7pt;"><br /></p></body></html> + + + + + Selezione Input + + + + + + -> + + + + + Cartella sorgente + + + + + Cartella destinazione + + + + + File disponibili per la conversione + + + + + Versione dei File + + + + + Nuova + + + + + Vecchia + + + + + Avanti + + + + + File + + + + + + Opzioni + + + + + Help + + + + + Carica Preset + + + + + Salva Preset + + + + + Lingua Interfaccia + + + + + Avanzate + + + + + Manuale + + + + + About SPEx + + + + diff --git a/bananaSPLIT/UserInterface/resources/translations/selezout_en.qm b/bananaSPLIT/UserInterface/resources/translations/selezout_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/selezout_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/selezout_en.ts b/bananaSPLIT/UserInterface/resources/translations/selezout_en.ts new file mode 100644 index 0000000..36dff16 --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/selezout_en.ts @@ -0,0 +1,77 @@ + + + + + selezout + + + Seleziona Linuga e Output + + + + + Seleziona la lingua degli articoli + + + + + Seleziona il tipo di file da salvare + + + + + Bodyfile + File singoli + + + + + Bodyfile + + + + + File singoli + + + + + Altre Opzioni + + + + + Tenta rimozione duplicati + + + + + Includi titolo all'interno del file + + + + + Rimuovi interruzioni parola (a capo) + + + + + Svuota cartella di destinazione + + + + + Caratteri speciali da rimuovere + + + + + Indietro + + + + + SPLITTA! + + + + diff --git a/bananaSPLIT/UserInterface/resources/translations/titolow_en.qm b/bananaSPLIT/UserInterface/resources/translations/titolow_en.qm new file mode 100644 index 0000000..9dad8df Binary files /dev/null and b/bananaSPLIT/UserInterface/resources/translations/titolow_en.qm differ diff --git a/bananaSPLIT/UserInterface/resources/translations/titolow_en.ts b/bananaSPLIT/UserInterface/resources/translations/titolow_en.ts new file mode 100644 index 0000000..e5d99e3 --- /dev/null +++ b/bananaSPLIT/UserInterface/resources/translations/titolow_en.ts @@ -0,0 +1,102 @@ + + + + + titolo + + + Nomi file di Uscita + + + + + Numero di caratteri + + + + + Avanzate Titolo + + + + + Indietro + + + + + Avanti + + + + + YYYY MM DD, es. 2000 12 31 (jpn) + + + + + DD MM YYYY, es. 31 12 2000 (ita) + + + + + MM DD YYYY, es. 12 31 2000 (us) + + + + + Impostazioni nome file in uscita + + + + + Data + + + + + Titolo articolo + + + + + Spazio + + + + + , + + + + + + + + + + + - + + + + + _ + + + + + Altro: + + + + + Separatore + + + + + Numero documento + + + + diff --git a/bananaSPLIT/scripts/releaseLanguages.py b/bananaSPLIT/scripts/releaseLanguages.py new file mode 100644 index 0000000..643870e --- /dev/null +++ b/bananaSPLIT/scripts/releaseLanguages.py @@ -0,0 +1,15 @@ +''' +Created on 10 apr 2020 + +@author: Emanuele Trabattoni +''' +import os,glob +import subprocess +langs = ["en"] + +if __name__ == '__main__': + tsfiles = glob.glob("..\\UserInterface\\resources\\translations\\*.ts") + for ts in tsfiles: + tso = "..\\UserInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ts)[1]))[0]+".qm" + subprocess.run(f'lrelease.exe {ts} -qm {tso}') + pass \ No newline at end of file diff --git a/bananaSPLIT/scripts/updateLanguages.py b/bananaSPLIT/scripts/updateLanguages.py new file mode 100644 index 0000000..d6b6b1d --- /dev/null +++ b/bananaSPLIT/scripts/updateLanguages.py @@ -0,0 +1,16 @@ +''' +Created on 10 apr 2020 + +@author: Emanuele Trabattoni +''' +import os,glob +import subprocess +langs = ["en"] + +if __name__ == '__main__': + uifiles = glob.glob("..\\*\\*.ui", recursive=True) + for l in langs: + for ui in uifiles: + uio = "..\\UserInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ui)[1]))[0]+f"_{l}.ts" + subprocess.run(f'lupdate.exe {ui} -ts {uio}') + pass \ No newline at end of file