From 489960aa6d9fd71773e8fd301ff7f67d27ce940f Mon Sep 17 00:00:00 2001 From: Takuya Sato Date: Wed, 18 Mar 2015 11:57:04 +0900 Subject: [PATCH 1/3] Fixed translation function --- recline.app.js | 10 +++++----- recline.field.inc | 19 ++++++------------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/recline.app.js b/recline.app.js index 0e1659b..b4d34b2 100644 --- a/recline.app.js +++ b/recline.app.js @@ -67,7 +67,7 @@ // Converts line endings in either format to unix format. data = data.replace(/(\r\n|\n|\r)/gm,"\n"); dataset = new recline.Model.Dataset({ - records: recline.Backend.CSV.parse(data, options) + records: recline.Backend.CSV.parseCSV(data, options) }); dataset.fetch(); views = createExplorer(dataset, state, dataExplorerSettings); @@ -132,7 +132,7 @@ views.push( { id: 'grid', - label: 'Grid', + label: Drupal.t('Grid'), view: new recline.View.SlickGrid({ model: dataset }) @@ -152,7 +152,7 @@ views.push( { id: 'graph', - label: 'Graph', + label: Drupal.t('Graph'), view: new recline.View.Graph({ model: dataset, state: state @@ -164,7 +164,7 @@ views.push( { id: 'map', - label: 'Map', + label: Drupal.t('Map'), view: new recline.View.Map({ model: dataset }) @@ -307,7 +307,7 @@ if(!$control.length){ $form = $('.form-stacked'); $checkboxDiv = $('
').appendTo($form); - $label = $('