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

locomotivemtl / charcoal-translator / 139
79%
master: 78%

Build:
Build:
LAST BUILD BRANCH: 0.3.7.1
DEFAULT BRANCH: master
Ran 06 Feb 2020 10:22PM UTC
Jobs 4
Files 12
Run time 36s
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
139

Pull #6

travis-ci

web-flow
Add a Translation object factory

The `TranslationFactory` is an alternative to the `Translator` for creating `Translation` objects without passing values through the message catalogues where a value might be accidentally translated.

The factory also provides support for customizing the `Translation` class to be used.

Added:
- Class `TranslationFactory`
- Interface `TranslationFactoryInterface`
- Trait `TranslationFactoryAwareTrait`
- Container service "translation/factory"
- Unit tests for new factory and trait

Changed:
- Moved `Translator::isValidTranslation()` to `TranslationFactory`
- Delegated instantiation of `Translation` object to `TranslationFactory`

Removed:
- Usage of the `MessageSelector` inside the `Translator` in favour of the `MessageFormatter`
Pull Request #6: Add TranslationFactory

91 of 91 new or added lines in 5 files covered. (100.0%)

527 of 670 relevant lines covered (78.66%)

64.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 139.1 06 Feb 2020 10:22PM UTC 0
80.05
Travis Job 139.1
2 139.2 06 Feb 2020 10:22PM UTC 0
78.66
Travis Job 139.2
3 139.3 06 Feb 2020 10:22PM UTC 0
78.66
Travis Job 139.3
4 139.4 06 Feb 2020 10:22PM UTC 0
78.54
Travis Job 139.4
Source Files on build 139
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #139
  • Pull Request #6
  • PR Base - master (#131)
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

© 2025 Coveralls, Inc