~cjwatson/langpack-o-matic/groovy

« back to all changes in this revision

Viewing changes to import

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2020-03-20 10:34:38 UTC
  • Revision ID: lukasz.zemczak@canonical.com-20200320103438-si9mlpes7ud00bbt
Special-case the ckb language as the community shows promise.

Show diffs side-by-side

added added

removed removed

Lines of Context:
622
622
            if total_translatable:
623
623
                pct = lang_count[l] * 100 // total_translatable
624
624
                if options.treshold is not None and pct < options.treshold:
625
 
                    discarded.add(l)
626
 
                    status = ' discarded'
 
625
                    if l == 'ckb':
 
626
                        status = ' special-cased'
 
627
                    else:
 
628
                        discarded.add(l)
 
629
                        status = ' discarded'
627
630
                else:
628
631
                    status = ''
629
632
                print('  %s\t%i (%i%%)%s' % (l, lang_count[l], pct, status))