[support] Translating strings added using ConTemplate

Gerhard Killesreiter gerhard at killesreiter.de
Mon Apr 9 17:12:47 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil: esl-lounge.com schrieb:
> I am playing around with ConTemplate and am very pleased with the way you can insert a whole host of php variables.
> 
> I have the following in one of my node types:
> 
> <div style="background-color:#efefef;width:200px;height:30px;border:3px outset silver;font-size:1.1em;list-style-type:none;">
> <a href="profile/<?php print $node->user->uid ?>">My Profile</a>
> </div>
> 
> and it does indeed provide a link to the user's Profile page. As I have a multi-lingual site, I need to now be able to translate that "My Profile" string. I can't find it under Localization/Manage Strings.
> 
> I know that in standard module scripts, you only need to wrap the string in t() to be able to manage and translate that string using Localization. So, in short, how can text I add using ConTemplate be made into a translatable string? Does anyone have any experience of this?

Did you try wrapping it in t()?

Cheers,
	Gerhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGGnQOfg6TFvELooQRAneyAJ9q8KkcTKYfEmV3vsBXCDBwKNkNHwCeLmS/
Smkv6mU0BOoH+8mgRmuWKlM=
=zmqC
-----END PGP SIGNATURE-----


More information about the support mailing list