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

Create a simple tool for finding missing translations #373

Closed
ssddanbrown opened this issue Apr 25, 2017 · 0 comments
Closed

Create a simple tool for finding missing translations #373

ssddanbrown opened this issue Apr 25, 2017 · 0 comments

Comments

@ssddanbrown
Copy link
Member

The current issue

Now that we have a great set of translations we need to make it easy for any translators to find strings that have not yet been updated. Currently, It's not much of an issue but as we get more translations and as new features are added with more text then translations will become further out of line.

Proposed solution

It would be great to have a simple command-line php script that can be ran which outputs which translations are missing or have been removed when compared to the english text.

This script would be located in the resources/lang folder but would be standalone and not rely on Laravel.
I'd imagine the call signature would be something like this:

php resources/lang/check-translations fr

And the output would be something like this:

Checking translations for 'fr'....

Missing 2 translations strings:
entities.permissions_intro
errors.permissionJson

The following 1 translation can be removed:
common.no_activity

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

No branches or pull requests

1 participant