From 525b0b60ae67fc8497d6546fa8fce8be4b030bcd Mon Sep 17 00:00:00 2001 From: Emanuele Date: Fri, 10 Apr 2020 12:00:46 +0200 Subject: [PATCH] script per traduzione interfacce + generati file traduzione --- .../resources/translations/about_en.qm | Bin 0 -> 23 bytes .../resources/translations/about_en.ts | 28 ++++ .../resources/translations/advopt_en.qm | Bin 0 -> 23 bytes .../resources/translations/advopt_en.ts | 32 +++++ .../translations/avanzatetitolo2_en.qm | Bin 0 -> 23 bytes .../translations/avanzatetitolo2_en.ts | 92 +++++++++++++ .../translations/avanzatetitolo3_en.qm | Bin 0 -> 23 bytes .../translations/avanzatetitolo3_en.ts | 78 +++++++++++ .../translations/avanzatetitolo_en.qm | Bin 0 -> 23 bytes .../translations/avanzatetitolo_en.ts | 47 +++++++ .../resources/translations/guimain.qm | Bin 0 -> 23 bytes .../resources/translations/mainwindow.ts | 130 ------------------ .../resources/translations/mainwindow_en.qm | Bin 1963 -> 23 bytes .../resources/translations/mainwindow_en.ts | 130 ++++++++++++++++++ .../resources/translations/selezout_en.qm | Bin 0 -> 23 bytes .../resources/translations/selezout_en.ts | 77 +++++++++++ .../resources/translations/titolow_en.qm | Bin 0 -> 23 bytes .../resources/translations/titolow_en.ts | 102 ++++++++++++++ bananaSPLIT/scripts/releaseLanguages.py | 15 ++ bananaSPLIT/scripts/updateLanguages.py | 16 +++ 20 files changed, 617 insertions(+), 130 deletions(-) create mode 100644 bananaSPLIT/UserInterface/resources/translations/about_en.qm create mode 100644 bananaSPLIT/UserInterface/resources/translations/about_en.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/advopt_en.qm create mode 100644 bananaSPLIT/UserInterface/resources/translations/advopt_en.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.qm create mode 100644 bananaSPLIT/UserInterface/resources/translations/avanzatetitolo2_en.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.qm create mode 100644 bananaSPLIT/UserInterface/resources/translations/avanzatetitolo3_en.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.qm create mode 100644 bananaSPLIT/UserInterface/resources/translations/avanzatetitolo_en.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/guimain.qm delete mode 100644 bananaSPLIT/UserInterface/resources/translations/mainwindow.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/mainwindow_en.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/selezout_en.qm create mode 100644 bananaSPLIT/UserInterface/resources/translations/selezout_en.ts create mode 100644 bananaSPLIT/UserInterface/resources/translations/titolow_en.qm create mode 100644 bananaSPLIT/UserInterface/resources/translations/titolow_en.ts create mode 100644 bananaSPLIT/scripts/releaseLanguages.py create mode 100644 bananaSPLIT/scripts/updateLanguages.py diff --git a/bananaSPLIT/UserInterface/resources/translations/about_en.qm b/bananaSPLIT/UserInterface/resources/translations/about_en.qm new file mode 100644 index 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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 1ce50ad9a97bc9bbe26796427891cc13eabb5a3c..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa 100644 GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 1963 zcmZ`(O=u)V6n;r2Ghs4jH$p;I7p-lTTh5%^q&tfzLa`7h3oNmQ`g=*!u{3MZ<&vA{q4*X zuU*D`ug~0g><6@qr;eU}2J6gmboy@MU;Its65{wws5z2Ao3JT&+T0l%I8LY2Cm)af zo;_FC$?rZ@-XIruOGQ%NTQ6?qiK1%SljrlAR@g1{4wlmyP21R3h|&1N#Zl~Ml z)2?6Fb}wm{Hu7pi*w%7J3xv-Nkv4^?754rkm(oF7d&xmqs@4| zA@t=;=C+5#*B#flskI_|^KRp-2SW9zPwQAqLzT7b%=Scgh1k@ub4L}fr)RuQw63~B zxOU%`#cHB&!w=JkQ4+suxyExUcTD6;$C4yB(NaQ(J%(K@Wv~e)m#zAeP|d?fvLUIF zw{fx@Ah}j`n}Srz8=ZbH6xbAO1A`8TNP6+L7Ig$4@;nV|U_uMM9Wd~1MiEmo;*bh9 z6f+M+aDieRfin0Q72tCx*IjvvlA)yRvw(@A@CTs~h6v!8l!CM_ei7J2YauKHKPqDm z!2~LR5|agjJM@sd&TvilKm~)FSdHvrG}LSa72qh~-3-9=&1!6uTLb4v>{+C%g*99F zRPo(Q#lx>4s`&vKOH3YkuEVPwhrwe$!4`0STFehdb}$d6kd^?U>ml$ucGQVL=Qg>6 z4ET}=PHYwgv|b;$(EbiCGRqsm{uXjAFo6#>Ox2^Sh+ht-ZT6B!N$)Olr{1Jw3(4|p z)G#<5LY#-aPyjyCUJ7v}iWOlbO4Mo65oE?gm9`_t$?c}w8pfZ29q=NR++jJf<4G+H zP=J?oALK(NNM*`a`&0^gly9~tP`nl2muk=l{y8JmJj#lO + + + + 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 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..9dad8dffceb9623e88f8b96d9cd0caf25574c6fa GIT binary patch literal 23 fcmcE7ks@*G{hX<16=n7(EZlpygMop8iIEWihQJ9+ literal 0 HcmV?d00001 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