From fa2e209597b9f1ec2f053b7dfe6a83a8e59df636 Mon Sep 17 00:00:00 2001 From: Fiona Tay Date: Wed, 6 Feb 2013 21:37:08 +0800 Subject: [PATCH 1/5] add Jasmine spec info to README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bec3363a..fc039d7c 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,12 @@ This will run against API run locally. ### Running the spec suite -To run the test suite, you must first start the app (see above). +First, start the app (see above). bundle exec foreman start -Then run rspec against the spec/ directory +To run the Ruby specs, run rspec against the spec/ directory: bundle exec rspec spec/ + +To run the Jasmine specs, open the spec page: [localhost:5000/spec.html](http://localhost:5000/spec.html) \ No newline at end of file From 9cf20d774d60e1a82f8e26a1661bbadd46182ec2 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Fri, 22 Feb 2013 22:36:48 +0100 Subject: [PATCH 2/5] Don't shadow options method in set_config --- lib/travis/web/app.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/travis/web/app.rb b/lib/travis/web/app.rb index 31466a28..da5f475b 100644 --- a/lib/travis/web/app.rb +++ b/lib/travis/web/app.rb @@ -156,14 +156,14 @@ class Travis::Web::App Rack::Mime.mime_type File.extname(file) end - def set_config(string, options = {}) + def set_config(string, opts = {}) string.gsub! %r(]*>) do %() end string.gsub! %r{(src|href)="(?:\/?)((styles|scripts)\/[^"]*)"} do - if options[:custom_branch] - url = "https://s3.amazonaws.com/travis-web-production/assets/#{options[:custom_branch]}/#{$2}" + if opts[:custom_branch] + url = "https://s3.amazonaws.com/travis-web-production/assets/#{opts[:custom_branch]}/#{$2}" %(#$1="#{url}") else %(#$1="/#{version}/#$2") From 7e24a3093e65baae78ce0bb4a352484922c13aaa Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Mon, 25 Feb 2013 20:30:02 +0900 Subject: [PATCH 3/5] Added info for i18n management to readme Hopefull this will help people stop sending in pull requests with .yml changes for localization. ..Assuming they read the README! --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc039d7c..eac08eba 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,22 @@ To run the Ruby specs, run rspec against the spec/ directory: bundle exec rspec spec/ -To run the Jasmine specs, open the spec page: [localhost:5000/spec.html](http://localhost:5000/spec.html) \ No newline at end of file +To run the Jasmine specs, open the spec page: [localhost:5000/spec.html](http://localhost:5000/spec.html) + +### i18n + +Localization for travis-web is managed via [localeapp](http://localeapp.com). +If you are interested in improving the existing localizations or adding +a new locale, please contact us on irc (#travis) and we will set you up. + +Please do **not** edit the YAML files directly. + +Localization data can be synced with the following rake task: + + bundle exec localeapp:update + +This will publish any new keys in en.yml, as well as any missing keys +from your handlebars templates and pull down the latest localizations. + +*note*: You will need to have the localeapp api key exported to +LOCALEAPP_API_KEY From 050bdfddb89a10e2ee5baf7384e7e567db2523b7 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Mon, 25 Feb 2013 21:02:02 +0900 Subject: [PATCH 4/5] Added de locale to profile This is dependent on https://github.com/travis-ci/travis-core/pull/190 --- .localeapp/log.yml | 4 +- assets/scripts/app/views/profile.coffee | 1 + locales/de.yml | 161 ++++++++++++++++++++++++ locales/en.yml | 2 + locales/es.yml | 2 + locales/fr.yml | 2 + locales/ja.yml | 2 + locales/nb.yml | 2 + locales/nl.yml | 2 + locales/pl.yml | 2 + locales/pt-BR.yml | 2 + locales/ru.yml | 8 +- 12 files changed, 185 insertions(+), 5 deletions(-) create mode 100644 locales/de.yml diff --git a/.localeapp/log.yml b/.localeapp/log.yml index b1866c16..1c42b9c4 100644 --- a/.localeapp/log.yml +++ b/.localeapp/log.yml @@ -1,3 +1,3 @@ --- -:polled_at: 1358204368 -:updated_at: 1358204368 +:polled_at: 1361792606 +:updated_at: 1361792606 diff --git a/assets/scripts/app/views/profile.coffee b/assets/scripts/app/views/profile.coffee index d476203f..8af689c7 100644 --- a/assets/scripts/app/views/profile.coffee +++ b/assets/scripts/app/views/profile.coffee @@ -60,6 +60,7 @@ { key: 'pl', name: 'Polski' } { key: 'pt-BR', name: 'Português brasileiro' } { key: 'ru', name: 'Русский' } + { key: 'de', name: 'Deutsch' } ] ).property() diff --git a/locales/de.yml b/locales/de.yml new file mode 100644 index 00000000..b4b87895 --- /dev/null +++ b/locales/de.yml @@ -0,0 +1,161 @@ +de: + build: + duration: Dauer + finished_at: Fertig + job: Aufgabe + builds: + allowed_failures: Erlaubte Fehlschläge + author: Autor + branch: + build_matrix: Build-Matrix + commit: + commiter: + committer: + compare: Vergleich + config: Konfiguration + duration: Dauer + finished_at: Fertig + message: Nachricht + messages: + sponsored_by: Dieser Testablauf lief auf einem Arbeiter-Rechner gesponsert von + name: + pr: + started_at: Läuft + state: Status + datetime: + distance_in_words: + hours_exact: + one: ! '%{count} Stunde' + other: ! '%{count} Stunden' + minutes_exact: + one: ! '%{count} Minute' + other: ! '%{count} Minuten' + seconds_exact: + one: ! '%{count} Sekunde' + other: ! '%{count} Sekunden' + errors: + messages: + already_confirmed: wurde bereits bestätigt + not_found: nicht gefunden + not_locked: war nicht gesperrt + home: + name: Startseite + jobs: + allowed_failures: Erlaubte Fehlschläge + author: Autor + branch: + build_matrix: Build-Matrix + commit: + committer: + compare: Vergleich + config: Konfiguration + duration: Dauer + finished_at: Fertig + message: Nachricht + messages: + sponsored_by: Dieser Testablauf lief auf einem Arbeiter-Rechner gesponsert von + sponsored_by: Gesponsert von + started_at: Läuft + state: Status + layouts: + about: + alpha: Dieses Zeugs ist Alpha! + join: Komm dazu und helfe! + mailing_list: Mailingliste + messages: + alpha: Bitte empfinde das nicht als stabilen Dienst. Wir sind immer noch weit davon entfernt! Mehr Informationen hier. + repository: + twitter: + application: + fork_me: Auf GitHub forken + my_repositories: Meine Repositories + recent: Aktuell + search: Suche + sponsers: Sponsoren + sponsors_link: Schaue alle unsere tollen Sponsoren an → + mobile: + author: Autor + build: + build_matrix: Build-Matrix + commit: + committer: + compare: Vergleich + config: Konfiguration + duration: Dauer + finished_at: Fertig + job: Aufgabe + log: Log + top: + accounts: Accounts + admin: Admin + blog: Blog + docs: Dokumentation + github_login: Mit GitHub anmelden + home: Startseite + profile: Profil + sign_out: Abmelden + signing_in: Anmelden... + stats: Statistik + locales: + ca: + de: Deutsch + en: English + es: Español + fr: Français + ja: 日本語 + nb: Norsk Bokmål + nl: Nederlands + pl: Polski + pt-BR: português brasileiro + ru: Русский + no_job: Es gibt keine Aufgaben + profiles: + show: + email: E-Mail + github: + locale: Sprache + message: + config: Wie du eigene Build-Optionen konfigurieren kannst + your_repos: Lege die Schalter unten um, um den Travis Dienst-Hook für deine Projekte zu aktivieren, dann pushe zu GitHub.
\n Um gegen mehrere Rubine zu testen, sehe + messages: + notice: Bitte lese dir unser Getting Started-Handbuch durch, um loszulegen.\\n Es dauert nur ein paar Minuten. + token: + update: + update_locale: Update + your_locale: Deine Sprache + your_repos: Deine Repositories + queue: Warteschlange + repositories: + asciidoc: + branch: + commit: + duration: Dauer + finished_at: Fertig + image_url: Bild-URL + markdown: + message: Nachricht + rdoc: + started_at: Läuft + tabs: + branches: Branch-Zusammenfassung + build: + build_history: Build-Geschichte + current: Aktuell + job: Aufgabe + pull_requests: + test: + textile: + repository: + duration: Dauer + statistics: + index: + build_count: Build-Anzahl + count: Anzahl + last_month: letzter Monat + repo_growth: Repository-Zuwachs + total_builds: Alle Builds + total_projects: Alle Projekte/Repositories + user: + failure: Fehlschlag + signed_out: Abgemeldet + workers: Arbeiter diff --git a/locales/en.yml b/locales/en.yml index fedaeefd..d5ef97fd 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -9,6 +9,7 @@ en: branch: Branch build_matrix: Build Matrix commit: Commit + commiter: commiter committer: Committer compare: Compare config: Config @@ -97,6 +98,7 @@ en: stats: Stats locales: ca: + de: Deutsch en: English es: Español fr: Français diff --git a/locales/es.yml b/locales/es.yml index 632834bc..ecd7d82c 100644 --- a/locales/es.yml +++ b/locales/es.yml @@ -9,6 +9,7 @@ es: branch: Rama build_matrix: Matriz de Builds commit: Commit + commiter: committer: Committer compare: Comparar config: Configuración @@ -97,6 +98,7 @@ es: stats: Estadísticas locales: ca: + de: Deutsch en: English es: Español fr: Français diff --git a/locales/fr.yml b/locales/fr.yml index 574daf2b..9f7df4a6 100644 --- a/locales/fr.yml +++ b/locales/fr.yml @@ -9,6 +9,7 @@ fr: branch: Branche build_matrix: Table des versions commit: Commit + commiter: committer: Committeur compare: Comparer config: Config @@ -97,6 +98,7 @@ fr: stats: Statistiques locales: ca: + de: Deutsch en: English es: Español fr: Français diff --git a/locales/ja.yml b/locales/ja.yml index 1357242d..43e589bf 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -9,6 +9,7 @@ ja: branch: ブランチ build_matrix: 失敗許容範囲外 commit: コミット + commiter: committer: コミット者 compare: 比較 config: 設定 @@ -91,6 +92,7 @@ ja: stats: 統計 locales: ca: + de: Deutsch en: English es: Español fr: Français diff --git a/locales/nb.yml b/locales/nb.yml index f6f84518..8ad41830 100644 --- a/locales/nb.yml +++ b/locales/nb.yml @@ -9,6 +9,7 @@ nb: branch: Gren build_matrix: Jobbmatrise commit: Innsending + commiter: committer: Innsender compare: Sammenlign config: Oppsett @@ -97,6 +98,7 @@ nb: stats: Statistikk locales: ca: + de: Deutsch en: English es: Español fr: Français diff --git a/locales/nl.yml b/locales/nl.yml index 6df3524b..81c263b3 100644 --- a/locales/nl.yml +++ b/locales/nl.yml @@ -9,6 +9,7 @@ nl: branch: Tak build_matrix: Bouw matrix commit: Commit + commiter: committer: Committer compare: Vergelijk config: Configuratie @@ -97,6 +98,7 @@ nl: stats: Statistieken locales: ca: + de: Deutsch en: English es: Español fr: Français diff --git a/locales/pl.yml b/locales/pl.yml index 2e5578c2..2df987d1 100644 --- a/locales/pl.yml +++ b/locales/pl.yml @@ -9,6 +9,7 @@ pl: branch: Gałąź build_matrix: Macierz Buildów commit: Commit + commiter: committer: Komitujący compare: Porównanie config: Konfiguracja @@ -100,6 +101,7 @@ pl: stats: Statystki locales: ca: Čeština + de: Deutsch en: English es: Español fr: Français diff --git a/locales/pt-BR.yml b/locales/pt-BR.yml index 1809fd01..2e2a1b0f 100644 --- a/locales/pt-BR.yml +++ b/locales/pt-BR.yml @@ -9,6 +9,7 @@ pt-BR: branch: Branch build_matrix: Matriz de Build commit: Commit + commiter: committer: Committer compare: Comparar config: Config @@ -97,6 +98,7 @@ pt-BR: stats: Estatísticas locales: ca: + de: Deutsch en: English es: Español fr: Français diff --git a/locales/ru.yml b/locales/ru.yml index d9187c7b..a05549a2 100644 --- a/locales/ru.yml +++ b/locales/ru.yml @@ -9,6 +9,7 @@ ru: branch: Ветка build_matrix: Матрица commit: Коммит + commiter: committer: Коммитер compare: Дифф config: Конфигурация @@ -18,7 +19,7 @@ ru: messages: sponsored_by: Эта серия тестов была запущена на машине, спонсируемой name: Билд - pr: + pr: PR started_at: Начало state: состояние datetime: @@ -103,6 +104,7 @@ ru: stats: Статистика locales: ca: + de: Deutsch en: English es: Español fr: Français @@ -162,6 +164,6 @@ ru: total_builds: Всего билдов total_projects: Всего проектов/репозиториев user: - failure: - signed_out: + failure: сбой + signed_out: Вышел workers: Машины From 4e29faaa03924cdcaa48149ea749d5a62892e5c5 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 26 Feb 2013 12:21:17 +0100 Subject: [PATCH 5/5] Start Travis with bootstrapTravis function --- assets/scripts/travis.coffee | 3 +++ public/index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/scripts/travis.coffee b/assets/scripts/travis.coffee index c8758a01..4b50002e 100644 --- a/assets/scripts/travis.coffee +++ b/assets/scripts/travis.coffee @@ -1,6 +1,9 @@ require 'ext/jquery' require 'ext/ember/namespace' +window.bootstrapTravis = -> + Travis.run() + if window.history.state == undefined window.history.state = {} oldPushState = window.history.pushState diff --git a/public/index.html b/public/index.html index fb4970ef..614e591f 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,7 @@