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

Separate translations of single words to enable more precise tracking #13

Merged
merged 2 commits into from
Mar 20, 2017

Conversation

loranmutafov
Copy link
Contributor

@loranmutafov loranmutafov commented Mar 20, 2017

Adds the possibility to track single-word translations easily when overriding the Translator.

Wondering if we should put the regex (line 36) in a constant as well - it's not a specific Amara use-case right now, but it would add some more flexibility.

Q A
Type Code Improvement

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5e5a42a on separate-method-for-single-word-translations into 0786b64 on master.

@loranmutafov loranmutafov requested review from joshlopes and removed request for trapvincenzo March 20, 2017 14:47

if (1 === $translationCount) {
return $translations[$word][0];
} elseif ($translationCount > 1 && $questionable == self::QUESTIONABLE_INCLUDE) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

===

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c7dd555 on separate-method-for-single-word-translations into 0786b64 on master.

@oradwell oradwell merged commit 762b605 into master Mar 20, 2017
@oradwell oradwell deleted the separate-method-for-single-word-translations branch March 20, 2017 15:54
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

Successfully merging this pull request may close these issues.

None yet

4 participants