From 5e1ffffb6fa119034b60a78207382cb0630c3afb Mon Sep 17 00:00:00 2001 From: dkhamsing Date: Mon, 28 May 2018 08:10:36 -0700 Subject: [PATCH] =?UTF-8?q?Use=20=F0=9F=8C=90=20to=20denote=20projects=20n?= =?UTF-8?q?ot=20in=20English,=20close=20#585?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/osia_convert.rb | 33 +++------------------------------ contents.json | 2 +- 2 files changed, 4 insertions(+), 31 deletions(-) diff --git a/.github/osia_convert.rb b/.github/osia_convert.rb index 305e8419..0d78f3fd 100644 --- a/.github/osia_convert.rb +++ b/.github/osia_convert.rb @@ -8,6 +8,8 @@ ARCHIVE_TAG = 'archive' APPSTORE = 'APPSTORE.md' +NOT_ENGLISH = 'šŸŒ' + def apps_archived(apps) a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?ARCHIVE_TAG} a.sort_by { |k, v| k['title'].downcase } @@ -98,11 +100,7 @@ def output_apps(apps, appstoreonly) end end - # flags are removed for now https://github.com/dkhamsing/open-source-ios-apps/issues/585 - # unless lang.nil? - # details << output_flag(lang) - # details << ' ' - # end + details << "#{NOT_ENGLISH} " unless lang.nil? unless stars.nil? details << output_stars(stars) @@ -157,31 +155,6 @@ def output_badges(count) b end -def output_flag(lang) - case lang - when 'deu' - 'šŸ‡©šŸ‡Ŗ' - when 'fra' - 'šŸ‡«šŸ‡·' - when 'jpn' - 'šŸ‡ÆšŸ‡µ' - when 'ltz' - 'šŸ‡±šŸ‡ŗ' - when 'nld' - 'šŸ‡³šŸ‡±' - when 'por' - 'šŸ‡µšŸ‡¹' - when 'spa' - 'šŸ‡ŖšŸ‡ø' - when 'rus' - 'šŸ‡·šŸ‡ŗ' - when 'zho' - 'šŸ‡ØšŸ‡³' - else - '' - end -end - def output_stars(number) case number when 100...200 diff --git a/contents.json b/contents.json index 8cbfe374..b93a1693 100644 --- a/contents.json +++ b/contents.json @@ -2,7 +2,7 @@ "title": "Open-Source iOS Apps", "subtitle": "A collaborative list of open-source `iOS`, `watchOS` and `tvOS` apps, your [contribution](https://github.com/dkhamsing/open-source-ios-apps/blob/master/.github/CONTRIBUTING.md) is welcome :smile:", "description": "", - "header": "```\n 100+ Stars: šŸ”„\n 200+ Stars: šŸ”„šŸ”„\n 500+ Stars: šŸ”„šŸ”„šŸ”„\n1000+ Stars: šŸ”„šŸ”„šŸ”„šŸ”„\n2000+ Stars: šŸ”„šŸ”„šŸ”„šŸ”„šŸ”„ \n\nClick ā–ŗ to show more details\n```", + "header": "```\n 100+ Stars: šŸ”„\n 200+ Stars: šŸ”„šŸ”„\n 500+ Stars: šŸ”„šŸ”„šŸ”„\n1000+ Stars: šŸ”„šŸ”„šŸ”„šŸ”„\n2000+ Stars: šŸ”„šŸ”„šŸ”„šŸ”„šŸ”„ \n\nšŸŒ Project is not in English \n\nClick ā–ŗ to show more details\n```", "footer": "## Thanks\n\nThis list was inspired by [awesome-ios](https://github.com/vsouza/awesome-ios) and [awesome-swift](https://github.com/matteocrippa/awesome-swift). Thanks to all the [contributors](https://github.com/dkhamsing/open-source-ios-apps/graphs/contributors) šŸŽ‰ \n\n## Contact\n\n- [github.com/dkhamsing](https://github.com/dkhamsing)\n- [twitter.com/dkhamsing](https://twitter.com/dkhamsing)\n- [github.com/vpeschenkov](https://github.com/vpeschenkov)\n", "sponsor": "", "categories": [