French translation of the GUI available (Documentation Bugs and Problems)

by Frédéric @, Sunday, February 17, 2013, 08:47 (1497 days ago) @ Frédéric

I managed to make it work. First I found that I just need to run lrelease-qt4 to generate the .qm file. Then the problem was that some paths are written in the code and do not change when BASIC256.pro is updated with new paths. Below is the patch I had to apply to make translation work with my non standard paths. Would be nice that these be changed when BASIC256.pro is updated.
How can I submit the French translation?

Frédéric

--- DocumentationWin.cpp 2013-01-21 05:08:41.000000000 +0100
+++ ../basic256_0.9.9.46a/DocumentationWin.cpp 2013-02-17 09:34:59.166193104 +0100
@@ -67,7 +67,7 @@

docs->setSearchPaths(QStringList()
<< QApplication::applicationDirPath() + "/help/"
- << "/usr/share/basic256/help/"
+ << "/softs/usr/basic256/help/"
<< "./"
<< QApplication::applicationDirPath() + "/../wikihelp/help/"
<< QApplication::applicationDirPath() + "/wikihelp/help/"
--- Main.cpp 2012-08-06 16:56:13.000000000 +0200
+++ ../basic256_0.9.9.46a/Main.cpp 2013-02-17 08:57:47.595612586 +0100
@@ -80,7 +80,7 @@
#ifdef WIN32
ok = kbTranslator.load("basic256_" + localecode, qApp->applicationDirPath() + "/Translations/");
#else
- ok = kbTranslator.load("basic256_" + localecode, "/usr/share/basic256/");
+ ok = kbTranslator.load("basic256_" + localecode, "/softs/usr/basic256/");
#endif
qapp.installTranslator(&kbTranslator);

--- BASIC256.pro 2013-02-05 18:56:33.000000000 +0100
+++ ../basic256_0.9.9.46a/BASIC256.pro 2013-02-17 08:42:05.427708523 +0100
@@ -17,7 +17,8 @@
Translations/basic256_de.ts \
Translations/basic256_ru_RU.ts \
Translations/basic256_sp.ts \
- Translations/basic256_nl.ts
+ Translations/basic256_nl.ts \
+ Translations/basic256_fr.ts
LIBS += -lsqlite3

win32 {
@@ -61,12 +62,12 @@
# uncomment one of the options

## TTS Option 1 - ececute 'espak' command to speak
- #DEFINES += LINUX_ESPEAK_EXECUTE
+ DEFINES += LINUX_ESPEAK_EXECUTE

## TTS Option 2 - use the espeak library
- DEFINES += LINUX_ESPEAK
- INCLUDEPATH += /usr/include/espeak
- LIBS += -lespeak
+ #DEFINES += LINUX_ESPEAK
+ #INCLUDEPATH += /usr/include/espeak
+ #LIBS += -lespeak

## TTS Option 3 - use the flite library
#DEFINES += LINUX_FLITE
@@ -101,19 +102,19 @@
# rules for make install
########
exampleFiles.files = ./Examples
- exampleFiles.path = /usr/share/basic256
+ exampleFiles.path = /softs/usr/basic256
INSTALLS += exampleFiles

helpHTMLFiles.files = ./wikihelp/help
- helpHTMLFiles.path = /usr/share/basic256
+ helpHTMLFiles.path = /softs/usr/basic256
INSTALLS += helpHTMLFiles

transFiles.files = ./Translations/*.qm
- transFiles.path = /usr/share/basic256
+ transFiles.path = /softs/usr/basic256
INSTALLS += transFiles

# main program executable
- target.path = /usr/local/bin
+ target.path = /softs/usr/basic256/bin
INSTALLS += target

}


Complete thread:

 RSS Feed of thread

powered by my little forum