*

hepi

  • **
  • 16 posts
how to change the language user/login and user/register
« on: July 16, 2020, 11:40:33 PM »
Hei,

can you help me to change the language "Login into your account" on user/login and Create a new account on user/register.

I have tried poedit, but only that 2 words won't change.

Thanks.

*

MB Themes

Re: how to change the language user/login and user/register
« Reply #1 on: July 17, 2020, 08:03:56 AM »
Check theme translations, you must update po and mo files
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

hepi

  • **
  • 16 posts
Re: how to change the language user/login and user/register
« Reply #2 on: July 17, 2020, 09:35:10 AM »
yes I did, but strangely only that sentence won't change.  :-\

*

MB Themes

Re: how to change the language user/login and user/register
« Reply #3 on: July 18, 2020, 10:16:00 AM »
Open .po file with notepad and check if that file reference user-register file.
If yes, everything is ok in theme
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

hepi

  • **
  • 16 posts
Re: how to change the language user/login and user/register
« Reply #4 on: July 18, 2020, 07:01:14 PM »
it is written helpers/hTheme.php:571

but it should be 582

(571)$lang['user_dashboard_profile'] = __("%s's profile", osc_current_web_theme());

(582)$lang['register']               = __('Create a new account', osc_current_web_theme());

I have change from 571 to 582 but it won't works.


*

hepi

  • **
  • 16 posts
Re: how to change the language user/login and user/register
« Reply #5 on: July 18, 2020, 07:37:19 PM »
//From this
osc_add_filter("mcf_oneaction_title", function ($text) {
        return mtk_title();
    });

//To this

osc_add_filter("mcf_oneaction_title", function ($text) {
        return __("Login", osc_current_web_theme());
    });

1. where to find mtk_title?
2. does it affect the system?

Thanks

*

MB Themes

Re: how to change the language user/login and user/register
« Reply #6 on: July 21, 2020, 10:54:09 AM »
@hepi
It would be strange that translation works ok for 100 000 sites and just yours needs modification in osclass core.
Check your tranlsation files instead and upload both mo and po files.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots