From 151d0e6fcbc77e237ac6d9bfe128d068f9e1e573 Mon Sep 17 00:00:00 2001 From: Douglas Gardner Date: Sun, 21 Apr 2013 14:53:04 +0000 Subject: [PATCH] Add translations; toggle lowercase; remove testCSS --- modules/project/pages.js | 8 +++++++- modules/project/strings.json | 15 +++++++++++++++ public/project.css | 32 +------------------------------- views/project/project.jade | 27 +++++++++++++-------------- 4 files changed, 36 insertions(+), 46 deletions(-) diff --git a/modules/project/pages.js b/modules/project/pages.js index 084a2d5..ed94690 100644 --- a/modules/project/pages.js +++ b/modules/project/pages.js @@ -86,7 +86,13 @@ var pages = function(dbot) { }), "git": dbot.t("git"), "milestonehead": dbot.t("milestones"), - "propaganda": dbot.t("propaganda") + "propaganda": dbot.t("propaganda"), + "languagecurr": dbot.t(dbot.config.language), + "languagenati": dbot.t("langhead-native"), + "languageeng": dbot.t("en"), + "languageprog": dbot.t("langhead-progress"), + "languagetrans": dbot.t("langhead-translations"), + "languagetranshead": dbot.t("translations") }); }, }; diff --git a/modules/project/strings.json b/modules/project/strings.json index e03f30a..8960da3 100644 --- a/modules/project/strings.json +++ b/modules/project/strings.json @@ -174,5 +174,20 @@ }, "git": { "en": "version control" + }, + "langhead-current": { + "en": "Current" + }, + "langhead-translations": { + "en": "Completion" + }, + "translations": { + "en": "Translations" + }, + "langhead-progress": { + "en": "Translation Progress" + }, + "langhead-native": { + "en": "Native" } } diff --git a/public/project.css b/public/project.css index 9049548..3e71250 100644 --- a/public/project.css +++ b/public/project.css @@ -2,11 +2,10 @@ pre#gitdiff { text-align:left; width:80; margin:auto; + text-transform:none; } div#main { font-size:18px; -} -h2,h3,h4,h5,h6,.center { text-transform:lowercase; } table { @@ -48,10 +47,6 @@ div.progress-inner.closed { background-image: linear-gradient(to bottom,#ff3f3f,#ff7f7f); } -#config { - text-transform:lowercase; -} - ul { margin-left:0; margin-bottom:5px; @@ -68,28 +63,3 @@ li { #footer { font-size:80%; } -/* testing stuff */ -.en { - background-color:red; - background-image:none; -} -.fr { - background-color:blue; - background-image:none; -} -.de { - background-color:yellow; - background-image:none; -} -.nl { - background-color:darkorange; - background-image:none; -} -.cy { - background-image:palevioletred; - background-image:none; -} -.es { - background-image:none; - background-color:orchid; -} diff --git a/views/project/project.jade b/views/project/project.jade index 3743218..d447388 100644 --- a/views/project/project.jade +++ b/views/project/project.jade @@ -19,8 +19,6 @@ html(lang='#{curr839}') div#page div#title #{pagetitle} div.container#main - p.intro - p.intro #{dquote} section#git @@ -51,14 +49,14 @@ html(lang='#{curr839}')   td #{milestone.open_issues} td #{milestone.closed_issues} - h4 Translations + h4 #{languagetranshead} table tr - th Current - th Native - th English - th Progress - th Translations + th #{languagecurr} + th #{languagenati} + th #{languageeng} + th #{languageprog} + th #{languagetrans} each language in translation - var w = ((language.count/translation.en.count)*100) tr @@ -66,13 +64,14 @@ html(lang='#{curr839}') td #{language.own} td #{language.english} td.prog - div.progress(class="open") - unless (language.iso == curr839) - div.progress-inner(style="width:"+w+"%")(class="open") -   + unless (language.iso == curr839) + div.progress(class="open") + div.progress-inner(style="width:"+w+"%")(class="open") +   else - div.progress-inner(style="width:"+w+"%")(class="closed") -   + div.progress(class="closed") + div.progress-inner(style="width:"+w+"%")(class="closed") +   td #{language.count} / #{translation.en.count} h4 #{credits} #{thanks}