# Jucer and LocalisedStrings

**URL:** <https://forum.juce.com/t/jucer-and-localisedstrings/1888>\
**Category:** The Projucer\
**Created:** [July 10, 2007, 2:03pm UTC](https://forum.juce.com/t/jucer-and-localisedstrings/1888 "2007-07-10T14:03:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![noloops](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@noloops](https://forum.juce.com/u/noloops)\
**Post date:** [July 10, 2007, 2:03pm UTC](https://forum.juce.com/t/jucer-and-localisedstrings/1888/1 "2007-07-10T14:03:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 10, 2007, 2:17pm UTC](https://forum.juce.com/t/jucer-and-localisedstrings/1888/2 "2007-07-10T14:17:47Z")

</div>

How about making the Jucer use a JUCER\_T macro instead of T() - then you could define that as either TRANS or T.

---

<div class="post-metadata">

**Author:** ![noloops](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@noloops](https://forum.juce.com/u/noloops)\
**Post date:** [July 10, 2007, 3:03pm UTC](https://forum.juce.com/t/jucer-and-localisedstrings/1888/3 "2007-07-10T15:03:11Z")

</div>

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:

```auto
addAndMakeVisible (slider1 = new Slider (T("slider1")));
```

At this places, the plain T-macro should remain.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 3:13pm UTC](https://forum.juce.com/t/jucer-and-localisedstrings/1888/4 "2017-05-12T15:13:40Z")

</div>


