[support] Translating strings added using ConTemplate

Neil: esl-lounge.com neil at esl-lounge.com
Mon Apr 9 20:19:10 UTC 2007


This is what I now have:

<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 ?>"><?php print t('My 
Wibbly'); ?></a>
</div>

(I've used Wibbly instead of Profile to make string searching easier!!)

The output is perfect but I still can't find that string using 
Admin/Localization/Manage Strings. Is this syntax correct?

Neil

----- Original Message ----- 
From: "Gerhard Killesreiter" <gerhard at killesreiter.de>
To: <support at drupal.org>
Sent: Monday, April 09, 2007 7:12 PM
Subject: Re: [support] Translating strings added using ConTemplate


> -----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-----
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]
> 



More information about the support mailing list