Dolibarr ERP & CRM » Bugs » bug #1440 Multilanguage: translation not used the right wayLatest modifications
Answer now
Snapshot Details |
Submitted by: | Torsten Appelhagen (borsti67) | | Submitted on: | 2014-06-04 22:23 |
Last Modified On: | 2014-06-04 22:23 | |
Summary: | Multilanguage: translation not used the right way |
Description: | (this may be a feature request in case this behavior is intended. Anyway it renders the ML-function nearly useless for us)
When entering a new proposal the translated text (in the language set in the customer) is only inserted when the text box remains empty. Otherwise the product text of the user's language is taken!
Since we have to add remarks to nearly every product line (e.g. serial number, domain name etc) we have to translate it anew each time...
The translation has to be used according to the customer language, not the users. |
Step to reproduce bug: | - Enable the ML feature
- go to a product or service, translation page
- enter information for another language
- go to a customer, set the desired language to the same you used in the step before
- create a proposal
- enter a new line with this product WITHOUT writing anything into the text box
- enter another line with this product but type some text this time
- have a look on the generated PDF
you will see the 1st line is correct while the 2nd is in default language (you cannot see this in the proposal while editing)! |
Detected in version: | 3.5.3 | | Category: | Other |
Severity: | 5 - Major | | OS Type/Version: | Linux |
PHP version: | 5.5.4 | | Database type and version: | MySQL 5.5.30 |
Status |
Status: | Open | | Assigned to: | Laurent Destailleur (eldy) |
Resolution: | Fixed | |
Comments- Laurent Destailleur 2014-06-20 15:55
- Currently behaviour is we use translation only if description was not modified.
As soon as it is modified, we can say translation is no more available, so we keep modified value.
With version 3.6, a hidden option MAIN_MULTILANG_TRANSLATE_EVEN_IF_MODIFIED will be available as a workaround so translation will always be used even if content was modified. But it means if you add a line, then the added line will not be visible into translated value.
A better fix is to make a delta and report delta to the translated value but we will see this later.
I hope workaround for 3.6 will be neough for you. |
|
As soon as it is modified, we can say translation is no more available, so we keep modified value.
With version 3.6, a hidden option MAIN_MULTILANG_TRANSLATE_EVEN_IF_MODIFIED will be available as a workaround so translation will always be used even if content was modified. But it means if you add a line, then the added line will not be visible into translated value.
A better fix is to make a delta and report delta to the translated value but we will see this later.
I hope workaround for 3.6 will be neough for you.
3.5.0→ 3.5.3None→ Laurent Destailleur (eldy)None→ Fixed