Hi,
we are integrating the CB Subs plugin into a site for our client in Italian, and would love to centralize our Italian translations for this part of the site (beyond the things you can input in the backend, which is a lot but far from everything).
Given that the plug_cbpaidsubscriptions code contains instances like this:
CBPTXT::Th("%s's current and past %s")
or
CBPTXT::T('something something');
it seems that there is a mechanism for replacing these with a translation. Only problem is I can't find where to put this for CB Subs-specific translations.
We do have a file in com_comprofiler/plugins/language called italian.php which contains constants that are (correctly) translated to Italian for 'regular' community builder features:
DEFINE('_UE_HITS','Visite');
Changing stuff like that works. However, adding a line like:
DEFINE("Access to this content is not allowed without %s", 'Accesso vietato senza %s.');
Does not seem to get picked up by CB Subs.
SO IN SUMMARY, THE QUESTION:
which file/location do the CBPTXT::Th("original phrase") and CBPTXT::T("original phrase") go look in, so that if I add to this file DEFINE("original english phrase", 'frase tradotto in italiano'); or something similar (the convention is some .ini file though you guys seem to do it differently) it will come out as 'frase tradotto in italiano'?
(currently they obviously always fall back on the input phrase, i.e. the english one).
Thanks guys!