| 
Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: How to translate / how to align titles an content

Re: How to translate / how to align titles an content 2 years 4 months ago #193695

  • bk6366
  • bk6366
  • OFFLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 127
  • Karma: 4
Ok,
I downloaded the 'Last Visitors' add-on and took a look at the files.
I've (crudely) translated them to include a screen capture for your reference:

lastvisits.jpg



If you would rather edit the translation, make your changes as follows around line 36.
You will find cb.lastviews.php in
your_website_root/components/com_comprofiler/plugin/user/plug_cblastviewstab (backup the original first in case something goes wrong).
$LVthelast = $params->get( 'LVthelastTXT', 'Das Letzte' );
$LVadmin = $params->get( 'LVadminTXT', '(admin)' );
$LVviews	 = $params->get( 'LVviewsTXT', 'ansichten' );
$LVavatar = $params->get( 'LVavatarTXT', 'Foto' );
$LVname	 = $params->get( 'LVnameTXT', 'Nennen' );
$LVtime = $params->get( 'LVtimeTXT', 'Zeit' );
$LVtotal = $params->get( 'LVtotalTXT', 'Gesamt' );
$LVguests = $params->get( 'LVguestsTXT', 'Gäste haben dieses Profil besucht.' );

Hope this helps :)
bk
---
J1.7.3 / CB 1.7.1 / PHP 5.2.17 (no, not upgrading yet)
Current J/CB Project

'Terse'
Guide to getting answers
Please note that pm's related to CB issues will go unanswered. That's what the forums are for.
Last Edit: 2 years 4 months ago by bk6366.
The administrator has disabled public write access.

Re: How to translate / how to align titles an content 2 years 4 months ago #193850

Hi bk6366,

I think there es a small missunderstanding :unsure: It is already possible by the help of the tab parameters of this plugin to change the heading titles (there are some parameter fields). BUT my website is in English and German (bilingual). So the site should change dynamically when I change the site language...this means to hardcode the language strings doesn't help....may be it is not possible with this plugin...what do you think? Cheers

tab_parameters.PNG
The administrator has disabled public write access.

Re: How to translate / how to align titles an content 2 years 4 months ago #193852

  • bk6366
  • bk6366
  • OFFLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 127
  • Karma: 4
Ok, I understand what you're trying to do.
I haven't personally worked with multi-lingual sites but I understand the dynamic concept.
I'll have some time later to see if there's anything I can dig up. Maybe someone else will jump in in the meantime to help :)
bk
---
J1.7.3 / CB 1.7.1 / PHP 5.2.17 (no, not upgrading yet)
Current J/CB Project

'Terse'
Guide to getting answers
Please note that pm's related to CB issues will go unanswered. That's what the forums are for.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.216 seconds