-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typo and Suggestion on OC 2.1.0.1 #3494
Comments
👍 |
Submitted a PR for the typos you mentioned. I didn't include the changes to the date format as this should be a separate PR. I do agree with making it more legible. Perhaps instead of using a language variable for the datetime format it should be a config field in the settings? This way it's easy for any site admin to customize it to their liking without having to modify the core language files. Cheers, |
I seconded the datetime format settings on admin. It would be much easier to change than in core language files. As of now, people with different region (diff date format) can misunderstood the information if it's just 8/10/2015 (ie. d/M/Y and M/d/Y). |
ok add a suggest for the date time. im closing this as the requested typos changes have been fixed |
OpenCart use a language key "date_format_long" for display a detailed format of date time. Since OpenCart using php's build-in function "date" to displaying a formatted date time, Maybe we need to write a date time helper to format the date time in other language? |
Just reporting some typo and giving suggestion. I'll add as I see them.
Typo:
admin/language/english/sale/order.php
Line 25:
$['text_shipping_address'] = 'Shipping Adress';
should be
$['text_shipping_address'] = 'Shipping Address';
Line 31:
$['text_shipping_custom_field'] = 'Shipping Adress Custom Fields';
should be
$['text_shipping_custom_field'] = 'Shipping Address Custom Fields';
Line 78: (inconsistent with others)
$['column_weight'] = 'Product weight';
should be
$['column_weight'] = 'Product Weight';
Suggestion:
admin/language/english/english.php
Line 6: after line add
$_['date_format_datetime'] = 'd M Y H:iA';
admin/controller/sale/order.php
Line 1733, 1943:
'date_added' => date($this->language->get('date_format_short'), strtotime($order_info['date_added'])),
changed to
'date_added' => date($this->language->get('date_format_datetime'), strtotime($order_info['date_added'])),
The text was updated successfully, but these errors were encountered: