I am using a custom module for my site, and I am using node_load to get the field value of type "long text" field and field of value of type "text".

Something like this 

$com_types = "".$ucom->node_title."";

How should I translate $ucom->node_title ?

t() function does not translate variables.

Thanks


Question: How to color lat/lon points in given RGB data?
Answer: The feature you want is implemented as "Data defined properties". See Data-defined Styles in QGIS for a first announcement.

It works for me this way:


Load the data as delimited text, and save it as a shapefile with CRS EPSG:4326 WGS84
Right-click on the layer -> Properties -&gt; Style
Leave the topmost dropdown field at Single Symbol
Click on Simple Marker below
On the right, click on Data defined properties
Check Fill Color, then on the epsilon to the right
In the field top left, select color, then color_rgb
Click on Fields and Values, then on the field for red
add a comma
proceed with the green and blue field, and close the bracket
Click OK to leave the forms


My color values are between 0 and 255, but scaling that should be a minor problem for you...

N,E,R,G,B
54.20,7.78,239,158,94
51,8,129,72,122
50.5,7,123,34,55
50,6,23,210,233
51.5,8,233,14,140
52,7.5,23,25,100
53,6,100,23,23
52.5,7,200,40,10