Money Manager Ex Development related posts for all platforms, including iOS, android and desktop
Moderator: Renato
elliswr
Super User
Posts: 102 Joined: Tue May 05, 2009 8:21 am
Are you a spam bot?: No
Location: Granbury, TX
Contact:
Post
by elliswr » Fri Oct 16, 2009 3:27 am
This line:
Code: Select all
<< wxT('L') << (!categ.IsEmpty() ? categ : _("Split")) << (!subcateg.IsEmpty() ? wxT(":") : wxT("")) << subcateg << endl
gives the following error.
Code: Select all
util.cpp:622: error: operands to ?: have different types 'wxString' and 'const wxChar*'
I don't really understand the syntax here with all the << stuff (never seen it before), but it appears to me that Xcode doesn't like the fact that there are two of these operations in the same line with different data types. Either that or "categ" is of type wxString and _("Split") is of a different type, because I am pretty sure that wxT(":") and wxT("") are both of type wxChar.
Nikolay
Developer
Posts: 1506 Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia
Contact:
Post
by Nikolay » Fri Oct 16, 2009 5:24 am
Hi,
Try this code:
Code: Select all
<< wxT('L') << (!categ.IsEmpty() ? categ : wxT("Split")) << (!subcateg.IsEmpty() ? wxT(":") : wxT("")) << subcateg << endl
elliswr
Super User
Posts: 102 Joined: Tue May 05, 2009 8:21 am
Are you a spam bot?: No
Location: Granbury, TX
Contact:
Post
by elliswr » Fri Oct 16, 2009 5:52 am
That worked, thanks Nikolay.
The question now is, will the translation still work?
Nikolay
Developer
Posts: 1506 Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia
Contact:
Post
by Nikolay » Fri Oct 16, 2009 7:53 am
elliswr wrote:
The question now is, will the translation still work?
Unfortunately no. But I think it's no big deal to give her attention.
Users browsing this forum: No registered users and 1 guest