• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

locomotivemtl / charcoal-translator / 38 / 1
41%
master: 78%

Build:
Build:
LAST BUILD BRANCH: 0.3.7.1
DEFAULT BRANCH: master
Ran 28 Jun 2017 04:41PM UTC
Files 9
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jun 2017 04:39PM UTC coverage: 41.065% (+41.1%) from 0.0%
38.1

push

travis-ci

mcaskill
Iternal improvements to Translator

In order to fix/support choice messages, we need access to the message selector. Unfortunately, the selector is private under Symfony's `Translator` class. To circumvent this limitation, we need to define our own selector property and require from the constructor.

Changes:
- Added protected getter for the `LocalesManager` (for subclasses)
- Added setter/getter for the `MessageSelector`
- Added Symfony's `MessageSelector` to the service provider
- Updated `Translator` to use the manager's getter
- Changed visibility to protected for `isValidTranslation()` (for subclasses)
- Fixed choice message in `translateChoice()` and `translationChoice()`

324 of 789 relevant lines covered (41.06%)

4.46 hits per line

Source Files on job 38.1
  • Tree
  • List 0
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 38
  • Travis Job 38.1
  • 7132d9cb on github
  • Prev Job for on mcaskill-patch-2 (#36.4)
  • Next Job for on mcaskill-patch-2 (#42.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc