Amelioration de la version francaise

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@27 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet 2006-11-19 13:57:45 +00:00
parent 423a586c75
commit eb62046353
5 changed files with 4181 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<definition type="element" nom="Disjoncteur-sectioneur" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny"> <definition type="element" nom="Disjoncteur-sectionneur" width="25" height="70" hotspot_x="15" hotspot_y="5" orientation="dnny">
<!--Contact--> <!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" /> <ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" style="normal" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" /> <ligne x1="0" y1="0" x2="0" y2="20" antialias="false" style="normal" />

BIN
lang/qt_fr.qm Normal file

Binary file not shown.

4174
lang/qt_fr.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11,9 +11,14 @@ int main(int argc, char **argv) {
// Creation de l'application // Creation de l'application
QApplication app(argc, argv); QApplication app(argc, argv);
QString system_language = QLocale::system().name().left(2);
// charge les eventuelles traductions pour la lib Qt
QTranslator qtTranslator;
qtTranslator.load("qt_" + system_language, QETApp::languagesPath());
app.installTranslator(&qtTranslator);
// determine la langue a utiliser pour l'application // determine la langue a utiliser pour l'application
QTranslator trad; QTranslator trad;
QString system_language = QLocale::system().name().left(2);
if (system_language != "fr") { if (system_language != "fr") {
// utilisation de la version anglaise par defaut // utilisation de la version anglaise par defaut
if (!trad.load("qet_" + system_language, QETApp::languagesPath())) trad.load("qet_en", QETApp::languagesPath()); if (!trad.load("qet_" + system_language, QETApp::languagesPath())) trad.load("qet_en", QETApp::languagesPath());