Post by HAO » Sun Jun 29, 2025 1:09 pm

I am translating the language files in OpenCart 4.1.0.3, I found that 4.1.0.3 has a lot fewer strings than 4.0.0.0.

What happened?

4.0.0.0:

Code: Select all

<?php
// Heading
$_['heading_title']         = 'Payment Methods';

// Text
$_['text_account']          = 'Account';
$_['text_payment_method']   = 'Payment Method Entries';
$_['text_success']          = 'Your payment method has been successfully deleted';
$_['text_no_results']       = 'You have no payment methods in your account.';

// Column
$_['column_payment_method'] = 'Payment Method';
$_['column_type']           = 'Type';
$_['column_date_expire']    = 'Date Expires';
$_['column_action']         = 'Action';

// Error
$_['error_payment_method']  = 'Warning: Payment method could not be found!';
4.1.0.3:

Code: Select all

<?php
// Heading
$_['heading_title']   = 'Payment Methods';

// Text
$_['text_account']    = 'Account';
$_['text_no_results'] = 'You have no payment methods in your account.';

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm

Post by paulfeakins » Mon Jun 30, 2025 7:34 pm

Firstly, if you're talking about a specific file, you should give its path e.g.:

/admin/language/en-gb/extension/payment.php

Secondly, you can see the history of that file here:

https://github.com/opencart/opencart/co ... ayment.php

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by HAO » Mon Jun 30, 2025 11:20 pm

Sorry, I saw it here.
catalog/language/en-gb/account/payment_method.php

I'm curious why these strings were removed, Please forgive me, I still don't understand how to check the history of this file...

Sorry, I've learned how to see...

Thank you for teaching me.

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm

Post by khnaz35 » Tue Jul 01, 2025 2:19 am

You can click on the commit and it will open up all the files where changes were made, red lines shows which lines were removed and green means which were added. So feel free to compare and track back.

You can do something like

Code: Select all

git show --word-diff --color --patch-with-stat <commit-hash>
or something like this in terminal

Code: Select all

git show <commit-hash> --diff-algorithm=histogram --color --word-diff

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 1 guest