1. tomrowel
  2. Bug Report
  3. Thursday, January 18 2018, 09:58 AM
Any idea why the string 'COM_JSN_EMAILACTIVATION_ACTIVATED' literally shown on the website? :o

All other strings show the translations.
Attachments (1)
admin Accepted Answer
Admin
Hi,
which language do you use?
  1. more than a month ago
  2. Bug Report
  3. # 1
tomrowel Accepted Answer
Pro
Dutch
  1. more than a month ago
  2. Bug Report
  3. # 2
admin Accepted Answer
Admin
ok,
we does not provide Dutch translation so It's possible that you use a old file (downloaded from another source) that does not contain recent language strings.

Sometimes when we release a new version that include some new feature then we need to add some new language string. This string comes from version 2.3.0+, but probably you have a language translations for Easy Profile 2.2.x.

To solve you need to add manually this string into file /language/nl-NL/nl-NL.com_jsn.ini.

To avoid this problem with other language strings you can check if file /language/nl-NL/nl-NL.com_jsn.ini contain all language string available in file /language/en-GB/en-GB.com_jsn.ini (English translation provide by us).
  1. more than a month ago
  2. Bug Report
  3. # 3
tomrowel Accepted Answer
Pro
I manually created /language/nl-NL/nl-NL.com_jsn.ini from the English version and translated everything.
And that seems to work EXCEPT for COM_JSN_EMAILACTIVATION_ACTIVATED.

So I checked the spelling but also checked /plugins/user/jsn_users/jsn_users.php line 796.

Everything seems OK but still the translation is not shown as you can see on the screenshot I added.
  1. more than a month ago
  2. Bug Report
  3. # 4
tomrowel Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 5
tomrowel Accepted Answer
Pro
Uploaded language file
  1. more than a month ago
  2. Bug Report
  3. # 6
admin Accepted Answer
Admin
Uploaded language file
Have you solved?

Otherwise please post me file /language/nl-NL/nl-NL.com_jsn.ini (use zip format, because this forum block .ini file) to check it.
  1. more than a month ago
  2. Bug Report
  3. # 7
tomrowel Accepted Answer
Pro
I cannot upload language file, am not sure why? Aha, no .ini extension allowed. Changed to .txt
  1. more than a month ago
  2. Bug Report
  3. # 8
tomrowel Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 9
admin Accepted Answer
Admin
Hi,
strange I have just tried your language file and works.

Have you tried to clean your cache?
Attachments (1)
  1. more than a month ago
  2. Bug Report
  3. # 10
tomrowel Accepted Answer
Pro
Yes cleaned cache. I even tried an incognito tab on Google Chrome. But still the same result, only placeholder is shown.
  1. more than a month ago
  2. Bug Report
  3. # 11
tomrowel Accepted Answer
Pro
Very strange.

I change line 796 in jns_users.php to

// $app->enqueueMessage(JText::_('COM_JSN_EMAILACTIVATION_ACTIVATED'));
$app->enqueueMessage(JText::_('COM_JSN_EMAILACTIVATION_SUBJECT'));

Because I know that this is working in the email. I see the translated subject.

However when I confirm activation link it shows me the new untranslated place holder???
  1. more than a month ago
  2. Bug Report
  3. # 12
tomrowel Accepted Answer
Pro
And string does not appear multiple times in source code?


[root@rakker public_html]# find . -type f | xargs grep -n "COM_JSN_EMAILACTIVATION_ACTIVATED"
./language/en-GB/en-GB.com_jsn.ini:188:COM_JSN_EMAILACTIVATION_ACTIVATED="Thank you!\n Your new email address has now been activated and you can use it."
./language/nl-NL/nl-NL.com_jsn.ini:187:COM_JSN_EMAILACTIVATION_ACTIVATED="Bedankt!\n Uw nieuwe email adres is nu geactiveerd en u kunt deze gebruiken."
./plugins/user/jsn_users/jsn_users.php:796:// $app->enqueueMessage(JText::_('COM_JSN_EMAILACTIVATION_ACTIVATED'));

  1. more than a month ago
  2. Bug Report
  3. # 13
tomrowel Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 14
admin Accepted Answer
Admin
mmmh....please try this modification: in file jsn_users.php before line 33 add this code:
$lang = JFactory::getLanguage();
$lang->load('com_jsn');


so basically line 33 become from
$this->activateNewEmail();
to
$lang = JFactory::getLanguage();
$lang->load('com_jsn');
$this->activateNewEmail();


This should force Joomla to load Easy Profile language string. If it works we will add this fix in next release.
  1. more than a month ago
  2. Bug Report
  3. # 15
tomrowel Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 16
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.