I’ve just noticed that Oxid CE 4.5.2 uses only English names for months. They are showed on “Order History” page for example. Is it possible to define custom language months names for different languages without changing “hard coded” English names?
Hi
Actually months names are used - please see the attached screenshot (… one picture … 10000000 words … :)).
I found English months names defined in two Oxid CE 4.5.2 files: datasource-min.js and jquery-ui.min.js .
I think that quickest solution would be displaying months as numbers and not months names.
Maybe there is even a present Oxid setting for this?
Any ideas?
the smarty function date_format, is a wrapper of the php function strftime,
which according to the PHP settings (most likely to be english)
returns fomatted String with locale settings of php
so you could go and extend account_order.php via a module
and alter :
public function render()
setlocale (LC_ALL, ‘de_DE’);
as first statement,
then you will see german Month Strings (it is the %B)…
I’ve searched through all Oxid 4.5.2 installation files for word “Oktober” (German spelling for October) and didn’t find any file that contains German translation of October.
And I found all English months names defined in two Oxid CE 4.5.2 files: datasource-min.js and jquery-ui.min.js .
Azure uses month names so I assume that developers didn’t have time to include multi-language support at this stage an it will be added in future.
[QUOTE=holgt;70685]Well yes, but the “October” you are referring to, also comes not from any translation file
it comes from php:
If you change the php locale to e.g. german then you will get “Oktober”[/QUOTE]
I’m a little bit confused now . Can you please help me change php locale to German so I can test it.
I really don’t know much about php so I wonder where will Oxid get German months names translation if I change php locale (can’t find months translations in any lang.php files) ?