Jucer and LocalisedStrings

Discuss topics relating to the Introjucer (or Jucer) application

Jucer and LocalisedStrings

Postby noloops » Tue Jul 10, 2007 3:03 pm

I played with the jucer today. I added the function:

const String quotedStringT (const String& s);

which does the same as quotedString, but uses the
macro TRANS instead of the macro T. That way it was
easy to teach the jucer to create source code with the
TRANS-macro at the appropriate places.

Could this be a (switchable) feature of the next jucer
version. Right now it's hard to use the jucer for
localisation.

Jan
noloops
JUCE Geek
 
Posts: 27
Joined: Sat Mar 10, 2007 11:06 am
Location: Switzerland

Postby jules » Tue Jul 10, 2007 3:17 pm

How about making the Jucer use a JUCER_T macro instead of T() - then you could define that as either TRANS or T.
User avatar
jules
Fearless Leader
 
Posts: 17364
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Postby noloops » Tue Jul 10, 2007 4:03 pm

That's a good idea. But I think there are T-macros in the
generated code, which should never be translated, e.g.
the name properties:

Code: Select all
addAndMakeVisible (slider1 = new Slider (T("slider1")));


At this places, the plain T-macro should remain.
noloops
JUCE Geek
 
Posts: 27
Joined: Sat Mar 10, 2007 11:06 am
Location: Switzerland


Return to The Introjucer/Jucer

Who is online

Users browsing this forum: No registered users and 1 guest