User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:devel:cbtranslation [2017/07/08 02:07]
joebordes [cbtranslation webservice]
en:devel:cbtranslation [2018/12/27 12:23] (current)
joebordes [cbtranslation::get()]
Line 49: Line 49:
 The basic usage is <wrap hi>​cbtranslation::​get('​friend'​)</​wrap>​ that will return the value of '​friend'​ taken from the module cbtranslation values (equivalent to the previous main translation file in include/​language). The basic usage is <wrap hi>​cbtranslation::​get('​friend'​)</​wrap>​ that will return the value of '​friend'​ taken from the module cbtranslation values (equivalent to the previous main translation file in include/​language).
  
-Next we can pass in the module as we did before with getTranslatedString,​ <wrap hi>​cbtranslation::​get('​friend','​Users'​)</​wrap>​), which will return the value of '​friend'​ taken from the Users module translations entries in the database.+Next we can pass in the module as we did before with getTranslatedString,​ <wrap hi>​cbtranslation::​get('​friend','​Users'​)</​wrap>,​ which will return the value of '​friend'​ taken from the Users module translations entries in the database.
  
 The third parameter is an array with a set of options for the translation. The third parameter is an array with a set of options for the translation.