Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
1.3.0. Changed less-than stacking and merged Anders Hofstee's Tetum t…
Browse files Browse the repository at this point in the history
…ranslation.
  • Loading branch information
Jason LaPorte committed Aug 16, 2013
1 parent a2c25d8 commit 3f25828
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,10 @@ expected. These take the form of "N inches", "under N inches", or "M-N inches"
in English, respectively.

* `["inches", NUMBER]`
* `["inches", ["less-than", 1]]`
* `["less-than", ["inches", 1]]`
* `["inches", ["range", NUMBER, NUMBER]]`
* `["centimeters", NUMBER]`
* `["centimeters", ["less-than", 1]]`
* `["less-than", ["centimeters", 1]]`
* `["centimeters", ["range", NUMBER, NUMBER]]`

#### Other Weather Conditions
Expand Down
5 changes: 1 addition & 4 deletions lib/lang/tet.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,9 @@ module.exports = require("../template")({
"temperatures-rising": "temperatur sai to $1 $2",
"temperatures-valleying": "temperatur la tun liu $1 $2",
"temperatures-falling": "temperatur tun to $1 $2",
/* Capitalize the first letter of every word, except if that word is
* "and". (This is a very crude bastardization of proper English titling
* rules, but it is adequate for the purposes of this module.) */
"title": function(str) {
return str.replace(
/\b(?:a(?!nd\b)|[^\Wa])/g,
/(^|[\s\-])\w/g,
function(letter) {
return letter.toUpperCase();
}
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "forecast-api-translations",
"version": "1.2.0",
"version": "1.3.0",
"description": "translate the Forecast API into any language",
"author": {
"name": "The Dark Sky Company",
Expand All @@ -10,6 +10,10 @@
{
"name": "Jay LaPorte",
"email": "[email protected]"
},
{
"name": "Anders Hofstee",
"email": "[email protected]"
}
],
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion test-cases/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@

"Snow (under 1 cm.) in the afternoon.":
["sentence", ["during",
["parenthetical", "medium-snow", ["centimeters", ["less-than", 1]]],
["parenthetical", "medium-snow", ["less-than", ["centimeters", 1]]],
"afternoon"]],


Expand Down
2 changes: 1 addition & 1 deletion test-cases/tet.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@

"Salju (1 cm. mai kraik) lokraik.":
["sentence", ["during",
["parenthetical", "medium-snow", ["centimeters", ["less-than", 1]]],
["parenthetical", "medium-snow", ["less-than", ["centimeters", 1]]],
"afternoon"]],

"Udan la iha durante semana ida, ho temperatur la sai liu 85\u00B0F aban.":
Expand Down

0 comments on commit 3f25828

Please sign in to comment.