Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

String COM_COMMUNITY_FILES_UPLOAD_BY adds english word at end (not translatable)

6 years 3 weeks ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

The string COM_COMMUNITY_FILES_UPLOAD_BY which is in english:

Uploaded by %1$s in %2$s %3$s

Adds the word "Bulletin" at the end. As far as I can see, first and second variable are correctly processed.
3$s not

The string is used here: test-myshadowmc.westeurope.cloudapp.azur...letinid=3&Itemid=104 (only visable on test site at this moment)
Of cause you have to set language to Dutch to see it.
Go to bottom of page and press More (Meer). In the dialog box is is displayed at the bottom of each file.

Attachments:
6 years 3 weeks ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

I'm not sure what should be displayed there sine "bulletin" looks to be accurate. All the links from this area are opening page from a category bulletin.

If You want to change the 3rd value than the code for that part is in /component/com_community/templates/jomsocial/layouts/files.listing.php:

<p class="uploaded"><small><?php echo JText::sprintf('COM_COMMUNITY_FILES_UPLOAD_BY' , $userlink , $_data->parentName , $_data->parentType );?></small></p>

6 years 3 weeks ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

BULLETIN is not just the right word in Dutch.
In the Dutch translation the word GESPREK is also used in translation files.
So why is BULLETIN shown while in the language files it is translated into GESPREK.

Or is the word BULLETIN hard coded? If so then that is an error which should be fixed, because than there is some hardcoded language.
As far as I can see the string $_data->parentType provides the UNTRANSLATED value instead of the TRANSLATED value.

6 years 3 weeks ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Any news on this?

6 years 3 weeks ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

Trying to make a copy of Your site since morning, but the package keeps disappear. Are You deleting them? Please leave it so I can make a copy of Your site to scan.

This "bulletin" is not taken from translations, but from aliases in joomla. This is why I need to scan it to answer exactly.

6 years 3 weeks ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

I don't know which package you are talking about, sorry. A file? Which contains what? Where stored, which location?
I did not delete anything I know about, sorry.

6 years 3 weeks ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

Ok, got to the bottom of this function and it was never supposed to be translate. It's simply showing a type of am entry:

public function getParentType($obj)
{
if($obj->discussionid)
{
$obj->parentType = 'discussion';
}
elseif($obj->bulletinid)
{
$obj->parentType = 'bulletin';
}
elseif($obj->eventid)
{
$obj->parentType = 'event';
}
elseif($obj->profileid)
{
$obj->parentType = 'profile';
}
elseif($obj->groupid)
{
$obj->parentType = 'group';
}

return $obj;
}


It was never designed to be translated. I've added such possibility for You with this small change to the previously mentioned code:

<?php $dataparentType = JText::_('COM_COMMUNITY_'.$_data->parentType); ?>
<p class="uploaded"><small><?php echo JText::sprintf('COM_COMMUNITY_FILES_UPLOAD_BY' , $userlink , $_data->parentName , $dataparentType );?></small></p>



Please now translate those extra values:
COM_COMMUNITY_discussion
COM_COMMUNITY_bulletin
COM_COMMUNITY_event
COM_COMMUNITY_profile
COM_COMMUNITY_group

The following user(s) said Thank You: Vladimir
6 years 3 weeks ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Okay, no problem to translate, however ...

- Have you put the strings in transifex for me to translate for Dutch language? Where to translate them?
- You have changed the code. Is it in overwrite mode on site now? Which file? Or should I change again after update?
- Will change be added to next update of Jomsocial?

==================

COM_COMMUNITY_discussion = "gesprek"
COM_COMMUNITY_bulletin = "mededeling"
COM_COMMUNITY_event = "bijeenkomst"
COM_COMMUNITY_profile = "profiel"
COM_COMMUNITY_group = "groep"

6 years 2 weeks ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

File is as mentioned before: /component/com_community/templates/jomsocial/layouts/files.listing.php

It's in JS template, so it should not get overwritten, but of course You can move it to overrides just in case.

The translations simply can be added to joomla's /language folders.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW