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

Allow multiple pending translation #78

Closed
AlbanMinassian opened this issue Mar 20, 2014 · 3 comments
Closed

Allow multiple pending translation #78

AlbanMinassian opened this issue Mar 20, 2014 · 3 comments

Comments

@AlbanMinassian
Copy link
Contributor

Hello

Is it possible to allow multiple translation for keyword Pending in localisation.
A bit like this: pending: '(: [Ee]n attendant|[Ee]n cours|[Tt]odo)'

Thank
Ami44

@AlbanMinassian AlbanMinassian changed the title Allow multiple pending Allow multiple pending translation Mar 20, 2014
@cressie176
Copy link
Member

Not currently, but I think it would be relatively easy. The following code would have to change to iterate over the annotations checking to see whether they pass a regular expression

plugins/mocha/BasePlugin.js

    function is_pending(subject) {
        return subject.annotations && subject.annotations[language.localise('pending')];
    }

Feel free to have a go, otherwise I'll pick it up.

@cressie176
Copy link
Member

Done in 0.10.5

@AlbanMinassian
Copy link
Contributor Author

Thanks

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

No branches or pull requests

2 participants