From e79306825613419df89bcf668273befa11f2bdcb Mon Sep 17 00:00:00 2001 From: Joris Bontje Date: Fri, 6 Mar 2015 11:45:47 +0100 Subject: [PATCH] i18n: closes #35, maybe also #45. (WIP) --- .meteor/packages | 1 + .meteor/versions | 2 ++ client/views/home.html | 11 +++++---- client/views/includes/footer.html | 10 ++++---- client/views/includes/header.html | 30 +++++++++++------------ client/views/includes/loading.html | 2 +- client/views/includes/notFound.html | 4 +-- client/views/jobs/job.html | 8 +++--- client/views/jobs/job.js | 2 +- client/views/jobs/jobForms.html | 13 +++++----- client/views/jobs/jobIncludes.html | 10 ++++---- client/views/jobs/jobs.html | 2 +- client/views/jobs/jobsRecent.html | 5 ++-- client/views/jobs/myJobs.html | 5 ++-- client/views/profiles/profile.html | 24 +++++++++--------- client/views/profiles/profile.js | 2 +- client/views/profiles/profileForms.html | 15 ++++++------ client/views/profiles/profileSmall.html | 6 ++--- client/views/profiles/profiles.html | 2 +- client/views/profiles/profilesRecent.html | 5 ++-- client/views/user/userProfile.html | 7 +++--- i18n/buttons.en.i18n.json | 9 +++++++ i18n/footer.en.i18n.json | 8 ++++++ i18n/header.en.i18n.json | 10 ++++++++ i18n/jobs.en.i18n.json | 18 ++++++++++++++ i18n/messages.en.i18n.json | 6 +++++ i18n/profiles.en.i18n.json | 19 ++++++++++++++ i18n/wework.en.i18n.json | 6 +++++ project-tap.i18n | 5 ++++ 29 files changed, 169 insertions(+), 78 deletions(-) create mode 100644 i18n/buttons.en.i18n.json create mode 100644 i18n/footer.en.i18n.json create mode 100644 i18n/header.en.i18n.json create mode 100644 i18n/jobs.en.i18n.json create mode 100644 i18n/messages.en.i18n.json create mode 100644 i18n/profiles.en.i18n.json create mode 100644 i18n/wework.en.i18n.json create mode 100644 project-tap.i18n diff --git a/.meteor/packages b/.meteor/packages index e134ca9..e0c34c1 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -50,3 +50,4 @@ email gadicohen:sitemaps natestrauser:uploadcare-plus reactive-var +tap:i18n diff --git a/.meteor/versions b/.meteor/versions index fa42aa0..dc5d117 100644 --- a/.meteor/versions +++ b/.meteor/versions @@ -24,6 +24,7 @@ blaze@2.0.4 blaze-tools@1.0.2 boilerplate-generator@1.0.2 callback-hook@1.0.2 +cfs:http-methods@0.0.27 check@1.0.4 coffeescript@1.0.5 datariot:ganalytics@0.2.1 @@ -116,6 +117,7 @@ spiderable@1.0.6 srp@1.0.2 stylus@1.0.6 summernote:standalone@0.6.0_1 +tap:i18n@1.4.1 templating@1.0.11 tmeasday:publish-counts@0.3.4 tracker@1.0.5 diff --git a/client/views/home.html b/client/views/home.html index f57b172..bafa666 100644 --- a/client/views/home.html +++ b/client/views/home.html @@ -2,7 +2,7 @@
-

We Work Meteor

+

{{ _"wework_name"}}


@@ -17,15 +17,16 @@

We Work Meteor

- The premier job board and developer community space specifically for Meteor. + {{{_ "wework_subtitle"}}}

+ Browse the {{getPublishedCount 'jobs'}} active job postings or create your profile to join the {{getPublishedCount 'developers'}} registered developers.

- +
diff --git a/client/views/includes/footer.html b/client/views/includes/footer.html index 25fdd39..2f739c6 100644 --- a/client/views/includes/footer.html +++ b/client/views/includes/footer.html @@ -3,9 +3,9 @@
- Made By Nate Strauser + {{_ "made_by"}} Nate Strauser  -  -   Fork me on GitHub +   {{_ "fork_me_on_github"}}
@@ -13,16 +13,16 @@

- RSS Jobs Developers + {{_ "rss"}} {{_ "jobs"}} {{_ "profiles"}}  -  - JSON Jobs Developers + {{_ "json"}} {{_ "jobs"}} {{_ "profiles"}}
- We Work Meteor is an independent entity and has not been authorized, sponsored, or otherwise approved by Meteor Development Group. + {{_ "wework_disclaimer"}}
diff --git a/client/views/includes/header.html b/client/views/includes/header.html index 82b714a..54122d4 100644 --- a/client/views/includes/header.html +++ b/client/views/includes/header.html @@ -6,28 +6,28 @@ diff --git a/client/views/includes/loading.html b/client/views/includes/loading.html index ea3ce34..278028d 100644 --- a/client/views/includes/loading.html +++ b/client/views/includes/loading.html @@ -4,7 +4,7 @@


-  Loading.... +  {{_ "loading"}} diff --git a/client/views/includes/notFound.html b/client/views/includes/notFound.html index 55f7fa4..d07d21e 100644 --- a/client/views/includes/notFound.html +++ b/client/views/includes/notFound.html @@ -3,10 +3,10 @@
- Oops, we couldn't find the item that belongs to this url. + {{_ "not_found_title"}}

- It may have been deleted by the owner or removed by admins. + {{_ "not_found_reason"}}
diff --git a/client/views/jobs/job.html b/client/views/jobs/job.html index f333c6c..f5a9c64 100644 --- a/client/views/jobs/job.html +++ b/client/views/jobs/job.html @@ -5,7 +5,7 @@
{{>jobExpiredAlert}} {{#if isInRole 'admin'}} - {{>jobStatusToggle}} + {{>jobStatusToggle}} {{/if}} {{>jobStatusAlert}}
@@ -47,7 +47,7 @@

{{contact}}
{{/if}} - Posted on {{formatDate createdAt}} + {{_ "posted_on"}} {{formatDate createdAt}}

{{#if htmlDescription}} @@ -60,11 +60,11 @@

{{#if $eq userId $.Meteor.userId}}
{{#quickRemoveButton collection="Jobs" _id=_id class="btn btn-danger" beforeRemove=beforeRemove}} - Delete + {{_ "delete"}} {{/quickRemoveButton}}
{{/if}} diff --git a/client/views/jobs/job.js b/client/views/jobs/job.js index 9de77f2..a7f1b9a 100644 --- a/client/views/jobs/job.js +++ b/client/views/jobs/job.js @@ -2,7 +2,7 @@ Template.job.helpers({ beforeRemove: function() { return function(collection, id) { var doc = collection.findOne(id); - if (confirm('Really delete "' + doc.title + '"?')) { + if (confirm(TAPi18n.__("confirm_deletion", doc.title))) { this.remove(); GAnalytics.event("job", "remove", getUserName(Meteor.user())); Router.go('myJobs'); diff --git a/client/views/jobs/jobForms.html b/client/views/jobs/jobForms.html index 882ffae..2ab2341 100644 --- a/client/views/jobs/jobForms.html +++ b/client/views/jobs/jobForms.html @@ -3,16 +3,16 @@
-

Post New Job

+

{{_ "post_new_job"}}

- This job board is specifically for jobs using Meteor. Please do not post unrelated jobs here. + {{{_ "wework_warning"}}}
{{#autoForm id="jobNew" collection="Jobs" type="insert"}} {{>jobFields}}
- +
{{/autoForm}}
@@ -26,14 +26,14 @@

Post New Job

-

Edit Job Post

+

{{_ "edit_job_post"}}

{{#autoForm id="jobEdit" collection="Jobs" doc=job type="update"}} {{>jobFields}}
- - + +
{{/autoForm}}
@@ -43,6 +43,7 @@

Edit Job Post