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

Make all texts in about page translatable. #4063

Merged
merged 1 commit into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions app/views/pages/about.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</ol>
<p>
<%= t('.founding_html', :founder => link_to('Nick Quaranto', 'https://twitter.com/qrush'),
:contributors => link_to("350 Rubyists", "https://github.com/rubygems/rubygems.org/graphs/contributors"),
:downloads => link_to("millions of gem downloads", stats_path),
:contributors => link_to(t('.contributors_amount', count: 350), "https://github.com/rubygems/rubygems.org/graphs/contributors"),
:downloads => link_to(t('.downloads_amount'), stats_path),
:title => t('title')) %>
</p>
<p>
Expand All @@ -23,21 +23,21 @@
<%= t('.technical_html', :rails => link_to("Rails", "https://rubyonrails.org"),
:s3 => link_to("Amazon S3", "https://aws.amazon.com/s3/"),
:fastly => link_to("Fastly", "https://www.fastly.com"),
:source_code => link_to("please check out the code", "https://github.com/rubygems/rubygems.org"),
:license => link_to("MIT licensed", "https://www.opensource.org/licenses/mit-license.php")
:source_code => link_to(t('.checkout_code'), "https://github.com/rubygems/rubygems.org"),
:license => link_to(t('.mit_licensed'), "https://www.opensource.org/licenses/mit-license.php")
) %>
</p>

<div class="hide-assets">
<h2 class="about__assets__heading">Looking for our logo?</h2>
<p>Just select the download button and you&rsquo;ll get three .PNGs and an .SVG of the RubyGems logo all for yourself.</p>
<h2 class="about__assets__heading"><%= t('.logo_header') %></h2>
<p><%= t('.logo_details') %></p>
<div class="about__assets-wrap">
<div class="about__assets">
<svg class="about__asset" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" enable-background="new 0 0 200 200"><g fill="#ffffff"><path d="M68.8 69.9l-.1-.1-22.2 22.2 53.9 53.8 22.2-22.1 31.7-31.7-22.2-22.2v-.1h-63.4zM100.2 10.6l-78.5 45v90l78.5 45 78.5-45v-90l-78.5-45zm63.5 126.4l-63.5 36.6-63.5-36.6v-73l63.5-36.6 63.5 36.6v73z"/></g></svg>
<svg class="about__asset" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" enable-background="new 0 0 200 200"><g fill="#141c22"><path d="M68.8 69.9l-.1-.1-22.2 22.2 53.9 53.8 22.2-22.1 31.7-31.7-22.2-22.2v-.1h-63.4zM100.2 10.6l-78.5 45v90l78.5 45 78.5-45v-90l-78.5-45zm63.5 126.4l-63.5 36.6-63.5-36.6v-73l63.5-36.6 63.5 36.6v73z"/></g></svg>
<svg class="about__asset" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" enable-background="new 0 0 200 200"><g fill="#e9573f"><path d="M68.8 69.9l-.1-.1-22.2 22.2 53.9 53.8 22.2-22.1 31.7-31.7-22.2-22.2v-.1h-63.4zM100.2 10.6l-78.5 45v90l78.5 45 78.5-45v-90l-78.5-45zm63.5 126.4l-63.5 36.6-63.5-36.6v-73l63.5-36.6 63.5 36.6v73z"/></g></svg>
</div>
<a href="/logos.zip" download="RubyGems Assets.zip" class="about__assets__download" data-icon=">">Download</a>
<a href="/logos.zip" download="RubyGems Assets.zip" class="about__assets__download" data-icon=">"><%= t('rubygems.aside.links.download') %></a>
</div>
</div>
</div>
6 changes: 6 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ de:
title:
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: Das Projekt wurde im April 2009 von %{founder} gestartet und
hat seitdem über %{contributors} und %{downloads}. Ab dem Release von RubyGems
1.3.6 wurde die Website von Gemcutter zu %{title} umbenannt, um eine zentrale
Expand Down
6 changes: 6 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ en:
title: New Releases — Popular Gems
pages:
about:
contributors_amount: "%{count} Rubyists"
downloads_amount: "millions of gem downloads"
checkout_code: "please check out the code"
mit_licensed: "MIT licensed"
logo_header: Looking for our logo?
logo_details: Just select the download button and you'll get three .PNGs and an .SVG of the RubyGems logo all for yourself.
founding_html: The project was started in April 2009 by %{founder}, and has since grown to include the contributions of over %{contributors} and %{downloads}. As of the RubyGems 1.3.6 release, the site has been renamed to %{title} from Gemcutter to solidify the site's central role in the Ruby community.
support_html: Although RubyGems.org is not run by one specific company, plenty have helped us out so far. The current design, illustrations, and front-end development of this site were created by %{dockyard}. %{github} has also been invaluable for helping us collaborate and share code easily. The site started on %{heroku}, whose great service helped prove RubyGems as a viable solution that the whole community could rely on. Our infrastructure is currently hosted on %{aws}.
technical_html: "Some insights into the technical aspects of the site: It's 100% Ruby. The main site is a %{rails} application. Gems are hosted on %{s3}, served by %{fastly}, and the time between publishing a new gem and having it ready for installation is usually just a few seconds. For more info, %{source_code}, which is %{license} over at GitHub."
Expand Down
6 changes: 6 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ es:
title: Nuevos lanzamientos — Gemas más populares
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: El proyecto comenzó en abril del 2009 por %{founder}, y desde
entonces ha crecido para incluir las contribuciones de %{contributors} y %{downloads}.
A partir de RubyGems 1.3.6 el sitio se renombró de Gemcutter a %{title} para
Expand Down
6 changes: 6 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,12 @@ fr:
title: Nouvelles Versions - Gems populaires
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: Le projet a commencé en avril 2009 par %{founder}, et a grandi
avec les contribution de %{contributors} et %{downloads}. À la sortie de RubyGems
1.3.6, ce site a été renommé de Gemcutter à %{title} pour ancrer son rôle
Expand Down
6 changes: 6 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@ ja:
title: 新しいリリース - 人気のgem
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: 2009年4月に%{founder}の手によって発足したプロジェクトは、現在%{contributors}の貢献を得て%{downloads}に到るまで成長を遂げました。RubyGems
1.3.6 リリースからは、サイト名称をGemcutterから%{title}に変更し、Rubyコミュニティの中におけるサイトの役割を明確化しました。
support_html: Rubygems.orgは特定の企業によって運営されているわけではありませんが、これまで沢山の企業により助けられてきました。現行のサイトのデザイン、イラストレーション、そして本サイトのフロントエンド開発は%{dockyard}により為されました。%{github}も私たちがコードを共有し協力し合う上で助けになっており、掛け替えのないものです。当初のサービスが稼働していた%{heroku}の素晴しいサービスは、RubyGemsがコミュニティ全体から信頼される持続性のあるものであることを示しました。現在のインフラは%{aws}でホストされています。
Expand Down
6 changes: 6 additions & 0 deletions config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,12 @@ nl:
title:
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: Het project is gestart in april 2009 door %{founder} en is sindsdien
uitgegroeid tot een dienst met bijdragen van meer dan %{contributors} en %{downloads}.
Sinds de RubyGems 1.3.6 release, is de site hernoemd van Gemcutter naar %{title} om
Expand Down
6 changes: 6 additions & 0 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@ pt-BR:
title: Novos Releases - Gems Populares
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: Este projeto foi iniciado em Abril de 2009 por %{founder}, e
desde então tem crescido para incluir as contribuições de %{contributors}
e %{downloads}. A partir do lançamento do RubyGems 1.3.6 o site foi renomeado
Expand Down
6 changes: 6 additions & 0 deletions config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,12 @@ zh-CN:
title: 新的发布 — 热门 Gem
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: 此项目由 %{founder} 创立于 2009 年 4 月,之后有超过 %{contributors} 贡献者以及 %{downloads}。自从
RubyGems 1.3.6 发布以后,本站名称由 Gemcutter 改名为 %{title},从而巩固在 Ruby 社区网站中的核心作用。
support_html: 虽然 RubyGems.org 不是由一个具体的公司来运作,但也有很多帮助让我们走了这么远。网站目前的设计、插画、和前端开发都是由
Expand Down
6 changes: 6 additions & 0 deletions config/locales/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ zh-TW:
title: 熱門新發佈
pages:
about:
contributors_amount:
downloads_amount:
checkout_code:
mit_licensed:
logo_header:
logo_details:
founding_html: 本專案由 %{founder} 於 2009 年 4 月創立,發展過程中有超過 %{contributors} 貢獻者以及
%{downloads}。自 RubyGems 1.3.6 發佈以來,本站名稱由 Gemcutter 更名為 %{title},本站自此之後成為 Ruby
社群的核心網站。
Expand Down