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

Is there a parameter to indicate only a small set of target languages? #21

Open
vitalii-tym opened this issue Sep 12, 2018 · 1 comment

Comments

@vitalii-tym
Copy link
Contributor

Hello, first of all thank you so much for this great tool. Its a big time saver.

Please advice, how is it better to make a call if I want only 1 or 2 languages?

My first attempt was to exclude all supported by default languages and include the ones I want, which are not in default set:

strsync -b en -x el vi ca it ar es_MX cs id es en-GB ru nl pt no tr en-AU th zh_TW ro pt_PT pl fr zh_HK ms hr de hu hi fi da ja fr_CA he zh_CN ko sv sk uk -s nb_NO es_419

But it resulted in the num of supported languages widened to 101:

(i) Initializing for supported languages ...
(i) Supported numbers of locale code : 101 
['gu', 'gd', 'ga', 'gl', 'en-GB', 'lb', 'ny', 'lo', 'tr', 'lv', 'tl', 'th', 'tg', 'te', 'pt_PT', 'ta', 'yi', 'zh_HK', 'yo', 'de', 'da', 'uz', 'el', 'eo', 'eu', 'zu', 'es', 'ru', 'ro', 'bg', 'uk', 'bn', 'jw', 'bs', 'ja', 'xh', 'co', 'ca', 'cy', 'fi', 'cs', 'ps', 'pt', 'lt', 'pa', 'pl', 'hy', 'hr', 'zh_TW', 'ht', 'hu', 'hi', 'ha', 'he', 'mg', 'zh_CN', 'ml', 'mn', 'mi', 'mk', 'ur', 'mt', 'ms', 'mr', 'af', 'vi', 'is', 'am', 'it', 'kn', 'ar', 'et', 'az', 'id', 'ig', 'nl', 'no', 'ne', 'en-AU', 'fr', 'ku', 'fy', 'fa', 'es_MX', 'fr_CA', 'ka', 'kk', 'sr', 'sq', 'ko', 'sv', 'km', 'st', 'sk', 'si', 'so', 'sn', 'sm', 'sl', 'sw', 'sd']

Adding more languages in exclusion worked:

strsync -b en -x gu gd ga gl en-GB lb ny lo tr lv tl th tg te pt_PT ta yi zh_HK yo de da uz el eo eu zu es ru ro bg uk bn jw bs ja xh co ca cy fi cs ps pt lt pa pl hy hr zh_TW ht hu hi ha he mg zh_CN ml mn mi mk ur mt ms mr af vi is am it kn ar et az id ig nl no ne en-AU fr ku fy fa es_MX fr_CA ka kk sr sq ko sv km st sk si so sn sm sl sw sd -s nb es_419

But maybe there is a way to just indicate a small set of languages? Like this:

strsync -b en -s nb es_419

@metasmile
Copy link
Owner

metasmile commented Sep 12, 2018

Thanks for your feedback. It seems mixed with a bug and some option adding issues. but yeah, I agree with you. would resolve that.

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

No branches or pull requests

2 participants