13 Jan 2018 20:36

hI Please how to translate in comment "add new comment" un cobalt built in comment ? i tried CADDCOMMENT="Add new comment" but no succès and please how to translate "Sticky read" please ? thanks

Last Modified: 06 Sep 2023

Giorgi625 VIP
Total posts: 655
20 Jan 2018 09:49

In location /components/com_cobalt/views/records/tmpl you need to fined your forums list view template. for me it is php default_list_forum php

and go to verry bottom of this file you will see this code where you can find what you want to translate, you can directly translate in this file or add your own constant and then translate in ini file or joomla backend language overrides.

<?php if($app->input->get('api') != 1):?>
<div class="row-fluid small">
    <div class="span4">
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/pin.png" alt="<?php echo Mint::_('Sticky read')?>" /> <?php echo Mint::_('Sticky read')?><br>
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/pin--plus.png" alt="<?php echo Mint::_('Sticky unread')?>" /> <?php echo Mint::_('Sticky unread')?><br>
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/pin--exclamation.png" alt="<?php echo Mint::_('Sticky new events')?>" /> <?php echo Mint::_('Sticky new events')?>
    <div class="span4">
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/mail.png" alt="<?php echo Mint::_('Read')?>" /> <?php echo Mint::_('Read')?><br>
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/mail--plus.png" alt="<?php echo Mint::_('Unread')?>" /> <?php echo Mint::_('Unread')?><br>
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/mail--exclamation.png" alt="<?php echo Mint::_('Read with new events')?>" /> <?php echo Mint::_('Read with new events')?>
    <div class="span4">
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/lock.png" alt="<?php echo Mint::_('Closed topic read')?>" /> <?php echo Mint::_('Closed topic read')?><br>
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/lock--plus.png" alt="<?php echo Mint::_('Closed topic unread')?>" /> <?php echo Mint::_('Closed topic unread')?><br>
        <img align="absmiddle" src="/<?php echo JURI::root()?>images/forum/lock--exclamation.png" alt="<?php echo Mint::_('Closed topic with new events')?>" /> <?php echo Mint::_('Closed topic with new events')?>
<?php endif;?>

To Translate "Add new comment" go to forum type and on this types edit page go to tab "General Parameters" where you can see templates for submission form, full view, rating and comments. click on button on the right of comment template name and you will get modal window. on its very bottom you will find how to translate.

20 Jan 2018 11:55

ah thank you so much

Total posts: 2
23 Feb 2023 09:34

I had this problem a few days ago, fortunately I found your post, fnf thanks

Total posts: 7
19 Jul 2023 02:41

The article's encouragement of skepticism and inquiry is motivating. It piques the reader's interest and motivates further investigation. retro goal

Total posts: 2
06 Sep 2023 01:29

To do that, you would typically need to work within the Cobalt build now gg system and its localization settings.

Powered by Cobalt