The dumbest question you will see today..

Permalink
that isn't related to GoDaddy and I'm a php newb.

So I have been poking around the new RC1 of Concrete5, in the block area, under basically all the blocks where it used to be
<?php echo(


it is now:

<?php echo t(


I noticed the t prefix in the halloween template that was posted and it needed to be removed from the template for the template to work correctly in c5.0.1(later changed), and I was wondering about the t.

Oh wise ones, what does the "t" mean?

ScottC
 
andrew replied on at Permalink Reply
andrew
So, this new version of c5 is going to be localized, meaning it will run in more than one language (provided someone actually provides translation files, which basically consist of all the english strings in c5, mapping to their equivalent string in another language.)

To get this to work, we had to change every part of c5 that was echoing text to the screen, and wrap it in a function. Then, we can run a script that looks through all the code for this function and grabs all the strings inside it.

Finally, inside C5, whenever this function is run, the system checks to see if an equivalent string to the one inside the function exists for the current locale/language. If the person is using a translated version of C5, their version of the string (in French, German, whatever) will be substituted for the source English phrase.
ScottC replied on at Permalink Reply
ScottC
thanks Andrew, exactly what I was looking for.