- Posts: 24
- Thank you received: 0
Any questions about Documents Sellers, post it here .
How to translate files details?
- claudiodestasio
- Topic Author
- Offline
- Junior Member
Less
More
12 years 10 months ago #13655
by claudiodestasio
How to translate files details? was created by claudiodestasio
Please Log in or Create an account to join the conversation.
- claudiodestasio
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
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?
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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
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.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.