Jump to content

Translation not recognized up from our php file anymore?


Inazma

Recommended Posts

Dear WHMCS community,?

We are working on a Ecommerce website using WHMCS. 
Recently, we tried updating from from WHMCS V7.4.2 to V7.5.2. and then reverting back to 
7.4.2 with our backed up files we took right before we updated since our page was not displaying properly.

our site seems to be working okay now but it seems that some previously translated areas in
/public_html/lang/japanese.php no longer shows on the website. 

We checked the lines and the php file it self but it seems to be the proper backup file but it is not loading some of the the translated areas in /public_html/lang/japanese.php anymore. 

For example the clientHomePanels area https://wh1.us/clientarea.php
Please see below for examples along with my attached image.

public_html/lang/japanese.php

Line:1762 
$_LANG['clientHomePanels']['overdueInvoices'] = "未払情報";  //Overdue Invoices

Line:1766
$_LANG['clientHomePanels']['activeProductsServices'] = "ご利用中の製品/サービス";  //Your Active Products/Services

Line:1770
$_LANG['clientHomePanels']['recentSupportTickets'] = "最新のサポートチケット";  //Recent Support Tickets

Line:1768
$_LANG['clientHomePanels']['recentNews'] = "お知らせ";  //Recent News

Line:1769
$_LANG['clientHomePanels']['affiliateProgram'] = "アフィリエイトプログラム";  //Affiliate Program

Has anyone run into this phenomenon before?
Any pointers on what could be the root cause of this issue would be greatly appreciated. 

japanesephp.png

WHMCSclientarea.png

Link to comment
Share on other sites

9 hours ago, Inazma said:

Has anyone run into this phenomenon before?
Any pointers on what could be the root cause of this issue would be greatly appreciated.  

i've seen it when the file is corrupt in some way (invalid characters, encoding etc) - how thorough was your reverting back to v7.4.2 ? any chance there are v7.5.2 files floating around ??

there will be around 100 new language strings in these files between the v7.4.2 and v7.5 releases... they'll be another 200 more with v7.6.

first thought (which you may have done already) would be to delete the japanese.php file and upload it again from your backup... if that fails, then i'd find the first mistake (which may be before the panels section) and enter them again manually...

if you want to PM me the lang file, i'll run it in a v7.4 dev and see if the translations kick in.... if they do, then your issue might lie elsewhere...

not that this matters at this stage, but i'd be tempted to copy english.php, rename it japanese.php and then use Language Overrides to add Japanese translations to only the strings you want to modify... that might save some time during updating...

Link to comment
Share on other sites

Hi Brian, 

Thank you very much for your reply. 

We have indeed tried to re-upload the japanese.php but the corresponding translated strings was not applied. 

 

Quote

how thorough was your reverting back to v7.4.2 ? any chance there are v7.5.2 files floating around ??

I will have to speak with the member who performed the backup for details and get back to you. 

However, as far as I know, we used the database backup feature within WHMCS during the update process and we backed up all our files from our FTP as well. 

I am not certain the exact method used to revert back to V7.4.2 but I do have the feeling that was the major action that caused this problem. 

 

Quote

not that this matters at this stage, but i'd be tempted to copy english.php, rename it japanese.php and then use Language Overrides to add Japanese translations to only the strings you want to modify... that might save some time during updating

Okay I will take note of this advise and forward to our team as well. 

I also sent a PM to you with our japanese.php file for further review. 

Again, thank you for your time.  I will get back to you with detailed information about our revert process. Please keep me up to date if you find out something. 

Kind regards,

Kevin

Link to comment
Share on other sites

7 hours ago, Inazma said:

I also sent a PM to you with our japanese.php file for further review. 

i've just replied to your PM and the language file is seemingly fine - you'll see from the screenshots that it's translating the panels and sidebars on the clientarea homepage correctly... so I think the reversion is the issue.

Link to comment
Share on other sites

Hi Brian, 

Thank you for your reply. 

Its good to know its not the php file though. I havent been able to speak to the staff who performed the back up yet due to time zone differences. 

I replied to your PM with some other questions for the translated areas btw, please check it out if you have the spare time. 

However, as you mentioned its probably better to delete all WHMCS files from the server and perform another restore.

Also, what is your take on updating to the latest version in this state?  As mentioned in the PM I really do not want to set domain prices from scratch again. 

 

 I will do what I can on my end too but you have been good help to see how we should proceed regarding this issue. Thank you so much.

Kind regards, 

Kevin

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated