Any questions about Documents Sellers, post it here .

How to translate files details?

  • claudiodestasio
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 10 months ago #13655 by claudiodestasio
How to translate files details? was created by claudiodestasio
Is possible to translate file details?
In particular:
1) type of document (for example "application/msword")
2) the date and time format

Attachments:

Please Log in or Create an account to join the conversation.

  • claudiodestasio
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 10 months ago #13675 by claudiodestasio
Replied by claudiodestasio on topic Re: How to translate files details?
I solved for the date.
I don't know php programming but searching the internet i found the class JHTML.

Edited file: com_dms/views/document/tmpl/default.php

i replace:

<?php echo $this->item->data->getDate('c'); ?>

with:
<?php echo JHtml::_('date', $this->item->data->getDate('c'), JText::_('DATE_FORMAT_LC2')); ?>


and
<?php echo $this->item->data->getDate('m'); ?>

with:
<?php echo JHtml::_('date', $this->item->data->getDate('m'), JText::_('DATE_FORMAT_LC2')); ?>

It's correct?
There is a solution also for mime type?

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #13706 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to translate files details?
Hi

Unfortunately, we cannot translate Mimetype. The mimetype is hardcoded and we cannot translate it !

Regards,

Tuan

Please Log in or Create an account to join the conversation.