Recent Topics

1 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?

2 Jan 31, 2016 05:42

In skin form submit button title

3 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)

4 Feb 02, 2016 02:32

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


Form is loading...