View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002023 | OXID eShop (all versions) | 4.06. Language and translations | public | 2010-08-04 15:31 | 2011-09-19 16:39 |
Reporter | MBa | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 4.6.0_beta2 | ||||
Summary | 0002023: Article::unit (and quantity) should be i18n | ||||
Description | admin->administer products->products ->select a product ->tab::extended Fields Unit : should be i18n. (eg: german:pro Stück| english:per Item). Quantity (part of unit): Its not so neccessary, but with i18n its possible calculate metric system values to other systems (eg: 1cm | 0.39 inch) | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
Hint: There is no translation possible for unit name into different languages |
|
http://www.oxid-esales.com/forum/showthread.php?t=11341 (German forums) |
|
Reminder sent to: marco_steinhaeuser Adding additional fields means a waste of DB on most cases. So we came to a different solution than mentioned in forum. The idea of multilanguage is to provide a pre-defined list of unit types (kg/m/item/m etc) and user in admin can select one from it (select box) or, optionally he still can enter unti type like it was before (but multilang. is not available). If standard unit list is not enough - user can add additional types to language file. In db will be written language constant, mapping translation with unit type. In front-end would be needed to call special getter oxArticle::getUnitName() in places like: [{$_product->oxarticles__oxunitquantity->value}] [{$_product->oxarticles__oxunitname->value}] | [{$_product->getPricePerUnit()}] [{ $currency->sign}]/[{$_product->oxarticles__oxunitname->value}] So we will not need to extend db. Could someone collect list of possible unit types? Would be nice to add them to language files in advance. |