Skip to content

Commit

Permalink
create some partial views; new credits page (too many people to thank…
Browse files Browse the repository at this point in the history
…); remove safari (no pc support from apple on v6); fix up some of the translation files (still needs more work)
  • Loading branch information
ejc committed Nov 8, 2012
1 parent de28eec commit 724485f
Show file tree
Hide file tree
Showing 30 changed files with 720 additions and 192 deletions.
17 changes: 16 additions & 1 deletion abb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,29 @@
require 'sinatra/r18n'
require 'haml'

helpers do
def partial(page, options={})
haml page.to_sym, options.merge!(:layout => false)
end
end

before do
session[:locale] = params[:locale] if params[:locale]
end

get '/' do
@locale = "en"
haml :index

end

get '/:locale' do
@locale = params[:locale]
haml :index
end

end

get '/:locale/credits' do
haml :credits
end

9 changes: 8 additions & 1 deletion i18n/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "Je čas zvolit Lepší Prohlížeč"
intro: "Nastal čas zvolit si"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Stále se nedokážete odpoutat od Internet Exploreru? I on už má trochu lepší vezi"

credits:
credits: "Credits"
translation: "Překlady"
design: "Design – E.J. Coughlin"
spanish: "Spanělština – Zac Parker"
Expand All @@ -39,5 +41,10 @@ credits:
russian: "Rus - Xkeeper"
polish: "Polský - Kuba B."
dutch: "Holandský - Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Zdroják na GitHubu"
contribute: "Pokud chcete přidat svůj vlastní překlad, dejte mi vědět na Twitteru"
9 changes: 8 additions & 1 deletion i18n/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "Es ist Zeit, einen besseren Browser zu wählen"
intro: "Es ist Zeit zu wählen!"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Sie möchten nicht vom Internet Explorer weg? Auch von diesem gibt es eine bessere Version ..."

credits:
credits: "Credits"
translation: "Übersetzungen"
design: "Entworfen von E.J. Coughlin"
spanish: "Spanisch von Zac Parker"
Expand All @@ -39,5 +41,10 @@ credits:
russian: "Russisch von Xkeeper"
polish: "Polnisch von Kuba B."
dutch: "Niederländisch von Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Code auf GitHub"
contribute: "Wenn Sie eine weitere Übersetzung hinzufügen möchten, können Sie mich via Twitter erreichen:"
6 changes: 6 additions & 0 deletions i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ main:
ie_lover: "Can’t seem to pry yourself away from Internet Explorer? There’s a slightly better version of that too..."

credits:
credits: "Credits"
translation: "Translation"
design: "Designed by E.J. Coughlin"
spanish: "Spanish by Zac Parker"
Expand All @@ -40,5 +41,10 @@ credits:
russian: "Russian by Xkeeper"
polish: "Polish by Kuba B."
dutch: "Dutch by Ruben van Os"
turkish: "Turkish by Unknown"

This comment has been minimized.

Copy link
@onurguzel

onurguzel Jan 9, 2013

Contributor

Hey, thanks for the credits page. You can add my name. Here is my commit for Turkish: a55a4e6

japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Code on GitHub"
contribute: "If you would like to provide additional translations ping me on Twitter"
7 changes: 7 additions & 0 deletions i18n/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"
swedish: "Swedish"

main:
title: "Es Hora de Elegir un Mejor Navegador"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "No puedes dejar de usar Internet Explorer? También hay una versión un poco mejor que IE6..."

credits:
credits: "Credits"
translation: "Traducción"
design: "Diseñado por E.J. Coughlin"
spanish: "Español por Zac Parker"
Expand All @@ -39,5 +41,10 @@ credits:
russian: "Ruso por Xkeeper"
polish: "Polaco por Kuba B."
dutch: "Holandés por Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Codigo en GitHub"
contribute: "Sí te gustaría traducir Un Mejor Navegador a otro idioma, por favor contactame en Twitter"
9 changes: 8 additions & 1 deletion i18n/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "Il est temps de choisir un meilleur navigateur"
intro: "Il est temps pour vous de choisir"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Impossible de vous séparer d'Internet Explorer ? Une meilleure option reste envisageable..."

credits:
credits: "Credits"
translation: "Traduction"
design: "Créé par E.J. Coughlin"
spanish: "Espagnol de Zac Parker"
Expand All @@ -39,5 +41,10 @@ credits:
russian: "Russes de Xkeeper"
polish: "Polonais de Kuba B."
dutch: "Néerlandais de Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Code sur GitHub"
contribute: "Vous souhaitez traduire dans d'autres langues, contactez moi sur Twitter"
9 changes: 8 additions & 1 deletion i18n/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "È tempo di scegliere Un Browser Migliore"
intro: "È giunto il tempo per scegliere"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Non riesci ad abbandonare Internet Explorer? Ce n'è anche una versione leggermente migliore..."

credits:
credits: "Credits"
translation: "Traduzione"
design: "Progettato da E.J. Coughlin"
spanish: "Spagnolo a cura di Zac Parker"
Expand All @@ -39,5 +41,10 @@ credits:
russian: "Russo a cura di Xkeeper"
polish: "Polacco a cura di Kuba B."
dutch: "Olandese a cura di Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Codice su GitHub"
contribute: "Se vuoi aggiungere altre traduzioni, contattami su Twitter"
9 changes: 8 additions & 1 deletion i18n/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "A Better Browser を選ぶのは今!"
intro: "今こそまともなブラウザに乗り換えましょう!"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "どうしても Internet Explorer から乗り換えられませんか?多少はマシなバージョンがあるのでそちらをお使いください……。"

credits:
credits: "Credits"
translation: "翻訳"
design: "E.J. Coughlin (デザイン)"
spanish: "Zac Parker (スペイン語)"
Expand All @@ -37,5 +39,10 @@ credits:
portuguesebr: "Matheus R. Kautzmann (ブラジルポルトガル語)"
russian: "Xkeeper (ロシア語)"
polish: "Kuba B. (ポーランド語)"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "GitHub (ソースコード)"
contribute: "もし他の言語にも翻訳したいというのなら是非 Twitter で連絡してください:"
7 changes: 7 additions & 0 deletions i18n/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ menu:
japanese: "Japans"
traditional_chinese: "Trad Chinees"
simplified_chinese: "Simp Chinees"
swedish: "Swedish"

main:
title: "Het Is Tijd Om Een Betere Browser te Kiezen"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Kan u geen gedag zeggen tegen Internet Explorer? Ook daar is een iets betere versie van..."

credits:
credits: "Credits"
translation: "Vertaling"
design: "Ontworpen door E.J. Coughlin"
spanish: "Spaans door Zac Parker"
Expand All @@ -38,5 +40,10 @@ credits:
russian: "Russisch door Xkeeper"
polish: "Pools door Kuba B."
dutch: "Nederlands door Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Code op GitHub"
contribute: "Als u een vertaling of vertalingen toe wilt voegen, ping me dan op Twitter"
11 changes: 9 additions & 2 deletions i18n/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "Czas wybrać Lepszą Przeglądarkę"
intro: "Nadszedł czas dla Ciebie, abyś wybrał"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Nie możesz się uwolnić od Internet Explorera? On też ma troszkę nowsze wersje... "

credits:
credits: "Credits"
translation: "Przekłady"
design: "Zaprojektował E.J. Coughlin"
spanish: "Hiszpański - Zac Parker"
Expand All @@ -38,5 +40,10 @@ credits:
russian: "Rosyjski - Xkeeper"
polish: "Polski - Kuba B."
dutch: "Holenderski - Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Kod na GitHubie"
contribute: "Jeśli chciałbyś udostępnić dodatkowe tłumaczenie, znajdź mnie na Twitterze @ejc "
contribute: "Jeśli chciałbyś udostępnić dodatkowe tłumaczenie, znajdź mnie na Twitterze "
9 changes: 8 additions & 1 deletion i18n/pt-br.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "Chegou a hora de escolher um navegador melhor"
intro: "Chegou a hora de você escolher"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Não consegue abandonar o Internet Explorer? Há uma versão melhor dele também..."

credits:
credits: "Credits"
translation: "Tradução"
design: "Desenvolvido por E.J. Coughlin"
spanish: "Espanhol por Zac Parker"
Expand All @@ -39,5 +41,10 @@ credits:
russian: "Russo por Xkeeper"
polish: "Polonês por Kuba B."
dutch: "Holandês por Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Código no GitHub"
contribute: "Se você gostaria de enviar novas traduções fale comigo no Twitter"
9 changes: 8 additions & 1 deletion i18n/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "Настало время выбрать современный браузер!"
intro: "Пришло время выбрать"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Не можете отказаться от Internet Explorer? Здесь можно скачать более современную версию..."

credits:
credits: "Credits"
translation: "Перевод:"
design: "Дизайн - E.J. Coughlin"
spanish: "Испанский - Zac Parker"
Expand All @@ -39,5 +41,10 @@ credits:
russian: "Русский - Xkeeper"
polish: "Польский - Kuba B."
dutch: "голландский: Ruben van Os"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Исходники на GitHub"
contribute: "Если вы хотите помочь с переводом - обратитесь ко мне в Твиттер"
9 changes: 8 additions & 1 deletion i18n/sk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ menu:
japanese: "Japanese"
traditional_chinese: "Trad Chinese"
simplified_chinese: "Simp Chinese"

swedish: "Swedish"

main:
title: "Je čas zvoliť Lepší Prehliadač"
intro: "Nastal čas zvoliť si"
Expand All @@ -26,6 +27,7 @@ main:
ie_lover: "Stále se nedokážete odpútať od Internet Explorera? Aj on už má trochu lepšiu veziu"

credits:
credits: "Credits"
translation: "Preklady"
design: "Dizajn – E.J. Coughlin"
spanish: "Španiečina – Zac Parker"
Expand All @@ -37,5 +39,10 @@ credits:
serbian: "Srbština – Nemanja Pantoš"
portuguesebr: "Brazílska Portugalčina - Matheus R. Kautzmann"
russian: "Ruština - Xkeeper"
turkish: "Turkish by Unknown"
japanese: "Japanese by Unknown"
traditional_chinese: Traditional Chinese by xyeal.com"
simplified_chinese: Simplified Chinese by xyeal.com"
swedish: "Svenska av Christoffer Sawicki"
site_source: "Zdrojáky na GitHube"
contribute: "Ak chcete pridať svoj vlasntý preklad, dajte mi vedieť na Twitteri"
Loading

1 comment on commit 724485f

@qerub
Copy link
Contributor

@qerub qerub commented on 724485f Nov 11, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes! Thank you.

Please sign in to comment.