Page 1 of 1

0.9.5 Language Button Broken[Fixed]

Posted: Sat Oct 17, 2009 4:27 pm
by omalleypat
The Languages button in preferences appears to be broken in the 0.9.5 branch.

Re: 0.9.5 Language Button Broken

Posted: Sat Oct 17, 2009 4:44 pm
by Nikolay
It's working for me (Windows XP).

Re: 0.9.5 Language Button Broken

Posted: Sat Oct 17, 2009 7:30 pm
by elliswr
Confirmed broken on Mac.

Note to self: add this to our 0.9.5.0 "TODO before release" list.

Re: 0.9.5 Language Button Broken

Posted: Sun Oct 18, 2009 1:04 am
by omalleypat
This fixes it for me...Wes, can you verify? I think it is an XCode issue with the runtime/resources folder, the en and help folders aren't created inside the Resources folder when I build.

/src/util.cpp

Code: Select all

@@ -186,7 +186,7 @@
 	wxString langPath = fname.GetPath(wxPATH_GET_VOLUME)
 		+ wxT("//en//");
 #if defined (__WXMAC__) || defined (__WXOSX__)
-	langPath = wxT("MMEX.app/Contents/Resources/en/");
+	langPath = wxT("MMEX.app/Contents/Resources/");
 #endif
 #if defined (__WXGTK__)
     mmApp->m_locale.AddCatalogLookupPathPrefix(fname.GetPath(wxPATH_GET_VOLUME));

Re: 0.9.5 Language Button Broken

Posted: Sun Oct 18, 2009 10:46 pm
by elliswr
I figure it would be better to actually move the files rather than change the code, because I want to move to using wxStandardPaths in the near future for all the resource files. This will lead to more code sharing between the different operating systems and less #if #else statements.

So to fix this without changing the current code and put the files in the place I originally intended, I created a new build phase, made it's destination Resources and added a Path of "en". Then I added all the files from within the en folder and voila we have what we want.

Here is a screen shot showing the settings.
Screen shot 2009-10-18 at 5.41.30 PM.png
Good catch, Pat.
(45.34 KiB) Downloaded 947 times