you are logged in as: $a

you are logged in as: $a

ved seaghan moriarty -
Antal besvarelser: 7


Does anyone know if the error below might be caused by an incomplete language pack?

Behaviour

When logged in (English) it says You are logged in as Admin User
When logged in (Polish) it says Jesteś zalogowany(a) jako Admin User
When logged in (German/French/etc.) it also says ................. Admin User

However, when logged in (Gaeilge - Irish/GA) it says: Tá tú logáilte isteach mar: $a
In other words, most languages show Firstname Lastname, but while using Gaeilge/Irish it only shows $a

Can anyone suggest what might be wrong?  thanks!! 


Gennemsnitsbedømmelse: -
I svar til seaghan moriarty

Re: you are logged in as: $a

ved Juho Jaakkola -

Yes, there's probably something wrong with the Gaeilge language file. Open the language file and look for this:

$string['loggedinas']

For example in the English language file it has the following value:

$string['loggedinas'] = 'You are logged in as {$a}';

Note that $a has curly braces around it. One reason may be that those are missing from the Gaeilge language file.

Gennemsnitsbedømmelse:Useful (1)
I svar til Juho Jaakkola

Re: you are logged in as: $a

ved Helen Foster -
Billede af Core developers Billede af Documentation writers Billede af Moodle HQ Billede af Particularly helpful Moodlers Billede af Plugin developers Billede af Testers Billede af Translators

Juho is correct - the problem is indeed caused by missing curly braces.

I found the string and contributed a fix for it on the Moodle translation site. Hopefully one of the Irish language pack maintainers will accept it soon. In the meantime Seaghan you can use the Language customisation feature in Moodle (Administration > Site administration > Language> Language customisation) to quickly fix it on your site.

Gennemsnitsbedømmelse:Useful (2)
I svar til Helen Foster

Re: you are logged in as: $a

ved seaghan moriarty -
Thanks for your help.


I have updated the local customisation text to "Tá tú logáilte isteach mar: {$a}"  for the Irish language pack (Administration -> Site administration -> Language customisation), however now in the top bar I am getting the text "Tá tú logáilte isteach mar: $a->firstname $a->lastname".

It doesn't seem to be recognising $a as an object?


I svar til seaghan moriarty

Re: you are logged in as: $a

ved Tim Hunt -
Billede af Core developers Billede af Documentation writers Billede af Particularly helpful Moodlers Billede af Peer reviewers Billede af Plugin developers

I think the problem is that the string has been translated as

"Tá tú logáilte isteach mar: $a->firstname $a->lastname"

and it needs to be

"Tá tú logáilte isteach mar: {$a->firstname} {$a->lastname}".

Gennemsnitsbedømmelse:Useful (1)
I svar til Tim Hunt

Re: you are logged in as: $a

ved seaghan moriarty -

thanks so much Tim!

I'll try that shortly, but looks good smiler

I svar til seaghan moriarty

Re: you are logged in as: $a

ved Helen Foster -
Billede af Core developers Billede af Documentation writers Billede af Moodle HQ Billede af Particularly helpful Moodlers Billede af Plugin developers Billede af Testers Billede af Translators

Thanks Tim from me too. smiler

I just checked and found the ga string fullnamedisplay | core needed changing from

$a->firstname $a->lastname

to

{$a->firstname} {$a->lastname}

I again contributed a fix for it on the Moodle translation site. Hopefully one of the Irish language pack maintainers will accept it soon.

Gennemsnitsbedømmelse:Useful (1)