Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Detect usage of Crowdin #207

Closed
NotSoImportant opened this issue Apr 27, 2018 · 2 comments
Closed

Detect usage of Crowdin #207

NotSoImportant opened this issue Apr 27, 2018 · 2 comments

Comments

@NotSoImportant
Copy link
Contributor

see federicoiosue/Omni-Notes#483
arrays.xml and strings.xml will contain the comment "-"

@Lonami
Copy link
Member

Lonami commented Apr 27, 2018

Actually…

private static final String[] STR_TRANSLATION_SERVICES = {
"transifex", "crowdin", "weblate", "zanata", "pootle", "onesky", "poeditor"
};

public static String mayUseTranslationServices(final RepositoryResources resources) {
for (File file : resources.readme) {
int i = FileUtils.fileContains(file, STR_TRANSLATION_SERVICES);
if (i != -1)
return STR_TRANSLATION_SERVICES[i];
}
return "";
}

And:
image

Maybe what we need is #194? :P

@NotSoImportant
Copy link
Contributor Author

oh yea, thank you ;-)
#194 +1

@Lonami Lonami closed this as completed Apr 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants