From 34a940fd6270890e24fb1e6d6f351cab4068c999 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Mon, 26 Aug 2013 20:09:37 +0400 Subject: [PATCH] Translations --- .../mathmech/resources/translations/eng.qm | Bin 16 -> 11622 bytes .../mathmech/resources/translations/eng.ts | 840 ++++++++++++++++-- .../mathmech/resources/translations/rus.qm | Bin 6586 -> 20385 bytes .../mathmech/resources/translations/rus.ts | 728 ++++++++++++++- mathmech/mathmech/src/CMakeLists.txt | 3 +- mathmech/mathmech/src/Makefile | 4 +- mathmech/mathmech/src/main.cpp | 27 +- mathmech/mathmech/src/mathmech.pro | 4 + mathmech/mathmech/src/mathmech.pro.user | 4 +- mathmech/mathmech/src/settingswindow.cpp | 39 +- 10 files changed, 1540 insertions(+), 109 deletions(-) diff --git a/mathmech/mathmech/resources/translations/eng.qm b/mathmech/mathmech/resources/translations/eng.qm index be651eede2edc9cb0da5c140b31664afee169fa8..ccb6cd8f7be9bfdcfddb85d79c1e9441478b5504 100644 GIT binary patch literal 11622 zcmcE7ks@*G{hX<16=n7(EZlq7iGhK21p@fki-$fkEvZ z1Isp71_my52rX{Uz;Z#Afq~ncf#r<>1B0YI1FKCa1B29a239{u1_s%g46IRt3=A?d z46Lbb3=Fb+7+8B)7#L*B7+7ZLMzxaM6D@iU{FYA$mImNe-^`zraT4)nWYRDCp=|f5K3hD+u6y$ps2*S zFvw>!@y)elU{H9$BvX;cz`(%3RP`>LfkAW~)5baz z1_lWmrrl}A3=AUSOc!ce7#M_}GhKI3VPFv4$;`DAq~Da;Q~n(TgLFJ|OpFr)gUVOt zWOr8v2Hu&>^{t`|45HVWw?wUDV34`N!ezq3z#wSCBG>ekfq^F(Ld!2;F>AlZz@VzY z(!$rwz#!VrGBa-~0|UoV2+ef_Li2e+Xt7!dt-Oe3;S?4I1|dzB6+4zPFmM_{XucmT ztNR%l7{uPNTI}RtV30b*+P>j11B2{+)*iQ`3=I5FA+($Z>m2PR3=Et%SQoxbWnkb} zVtpZ-$-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{(0lx|Q=cPhA4{4=&;AR(oN1!+Cal1nVsYL@$1fZch z{Duo+^!@RxX9)=PB~a|*8u-EOZc*f+qEt}P2pcTItw#h|Pf=n@8euKs$XZ~-o6u1y z+!mpDr=%#0M0-k#vWyB+k_hW!A>7hp2_jhMu>?7~xZ#gNwxGn6%u)i0lr<AZM;N38RGNcJ2BeWpoJAKeSO;W8I+1`+Ag1TQIuM9)Qk2^n9sFL0jf24lK8R_V!8D;2srYSzxerYffxyE(;D$TK5yNeG)ua{> zuv<7JqbQZ6l2RZfza%jSQnrE`t^_QQ4nZA#1Q(fF(FVGfu>`74A<$4Bs6B`XP5hyc zWpEL9;4ntuH;gfofP55wdE}u>+^%2)r%3{xF^D1pO;m^?Bm9nnC^E*ch&3&pf&-1fAJ!B48duS57wu~+I2_jB;i+x z82iMpj@>mcJtwmm+_NE|GN`n;I5QC(I`~z>OMd*y1fT_HGHd`16jb=NaKHkGuu`_% z-1x+F@F+b2Gjns}!A%dsX0qqz#)DcMgjI6o=Eg(Q31P(`r5)&coNC5cHnsS19nCEz(4uw9wS zkXj9-upkel&MC7bH?aV&J1MsSoahPL%IF93F=2J^v`1K}0Jyf#%uP&BMbz_zwK0Nw YV??L}kFXJ;4%~Ogrmh3Dx|Wd<0KSuY - + + + AboutWindow + + + About + About + + + + <!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:'Liberation Serif'; font-size:10pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Mathematical Molecular Mechanics</span></p> +<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;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Version:</span> 1.0.0</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">License:</span> GPL</p> +<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;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Author:</span> Evgeniy Alekseev</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">E-mail:</span> esalexeev@gmail.com</p> +<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;"><br /></p> +<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Graphical user interface for &quot;mathmech&quot; program pack.</p></body></html> + + + + + Close + + + AgglWindow Select file - + 'statgen' output files (*.dat);;All files (*.*) - + Save file as... - + Agglomerate files (*.agl);;All files (*.*) - + + + + + Agglomerate + + + + + Input file + + + + + + Browse + + + + + Select + + + + + Output file + + + + + Clear + + + + + Create + + + + + Close + @@ -30,12 +101,12 @@ Processing 'agl'... - + Done - + @@ -43,47 +114,165 @@ Select work directory - + Select trajectory file - + 'statgen' output files (*.dat);;All files (*.*) - + Save file as... - + PDB files (*.pdb);;All files (*.*) - + + + + + agl_all + + + + + Work directory + + + + + + + Browse + + + + + Input file + + + + + Mask of output files + + + + + File + + + + + Number of molecules + + + + + Clear + + + + + Start + + + + + Close + AtomTypesWindow + + + Atom types + + + + + Output file + + + + + Browse + + + + + Molecule + + + + + 1 + + + Add new molecule - + + + + + Number of molecules + + + + + Char atom type + + + + + Int atom type + + + + + Add + + + + + Remove + + + + + Clear + + + + + Create + + + + + Close + Save file as... - + Atom types files (*.types);;All files (*.*) - + @@ -91,72 +280,87 @@ Work directory does not exists - + Input file is not set - + Atoms in plane must be different - + Atom types file is not set - + Output file is not set - + Atom type must contain 2 characters - + Log file is not set - + Component is not found - + Atom types is not set - + Something wrong - + Interactions are not set - + Invalid file type - + Interaction step is not set - + Unknown error - + + + + + Error + + + + + Error text + + + + + Ok + @@ -164,7 +368,7 @@ Ready - + @@ -173,39 +377,39 @@ Select work directory - + Select trajectory file - + All files (*.*) - + Select atom types file - + Atom types files (*.types);;All files (*.*) - + Save files as - + Mask of trajectory files - + @@ -214,7 +418,7 @@ Save log file as... - + @@ -223,13 +427,13 @@ Log files (*.log) - + Select trajectory files - + @@ -237,47 +441,47 @@ Trajectory files (*.*[0-9]) - + Save output file as... - + Output files (*.dat) - + Save PDB file as... - + PDB files (*.pdb) - + Select agglomerate file - + Agglomerate files (*.agl);;All files (*.*) - + Processing 'trj'... - + @@ -286,60 +490,533 @@ Done - + Processing 'statgen'... - + Processing 'envir'... - + Processing 'radf'... - + Processing 'agl'... - + Processing 'trj2pdb'... - + + + + + Mathematical Molecular Mechanics + + + + + Generate trajectory + + + + + + + + + Work directory + + + + + + + + + + + + + + + + + + + + + + + + + + Browse + + + + + + + Input file + + + + + Type of trajectory + + + + + GROMACS text + + + + + PUMA + + + + + Number of steps + + + + + Atom type file + + + + + Mask of output files + + + + + Total atom types + + + + + + + + + Log + + + + + + + + + Clear + + + + + + + + + Start + + + + + Agglomeration + + + + + + Mask of input files + + + + + + Steps + + + + + + first + + + + + + last + + + + + + + + Cell, A + + + + + + + + X + + + + + + + + Y + + + + + + + + Z + + + + + atom 0 + + + + + + + atom 1 + + + + + + + atom 2 + + + + + + + atom 3 + + + + + Interaction + + + + + 0-0 + + + + + Save + + + + + Add + + + + + Remove + + + + + + + + Output file + + + + + Depth of search + + + + + Analysis + + + + + + Graph + + + + + Environment + + + + + Molecule + + + + + Radius + + + + + RADF + + + + + One atom function + + + + + Three atom function + + + + + R, A + + + + + + min + + + + + + max + + + + + + step + + + + + Angle, deg + + + + + Matrix + + + + + Generate PDB + + + + + From agglomerate + + + + + From trajectory snapshot + + + + + File with agglomerate + + + + + Menu + + + + + File &creator + + + + + &Tools + + + + + Help + + + + + &Quit + + + + + Quit + + + + + Ctrl+Q + + + + + &Help + + + + + F1 + + + + + About + + + + + Atom &types file + + + + + &Agglomerate file + + + + + &Settings + + + + + agl_all + + + + + statgen_all + SettingsWindow - - - - - - + + + + + + Select component - + - - - - - - + + + + + + All files (*) - + + + + + Settings + + + + + mm_trj + + + + + + + + + + Browse + + + + + mm_statgen + + + + + mm_envir + + + + + mm_radf + + + + + mm_trj2pdb + + + + + mm_agl + + + + + English + + + + + Russian + + + + + Save + + + + + Close + @@ -347,32 +1024,47 @@ N - + p - + r - + g - + Save image as... - + JPEG file (*.jpeg);;Portable Network Graphics file (*.png);;Bitmap file (*.bmp) - + + + + + Graph + + + + + Save + + + + + Close + diff --git a/mathmech/mathmech/resources/translations/rus.qm b/mathmech/mathmech/resources/translations/rus.qm index 3b180b71fcd28e781b24a1fa6ebd9aa491322785..93ce3cdb112479b9e1d362dc1062faad1714c468 100644 GIT binary patch literal 20385 zcmcE7ks@*G{hX<16=n7(EZlq7iGhK21p@*FgXdxf29}8o3pSh7gFc@buu-b$&Fqm00u=+VNFj(znV2u)FV6f0& zU`=gfV6b|@z}myYz+g3jfpx}F1_tY;5ZdJ>g!Wj>z^<``fx+np1N*823=Gb58MHv= zY8x|XgY;>qG8k^Z!N6eP%HTfj2m^!IH3+Sv$Ka*i#K0i&3PQ^$LTDum2(ABs!OLta z1B19AgqDc9nMn)`Y7ZFvIx-j-jIANGyEj9`_MHq2)-DWD zE2c0o$Ol1advk`UHN^}J_NffHoFMnFVA#==$G~98%W!eRQw9c&Zic^|oeT^PYZ#aO z3ua(Yna21+ubF|tu8@go&Q%5m+to~bb1fMd9Bi0mD)JZ@7#NtU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8q^4_HTLEOmVnnkg8iMD z3~57x6c*%x)H!9AU|_rqp?Pf?BDU{jU=Uf$GcX7rV`7?fm4QK+fr+nvt|bG5NDtG6nid8IE(@mX4k`=` z9DdAPJFhY@2+d$lc6Vi9V426fC2Ac51OIInE)y082KG-Za!pSe7?`g@XyH_rg;Q7< z7&zrvU&v-MFfcGcXr>U>zw6}~7z7;I0-o$-U|^UBp}9A)g$bxIFmOI*t8dokWMJSc zVQV{ilYxOZhi%axI|c?peYP`kAd7t17bplbFbH;XY^P6h^%KiqOR)-f~& zY6#7`yq;U-PA3BcD+7e)na%AcrOCj+|WFF!0Oq zoh)HtU|{>qe|_H-1_n_#{+Bu}3=AA>Ycm-b#FtHGlU+3ViR|3T=j08rpvd70mD0Gsx)UH||9 diff --git a/mathmech/mathmech/resources/translations/rus.ts b/mathmech/mathmech/resources/translations/rus.ts index e88b4b6..11b8102 100644 --- a/mathmech/mathmech/resources/translations/rus.ts +++ b/mathmech/mathmech/resources/translations/rus.ts @@ -1,6 +1,48 @@ + + AboutWindow + + + About + О программе + + + + <!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:'Liberation Serif'; font-size:10pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Mathematical Molecular Mechanics</span></p> +<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;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Version:</span> 1.0.0</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">License:</span> GPL</p> +<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;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Author:</span> Evgeniy Alekseev</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">E-mail:</span> esalexeev@gmail.com</p> +<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;"><br /></p> +<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Graphical user interface for &quot;mathmech&quot; program pack.</p></body></html> + <!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:'Liberation Serif'; font-size:10pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Mathematical Molecular Mechanics</span></p> +<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;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Версия:</span> 1.0.0</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Лицензия:</span> GPL</p> +<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;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Автор:</span> Evgeniy Alekseev</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">E-mail:</span> esalexeev@gmail.com</p> +<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;"><br /></p> +<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Графический интерфейс для программного пакета &quot;mathmech&quot;.</p></body></html> + + + + Close + Закрыть + + AgglWindow @@ -23,6 +65,47 @@ Agglomerate files (*.agl);;All files (*.*) Файл с агломератом (*.agl);Все файлы (*.*) + + + Agglomerate + Агломерат + + + + Input file + Входной файл + + + + + Browse + Обзор + + + + Select + Выбор + + + + Output file + Выходной файл + + + + Clear + Очистить + + + + Create + Создать + + + + Close + Закрыть + AglAll @@ -65,16 +148,134 @@ PDB files (*.pdb);;All files (*.*) PDB файлы (*.pdb);;Все файлы (*.*) + + + agl_all + agl_all + + + + Work directory + Рабочая директория + + + + + + Browse + Обзор + + + + Input file + Входной файл + + + + Mask of output files + Маска выходных файлов + + + + File + Файл + + + + Number of molecules + Число молекул + + + + Clear + Очистить + + + + Start + Старт + + + + Close + Закрыть + AtomTypesWindow + + + Atom types + Типы атомов + + + + Output file + Выходной файл + + + + Browse + Обзор + + + + Molecule + Молекула + + + + 1 + 1 + + Add new molecule Добавить новую молекулу + + + Number of molecules + Число молекул + + + + Char atom type + Символьный тип + + + + Int atom type + Численный тип + + + + Add + Добавить + + + + Remove + Удалить + + + + Clear + Очистить + + + + Create + Создать + + + + Close + Закрыть + Save file as... @@ -158,6 +359,21 @@ Unknown error Неизвестная ошибка + + + Error + Ошибка + + + + Error text + Текст ошибки + + + + Ok + Ok + MainWindow @@ -318,29 +534,502 @@ Processing 'trj2pdb'... Выполняется 'trj2pdb'... + + + Mathematical Molecular Mechanics + Mathematical Molecular Mechanics + + + + Generate trajectory + Создать траекторию + + + + + + + + Work directory + Рабочая директория + + + + + + + + + + + + + + + + + + + + + + + + + Browse + Обзор + + + + + + Input file + Входной файл + + + + Type of trajectory + Тип траектории + + + + GROMACS text + GROMACS + + + + PUMA + PUMA + + + + Number of steps + Число шагов + + + + Atom type file + Файл типов атомов + + + + Mask of output files + Маска файлов + + + + Total atom types + Всего типов атомов + + + + + + + + Log + Лог + + + + + + + + Clear + Очистить + + + + + + + + Start + Старт + + + + Agglomeration + Агломерация + + + + + Mask of input files + Маска файлов + + + + + Steps + Шаги + + + + + first + первый + + + + + last + последний + + + + + + + Cell, A + Ячейка, А + + + + + + + X + X + + + + + + + Y + Y + + + + + + + Z + Z + + + + atom 0 + атом 0 + + + + + + atom 1 + атом 1 + + + + + + atom 2 + атом 2 + + + + + + atom 3 + атом 3 + + + + Interaction + Взаимодействие + + + + 0-0 + 0-0 + + + + Save + Сохранить + + + + Add + Добавить + + + + Remove + Удалить + + + + + + + Output file + Выходной файл + + + + Depth of search + Глубина поиска + + + + Analysis + Анализ + + + + + Graph + График + + + + Environment + Окружение + + + + Molecule + Молекула + + + + Radius + Радиус + + + + RADF + ФРУР + + + + One atom function + Одноатомная функция + + + + Three atom function + Трехатомная функция + + + + R, A + R, A + + + + + min + min + + + + + max + max + + + + + step + шаг + + + + Angle, deg + Угол, град + + + + Matrix + Матрица + + + + Generate PDB + Создать PDB + + + + From agglomerate + Из агломерата + + + + From trajectory snapshot + Из снимка траектории + + + + File with agglomerate + Файл с агломератом + + + + Menu + Меню + + + + File &creator + &Создание файлов + + + + &Tools + &Утилиты + + + + Help + Помощь + + + + &Quit + &Выход + + + + Quit + Выход + + + + Ctrl+Q + Ctrl+Q + + + + &Help + &Помощь + + + + F1 + F1 + + + + About + О программе + + + + Atom &types file + Файл типов &атомов + + + + &Agglomerate file + Файл с &агломератом + + + + &Settings + &Настройки + + + + agl_all + agl_all + + + + statgen_all + statgen_all + SettingsWindow - - - - - - + + + + + + Select component Выбор компонента - - - - - - + + + + + + All files (*) Все файлы (*) + + + Settings + Настройки + + + + mm_trj + mm_trj + + + + + + + + + Browse + Обзор + + + + mm_statgen + mm_statgen + + + + mm_envir + mm_envir + + + + mm_radf + mm_radf + + + + mm_trj2pdb + mm_trj2pdb + + + + mm_agl + mm_agl + + + + English + English + + + + Russian + Russian + + + + Save + Сохранить + + + + Close + Закрыть + StatgenGraphWindow @@ -374,5 +1063,20 @@ JPEG file (*.jpeg);;Portable Network Graphics file (*.png);;Bitmap file (*.bmp) JPEG (*.jpeg);;Portable Network Graphics (*.png);;Bitmap (*.bmp) + + + Graph + График + + + + Save + Сохранить + + + + Close + Закрыть + diff --git a/mathmech/mathmech/src/CMakeLists.txt b/mathmech/mathmech/src/CMakeLists.txt index 475b952..44daab0 100644 --- a/mathmech/mathmech/src/CMakeLists.txt +++ b/mathmech/mathmech/src/CMakeLists.txt @@ -49,10 +49,11 @@ foreach (LANGUAGE ${LANGUAGES}) endforeach() add_custom_target ( translations - COMMAND ${QT_LUPDATE_EXECUTABLE} ${HEADERS} ${SOURCES} -ts ${TRANSLATIONS}) + COMMAND ${QT_LUPDATE_EXECUTABLE} ${HEADERS} ${SOURCES} ${UI_HEADERS} -ts ${TRANSLATIONS}) add_custom_command ( TARGET translations COMMAND ${QT_LRELEASE_EXECUTABLE} ${TRANSLATIONS}) +message (STATUS "TRANSLATIONS: ${TRANSLATIONS_BINARY}") source_group ("Header Files" FILES ${HEADERS}) source_group ("Source Files" FILES ${SOURCES}) diff --git a/mathmech/mathmech/src/Makefile b/mathmech/mathmech/src/Makefile index c990a44..0d83f1e 100644 --- a/mathmech/mathmech/src/Makefile +++ b/mathmech/mathmech/src/Makefile @@ -1,6 +1,6 @@ ############################################################################# # Makefile for building: mathmech -# Generated by qmake (2.01a) (Qt 4.8.5) on: ?? ??? 23 22:01:14 2013 +# Generated by qmake (2.01a) (Qt 4.8.5) on: ?? ??? 26 15:52:26 2013 # Project: mathmech.pro # Template: app # Command: /usr/bin/qmake-qt4 -o Makefile mathmech.pro @@ -219,7 +219,7 @@ qmake: FORCE dist: @$(CHK_DIR_EXISTS) .tmp/mathmech1.0.0 || $(MKDIR) .tmp/mathmech1.0.0 - $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/mathmech1.0.0/ && $(COPY_FILE) --parents mainwindow.h errorwindow.h clear_items.h start_events.h update_fields.h atomtypeswindow.h agglwindow.h aboutwindow.h statgengraphwindow.h settingswindow.h aglallwindow.h .tmp/mathmech1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp errorwindow.cpp clear_items.cpp start_events.cpp update_fields.cpp atomtypeswindow.cpp agglwindow.cpp aboutwindow.cpp statgengraphwindow.cpp settingswindow.cpp aglallwindow.cpp .tmp/mathmech1.0.0/ && $(COPY_FILE) --parents mainwindow.ui errorwindow.ui atomtypeswindow.ui agglwindow.ui aboutwindow.ui statgengraphwindow.ui settingswindow.ui aglallwindow.ui .tmp/mathmech1.0.0/ && (cd `dirname .tmp/mathmech1.0.0` && $(TAR) mathmech1.0.0.tar mathmech1.0.0 && $(COMPRESS) mathmech1.0.0.tar) && $(MOVE) `dirname .tmp/mathmech1.0.0`/mathmech1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/mathmech1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/mathmech1.0.0/ && $(COPY_FILE) --parents mainwindow.h errorwindow.h clear_items.h start_events.h update_fields.h atomtypeswindow.h agglwindow.h aboutwindow.h statgengraphwindow.h settingswindow.h aglallwindow.h .tmp/mathmech1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp errorwindow.cpp clear_items.cpp start_events.cpp update_fields.cpp atomtypeswindow.cpp agglwindow.cpp aboutwindow.cpp statgengraphwindow.cpp settingswindow.cpp aglallwindow.cpp .tmp/mathmech1.0.0/ && $(COPY_FILE) --parents mainwindow.ui errorwindow.ui atomtypeswindow.ui agglwindow.ui aboutwindow.ui statgengraphwindow.ui settingswindow.ui aglallwindow.ui .tmp/mathmech1.0.0/ && $(COPY_FILE) --parents rus.ts eng.ts .tmp/mathmech1.0.0/ && (cd `dirname .tmp/mathmech1.0.0` && $(TAR) mathmech1.0.0.tar mathmech1.0.0 && $(COMPRESS) mathmech1.0.0.tar) && $(MOVE) `dirname .tmp/mathmech1.0.0`/mathmech1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/mathmech1.0.0 clean:compiler_clean diff --git a/mathmech/mathmech/src/main.cpp b/mathmech/mathmech/src/main.cpp index a3e99a8..64e21cb 100644 --- a/mathmech/mathmech/src/main.cpp +++ b/mathmech/mathmech/src/main.cpp @@ -1,14 +1,39 @@ #include "mainwindow.h" #include +#include #include +#include +#include int main(int argc, char *argv[]) { QLocale::setDefault(QLocale::C); QApplication a(argc, argv); + QString configpath; +#ifdef _WIN32 + configpath = QFileInfo(QDir::currentPath(), ("mathmech.ini")).absoluteFilePath(); +#elif __linux + configpath = QFileInfo(QDir(QDir::homePath() + "/.config"), ("mathmech.conf")).absoluteFilePath(); +#else + return; +#endif + QFile conf_file(configpath); + conf_file.open(QIODevice::ReadOnly | QIODevice::Text); + QString language, text; + QTextStream out(&conf_file); + while (!out.atEnd()) + { + text = out.readLine(); + if (text.contains(QString("LANG="))) + language = text.split(QString("LANG="), QString::SkipEmptyParts)[0]; + } + conf_file.close(); + QTranslator translator; + translator.load(QString(":/translations/") + language); + a.installTranslator(&translator); + MainWindow w; w.show(); - return a.exec(); } diff --git a/mathmech/mathmech/src/mathmech.pro b/mathmech/mathmech/src/mathmech.pro index 4bdbee2..93d8f0c 100644 --- a/mathmech/mathmech/src/mathmech.pro +++ b/mathmech/mathmech/src/mathmech.pro @@ -39,3 +39,7 @@ SOURCES += main.cpp mainwindow.cpp \ statgengraphwindow.cpp \ settingswindow.cpp \ aglallwindow.cpp +TRANSLATIONS += rus.ts \ + eng.ts + +RESOURCES += diff --git a/mathmech/mathmech/src/mathmech.pro.user b/mathmech/mathmech/src/mathmech.pro.user index 144baaa..df00f35 100644 --- a/mathmech/mathmech/src/mathmech.pro.user +++ b/mathmech/mathmech/src/mathmech.pro.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget @@ -226,7 +226,7 @@ mathmech - Qt4ProjectManager.Qt4RunConfiguration:/home/arcanis/Documents/github/moldyn/mathmech/src/mathmech.pro + Qt4ProjectManager.Qt4RunConfiguration:/home/arcanis/Documents/github/moldyn/mathmech/mathmech/src/mathmech.pro mathmech.pro false diff --git a/mathmech/mathmech/src/settingswindow.cpp b/mathmech/mathmech/src/settingswindow.cpp index 32f1607..2b2b9a0 100644 --- a/mathmech/mathmech/src/settingswindow.cpp +++ b/mathmech/mathmech/src/settingswindow.cpp @@ -1,7 +1,9 @@ +#include #include #include #include #include +#include #include "errorwindow.h" #include "mainwindow.h" @@ -134,25 +136,28 @@ void SettingsWindow::readSettings() errorwin->show(); return; } + QString text; QTextStream out(&conf_file); - QStringList text = out.readAll().split(QString("\n"), QString::SkipEmptyParts); - conf_file.close(); - for (int i=0; i