From ca2b2d3cca1f89b0ef57107a540b8ec93c817c98 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sat, 28 Jun 2014 07:15:19 +0300 Subject: [PATCH] Translation! most of the ui is translated English & Hebrew, the Lang will be as the user's OS. qm files need to be in the debuging directory for this to work. --- jce_en.qm | Bin 2913 -> 4085 bytes jce_en.ts | 32 ++++++++++++++++++++++++++++++++ jce_he.qm | Bin 3003 -> 3933 bytes jce_he.ts | 31 +++++++++++++++++++++++++++++++ main/main.cpp | 5 ++--- main/mainscreen.cpp | 23 +++++++---------------- 6 files changed, 72 insertions(+), 19 deletions(-) diff --git a/jce_en.qm b/jce_en.qm index 997de92addc809dd2472437d62493ead20f9f7bb..fed56a9ec7bdfff0d5b164502dc13c1e14b3cabd 100644 GIT binary patch delta 1352 zcmZ`%OGuPq6g@Nf+xR<43&}-TfAkaA=6VP6BVIF!MvQAnr38XbhJeSNw%m( zAr!7cNrE;8LyKx-52DA)WvdKZwP_*RB9P9#|NM>v$|Dd)i z1{e##uGbIikL0W8U_AZ?c$Zg0c?=b$}25P#|)5y5v7ka+T02KxJXM&8s z;h$|G(kx>uP`Q_}jqxjEJFxR2V+Y_l&e+Mgg5JCHyr03P#57a%Z+#7#3XGfAR8bE0`4%NEVaL)?4o%zH0Zna@|7?^kO9*QEEvLO&JPdEdA) zjJ?x`U5)OVM4{g`ZwwFN0+Pref;6(QFo6_CxwiOkXOjrv2G1?VB*Kg%TxIy>csH$? zkgn3a6(ULk6CP1g$)9oljK8mC`mIr$zYjmJMG+@V2`opjxV9cv5R2=WwhQtk!OtpI zIQa~31o#tz7LFpwRhD0hG#i+aIuRfl*$FA0)hp;Z9!2;i%Ne!`!{k-?w08*Cwch42 z!0Uo9yrbIFMizS#{E6hP#)Xxg7$(+cc_WQ6(Nf;BO-=cPK4m0+T5NB-FVM0Vp+QE+ zdD{Z9Z)8iAV@x+^A@eC2@_(a8l~!D=y{z8Iz@3&k>a<-K=Pa&MY#-)Ypv41Qz0=gD zNFU18wX3=*HB{I~70fA0F%!~E3d4kT@=+48n^}5p6LHiFMWIxBqX8N#_6Cahadj=k zA!^UM;>?=MxpgSF4Gi*l1YJbzRb&xpi`zudey52hV|3(i4iu+~x$P$xqJeR0kq71D zI-<;u!O9m!%ZSR`IcAjJk?ne^tz($f#t1L(&#Bt(5k%Qoa1QWp7n-oUq1=>CF{SXQ H@><0|nRyBe delta 264 zcmew=|4?j#2&V-D1M7MQ2F|dFvTF70b_}f3Z!$1&)G)AaRR)SGGO!*<1=7_FtiPLp z^j!uoZ6MA3ioxsDOa=y)%?v&>lYsPl2EX>DK$D6Y{BtG)>4glz9CZu~Y?By*WB&o^ zOAH}ZZ43GT11)yus??JMYCFKytODe-Z|3UW@EIsx r&&_ohNHaF`*sKo%>f6k-o3R*3znUD%sLjO1vAKzHDeLBL?kpAn<3dA# diff --git a/jce_en.ts b/jce_en.ts index 7eb89e4..4db1d16 100644 --- a/jce_en.ts +++ b/jce_en.ts @@ -216,6 +216,38 @@ + + +HELP1 +Insert your username and password correctly + + + +HELP2 +Login and wait for the ball in the status (buttom) bar to become Green + + + +HELP3 +Check the Settings to select your date Interval + + + +HELP4 +Press Courses tab and then press the Add button and wait until courses will be loaded into the table + + + +HELP5 +Change the once of the grade cell and see your average is changing. + + + +HELP6 +Tip: Need to change Date interval? in Courses tab click Clean, then change the date interval then hit the Add button again! :-) + + + diff --git a/jce_he.qm b/jce_he.qm index 55f317ac942e414eee28b8006b78406783b8968b..e0f821f56227cb3248bae53d12e3b7320e4a30de 100644 GIT binary patch delta 1140 zcmZWnUr19?9RBUL-|lv&Z-Nh%C`BOtp*aJq)7noV(dpjC;P{**U-OeBXD@Z1rl* zM3v_j5l<6Uy6$b=G3s>@KQM_Z+KFej0Y4JI9>A)fIDZ=$q|OH5rYY*24-q-D6bSW$ z;Wz~z`-ogBumyMp=m-7+wi2o5fNezX&A@hGh>nauMPHPT4h4xkBh>A_Nu#8lrS8+e ziL^;NdE*Xn!SU#QGZFb5`JFl%wkS>36C$rq8SdDJ^?K#m{dZU=C35)KnNdxCS9}fJ0p5~^97Si)o4G*c$vRSvK*=iXA4wu z5GPQlI3`JS%nd0+kmvBTcQ?vCCNE-D>@;zh!E2~u5U|2}`LQi31ZZ7-=Pz}ixjGR1 zrl`Gv5_>V!i@YQ`gwZH!Q*uRco*~uQ5v*Wl@G{m!hl$fn%oF9O`K8H;4U@JR9j1^C zFQIu|iY_6Lgc(U@VH7#T*hWYO@=fDNAx`9949Vuwxx7R diff --git a/jce_he.ts b/jce_he.ts index 4a4043a..e28c3bd 100644 --- a/jce_he.ts +++ b/jce_he.ts @@ -225,6 +225,37 @@ הערות + + +HELP1 +הכנס את שם המשתמש והסיסמה כמו שצריך + + + +HELP2 +לחץ התחבר והמתן על שהתוכנה תתחבר, עיגול ירוק למטה + + + +HELP3 +הכנס להגדרות כדי לבחור את טווח הגיליון + + + +HELP4 +לחץ על העמוד של גיליון הציונים ולחץ הוספהת המתן עד שהציונים יופיעו בטבלה + + + +HELP5 +שנה ושחק עם הציונים כדי לראות את הממוצע משתנה + + + +HELP6 +טיפ: רוצה לשנות את תקופת הזמן? לחץ על נקה, ולאחר מכן שנה את תקופת הזמן ולחץ על הוספה שוב! :-) + + diff --git a/main/main.cpp b/main/main.cpp index bf0abda..96f4be6 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -7,9 +7,8 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); QTranslator translator; - bool is; - is = translator.load("jce_he.qm", a.applicationDirPath()); - qDebug() << " =============== " << is ; + QString locale = QLocale::system().name(); + translator.load("jce_"+locale , a.applicationDirPath()); a.installTranslator(&translator); MainScreen w; w.show(); diff --git a/main/mainscreen.cpp b/main/mainscreen.cpp index 316a18d..01f5b16 100644 --- a/main/mainscreen.cpp +++ b/main/mainscreen.cpp @@ -275,21 +275,12 @@ void MainScreen::on_actionHow_To_triggered() QMessageBox::information(this,"How To", "How To.." "
    " - "
  • Insert your username and password correctly
  • " - "
  • Login and wait for the ball in the status (buttom) bar to become Green
  • " - "
  • Check Settings to select your date Interval
  • " - "
  • Press Courses tab and then press Add button and wait until courses will be loaded into the table
  • " - "
  • Change the once of the grade cell and see your average is changing.
  • " - "

    Tip: Need to change Date interval? in Courses tab click Clean, then change the date interval then hit Add again! :-)" - "
" - "

הסבר" - "
    " - "
  • הכנס את שם המשתמש והסיסמה שלך כנדרש
  • " - "
  • לחץ התחבר והמתן מספר שניות עד להופעת כדור ירוק בתחתית המסך
  • " - "
  • בדוק הגדרות כדי לבדוק את תקופת הזמן אותם תרצה להציג
  • " - "
  • לחץ על Courses ולאחר מכן על כפתור Add והמתן מספר שניות עד להופעת הקורסים בטבלה
  • " - "
  • כעת ניתן לשנות ערכים בתא הציונים ולראות את ממוצע הציונים בהתאם
  • " - "

    טיפ: רוצה לשנות את תקופת הזמן? לחץ על Clean , ולאחר מכן שנה את תקופת הזמן ולחץ על Add שוב! :-)" - "
"); + "
  • "+tr("HELP1")+"
  • " + "
  • "+tr("HELP2")+"
  • " + "
  • "+tr("HELP3")+"
  • " + "
  • "+tr("HELP4")+"
  • " + "
  • "+tr("HELP5")+"
  • " + "

    "+tr("HELP6")+ + ""); }