                                            :sign-in-to-accept "Sign in to accept"
                                            :accept "Accept"
                                            :decline "Decline"}
-                      :invitation-banner {:message "Respond to your invitation to help draft policy"}
+                     :invitation-banner {:message "Respond to your invitation to help draft policy"}
                      :candidate-list {:doc-title "Candidate policy writers | Objective[8]"
                                       :doc-description "Candidate policy writers..."
                                       :page-intro "Writers work with each other and the community to draft policy."

            [taoensso.tower :as tower]))

;;TODO move translations to external files

(def translation-config
  {:dictionary {:en { :base {:header-logo-text "Objective[8]"
                             :header-logo-title "Go to home page"
                             :project-status! "ALPHA: We are still testing, <a href=\"/project-status\" title=\"Find out more about our project status\">find out more</a>"
                             :browsehappy! "You are using an <strong>outdated</strong> browser. Please <a href=\"http://browsehappy.com/\">upgrade your browser</a> to improve your experience."}
                      :navigation-global {:sign-in-text "Sign in"
                                          :sign-in-title "Go to sign in"
                                          :sign-out-text "Sign out"
                                          :sign-out-title "Go to sign out"
                                          :profile-text "Profile"
                                          :profile-title "Go to user profile"}
                      :share-widget {:title "Share this page:"
                                     :facebook-title "Share on Facebook..."
                                     :facebook-text "Share on Facebook"
                                     :google-plus-title "Plus one this page on Google"
                                     :google-plus-text "Google +1"
                                     :twitter-title "Share this page on Twitter"
                                     :twitter-text "Tweet"
                                     :linkedin-title "Share this page on LinkedIn"
                                     :linkedin-text "Share on LinkedIn"
                                     :reddit-title "Submit this page to Reddit"
                                     :reddit-text "Submit to Reddit"
                                     :url-label "URL to share"
                                     :url-title "The link to this page"}
                      :error-404 {:doc-title "Error 404 | Objective[8]"
                             :doc-description "Sorry the page you requested can't be found."
                             :page-title "Sorry the page you requested can't be found."
                             :page-intro "The page you were trying to reach at this address doesn't seem to exist. This is usually the result of a bad or outdated link. We apologise for any inconvenience."
                             :page-content! "<h2>What can I do now?</h2><ul class=\"list-large\"><li>Please return to the <a href=\"/\" title=\"Go to Home\">home page</a>.</li><li>To report an issue visit our <a href=\"https://github.com/ThoughtWorksInc/objective8/issues\">github issues page</a>.</li></ul>" }
                     :notifications {:drafting-has-started "Drafting has started on this objective!"
                                     :drafting-started-helper-text "This means that you can no longer ask or answer questions, comment, or invite new writers.  However, you can follow and contribute to the drafting progress "
                                     :go-to-drafting "here."}
                      :index {:doc-title "Objective[8]"
                             :doc-description ""
                             :index-welcome "Collaborative policy making for democratic organisations."
                             :index-intro "Gather community opinion, generate ideas, share, discuss, vote and collaborate with experts to draft new policy."

                               :not-well-formed "Username must be 1-16 characters in length, containing only letters and numbers"
                               :email-label "Email"
                               :email-title "Add your email title"
                               :button "Create account"}}}

   :es spanish-translations
   
   :dev-mode? false
   :fallback-locale :en
   :log-missing-translations-function (fn [{:keys [locale ks scope]}]
                                        (log/warn (str "Missing translations! " locale ks scope)))})


(def spanish-translations {}
  #_{:es {:base {:header-logo-text "Objective[8]"
                  :header-logo-title "Inicio"
                  :project-status! "Spanish(ALPHA: We are still in development and testing, <a href=\"/project-status\" title=\"Find out more about our project status\">find out more</a>)"
                  :browsehappy! "Por favor <a href='http://browsehappy.com/' target='_blank' title='Visita browsehappy para aprender más sobre las últimas versiones de tu navegador'>actualiza tu navegador</a> para que tengas una mejor experiencia."}
           :navigation-global {:sign-in-text "Entrar"
                               :sign-in-title "Iniciar sesión"
                               :sign-out-text "Salir"
                               :sign-out-title "Cerrar sesión"
                               :profile-text "Perfil"
                               :profile-title "Perfil"}
           :share-widget {:title "Compartir"
                          :facebook-title "Compartir en Facebook"
                          :facebook-text "Compartir en Facebook"
                          :google-plus-title "Compartir en Google+"
                          :google-plus-text "Compartir en Google+"
                          :twitter-title "Compartir en Twitter"
                          :twitter-text "Compartir en Twitter"
                          :linkedin-title "Compartir en LinkedIn"
                          :linkedin-text "Compartir en LinkedIn"
                          :reddit-title "Compartir en Reddit"
                          :reddit-text "Compartir en Reddit"
                          :url-label "Comparte el link"
                          :url-title "Comparte el link"}
           :error-404 {:doc-title "Spanish(Error 404 | Objective[8])"
                       :doc-description "Spanish(Sorry the page you requested can't be found.)"
                       :page-title "Spanish(Sorry the page you requested can't be found.)"
                       :page-intro "Spanish(The page you were trying to reach at this address doesn't seem to exist. This is usually the result of a bad or outdated link. We apologise for any inconvenience.)"
                       :page-content! "<h2>What can I do now?</h2><ul class=\"list-large\"><li>Please return to the <a href=\"/\" title=\"Go to Home\">home page</a>.</li><li>To report an issue visit our <a href=\"https://github.com/ThoughtWorksInc/objective8/issues\">github issues page</a>.</li></ul>" }
           :notifications {:drafting-has-started "Spanish(...)"
                           :drafting-started-helper-text "Spanish(...)"
                           :go-to-drafting "Spanish(...)"}
           :index {:doc-title "Objective[8]"
                   :doc-description ""
                   :index-welcome "Politicos colaborando con organizaciones democráticas"
                   :index-intro "Recolectar la opinion de la comunidad, generar ideas, compartir, discutir, votar y colaborar con expertos para redactar nuevas politicas."
                   :index-get-started "Objetivo"
                   :index-get-started-title "Objetivo"
                   :index-learn-more "Más información"
                   :index-learn-more-title "Más información"}
           :sign-in {:doc-title "Entrar | Objective[8]"
                     :doc-description "Entrar"
                     :page-title "Spanish(Sign in or Sign up)"
                     :twitter-sign-in-btn "Entra con Twitter"
                     :twitter-sign-in-title "Entra con Twitter"
                     :reassurance "Spanish(We will never post to Twitter without your permission.)"}
           :project-status {:doc-title "Spanish(Project status | Objective [8])"
                            :doc-description ""
                            :page-title "Spanish(Alpha phase)"
                            :page-intro "Spanish(We are developing and designing Objective[8] in the open. This allows the tool evolve as you use it, as you give feedback, and as the developers update and add content.)"
                            :page-content! "Spanish(<p>It is important to note that during this time data may be removed or destroyed as part of our process. Any of the views and data expressed here is to be used for example purposes only and does not accurately represent the real views of users.</p><h2>How to get involved</h2><p>This project is open source and we are inviting people to collaborate with us to build a better tool. For developers and you can find the code on github at <a href=\"https://github.com/ThoughtWorksInc/objective8\" title=\"Objective[8] on github\">https://github.com/ThoughtWorksInc/objective8</a>. We will also be adding details for upcoming usability sessions shortly.</p><h2>Have you got an idea?</h2><p>We are really interested in user feedback and are currently inviting people to leave comments our <a href=\"https://github.com/ThoughtWorksInc/objective8/issues\">github issues page</a>.</p>)" }
           :learn-more {:doc-title "Spanish(Learn more) | Objective[8]"
                        :doc-description ""
                        :page-title "Spanish(...)"
                        :sub-title "Spanish(...)"
                        :page-intro "Spanish(...)"
                        :get-started-button-title "Spanish(...)"
                        :get-started-button-text "Spanish(...)"
                        :page-content! "Spanish(...)"}
           :objective-nav {:title "Spanish(Navigation for)"
                           :details "Spanish(Details)"
                           :questions "Spanish(Questions)"
                           :writers "Spanish(Writers)"}   
           :objective-list {:doc-title "Spanish(Objectives | Objective[8])"
                            :doc-description ""
                            :page-title "Spanish(Objectives)"
                            :create-button-title "Spanish(Create an objective)"
                            :create-button-text "Spanish(Create an objective)"
                            :please "Spanish(Please)"
                            :sign-in "Spanish(sign in)"
                            :to "Spanish(to create an objective.)"
                            :subtitle "Spanish(Recently created objectives)"
                            :drafting-begins "Spanish(Drafting begins on)"
                            :objectives-intro-text "Spanish(...)"}
           :objective-create {:doc-title "Crea un objetivo | Objective[8]"
                              :doc-description "Crea un objetivo"
                              :page-title "Crea un objetivo"
                              :page-intro "Spanish(...)"
                              :headline-label "Spanish(...)"
                              :headline-title "3 carateres mínimo, 120 carateres máximo"
                              :headline-prompt "Spanish(...)"
                              :headline-placeholder "Spanish(...)"
                              :goals-label "Meta"
                              :goals-prompt "Spanish(...)"
                              :goals-title "50 carateres mínimo, 200 carateres máximo"
                              :goals-placeholder "Spanish(...)"
                              :background-label "Spanish(...)"
                              :background-prompt "Spanish(...)"
                              :background-title "Escribe una descripcion máximo de 1000 caracteres."
                              :end-date-label "Spanish(...)"
                              :end-date-prompt "Spanish(...)"
                              :drafting-not-yet-implemented "Spanish(...)"
                              :end-date-title "Por favor escribe la fecha de vencimiento"
                              :end-date-placeholder "yyyy-mm-dd"
                              :submit "Crear"}
           :objective-view {:doc-title "Objetivo | Objective[8]"
                            :doc-description ""
                            :background-label "Spanish(Background)"
                            :goals-label "Meta"
                            :end-date-label "Fecha de vencimiento"
                            :created-message "Tu objetivo ha sido creado"}
           :comment-view {:created-message "Tu comentario ha sido creado"
                          :comment-title "Comentarios"
                          :no-comments "Spanish(There are no comments yet.)"}
           :comment-create {:comment-label "Spanish(Your comment)"
                            :comment-title "Los comentarios son máximo de 500 caracteres."
                            :post-button "Spanish(Add comment)"}
           :comment-sign-in {:please "Spanish(Please)"
                             :sign-in "Spanish(sign in)"
                             :to "Spanish(to start commenting.)"}
           :question-list {:questions-about "Spanish(Questions about)"
                           :page-intro "Spanish(...)"
                           :question-list-heading "Spanish(...)"
                           :no-questions "Spanish(There are no questions yet.)" }
           :question-create {:question-label "Spanish(Question)"
                             :question-title "Spanish(Questions are a maximum length of 500 characters)"
                             :post-button "Spanish(Add)"}
           :question-view {:added-message "Spanish(Your question has been added!)"
                           :added-answer-message "Spanish(Your answer has been added!)"}
           :question-sign-in {:please "Spanish(Please)"
                              :sign-in "Spanish(sign in)"
                              :to "Spanish(to ask a question.)" }
           :answer-view   {:created-message "Spanish(Your answer has been posted!)"
                           :answer-title "Spanish(Answers)"
                           :no-answers "Spanish(No one has answered this question yet.)"}
           :answer-create {:answer-label "Spanish(Your answer)"
                           :answer-title "Spanish(Answers are a maximum length of 500 characters)"
                           :post-button "Spanish(Post your answer)"}
           :answer-sign-in {:please "Spanish(Please)"
                            :sign-in "Spanish(sign in)"
                            :to "Spanish(to answer this question.)"}
           :invitation {:doc-title "Spanish(...)"
                        :doc-description "Spanish(...)"
                        :page-title "Spanish(...)"
                        :page-intro "Spanish(...)"
                        :writer-name-label "Spanish(...)"
                        :writer-name-title "Spanish(...)"
                        :reason-label "Spanish(...)"
                        :reason-title "Spanish(...)"
                        :submit "Spanish(...)"}
           :invitation-response {:doc-title "Spanish(...)"
                                 :doc-description "Spanish(...)"
                                 :page-title "Spanish(...)"
                                 :page-intro "Spanish(...)"
                                 :for-objective-text "Spanish(...)"
                                 :rsvp-text "Spanish(...)"
                                 :sign-in-to-accept "Spanish(...)"
                                 :accept "Spanish(...)"
                                 :decline "Spanish(...)"}
           :invitation-sign-in {:please "Spanish(...)"
                                :sign-in "Spanish(...)"
                                :to "Spanish(...)"}
           :invitation-banner {:message "Spanish(...)"}
           :candidate-list {:page-intro "Spanish(...)"
                            :candidate-list-heading "Spanish(...)"
                            :no-candidates "Spanish(...)"}
           :current-draft {:page-intro "Spanish(...)"
                           :no-drafts "Spanish(...)"}
           :edit-draft {:doc-title "Spanish(...)"
                        :doc-description "Spanish(...)"
                        :preview "Spanish(...)"
                        :submit "Spanish(...)"}
           :sign-up {:doc-title "Perfil | Objective[8]"
                     :doc-description ""
                     :page-title ""
                     :welcome  "Tu correo electrónico nos permitira informarte cuando recivas respuestas a tus comentarios, objetivos y votos."
                     :username-label ""
                     :username-title ""
                     :not-unique ""
                     :not-well-formed ""
                     :email-label  "Correo electrónico"
                     :email-title  "Escribe tu cuenta de correo electrónico"
                     :button ""}}})


(def t (tower/make-t translation-config))
