Recent Topics

May I ask why use the 'NT_()' in the inskin form submit buttion title but not 'T_()' ?

started by on Jan 31, 2016 – Last touched: Feb 04, 2016

Jan 31, 2016 05:41    

I ask this question because I met a problem when use the inskin-form submit, everything is ok but the submit button which is not translated to my local language(my local language is Chinese), however I had translated all the words in the .po file and had been extracted. So I tried to find the problem then found in inc\collections\model\_blog.funcs.php about line: 1017,

'published'  => NT_('Save as Public!'),

It's used the 'NT_()' not the 'T_()' which I always see. Now I know the use of this function is not translate the words. But why?

Jan 31, 2016 05:42

In skin form submit button title

Feb 01, 2016 18:29

NT means No Translate. It is used when we want to Mark a string as translatable but don't need to translate it immediately. This is the case if we assign a string to a variable but we're not sure yet if we will display it. In that case we need to use T_ on the vatiable later.

I need to check the code to answer better (I'm on my phone now)

Feb 02, 2016 02:32

Ok. I eager to know more about the code.Now I know the using of the NT function. Thank you!

Form is loading...

multiblog engine – This forum is powered by b2evolution CMS, a complete engine for your website.