This topic is locked

Multilanguage labels problem

6/24/2011 3:23:00 AM
PHPRunner General questions
B
bluedude author

Hi, I added a field to a list view and want to translate the label but it is linked to another translation for some reason. So if I translate it another text in my solution is also translated.
How can you map a certain translation ID to a field? I cannot seem to fix it.
Cheers,

C
cgphp 6/24/2011
B
bluedude author 6/26/2011

That isn't the problem. Let me explain more.
I have a field in a list page and on that field I want to use the hyperlink. In want to use the option Display Word and translate that. However, it links to a wrong label so if it translate it it will change one of my other options too. Is there a way to point this hyperlink text to a new custom label that I create?
How is this internal field->label mapping done? In which file?
Cheers,

C
cgphp 6/26/2011

You could use a custom field and the "GetCustomLabel" function:



$value = "<a href=\"you link here\" title=\"\">".GetCustomLabel("you_custom_label_id")."</a>";


Custom labels are located in:

webroot\your_app_name\include\appsettings.php
B
bluedude author 6/27/2011

Sure, but can't I just relink the correct ID? I mean, it normally works on my other hyperlinks. I don't want to use custom code.