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

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

Build:
Build:
LAST BUILD BRANCH: 0.3.7.1
DEFAULT BRANCH: master
Ran 28 Jun 2017 04:40PM UTC
Jobs 4
Files 9
Run time 47s
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

pending completion
38

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 988 relevant lines covered (32.79%)

3.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38.1 28 Jun 2017 04:41PM UTC 0
41.06
Travis Job 38.1
2 38.2 28 Jun 2017 04:40PM UTC 0
0.0
Travis Job 38.2
3 38.3 28 Jun 2017 04:41PM UTC 0
0.0
Travis Job 38.3
4 38.4 28 Jun 2017 04:41PM UTC 0
0.0
Travis Job 38.4
Source Files on build 38
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #38
  • 7132d9cb on github
  • Prev Build on mcaskill-patch-2 (#36)
  • Next Build on mcaskill-patch-2 (#42)
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