[bug report] OJS3.5 pt_BR locale.po / {$date} missing from "expires" lines

Describe the issue or problem
Expire date of subscprition (and date of expiration if already expired) not being shown in Brazilian portuguese.

Example: subscription block in sidebar not showing these dates.

The problem

{$date} wasn’t added to the “user.subscriptions.expires” and “user.subscriptions.expired” translation inside “locale.po”

What application are you using?
OJS 3.5.0-1

Solution

Add {$date} to these lines in /locale/pt_BR/locale.po

Final code for the lines:

msgid “user.subscriptions.expires”
msgstr “Vencimento: {$date}”

msgid “user.subscriptions.expired”
msgstr “Vencida: {$date}”

Hi @Pedro_Felipe_Rocha,

Could you add these changes through Weblate (https://translate.pkp.sfu.ca)? That way they’ll get merged for the next release.

Thanks,
Alec Smecher
Public Knowledge Project Team

I subscribed to the weblate and tried really hard to find but wasn’t able to locate the “locale.po” page for pt_BR to edit.
Isn’t really a problem of translation, but missing lines from the code itself inside the locale file.

Hi @Pedro_Felipe_Rocha,

Go to:

https://translate.pkp.sfu.ca/translate/ojs/locale/pt_BR/

In the Search box, try entering user.subscriptions.expires and user.subscriptions.expired. This should show the current translations of those keys, where the {$date} is missing. You should be able to make changes there.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Did it. Sorry it took that long.

1 Like

Hi @Pedro_Felipe_Rocha,

Thanks, I’ll make sure that gets included in our next releases!

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 10 days. New replies are no longer allowed.