jakubovic / open-phd-guiding

Automatically exported from code.google.com/p/open-phd-guiding
0 stars 0 forks source link

locale and problem with language selection box #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The problem manifests as link error. Looking more closely i have a couple of 
comments.

First of all:
binary packages from:
deb http://repos.codelite.org/wx2.9/debian/ squeeze libs

$ wx-config --selected-config --version
2.9.4
gtk2-unicode-2.9-unofficial

$ g++ -o bug wx_plural_bug.cc $(wx-config --cxxflags) $(wx-config --libs 
core,base,net,html,aui)
/tmp/cch1Yvyw.o: In function `wxMsgCatalog::~wxMsgCatalog()':
wx_plural_bug.cc:(.text._ZN12wxMsgCatalogD2Ev[_ZN12wxMsgCatalogD5Ev]+0x19): 
undefined reference to 
`wxPluralFormsCalculatorPtr::~wxPluralFormsCalculatorPtr()'
collect2: error: ld returned 1 exit status

$ cat wx_plural_bug.cc 
#include <wx/intl.h>

int main(void) {
    wxMsgCatalog *c = wxMsgCatalog::CreateFromFile(wxT("w.mo"), wxT("w"));
    delete c;
    return 0;
}

Talked with the wxWidgets people, they suggests that:
However looking at the wxMsgCatalog doc I found:
"This class should only be used directly by wxTranslationsLoader 
implementations."

So the listing of languages should be re-implemented to avoid using wxCatalog.

Second sub-issue: "locales/"
The directory name where locales reside is, for installed software:
/usr/share/locale/wa/LC_MESSAGES/myapp.mo
To make that work transparently, i would like to rename the "locales" dir to 
"locale" to facilitate development where the .mo files are not installed yet.

Third sub-issue: translations
Back then, i created a launchpad project to have a nice way for not so 
technical interested people to help us with translations. See
https://translations.launchpad.net/open-phd-guiding/trunk

I intend to update this launchpad project with the (new) fr_FR translation 
which is in the current phd2 src. I would prefer to add the more active phd2 
developer(s) to this launchpad project so you can also fiddle with the 
translation stuff, if you like.

PS: It would be nice to have a mailing-list for these kind of discussions. 
Using a Web-interface is pretty inconvenient IMO.

Original issue reported on code.google.com by rep.dot....@gmail.com on 6 Jun 2013 at 1:51

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r357.

The only  way I found to browse every translations to get the localized 
language name (i.e. "Français" rather than "French") is with wxMsgCatalog. 
With this commit, it will be compiled only under Windows and we will display 
English language name provided by wxWidget on other OS.

Original comment by zesl...@gmail.com on 6 Jun 2013 at 7:52

GoogleCodeExporter commented 9 years ago
Please also
svn mv locales_compile.cmd locale_compile.cmd
svn mv locales_update.cmd locale_update.cmd

and update contents of these 2 batch scripts, like:
sed -i -e s/locales/locale/g locale*.cmd

thanks!

I'm not too happy with doing that on windows only, it would be nice to find a 
proper way to handle these, yes. I'll try to have a look during the weekend.
Cheers, 

Original comment by rep.dot....@gmail.com on 7 Jun 2013 at 3:23

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r363.

Original comment by zesl...@gmail.com on 8 Jun 2013 at 6:48