By Ketil Jule Bjørnstad Belsaas on Thursday, 17 March 2022
Posted in PayPlans
Likes 0
Views 473
Votes 0
Hi.
I have webiste in Norwegian, an I have change some language-strings with no problems.
But I can't manage how to change the text "EXPIRE" in the dashboard.

The code in the default.php in like this:
<?php echo $this->html('subscription.status', $subscription, array('postfix' => '(' . $subscription->getExpirationDate()->format(JText::_('DATE_FORMAT_LC3')) . ')')); ?>

And I have figured out that the code subscription.status echoes the text "EXPIRE". But how to change that. Normal I look up a text string like COM_PP_INVOICES in nb_NO.com_payplan.ini and chang adjust the text to Norwegian. But which method shall I use here?

Regards
Ketil
Hey Ketil,

To change the text for subscription status text, you need to change the language strings as shown below.
Go to root\administrator\language\en-GB\en-GB.com_payplans.ini, near line no. 1381, find below mentioned strings.

COM_PP_SUBSCRIPTION_ACTIVE="Active"
COM_PP_SUBSCRIPTION_HOLD="Inactive"
COM_PP_SUBSCRIPTION_EXPIRED="Expired"
COM_PP_SUBSCRIPTION_NONE="None"


Override these language strings.

Update us if you still have any queries.
·
Thursday, 17 March 2022 11:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Manisha

I have change the sting in both files nb-NO.com_payplans.ini and en-GB.com_payplans.ini with the Norwegian text "Utløpt". Like this: COM_PP_EXPIRED="Utløpt"

One file is in this root\administrator\language\en_GB, and the another in root\administrator\language\nb_NO.
If I change the output text to FLOWER I got this at Dashboard. See the attachment.
·
Thursday, 17 March 2022 15:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Thursday, 17 March 2022 16:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi.

Backend:
Username: ketbeladmin
Password: ravzuf-wiwxeg-4qyqSi

I think the FTP is:
Host: ssh.korpedagogen.no
Username: korpedagogen.no
FTP pass word: K7x3r1969
Port: 22
·
Thursday, 17 March 2022 18:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ketil,

I've tried to connect with FTP details but it seems credentials are not working.

Response: 530 Login authentication failed
Error: Critical error: Could not connect to server


while checking your site, I found that in override language there is no language shown for subscription status.
here: https://www.korpedagogen.no/administrator/index.php?option=com_languages&view=overrides

Please update me with the correct FTP details and provide me the language string values you want to update, so I'll help you to update.

Looking forward to your response.
·
Thursday, 17 March 2022 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ketil,

I've checked your site and found that in the Norwegian language file, you only added the language string for subscription active and hold, you didn't add the string for subscription expired.
I've already helped you to add the below string and now it's showing correctly.

COM_PP_SUBSCRIPTION_EXPIRED="Utløpt"


To change the subscription status string, you are using the wrong language string. I've already mentioned in my previous reply what string you need to change.
See Here: https://stackideas.com/forums/change-language-almost-done-but-a-small-question#reply-571595

Please take a look again at this issue and update us if still any issues persist.
·
Friday, 18 March 2022 11:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Manisha

Thank you for good help.
I read your first message to fast an didn't see the difference between

COM_PP_SUBSCRIPTION_EXPIRED and COM_PP_EXPIRED

But now everything is ok.

I see I have PayPlan language file in to different maps. What is the right one? What is the different between these two files?

1. root\administrator\language\nb-NO\nb-NO.com_payplans.ini
2. root\language\nb-NO\nb-NO.com_payplans.ini

Regards
Ketil
·
Friday, 18 March 2022 14:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ketil,

Thank you for good help.
I read your first message to fast an didn't see the difference between

COM_PP_SUBSCRIPTION_EXPIRED and COM_PP_EXPIRED

But now everything is ok.
No problem. Sounds good issue is resolved now.

I see I have PayPlan language file in to different maps. What is the right one? What is the different between these two files?


1. root\administrator\language\nb-NO\nb-NO.com_payplans.ini
This language file is used for backend language strings and the common language string used for frontend as well as backend also added in this file.

2. root\language\nb-NO\nb-NO.com_payplans.ini
This language file is used for frontend language strings only.

Let me know if you have any confusion.
·
Friday, 18 March 2022 14:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for good support and help.
Have a wonderful day.
·
Friday, 18 March 2022 16:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ketil,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Friday, 18 March 2022 16:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post