Copyright and multi language support

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Tue Mar 06, 2012 8:44 pm
Hi

If I write in copyright text in input field in Music template, it gets out in english OK...
But if I deleted it, some default text comes out:

Template Design © Joomla Templates | GavickPro. All rights reserved.

Is this hardcoded into .php files? I can't finde it in language files where I would expected to be?
If so, any work-around to get multi-language support, eg. for my Danish language? :D

Henrik
User avatar
Expert Boarder

GK User
Wed Mar 07, 2012 10:22 pm
Hi

I found out my self :D

Modified:
/language/en-GB/en-GB.tpl_gk_music.ini

With this:

Code: Select all
TPL_GK_LANG_COPYRIGHTS_TEXT="© 2012 Flexsus. All rights reserved."


Modified:
/templates/gk_music/layouts/blocks/footer.php

With this:
Code: Select all
 <?php if($this->getParam('copyrights', '') !== '') : ?>
  <span>
   <?php echo $this->getParam('copyrights', ''); ?>
  </span>
 <?php else : ?>
  <span>
   <?php echo JText::_('TPL_GK_LANG_COPYRIGHTS_TEXT'); ?>
  </span>
<?php endif; ?>


Copy/Paste/Edit to da-DK language

Muliti language please, Gavick :D
User avatar
Expert Boarder

GK User
Wed Mar 07, 2012 11:46 pm
Footer area is design to be most user friendly, now you can change the text without ftp access but simply from admin panel.
User avatar
Platinum Boarder

GK User
Sat Mar 10, 2012 4:57 pm
bkrztuk wrote:Footer area is design to be most user friendly, now you can change the text without ftp access but simply from admin panel.

I still think my suggestion is better than hardcoded text in code files.

I this way, the unskilled user will se Gavick copyright text, but coming from language ini files.
But if he/she write something into copyright field, this will be showen.

The skilled user can modifie language files.

Henrik
User avatar
Expert Boarder

GK User
Fri Mar 16, 2012 11:44 pm
Please look at this problem from less experienced users, usually then don't even know that exist something like language file or don't want to modify anything via ftp connection. This is the easiest way to customize template and for developer it is no problem to replace text via translation part.
User avatar
Platinum Boarder

GK User
Thu Jul 19, 2012 9:11 am
This part you will find in template language file so en-GB.tpl_gk_music.ini.
User avatar
Platinum Boarder


cron