0 Members and 1 Guest are viewing this topic.

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Profil-Rating tanslation
« on: September 19, 2017, 10:42:06 PM »
The Profil-Rating {$item.rating} / {$item.description}gets it gfrom the backend? So, how to handle the translation?

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #1 on: September 20, 2017, 12:08:35 AM »
Hi ba1122,

I asume this is in the nickpage_newrating.tpl?

You can replace the:
Code: [Select]
{$item.rating}
Change to:
{lang mkey='rating'}

For the {$item.description} you will have to add this to the lang file.
Code: [Select]
$lang['rating_description']= 'How would you rate this profile?';
After reloading the language in the admin

Then you can change the:
Code: [Select]
{$item.description}
to:
Code: [Select]
{lang mkey='rating_description'}
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #2 on: September 20, 2017, 10:17:20 PM »
Ok, thanks. That means, this is the way to translate everything I need, if there is something like $item.description ? Where cann I find this $item.description? Is it in the php-files?

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #3 on: September 20, 2017, 10:29:42 PM »
Hi ba1122,

I think so, most of them you should be able to do it to, just test first so you know it works.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #4 on: September 20, 2017, 10:53:05 PM »
It would be good, if all relevant parts would be translatable in the same kind.

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #5 on: September 20, 2017, 11:01:43 PM »
Hi Ba1122,

Yeah I wasn't aware that the last dev team had done this until you pointed it out.

When I get time, I will look through them, I hope there isn't to many to find?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #6 on: September 21, 2017, 01:43:39 PM »
I can tell you, when I'm going through the fies step by step, if you like.
The parts where the {$item.description} like translations where placed should be eliminated, so that the code is clean.

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #7 on: September 21, 2017, 10:24:19 PM »
Hi ba1122,

Yes please, can you attache a list and I will change them all in the main templates also?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Re: Profil-Rating tanslation
« Reply #8 on: September 22, 2017, 11:13:40 AM »
I don't have a list at the moment. I must go through the files.