diff --git a/google/calendar.html b/google/calendar.html
index 8a62203..9575e33 100644
--- a/google/calendar.html
+++ b/google/calendar.html
@@ -46,7 +46,7 @@
-
+
@@ -76,6 +76,10 @@
},
oneditprepare: function() {
var type = this.offsetType || "at";
+ var type_before = this._("calendar.label.option_before");
+ var type_after = this._("calendar.label.option_after");
+ var from_start = this._("calendar.label.option_start");
+ var from_end = this._("calendar.label.option_end");
$("#node-input-offsetType option").filter(function() {
return $(this).val() == type;
}).attr('selected', true);
@@ -95,8 +99,16 @@
if (type === "at") {
$("#node-row-offset").hide();
} else {
- $("#node-input-type").html(type);
- $("#node-input-from").html(from);
+ if (type === "before") {
+ $("#node-input-type").html(type_before);
+ } else if (type === "after") {
+ $("#node-input-type").html(type_after);
+ }
+ if (from === "start") {
+ $("#node-input-from").html(from_start);
+ } else if (from === "end") {
+ $("#node-input-from").html(from_end);
+ }
$("#node-row-offset").show();
}
};
diff --git a/google/locales/en-US/calendar.json b/google/locales/en-US/calendar.json
index cbe35b6..5b6bd6f 100644
--- a/google/locales/en-US/calendar.json
+++ b/google/locales/en-US/calendar.json
@@ -16,8 +16,6 @@
"minutes": "minutes",
"hours": "hours",
"days": "days",
- "before": "before",
- "start": "start",
"name": "Name",
"count": "Events"
},