Skip to content
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

CID/CIA translation in generateImpactsAppreciation #3

Closed
b4stet opened this issue Oct 20, 2017 · 1 comment
Closed

CID/CIA translation in generateImpactsAppreciation #3

b4stet opened this issue Oct 20, 2017 · 1 comment

Comments

@b4stet
Copy link

b4stet commented Oct 20, 2017

$table->addCell(\PhpOffice\Common\Font::centimeterSizeToTwips(1.00), $cellRowSpan)->addText(ucfirst($impact), $styleContentFontBold, $alignCenter);

Hi,
The mentioned method is used to generate deliverable #2 Context Modelling.
At this line, ucfirst($impact) may need to be translated, otherwise every languages will get 'D' for availability in the table.

If you confirm, I tested and one solution to get CID/CIA accordingly is to replace L1469 by:

$translatedImpact = ucfirst($impact);
if ($impact === 'd'){
     $translatedImpact = ucfirst($this->anrTranslate('A'));
}
$table->addCell(\PhpOffice\Common\Font::centimeterSizeToTwips(1.00), $cellRowSpan)->addText($translatedImpact, $styleContentFontBold, $alignCenter);
@cedricbonhomme
Copy link
Member

Nice catch, this will indeed fix the problem.
Feel free to make a PR. Or if you prefer I can commit this.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants