Line endings
This commit is contained in:
parent
40d6b045f5
commit
f3b18da0ea
@ -1,115 +1,115 @@
|
|||||||
{
|
{
|
||||||
"fb-schema-alignment": {
|
"fb-schema-alignment": {
|
||||||
"close-confirm": "There are unsaved changes. Close anyway?",
|
"close-confirm": "There are unsaved changes. Close anyway?",
|
||||||
"status-warning": "There are unsaved changes.",
|
"status-warning": "There are unsaved changes.",
|
||||||
"assert-link-found": "Assert link when 'true' is found in column",
|
"assert-link-found": "Assert link when 'true' is found in column",
|
||||||
"search-pick-property": "Search for a property or pick one below",
|
"search-pick-property": "Search for a property or pick one below",
|
||||||
"search-property": "Search for a property",
|
"search-property": "Search for a property",
|
||||||
"cell": "cell",
|
"cell": "cell",
|
||||||
"cells": "cells",
|
"cells": "cells",
|
||||||
"which-column": "Which column?",
|
"which-column": "Which column?",
|
||||||
"configure": "Configure...",
|
"configure": "Configure...",
|
||||||
"which-topic": "Which topic?",
|
"which-topic": "Which topic?",
|
||||||
"what-value": "What value?",
|
"what-value": "What value?",
|
||||||
"anonymous": "anonymous",
|
"anonymous": "anonymous",
|
||||||
"add-property": "add property",
|
"add-property": "add property",
|
||||||
"anonymous-node": "Anonymous Node",
|
"anonymous-node": "Anonymous Node",
|
||||||
"freebase-topic": "Freebase Topic",
|
"freebase-topic": "Freebase Topic",
|
||||||
"value": "Value",
|
"value": "Value",
|
||||||
"skeleton-node": "Schema Alignment Skeleton Node",
|
"skeleton-node": "Schema Alignment Skeleton Node",
|
||||||
"text": "text",
|
"text": "text",
|
||||||
"int": "int",
|
"int": "int",
|
||||||
"float": "float",
|
"float": "float",
|
||||||
"double": "double",
|
"double": "double",
|
||||||
"boolean": "boolean",
|
"boolean": "boolean",
|
||||||
"date-time": "date/time",
|
"date-time": "date/time",
|
||||||
"rawstring": "rawstring",
|
"rawstring": "rawstring",
|
||||||
"set-to-cell": "Set to Cell in Column",
|
"set-to-cell": "Set to Cell in Column",
|
||||||
"cell-content-used": "The cell's content is used ...",
|
"cell-content-used": "The cell's content is used ...",
|
||||||
"specify-fb-topic": "to specify a Freebase topic, as reconciled",
|
"specify-fb-topic": "to specify a Freebase topic, as reconciled",
|
||||||
"type-new-topics": "Type new topics as",
|
"type-new-topics": "Type new topics as",
|
||||||
"literal-value": "as a literal value",
|
"literal-value": "as a literal value",
|
||||||
"literal-type": "Literal type",
|
"literal-type": "Literal type",
|
||||||
"text-language": "Text language",
|
"text-language": "Text language",
|
||||||
"key-namespace": "as a key in a namespace",
|
"key-namespace": "as a key in a namespace",
|
||||||
"namespace": "Namespace",
|
"namespace": "Namespace",
|
||||||
"generate-anonymous": "Generate an anonymous graph node",
|
"generate-anonymous": "Generate an anonymous graph node",
|
||||||
"assign-type": "Assign a type to the node",
|
"assign-type": "Assign a type to the node",
|
||||||
"use-existing-topic": "Use one existing Freebase topic",
|
"use-existing-topic": "Use one existing Freebase topic",
|
||||||
"value-type": "Value type",
|
"value-type": "Value type",
|
||||||
"language": "Language",
|
"language": "Language",
|
||||||
"use-literal-value": "Use a literal value",
|
"use-literal-value": "Use a literal value",
|
||||||
"column-warning": "You must select at least one column",
|
"column-warning": "You must select at least one column",
|
||||||
"new-node-warning": "For creating a new graph node, you need to specify a type for it.",
|
"new-node-warning": "For creating a new graph node, you need to specify a type for it.",
|
||||||
"namespace-warning": "Please specify the namespace.",
|
"namespace-warning": "Please specify the namespace.",
|
||||||
"anonymous-node-warning": "For generating an anonymous graph node, you need to specify a type for it",
|
"anonymous-node-warning": "For generating an anonymous graph node, you need to specify a type for it",
|
||||||
"specify-topic-warning": "Please specify which existing Freebase topic to use",
|
"specify-topic-warning": "Please specify which existing Freebase topic to use",
|
||||||
"specify-value-warning": "Please specify the value to use"
|
"specify-value-warning": "Please specify the value to use"
|
||||||
},
|
},
|
||||||
"fb-interface": {
|
"fb-interface": {
|
||||||
"dialog-header": "Align to Freebase's Schemas",
|
"dialog-header": "Align to Freebase's Schemas",
|
||||||
"body-text": "The schema alignment skeleton below specifies how your grid-shaped data will be transformed into graph-shaped data in Freebase's schemas.",
|
"body-text": "The schema alignment skeleton below specifies how your grid-shaped data will be transformed into graph-shaped data in Freebase's schemas.",
|
||||||
"find-more": "Find out more ...",
|
"find-more": "Find out more ...",
|
||||||
"skeleton": "Skeleton",
|
"skeleton": "Skeleton",
|
||||||
"mql-preview": "MQL-like Preview",
|
"mql-preview": "MQL-like Preview",
|
||||||
"tripleloader-preview": "TripleLoader Preview"
|
"tripleloader-preview": "TripleLoader Preview"
|
||||||
},
|
},
|
||||||
"fb-dialogs": {
|
"fb-dialogs": {
|
||||||
"sign-in": "Sign into Freebase",
|
"sign-in": "Sign into Freebase",
|
||||||
"enable-loading": "to enable loading",
|
"enable-loading": "to enable loading",
|
||||||
"error-new-topic": "Error creating new topic",
|
"error-new-topic": "Error creating new topic",
|
||||||
"error-loading-data": "Error loading data",
|
"error-loading-data": "Error loading data",
|
||||||
"add-info-source": "Click here to add a new information source",
|
"add-info-source": "Click here to add a new information source",
|
||||||
"dialog-header": "Load Data into Freebase",
|
"dialog-header": "Load Data into Freebase",
|
||||||
"no-triples-dataset": "This dataset has no triples",
|
"no-triples-dataset": "This dataset has no triples",
|
||||||
"warning-aligned": "Have you aligned it with Freebase's schemas yet?",
|
"warning-aligned": "Have you aligned it with Freebase's schemas yet?",
|
||||||
"name-of-data": "Name of data load",
|
"name-of-data": "Name of data load",
|
||||||
"source-id": "Source ID (optional)",
|
"source-id": "Source ID (optional)",
|
||||||
"bodytext-1": "Note: Your data will only be loaded into",
|
"bodytext-1": "Note: Your data will only be loaded into",
|
||||||
"bodytext-2": "Sandbox is where everyone can experiment with Freebase technologies without disruption to the official",
|
"bodytext-2": "Sandbox is where everyone can experiment with Freebase technologies without disruption to the official",
|
||||||
"bodytext-3": "Sandbox gets",
|
"bodytext-3": "Sandbox gets",
|
||||||
"sandbox-link": " Sandbox",
|
"sandbox-link": " Sandbox",
|
||||||
"freebase-link": " Freebase",
|
"freebase-link": " Freebase",
|
||||||
"refreshed-link": " refreshed periodically",
|
"refreshed-link": " refreshed periodically",
|
||||||
"bodytext-4": "In order to load your data into the official Freebase, you must first load it into Sandbox. Then it must pass a Quality Assurance (QA) process before it can be loaded into Freebase proper.",
|
"bodytext-4": "In order to load your data into the official Freebase, you must first load it into Sandbox. Then it must pass a Quality Assurance (QA) process before it can be loaded into Freebase proper.",
|
||||||
"quality-assurance": "Quality assurance",
|
"quality-assurance": "Quality assurance",
|
||||||
"bodytext-5": "After loaded into Sandbox, enlist other people's help to double-check this data load's quality so that it can be loaded into Freebase.",
|
"bodytext-5": "After loaded into Sandbox, enlist other people's help to double-check this data load's quality so that it can be loaded into Freebase.",
|
||||||
"triple-schedule": "triples successfully scheduled for loading",
|
"triple-schedule": "triples successfully scheduled for loading",
|
||||||
"follow-progress": "Follow the loading progress in the ",
|
"follow-progress": "Follow the loading progress in the ",
|
||||||
"refinery-link": "Freebase Refinery",
|
"refinery-link": "Freebase Refinery",
|
||||||
"signed-as": "Signed in as:",
|
"signed-as": "Signed in as:",
|
||||||
"sign-out": "Sign Out"
|
"sign-out": "Sign Out"
|
||||||
},
|
},
|
||||||
"fb-qa": {
|
"fb-qa": {
|
||||||
"header": "QA Data Load?",
|
"header": "QA Data Load?",
|
||||||
"bodytext-1": "Other people will be enlisted to help double-check your data load for quality assurance purposes. Their time and labor have a cost.",
|
"bodytext-1": "Other people will be enlisted to help double-check your data load for quality assurance purposes. Their time and labor have a cost.",
|
||||||
"bodytext-2": "You yourself should have taken all reasonable measures to eliminate errors from your data load. Your prudence is greatly appreciated.",
|
"bodytext-2": "You yourself should have taken all reasonable measures to eliminate errors from your data load. Your prudence is greatly appreciated.",
|
||||||
"tell-more": "Tell me more ...",
|
"tell-more": "Tell me more ...",
|
||||||
"ok-button": "Yes, QA Data Load"
|
"ok-button": "Yes, QA Data Load"
|
||||||
},
|
},
|
||||||
"fb-extend": {
|
"fb-extend": {
|
||||||
"add-column": "Add Columns from Freebase Based on Column",
|
"add-column": "Add Columns from Freebase Based on Column",
|
||||||
"warning-add-properties": "Please add some properties first.",
|
"warning-add-properties": "Please add some properties first.",
|
||||||
"querying-freebase": "Querying Freebase ...",
|
"querying-freebase": "Querying Freebase ...",
|
||||||
"remove-column": "Remove this column",
|
"remove-column": "Remove this column",
|
||||||
"add-constraints": "Add constraints to this column",
|
"add-constraints": "Add constraints to this column",
|
||||||
"mql-constraints": "Enter MQL query constraints as JSON",
|
"mql-constraints": "Enter MQL query constraints as JSON",
|
||||||
"warning-valid-json": "Please ensure that the JSON you enter is valid.",
|
"warning-valid-json": "Please ensure that the JSON you enter is valid.",
|
||||||
"warning-json-obj": "The JSON you enter must be an object, that is, it is of this form { ... }.",
|
"warning-json-obj": "The JSON you enter must be an object, that is, it is of this form { ... }.",
|
||||||
"add-property": "Add Property",
|
"add-property": "Add Property",
|
||||||
"suggested-properties": "Suggested Properties",
|
"suggested-properties": "Suggested Properties",
|
||||||
"constraint": "Constraint"
|
"constraint": "Constraint"
|
||||||
},
|
},
|
||||||
"fb-buttons": {
|
"fb-buttons": {
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"save-load": "Save & Load",
|
"save-load": "Save & Load",
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
"reset": "Reset",
|
"reset": "Reset",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"align-now": "Align Now",
|
"align-now": "Align Now",
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"load-sandbox": "Load to Sandbox",
|
"load-sandbox": "Load to Sandbox",
|
||||||
"ok": "Ok"
|
"ok": "Ok"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,125 +1,125 @@
|
|||||||
{
|
{
|
||||||
"fb-schema-alignment": {
|
"fb-schema-alignment": {
|
||||||
"close-confirm": "There are unsaved changes. Close anyway?",
|
"close-confirm": "There are unsaved changes. Close anyway?",
|
||||||
"status-warning": "There are unsaved changes.",
|
"status-warning": "There are unsaved changes.",
|
||||||
"assert-link-found": "Assert link when 'true' is found in column",
|
"assert-link-found": "Assert link when 'true' is found in column",
|
||||||
"search-pick-property": "Search for a property or pick one below",
|
"search-pick-property": "Search for a property or pick one below",
|
||||||
"search-property": "Search for a property",
|
"search-property": "Search for a property",
|
||||||
"cell": "cell",
|
"cell": "cell",
|
||||||
"cells": "cells",
|
"cells": "cells",
|
||||||
"which-column": "Which column?",
|
"which-column": "Which column?",
|
||||||
"configure": "Configure...",
|
"configure": "Configure...",
|
||||||
"which-topic": "Which topic?",
|
"which-topic": "Which topic?",
|
||||||
"what-value": "What value?",
|
"what-value": "What value?",
|
||||||
"anonymous": "anonymous",
|
"anonymous": "anonymous",
|
||||||
"add-property": "add property",
|
"add-property": "add property",
|
||||||
"anonymous-node": "Anonymous Node",
|
"anonymous-node": "Anonymous Node",
|
||||||
"freebase-topic": "Freebase Topic",
|
"freebase-topic": "Freebase Topic",
|
||||||
"value": "Value",
|
"value": "Value",
|
||||||
"skeleton-node": "Schema Alignment Skeleton Node",
|
"skeleton-node": "Schema Alignment Skeleton Node",
|
||||||
"text": "text",
|
"text": "text",
|
||||||
"int": "int",
|
"int": "int",
|
||||||
"float": "float",
|
"float": "float",
|
||||||
"double": "double",
|
"double": "double",
|
||||||
"boolean": "boolean",
|
"boolean": "boolean",
|
||||||
"date-time": "date/time",
|
"date-time": "date/time",
|
||||||
"rawstring": "rawstring",
|
"rawstring": "rawstring",
|
||||||
"set-to-cell": "Set to Cell in Column",
|
"set-to-cell": "Set to Cell in Column",
|
||||||
"cell-content-used": "The cell's content is used ...",
|
"cell-content-used": "The cell's content is used ...",
|
||||||
"specify-fb-topic": "to specify a Freebase topic, as reconciled",
|
"specify-fb-topic": "to specify a Freebase topic, as reconciled",
|
||||||
"type-new-topics": "Type new topics as",
|
"type-new-topics": "Type new topics as",
|
||||||
"literal-value": "as a literal value",
|
"literal-value": "as a literal value",
|
||||||
"literal-type": "Literal type",
|
"literal-type": "Literal type",
|
||||||
"text-language": "Text language",
|
"text-language": "Text language",
|
||||||
"key-namespace": "as a key in a namespace",
|
"key-namespace": "as a key in a namespace",
|
||||||
"namespace": "Namespace",
|
"namespace": "Namespace",
|
||||||
"generate-anonymous": "Generate an anonymous graph node",
|
"generate-anonymous": "Generate an anonymous graph node",
|
||||||
"assign-type": "Assign a type to the node",
|
"assign-type": "Assign a type to the node",
|
||||||
"use-existing-topic": "Use one existing Freebase topic",
|
"use-existing-topic": "Use one existing Freebase topic",
|
||||||
"value-type": "Value type",
|
"value-type": "Value type",
|
||||||
"language": "Language",
|
"language": "Language",
|
||||||
"use-literal-value": "Use a literal value",
|
"use-literal-value": "Use a literal value",
|
||||||
"column-warning": "You must select at least one column",
|
"column-warning": "You must select at least one column",
|
||||||
"new-node-warning": "For creating a new graph node, you need to specify a type for it.",
|
"new-node-warning": "For creating a new graph node, you need to specify a type for it.",
|
||||||
"namespace-warning": "Please specify the namespace.",
|
"namespace-warning": "Please specify the namespace.",
|
||||||
"anonymous-node-warning": "For generating an anonymous graph node, you need to specify a type for it.",
|
"anonymous-node-warning": "For generating an anonymous graph node, you need to specify a type for it.",
|
||||||
"specify-topic-warning": "Please specify which existing Freebase topic to use",
|
"specify-topic-warning": "Please specify which existing Freebase topic to use",
|
||||||
"specify-value-warning": "Please specify the value to use"
|
"specify-value-warning": "Please specify the value to use"
|
||||||
},
|
},
|
||||||
"fb-interface": {
|
"fb-interface": {
|
||||||
"dialog-header": "Align to Freebase's Schemas",
|
"dialog-header": "Align to Freebase's Schemas",
|
||||||
"body-text": "The schema alignment skeleton below specifies how your grid-shaped data will be transformed into graph-shaped data in Freebase's schemas.",
|
"body-text": "The schema alignment skeleton below specifies how your grid-shaped data will be transformed into graph-shaped data in Freebase's schemas.",
|
||||||
"find-more": "Find out more ...",
|
"find-more": "Find out more ...",
|
||||||
"skeleton": "Skeleton",
|
"skeleton": "Skeleton",
|
||||||
"mql-preview": "MQL-like Preview",
|
"mql-preview": "MQL-like Preview",
|
||||||
"tripleloader-preview": "TripleLoader Preview"
|
"tripleloader-preview": "TripleLoader Preview"
|
||||||
},
|
},
|
||||||
"fb-dialogs": {
|
"fb-dialogs": {
|
||||||
"sign-in": "Sign into Freebase",
|
"sign-in": "Sign into Freebase",
|
||||||
"enable-loading": "to enable loading",
|
"enable-loading": "to enable loading",
|
||||||
"error-new-topic": "Error creating new topic",
|
"error-new-topic": "Error creating new topic",
|
||||||
"error-loading-data": "Error loading data",
|
"error-loading-data": "Error loading data",
|
||||||
"add-info-source": "Click here to add a new information source",
|
"add-info-source": "Click here to add a new information source",
|
||||||
"dialog-header": "Load Data into Freebase",
|
"dialog-header": "Load Data into Freebase",
|
||||||
"no-triples-dataset": "This dataset has no triples",
|
"no-triples-dataset": "This dataset has no triples",
|
||||||
"warning-aligned": "Have you aligned it with Freebase's schemas yet?",
|
"warning-aligned": "Have you aligned it with Freebase's schemas yet?",
|
||||||
"name-of-data": "Name of data load",
|
"name-of-data": "Name of data load",
|
||||||
"source-id": "Source ID (optional)",
|
"source-id": "Source ID (optional)",
|
||||||
"bodytext-1": "Note: Your data will only be loaded into",
|
"bodytext-1": "Note: Your data will only be loaded into",
|
||||||
"bodytext-2": "Sandbox is where everyone can experiment with Freebase technologies without disruption to the official",
|
"bodytext-2": "Sandbox is where everyone can experiment with Freebase technologies without disruption to the official",
|
||||||
"bodytext-3": "Sandbox gets",
|
"bodytext-3": "Sandbox gets",
|
||||||
"sandbox-link": " Sandbox",
|
"sandbox-link": " Sandbox",
|
||||||
"freebase-link": " Freebase",
|
"freebase-link": " Freebase",
|
||||||
"refreshed-link": " refreshed periodically",
|
"refreshed-link": " refreshed periodically",
|
||||||
"bodytext-4": "In order to load your data into the official Freebase, you must first load it into Sandbox. Then it must pass a Quality Assurance (QA) process before it can be loaded into Freebase proper.",
|
"bodytext-4": "In order to load your data into the official Freebase, you must first load it into Sandbox. Then it must pass a Quality Assurance (QA) process before it can be loaded into Freebase proper.",
|
||||||
"quality-assurance": "Quality assurance",
|
"quality-assurance": "Quality assurance",
|
||||||
"bodytext-5": "After loaded into Sandbox, enlist other people's help to double-check this data load's quality so that it can be loaded into Freebase.",
|
"bodytext-5": "After loaded into Sandbox, enlist other people's help to double-check this data load's quality so that it can be loaded into Freebase.",
|
||||||
"triple-schedule": "triples successfully scheduled for loading",
|
"triple-schedule": "triples successfully scheduled for loading",
|
||||||
"follow-progress": "Follow the loading progress in the ",
|
"follow-progress": "Follow the loading progress in the ",
|
||||||
"refinery-link": "Freebase Refinery",
|
"refinery-link": "Freebase Refinery",
|
||||||
"signed-as": "Signed in as:",
|
"signed-as": "Signed in as:",
|
||||||
"sign-out": "Sign Out"
|
"sign-out": "Sign Out"
|
||||||
},
|
},
|
||||||
"fb-qa": {
|
"fb-qa": {
|
||||||
"header": "QA Data Load?",
|
"header": "QA Data Load?",
|
||||||
"bodytext-1": "Other people will be enlisted to help double-check your data load for quality assurance purposes. Their time and labor have a cost.",
|
"bodytext-1": "Other people will be enlisted to help double-check your data load for quality assurance purposes. Their time and labor have a cost.",
|
||||||
"bodytext-2": "You yourself should have taken all reasonable measures to eliminate errors from your data load. Your prudence is greatly appreciated.",
|
"bodytext-2": "You yourself should have taken all reasonable measures to eliminate errors from your data load. Your prudence is greatly appreciated.",
|
||||||
"tell-more": "Tell me more ...",
|
"tell-more": "Tell me more ...",
|
||||||
"ok-button": "Yes, QA Data Load"
|
"ok-button": "Yes, QA Data Load"
|
||||||
},
|
},
|
||||||
"fb-extend": {
|
"fb-extend": {
|
||||||
"add-column": "Add Columns from Freebase Based on Column",
|
"add-column": "Add Columns from Freebase Based on Column",
|
||||||
"warning-add-properties": "Please add some properties first.",
|
"warning-add-properties": "Please add some properties first.",
|
||||||
"querying-freebase": "Querying Freebase ...",
|
"querying-freebase": "Querying Freebase ...",
|
||||||
"remove-column": "Remove this column",
|
"remove-column": "Remove this column",
|
||||||
"add-constraints": "Add constraints to this column",
|
"add-constraints": "Add constraints to this column",
|
||||||
"mql-constraints": "Enter MQL query constraints as JSON",
|
"mql-constraints": "Enter MQL query constraints as JSON",
|
||||||
"warning-valid-json": "Please ensure that the JSON you enter is valid.",
|
"warning-valid-json": "Please ensure that the JSON you enter is valid.",
|
||||||
"warning-json-obj": "The JSON you enter must be an object, that is, it is of this form { ... }.",
|
"warning-json-obj": "The JSON you enter must be an object, that is, it is of this form { ... }.",
|
||||||
"add-property": "Add Property",
|
"add-property": "Add Property",
|
||||||
"suggested-properties": "Suggested Properties",
|
"suggested-properties": "Suggested Properties",
|
||||||
"constraint": "Constraint"
|
"constraint": "Constraint"
|
||||||
},
|
},
|
||||||
"fb-menu": {
|
"fb-menu": {
|
||||||
"freebase": "Freebase",
|
"freebase": "Freebase",
|
||||||
"set-api-key": "Set Freebase API Key",
|
"set-api-key": "Set Freebase API Key",
|
||||||
"align-schema": "Align to Freebase's schemas...",
|
"align-schema": "Align to Freebase's schemas...",
|
||||||
"load": "Load into Freebase...",
|
"load": "Load into Freebase...",
|
||||||
"browse-data-load": "Browse data load details...",
|
"browse-data-load": "Browse data load details...",
|
||||||
"import-qa": "Import QA data",
|
"import-qa": "Import QA data",
|
||||||
"add-columns": "Add columns from Freebase ...",
|
"add-columns": "Add columns from Freebase ...",
|
||||||
"warning-load": "You have not tried to load the data in this project into Freebase yet."
|
"warning-load": "You have not tried to load the data in this project into Freebase yet."
|
||||||
},
|
},
|
||||||
"fb-buttons": {
|
"fb-buttons": {
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"save-load": "Save & Load",
|
"save-load": "Save & Load",
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
"reset": "Reset",
|
"reset": "Reset",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"align-now": "Align Now",
|
"align-now": "Align Now",
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"load-sandbox": "Load to Sandbox",
|
"load-sandbox": "Load to Sandbox",
|
||||||
"ok": "Ok"
|
"ok": "Ok"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,125 +1,125 @@
|
|||||||
{
|
{
|
||||||
"fb-schema-alignment": {
|
"fb-schema-alignment": {
|
||||||
"close-confirm": "Ci sono cambiamenti non salvati. Chiudere comunque?",
|
"close-confirm": "Ci sono cambiamenti non salvati. Chiudere comunque?",
|
||||||
"status-warning": "Ci sono cambiamenti non salvati.",
|
"status-warning": "Ci sono cambiamenti non salvati.",
|
||||||
"assert-link-found": "Assert link when 'true' is found in column",
|
"assert-link-found": "Assert link when 'true' is found in column",
|
||||||
"search-pick-property": "Cerca una proprietà o scegline una dalle seguenti",
|
"search-pick-property": "Cerca una proprietà o scegline una dalle seguenti",
|
||||||
"search-property": "Cerca una proprietà",
|
"search-property": "Cerca una proprietà",
|
||||||
"cell": "cella",
|
"cell": "cella",
|
||||||
"cells": "celle",
|
"cells": "celle",
|
||||||
"which-column": "Quale colonna?",
|
"which-column": "Quale colonna?",
|
||||||
"configure": "Configura...",
|
"configure": "Configura...",
|
||||||
"which-topic": "Quale topic?",
|
"which-topic": "Quale topic?",
|
||||||
"what-value": "Quale valore?",
|
"what-value": "Quale valore?",
|
||||||
"anonymous": "anonimo",
|
"anonymous": "anonimo",
|
||||||
"add-property": "aggiungi proprietà",
|
"add-property": "aggiungi proprietà",
|
||||||
"anonymous-node": "Nodo Anonimo",
|
"anonymous-node": "Nodo Anonimo",
|
||||||
"freebase-topic": "Topic Freebase",
|
"freebase-topic": "Topic Freebase",
|
||||||
"value": "Valore",
|
"value": "Valore",
|
||||||
"skeleton-node": "Schema Alignment Skeleton Node",
|
"skeleton-node": "Schema Alignment Skeleton Node",
|
||||||
"text": "testo",
|
"text": "testo",
|
||||||
"int": "int",
|
"int": "int",
|
||||||
"float": "float",
|
"float": "float",
|
||||||
"double": "double",
|
"double": "double",
|
||||||
"boolean": "boolean",
|
"boolean": "boolean",
|
||||||
"date-time": "data/ora",
|
"date-time": "data/ora",
|
||||||
"rawstring": "rawstring",
|
"rawstring": "rawstring",
|
||||||
"set-to-cell": "Set to Cell in Column",
|
"set-to-cell": "Set to Cell in Column",
|
||||||
"cell-content-used": "Il contenuto della cella è usato ...",
|
"cell-content-used": "Il contenuto della cella è usato ...",
|
||||||
"specify-fb-topic": "per specificare un topic Freebase, come riconciliato",
|
"specify-fb-topic": "per specificare un topic Freebase, come riconciliato",
|
||||||
"type-new-topics": "Inserisci il nuovo topic come",
|
"type-new-topics": "Inserisci il nuovo topic come",
|
||||||
"literal-value": "come un valore letterale",
|
"literal-value": "come un valore letterale",
|
||||||
"literal-type": "Tipo letterale",
|
"literal-type": "Tipo letterale",
|
||||||
"text-language": "Lingua di testo",
|
"text-language": "Lingua di testo",
|
||||||
"key-namespace": "come una chiave nel namespace",
|
"key-namespace": "come una chiave nel namespace",
|
||||||
"namespace": "Namespace",
|
"namespace": "Namespace",
|
||||||
"generate-anonymous": "Genera un nodo anonimo nel grafo",
|
"generate-anonymous": "Genera un nodo anonimo nel grafo",
|
||||||
"assign-type": "Assegna un tipo al nodo",
|
"assign-type": "Assegna un tipo al nodo",
|
||||||
"use-existing-topic": "Usa un topic Freebase esistente",
|
"use-existing-topic": "Usa un topic Freebase esistente",
|
||||||
"value-type": "Tipo valore",
|
"value-type": "Tipo valore",
|
||||||
"language": "Lingua",
|
"language": "Lingua",
|
||||||
"use-literal-value": "Usa un valore letterale",
|
"use-literal-value": "Usa un valore letterale",
|
||||||
"column-warning": "Devi selezionare almeno una colonna",
|
"column-warning": "Devi selezionare almeno una colonna",
|
||||||
"new-node-warning": "Per creare un nuovo nodo nel grafo, devi specificarne un tipo.",
|
"new-node-warning": "Per creare un nuovo nodo nel grafo, devi specificarne un tipo.",
|
||||||
"namespace-warning": "Specifica il namespace.",
|
"namespace-warning": "Specifica il namespace.",
|
||||||
"anonymous-node-warning": "Per generare un nodo anonimo nel grafo, devi specificarne un tipo.",
|
"anonymous-node-warning": "Per generare un nodo anonimo nel grafo, devi specificarne un tipo.",
|
||||||
"specify-topic-warning": "Per favore specifica quale topic esistente di Freebase usare",
|
"specify-topic-warning": "Per favore specifica quale topic esistente di Freebase usare",
|
||||||
"specify-value-warning": "Per favore specifica il valore da usare"
|
"specify-value-warning": "Per favore specifica il valore da usare"
|
||||||
},
|
},
|
||||||
"fb-interface": {
|
"fb-interface": {
|
||||||
"dialog-header": "Allinea con gli schemi Freebase",
|
"dialog-header": "Allinea con gli schemi Freebase",
|
||||||
"body-text": "Lo scheletro per l'allineamento della schema specifica come i tuoi dati in formato tabellare saranno trasformati in un formato a grafo con lo schema di Freebase.",
|
"body-text": "Lo scheletro per l'allineamento della schema specifica come i tuoi dati in formato tabellare saranno trasformati in un formato a grafo con lo schema di Freebase.",
|
||||||
"find-more": "Per saperne di più ...",
|
"find-more": "Per saperne di più ...",
|
||||||
"skeleton": "Scheletro",
|
"skeleton": "Scheletro",
|
||||||
"mql-preview": "Anteprima MQL-like",
|
"mql-preview": "Anteprima MQL-like",
|
||||||
"tripleloader-preview": "Anteprima TripleLoader"
|
"tripleloader-preview": "Anteprima TripleLoader"
|
||||||
},
|
},
|
||||||
"fb-dialogs": {
|
"fb-dialogs": {
|
||||||
"sign-in": "Accedi a Freebase",
|
"sign-in": "Accedi a Freebase",
|
||||||
"enable-loading": "per abilitare il caricamento",
|
"enable-loading": "per abilitare il caricamento",
|
||||||
"error-new-topic": "Errore nella creazione di un nuovo topic",
|
"error-new-topic": "Errore nella creazione di un nuovo topic",
|
||||||
"error-loading-data": "Errore durante il caricamento dei dati",
|
"error-loading-data": "Errore durante il caricamento dei dati",
|
||||||
"add-info-source": "Clicca qui per aggiungere una nuova sorgente di informazioni",
|
"add-info-source": "Clicca qui per aggiungere una nuova sorgente di informazioni",
|
||||||
"dialog-header": "Carica i dati in Freebase",
|
"dialog-header": "Carica i dati in Freebase",
|
||||||
"no-triples-dataset": "Questo dataset non ha triple",
|
"no-triples-dataset": "Questo dataset non ha triple",
|
||||||
"warning-aligned": "Hai già effettuato l'allineamento con lo schema Freebase?",
|
"warning-aligned": "Hai già effettuato l'allineamento con lo schema Freebase?",
|
||||||
"name-of-data": "Nome del caricamento dati",
|
"name-of-data": "Nome del caricamento dati",
|
||||||
"source-id": "ID sorgente (opzionale)",
|
"source-id": "ID sorgente (opzionale)",
|
||||||
"bodytext-1": "Nota: i tuoi dati saranno caricati solamente in",
|
"bodytext-1": "Nota: i tuoi dati saranno caricati solamente in",
|
||||||
"bodytext-2": "Sandbox è dove chiunque può sperimentare le tecnologie Freebase senza creare danni all'ufficiale",
|
"bodytext-2": "Sandbox è dove chiunque può sperimentare le tecnologie Freebase senza creare danni all'ufficiale",
|
||||||
"bodytext-3": "Sandbox viene",
|
"bodytext-3": "Sandbox viene",
|
||||||
"sandbox-link": " Sandbox",
|
"sandbox-link": " Sandbox",
|
||||||
"freebase-link": " Freebase",
|
"freebase-link": " Freebase",
|
||||||
"refreshed-link": " aggiornata periodicamente",
|
"refreshed-link": " aggiornata periodicamente",
|
||||||
"bodytext-4": "Per caricare i tuoi data su Freebase ufficiale, devi prima caricarli nel Sandbox. Successivamente, devono passare un processo di analisi qualitativa prima di essere caricati su Freebase.",
|
"bodytext-4": "Per caricare i tuoi data su Freebase ufficiale, devi prima caricarli nel Sandbox. Successivamente, devono passare un processo di analisi qualitativa prima di essere caricati su Freebase.",
|
||||||
"quality-assurance": "Analisi qualitativa",
|
"quality-assurance": "Analisi qualitativa",
|
||||||
"bodytext-5": "Dopo essere caricati nella Sandbox, viene chiesto l'aiuto di altre persone per controllare due volte la qualità di questi dati in modo da poter poi essere caricati in Freebase.",
|
"bodytext-5": "Dopo essere caricati nella Sandbox, viene chiesto l'aiuto di altre persone per controllare due volte la qualità di questi dati in modo da poter poi essere caricati in Freebase.",
|
||||||
"triple-schedule": "triple pianificate con successo per il caricamento",
|
"triple-schedule": "triple pianificate con successo per il caricamento",
|
||||||
"follow-progress": "Segui il processo di caricamento nel ",
|
"follow-progress": "Segui il processo di caricamento nel ",
|
||||||
"refinery-link": "Freebase Refinery",
|
"refinery-link": "Freebase Refinery",
|
||||||
"signed-as": "Accesso effettuato come:",
|
"signed-as": "Accesso effettuato come:",
|
||||||
"sign-out": "Esci"
|
"sign-out": "Esci"
|
||||||
},
|
},
|
||||||
"fb-qa": {
|
"fb-qa": {
|
||||||
"header": "Caricamento dati con analisi qualitativa?",
|
"header": "Caricamento dati con analisi qualitativa?",
|
||||||
"bodytext-1": "Alcune persone verranno incaricate per controllare i tuoi dati allo scopo di verificarne la qualità. Il loro tempo e lavoro ha un costo.",
|
"bodytext-1": "Alcune persone verranno incaricate per controllare i tuoi dati allo scopo di verificarne la qualità. Il loro tempo e lavoro ha un costo.",
|
||||||
"bodytext-2": "Tu stesso dovresti aver già effettuato la maggior parte dei controlli per assicurarti di aver rimosso errori dai dati. La tua prudenza è enormemente apprezzata.",
|
"bodytext-2": "Tu stesso dovresti aver già effettuato la maggior parte dei controlli per assicurarti di aver rimosso errori dai dati. La tua prudenza è enormemente apprezzata.",
|
||||||
"tell-more": "Dimmi di più ...",
|
"tell-more": "Dimmi di più ...",
|
||||||
"ok-button": "Si, Caricamento dati con analisi qualitativa"
|
"ok-button": "Si, Caricamento dati con analisi qualitativa"
|
||||||
},
|
},
|
||||||
"fb-extend": {
|
"fb-extend": {
|
||||||
"add-column": "Aggiungi colonne da Freebase basandoti sulla colonna",
|
"add-column": "Aggiungi colonne da Freebase basandoti sulla colonna",
|
||||||
"warning-add-properties": "Prima aggiungi delle proprietà.",
|
"warning-add-properties": "Prima aggiungi delle proprietà.",
|
||||||
"querying-freebase": "Interrogando Freebase ...",
|
"querying-freebase": "Interrogando Freebase ...",
|
||||||
"remove-column": "Rimuovi questa colonna",
|
"remove-column": "Rimuovi questa colonna",
|
||||||
"add-constraints": "Aggiungi vincoli a questa colonna",
|
"add-constraints": "Aggiungi vincoli a questa colonna",
|
||||||
"mql-constraints": "Inserisci i vincoli per la query MQL come JSON",
|
"mql-constraints": "Inserisci i vincoli per la query MQL come JSON",
|
||||||
"warning-valid-json": "Assicurati che l'oggetto JSON inserito sia valido.",
|
"warning-valid-json": "Assicurati che l'oggetto JSON inserito sia valido.",
|
||||||
"warning-json-obj": "Il JSON che inserisci deve essere un oggetto, cioè in questa forma: { ... }.",
|
"warning-json-obj": "Il JSON che inserisci deve essere un oggetto, cioè in questa forma: { ... }.",
|
||||||
"add-property": "Aggiungi Proprietà",
|
"add-property": "Aggiungi Proprietà",
|
||||||
"suggested-properties": "Proprietà suggerite",
|
"suggested-properties": "Proprietà suggerite",
|
||||||
"constraint": "Vincoli"
|
"constraint": "Vincoli"
|
||||||
},
|
},
|
||||||
"fb-menu": {
|
"fb-menu": {
|
||||||
"freebase": "Freebase",
|
"freebase": "Freebase",
|
||||||
"set-api-key": "Imposta l'API Key Freebase",
|
"set-api-key": "Imposta l'API Key Freebase",
|
||||||
"align-schema": "Allinea con lo schema Freebase...",
|
"align-schema": "Allinea con lo schema Freebase...",
|
||||||
"load": "Carica in Freebase...",
|
"load": "Carica in Freebase...",
|
||||||
"browse-data-load": "Vedi i dettagli per il caricamento dati...",
|
"browse-data-load": "Vedi i dettagli per il caricamento dati...",
|
||||||
"import-qa": "Importa dati con controllo qualità",
|
"import-qa": "Importa dati con controllo qualità",
|
||||||
"add-columns": "Aggiungi colonne da Freebase ...",
|
"add-columns": "Aggiungi colonne da Freebase ...",
|
||||||
"warning-load": "Non hai ancora provato a caricare i dati di questo progetto in Freebase."
|
"warning-load": "Non hai ancora provato a caricare i dati di questo progetto in Freebase."
|
||||||
},
|
},
|
||||||
"fb-buttons": {
|
"fb-buttons": {
|
||||||
"save": "Salva",
|
"save": "Salva",
|
||||||
"save-load": "Salva & Carica",
|
"save-load": "Salva & Carica",
|
||||||
"close": "Chiudi",
|
"close": "Chiudi",
|
||||||
"reset": "Reset",
|
"reset": "Reset",
|
||||||
"cancel": "Cancella",
|
"cancel": "Cancella",
|
||||||
"align-now": "Allinea adesso",
|
"align-now": "Allinea adesso",
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"preview": "Anteprima",
|
"preview": "Anteprima",
|
||||||
"load-sandbox": "Carica nella Sandbox",
|
"load-sandbox": "Carica nella Sandbox",
|
||||||
"ok": "Ok"
|
"ok": "Ok"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,73 +1,73 @@
|
|||||||
|
|
||||||
package com.google.refine.freebase.commands;
|
package com.google.refine.freebase.commands;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.google.refine.ProjectManager;
|
import com.google.refine.ProjectManager;
|
||||||
import com.google.refine.commands.Command;
|
import com.google.refine.commands.Command;
|
||||||
|
|
||||||
public class LoadLanguageCommand extends Command {
|
public class LoadLanguageCommand extends Command {
|
||||||
|
|
||||||
public LoadLanguageCommand() {
|
public LoadLanguageCommand() {
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
doPost(request, response);
|
doPost(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
|
|
||||||
String rawDirectoryFile = request.getSession().getServletContext()
|
String rawDirectoryFile = request.getSession().getServletContext()
|
||||||
.getRealPath("extensions/freebase/module/langs/");
|
.getRealPath("extensions/freebase/module/langs/");
|
||||||
String cleanedDirectory = rawDirectoryFile.replace("main" + File.separator + "webapp" + File.separator, "");
|
String cleanedDirectory = rawDirectoryFile.replace("main" + File.separator + "webapp" + File.separator, "");
|
||||||
|
|
||||||
BufferedReader reader = null;String param = null;
|
BufferedReader reader = null;String param = null;
|
||||||
try {
|
try {
|
||||||
param = (String) ProjectManager.singleton.getPreferenceStore().get("userLang");
|
param = (String) ProjectManager.singleton.getPreferenceStore().get("userLang");
|
||||||
} catch (NullPointerException e) {
|
} catch (NullPointerException e) {
|
||||||
}
|
}
|
||||||
if (param == null) param = request.getParameter("lng");
|
if (param == null) param = request.getParameter("lng");
|
||||||
|
|
||||||
String[] langs = param.split(" ");
|
String[] langs = param.split(" ");
|
||||||
try {
|
try {
|
||||||
String file = cleanedDirectory + File.separator + "translation-" + langs[0] + ".json";
|
String file = cleanedDirectory + File.separator + "translation-" + langs[0] + ".json";
|
||||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
||||||
} catch (FileNotFoundException e1) {
|
} catch (FileNotFoundException e1) {
|
||||||
try {
|
try {
|
||||||
String file = cleanedDirectory + File.separator + "translation-default.json";
|
String file = cleanedDirectory + File.separator + "translation-default.json";
|
||||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
||||||
} catch (FileNotFoundException e3) {
|
} catch (FileNotFoundException e3) {
|
||||||
e3.printStackTrace();
|
e3.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String line = null;
|
String line = null;
|
||||||
String message = new String();
|
String message = new String();
|
||||||
if (reader != null) {
|
if (reader != null) {
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
// buffer.append(line);
|
// buffer.append(line);
|
||||||
message += line + System.getProperty("line.separator");
|
message += line + System.getProperty("line.separator");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
response.setContentType("application/json");
|
response.setContentType("application/json");
|
||||||
response.getWriter().println(message);
|
response.getWriter().println(message);
|
||||||
response.getWriter().flush();
|
response.getWriter().flush();
|
||||||
response.getWriter().close();
|
response.getWriter().close();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,56 +1,56 @@
|
|||||||
{
|
{
|
||||||
"gdata-import": {
|
"gdata-import": {
|
||||||
"preparing": "Preparing ...",
|
"preparing": "Preparing ...",
|
||||||
"creating": "Creating project ...",
|
"creating": "Creating project ...",
|
||||||
"title": "Public Documents",
|
"title": "Public Documents",
|
||||||
"import-by-url": "Import a <em>public</em> Google Spreadsheet or Fusion Table by its URL:",
|
"import-by-url": "Import a <em>public</em> Google Spreadsheet or Fusion Table by its URL:",
|
||||||
"next->": "Next »",
|
"next->": "Next »",
|
||||||
"auth-doc": "Authorized Documents",
|
"auth-doc": "Authorized Documents",
|
||||||
"please": "Please",
|
"please": "Please",
|
||||||
"sign-in": "sign in and authorize",
|
"sign-in": "sign in and authorize",
|
||||||
"sign-out": "sign out",
|
"sign-out": "sign out",
|
||||||
"access-data": "access to your Google data.",
|
"access-data": "access to your Google data.",
|
||||||
"retrieving": "Retrieving Google Docs documents ...",
|
"retrieving": "Retrieving Google Docs documents ...",
|
||||||
"re-sign-in": "re-sign in",
|
"re-sign-in": "re-sign in",
|
||||||
"another-account": "with another account"
|
"another-account": "with another account"
|
||||||
},
|
},
|
||||||
"gdata-parsing": {
|
"gdata-parsing": {
|
||||||
"start-over": "« Start Over",
|
"start-over": "« Start Over",
|
||||||
"conf-pars": "Configure Parsing Options",
|
"conf-pars": "Configure Parsing Options",
|
||||||
"proj-name": "Project name",
|
"proj-name": "Project name",
|
||||||
"create-proj": "Create Project »",
|
"create-proj": "Create Project »",
|
||||||
"updating-preview": "Updating preview ...",
|
"updating-preview": "Updating preview ...",
|
||||||
"worksheet": "Worksheets",
|
"worksheet": "Worksheets",
|
||||||
"option": "Options",
|
"option": "Options",
|
||||||
"preview-button": "Update Preview",
|
"preview-button": "Update Preview",
|
||||||
"ignore-first": "Ignore first",
|
"ignore-first": "Ignore first",
|
||||||
"ignore": "line(s) at beginning of file",
|
"ignore": "line(s) at beginning of file",
|
||||||
"parse-next": "Parse next",
|
"parse-next": "Parse next",
|
||||||
"parse": "line(s) as column headers",
|
"parse": "line(s) as column headers",
|
||||||
"discard-next": "Discard initial",
|
"discard-next": "Discard initial",
|
||||||
"discard": "row(s) of data",
|
"discard": "row(s) of data",
|
||||||
"limit-next": "Load at most",
|
"limit-next": "Load at most",
|
||||||
"limit": "row(s) of data",
|
"limit": "row(s) of data",
|
||||||
"store-row": "Store blank rows",
|
"store-row": "Store blank rows",
|
||||||
"store-cell": "Store blank cells as nulls"
|
"store-cell": "Store blank cells as nulls"
|
||||||
},
|
},
|
||||||
"gdata-source": {
|
"gdata-source": {
|
||||||
"alert-url": "You must specify a web address (URL) to import.",
|
"alert-url": "You must specify a web address (URL) to import.",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
"title": "Title",
|
"title": "Title",
|
||||||
"authors": "Authors",
|
"authors": "Authors",
|
||||||
"updated": "Updated"
|
"updated": "Updated"
|
||||||
},
|
},
|
||||||
"gdata-exporter": {
|
"gdata-exporter": {
|
||||||
"uploading": "Uploading...",
|
"uploading": "Uploading...",
|
||||||
"upload-error": "Upload error: ",
|
"upload-error": "Upload error: ",
|
||||||
"new-spreadsheet": "A new Google spreadsheet",
|
"new-spreadsheet": "A new Google spreadsheet",
|
||||||
"enter-spreadsheet": "Enter a name for the new Google spreadsheet",
|
"enter-spreadsheet": "Enter a name for the new Google spreadsheet",
|
||||||
"new-fusion": "A new Google Fusion table",
|
"new-fusion": "A new Google Fusion table",
|
||||||
"enter-fusion": "Enter a name for the new Google Fusion table"
|
"enter-fusion": "Enter a name for the new Google Fusion table"
|
||||||
},
|
},
|
||||||
"gdata-auth": {
|
"gdata-auth": {
|
||||||
"authorize-label": "OpenRefine - Authorization",
|
"authorize-label": "OpenRefine - Authorization",
|
||||||
"authorized-label": "Authorization process completed. Close this window and return to OpenRefine."
|
"authorized-label": "Authorization process completed. Close this window and return to OpenRefine."
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,56 +1,56 @@
|
|||||||
{
|
{
|
||||||
"gdata-import": {
|
"gdata-import": {
|
||||||
"preparing": "Preparing ...",
|
"preparing": "Preparing ...",
|
||||||
"creating": "Creating project ...",
|
"creating": "Creating project ...",
|
||||||
"title": "Public Documents",
|
"title": "Public Documents",
|
||||||
"import-by-url": "Import a <em>public</em> Google Spreadsheet or Fusion Table by its URL:",
|
"import-by-url": "Import a <em>public</em> Google Spreadsheet or Fusion Table by its URL:",
|
||||||
"next->": "Next »",
|
"next->": "Next »",
|
||||||
"auth-doc": "Authorized Documents",
|
"auth-doc": "Authorized Documents",
|
||||||
"please": "Please",
|
"please": "Please",
|
||||||
"sign-in": "sign in and authorize",
|
"sign-in": "sign in and authorize",
|
||||||
"sign-out": "sign out",
|
"sign-out": "sign out",
|
||||||
"access-data": "access to your Google data.",
|
"access-data": "access to your Google data.",
|
||||||
"retrieving": "Retrieving Google Docs documents ...",
|
"retrieving": "Retrieving Google Docs documents ...",
|
||||||
"re-sign-in": "re-sign in",
|
"re-sign-in": "re-sign in",
|
||||||
"another-account": "with another account"
|
"another-account": "with another account"
|
||||||
},
|
},
|
||||||
"gdata-parsing": {
|
"gdata-parsing": {
|
||||||
"start-over": "« Start Over",
|
"start-over": "« Start Over",
|
||||||
"conf-pars": "Configure Parsing Options",
|
"conf-pars": "Configure Parsing Options",
|
||||||
"proj-name": "Project name",
|
"proj-name": "Project name",
|
||||||
"create-proj": "Create Project »",
|
"create-proj": "Create Project »",
|
||||||
"updating-preview": "Updating preview ...",
|
"updating-preview": "Updating preview ...",
|
||||||
"worksheet": "Worksheets",
|
"worksheet": "Worksheets",
|
||||||
"option": "Options",
|
"option": "Options",
|
||||||
"preview-button": "Update Preview",
|
"preview-button": "Update Preview",
|
||||||
"ignore-first": "Ignore first",
|
"ignore-first": "Ignore first",
|
||||||
"ignore": "line(s) at beginning of file",
|
"ignore": "line(s) at beginning of file",
|
||||||
"parse-next": "Parse next",
|
"parse-next": "Parse next",
|
||||||
"parse": "line(s) as column headers",
|
"parse": "line(s) as column headers",
|
||||||
"discard-next": "Discard initial",
|
"discard-next": "Discard initial",
|
||||||
"discard": "row(s) of data",
|
"discard": "row(s) of data",
|
||||||
"limit-next": "Load at most",
|
"limit-next": "Load at most",
|
||||||
"limit": "row(s) of data",
|
"limit": "row(s) of data",
|
||||||
"store-row": "Store blank rows",
|
"store-row": "Store blank rows",
|
||||||
"store-cell": "Store blank cells as nulls"
|
"store-cell": "Store blank cells as nulls"
|
||||||
},
|
},
|
||||||
"gdata-source": {
|
"gdata-source": {
|
||||||
"alert-url": "You must specify a web address (URL) to import.",
|
"alert-url": "You must specify a web address (URL) to import.",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
"title": "Title",
|
"title": "Title",
|
||||||
"authors": "Authors",
|
"authors": "Authors",
|
||||||
"updated": "Updated"
|
"updated": "Updated"
|
||||||
},
|
},
|
||||||
"gdata-exporter": {
|
"gdata-exporter": {
|
||||||
"uploading": "Uploading...",
|
"uploading": "Uploading...",
|
||||||
"upload-error": "Upload error: ",
|
"upload-error": "Upload error: ",
|
||||||
"new-spreadsheet": "A new Google spreadsheet",
|
"new-spreadsheet": "A new Google spreadsheet",
|
||||||
"enter-spreadsheet": "Enter a name for the new Google spreadsheet",
|
"enter-spreadsheet": "Enter a name for the new Google spreadsheet",
|
||||||
"new-fusion": "A new Google Fusion table",
|
"new-fusion": "A new Google Fusion table",
|
||||||
"enter-fusion": "Enter a name for the new Google Fusion table"
|
"enter-fusion": "Enter a name for the new Google Fusion table"
|
||||||
},
|
},
|
||||||
"gdata-auth": {
|
"gdata-auth": {
|
||||||
"authorize-label": "OpenRefine - Authorization",
|
"authorize-label": "OpenRefine - Authorization",
|
||||||
"authorized-label": "Authorization process completed. Close this window and return to OpenRefine."
|
"authorized-label": "Authorization process completed. Close this window and return to OpenRefine."
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,56 +1,56 @@
|
|||||||
{
|
{
|
||||||
"gdata-import": {
|
"gdata-import": {
|
||||||
"preparing": "In preparazione ...",
|
"preparing": "In preparazione ...",
|
||||||
"creating": "Creazione il progetto ...",
|
"creating": "Creazione il progetto ...",
|
||||||
"title": "Documenti Pubblici",
|
"title": "Documenti Pubblici",
|
||||||
"import-by-url": "Importa un Google Spreadsheet o Fusion Table <em>pubblico</em> inserendo l'URL:",
|
"import-by-url": "Importa un Google Spreadsheet o Fusion Table <em>pubblico</em> inserendo l'URL:",
|
||||||
"next->": "Avanti »",
|
"next->": "Avanti »",
|
||||||
"auth-doc": "Documenti Autorizzati",
|
"auth-doc": "Documenti Autorizzati",
|
||||||
"please": "Per piacere",
|
"please": "Per piacere",
|
||||||
"sign-in": "autenticati ed autorizza",
|
"sign-in": "autenticati ed autorizza",
|
||||||
"sign-out": "esci",
|
"sign-out": "esci",
|
||||||
"access-data": "accedi ai tuoi dati Google.",
|
"access-data": "accedi ai tuoi dati Google.",
|
||||||
"retrieving": "Recuperando i documenti Google Doc ...",
|
"retrieving": "Recuperando i documenti Google Doc ...",
|
||||||
"re-sign-in": "rieffettua l'autenticazione",
|
"re-sign-in": "rieffettua l'autenticazione",
|
||||||
"another-account": "con un altro account"
|
"another-account": "con un altro account"
|
||||||
},
|
},
|
||||||
"gdata-parsing": {
|
"gdata-parsing": {
|
||||||
"start-over": "« Ricomincia",
|
"start-over": "« Ricomincia",
|
||||||
"conf-pars": "Configura le opzioni per il parsing",
|
"conf-pars": "Configura le opzioni per il parsing",
|
||||||
"proj-name": "Nome del progetto",
|
"proj-name": "Nome del progetto",
|
||||||
"create-proj": "Crea un progetto »",
|
"create-proj": "Crea un progetto »",
|
||||||
"updating-preview": "Aggiornando la preview ...",
|
"updating-preview": "Aggiornando la preview ...",
|
||||||
"worksheet": "Worksheets",
|
"worksheet": "Worksheets",
|
||||||
"option": "Opzioni",
|
"option": "Opzioni",
|
||||||
"preview-button": "Aggiorna la Preview",
|
"preview-button": "Aggiorna la Preview",
|
||||||
"ignore-first": "Ignora le prime",
|
"ignore-first": "Ignora le prime",
|
||||||
"ignore": "linee all'inizio del file",
|
"ignore": "linee all'inizio del file",
|
||||||
"parse-next": "Parsa le prossime",
|
"parse-next": "Parsa le prossime",
|
||||||
"parse": "linee come nomi delle colonne",
|
"parse": "linee come nomi delle colonne",
|
||||||
"discard-next": "Scarta le prime",
|
"discard-next": "Scarta le prime",
|
||||||
"discard": "righe di dati",
|
"discard": "righe di dati",
|
||||||
"limit-next": "Carica al massimo",
|
"limit-next": "Carica al massimo",
|
||||||
"limit": "righe di dati",
|
"limit": "righe di dati",
|
||||||
"store-row": "Salva righe vuote",
|
"store-row": "Salva righe vuote",
|
||||||
"store-cell": "Salva le celle vuote come 'null'"
|
"store-cell": "Salva le celle vuote come 'null'"
|
||||||
},
|
},
|
||||||
"gdata-source": {
|
"gdata-source": {
|
||||||
"alert-url": "Devi specificare un indirizzo web (URL) per l'import.",
|
"alert-url": "Devi specificare un indirizzo web (URL) per l'import.",
|
||||||
"type": "Tipo",
|
"type": "Tipo",
|
||||||
"title": "Titolo",
|
"title": "Titolo",
|
||||||
"authors": "Autori",
|
"authors": "Autori",
|
||||||
"updated": "Aggiornato"
|
"updated": "Aggiornato"
|
||||||
},
|
},
|
||||||
"gdata-exporter": {
|
"gdata-exporter": {
|
||||||
"uploading": "Caricando...",
|
"uploading": "Caricando...",
|
||||||
"upload-error": "Errore durante il caricamento: ",
|
"upload-error": "Errore durante il caricamento: ",
|
||||||
"new-spreadsheet": "Un nuovo Google spreadsheet",
|
"new-spreadsheet": "Un nuovo Google spreadsheet",
|
||||||
"enter-spreadsheet": "Inserisci un nome per il nuovo Google spreadsheet",
|
"enter-spreadsheet": "Inserisci un nome per il nuovo Google spreadsheet",
|
||||||
"new-fusion": "Una nuova tabella Google Fusion",
|
"new-fusion": "Una nuova tabella Google Fusion",
|
||||||
"enter-fusion": "Inserisci un nome per la nuova tabella Google Fusion"
|
"enter-fusion": "Inserisci un nome per la nuova tabella Google Fusion"
|
||||||
},
|
},
|
||||||
"gdata-auth": {
|
"gdata-auth": {
|
||||||
"authorize-label": "OpenRefine - Autorizzazione",
|
"authorize-label": "OpenRefine - Autorizzazione",
|
||||||
"authorized-label": "Processo di autorizzazione completato. Chiudi questa finestra e torna ad OpenRefine."
|
"authorized-label": "Processo di autorizzazione completato. Chiudi questa finestra e torna ad OpenRefine."
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,74 +1,74 @@
|
|||||||
|
|
||||||
package com.google.refine.extension.gdata.commands;
|
package com.google.refine.extension.gdata.commands;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.google.refine.ProjectManager;
|
import com.google.refine.ProjectManager;
|
||||||
import com.google.refine.commands.Command;
|
import com.google.refine.commands.Command;
|
||||||
|
|
||||||
public class LoadLanguageCommand extends Command {
|
public class LoadLanguageCommand extends Command {
|
||||||
|
|
||||||
public LoadLanguageCommand() {
|
public LoadLanguageCommand() {
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
doPost(request, response);
|
doPost(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
|
|
||||||
String rawDirectoryFile = request.getSession().getServletContext()
|
String rawDirectoryFile = request.getSession().getServletContext()
|
||||||
.getRealPath("extensions/gdata/module/langs/");
|
.getRealPath("extensions/gdata/module/langs/");
|
||||||
String cleanedDirectory = rawDirectoryFile.replace("main" + File.separator + "webapp" + File.separator, "");
|
String cleanedDirectory = rawDirectoryFile.replace("main" + File.separator + "webapp" + File.separator, "");
|
||||||
|
|
||||||
BufferedReader reader = null;
|
BufferedReader reader = null;
|
||||||
String param = null;
|
String param = null;
|
||||||
try {
|
try {
|
||||||
param = (String) ProjectManager.singleton.getPreferenceStore().get("userLang");
|
param = (String) ProjectManager.singleton.getPreferenceStore().get("userLang");
|
||||||
} catch (NullPointerException e) {
|
} catch (NullPointerException e) {
|
||||||
}
|
}
|
||||||
if (param == null) param = request.getParameter("lng");
|
if (param == null) param = request.getParameter("lng");
|
||||||
|
|
||||||
String[] langs = param.split(" ");
|
String[] langs = param.split(" ");
|
||||||
try {
|
try {
|
||||||
String file = cleanedDirectory + File.separator + "translation-" + langs[0] + ".json";
|
String file = cleanedDirectory + File.separator + "translation-" + langs[0] + ".json";
|
||||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
||||||
} catch (FileNotFoundException e1) {
|
} catch (FileNotFoundException e1) {
|
||||||
try {
|
try {
|
||||||
String file = cleanedDirectory + File.separator + "translation-default.json";
|
String file = cleanedDirectory + File.separator + "translation-default.json";
|
||||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
||||||
} catch (FileNotFoundException e3) {
|
} catch (FileNotFoundException e3) {
|
||||||
e3.printStackTrace();
|
e3.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String line = null;
|
String line = null;
|
||||||
String message = new String();
|
String message = new String();
|
||||||
if (reader != null) {
|
if (reader != null) {
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
// buffer.append(line);
|
// buffer.append(line);
|
||||||
message += line + System.getProperty("line.separator");
|
message += line + System.getProperty("line.separator");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
response.setContentType("application/json");
|
response.setContentType("application/json");
|
||||||
response.getWriter().println(message);
|
response.getWriter().println(message);
|
||||||
response.getWriter().flush();
|
response.getWriter().flush();
|
||||||
response.getWriter().close();
|
response.getWriter().close();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,73 +1,73 @@
|
|||||||
|
|
||||||
package com.google.refine.commands.lang;
|
package com.google.refine.commands.lang;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.google.refine.ProjectManager;
|
import com.google.refine.ProjectManager;
|
||||||
import com.google.refine.commands.Command;
|
import com.google.refine.commands.Command;
|
||||||
|
|
||||||
public class LoadLanguageCommand extends Command {
|
public class LoadLanguageCommand extends Command {
|
||||||
|
|
||||||
public LoadLanguageCommand() {
|
public LoadLanguageCommand() {
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
doPost(request, response);
|
doPost(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
|
|
||||||
String rawDirectoryFile = request.getSession().getServletContext().getRealPath("webapp/modules/langs/");
|
String rawDirectoryFile = request.getSession().getServletContext().getRealPath("webapp/modules/langs/");
|
||||||
String cleanedDirectory = rawDirectoryFile.replace("main" + File.separator + "webapp" + File.separator, "main"
|
String cleanedDirectory = rawDirectoryFile.replace("main" + File.separator + "webapp" + File.separator, "main"
|
||||||
+ File.separator);
|
+ File.separator);
|
||||||
|
|
||||||
BufferedReader reader = null;
|
BufferedReader reader = null;
|
||||||
String param = null;
|
String param = null;
|
||||||
try {
|
try {
|
||||||
param = (String) ProjectManager.singleton.getPreferenceStore().get("userLang");
|
param = (String) ProjectManager.singleton.getPreferenceStore().get("userLang");
|
||||||
} catch (NullPointerException e) {
|
} catch (NullPointerException e) {
|
||||||
}
|
}
|
||||||
if (param == null) param = request.getParameter("lng");
|
if (param == null) param = request.getParameter("lng");
|
||||||
|
|
||||||
String[] langs = param.split(" ");
|
String[] langs = param.split(" ");
|
||||||
try {
|
try {
|
||||||
String file = cleanedDirectory + File.separator + "translation-" + langs[0] + ".json";
|
String file = cleanedDirectory + File.separator + "translation-" + langs[0] + ".json";
|
||||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
||||||
} catch (FileNotFoundException e1) {
|
} catch (FileNotFoundException e1) {
|
||||||
try {
|
try {
|
||||||
String file = cleanedDirectory + File.separator + "translation-default.json";
|
String file = cleanedDirectory + File.separator + "translation-default.json";
|
||||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
||||||
} catch (FileNotFoundException e3) {
|
} catch (FileNotFoundException e3) {
|
||||||
e3.printStackTrace();
|
e3.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String line = null;
|
String line = null;
|
||||||
String message = new String();
|
String message = new String();
|
||||||
if (reader != null) {
|
if (reader != null) {
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
// buffer.append(line);
|
// buffer.append(line);
|
||||||
message += line + System.getProperty("line.separator");
|
message += line + System.getProperty("line.separator");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
response.setContentType("application/json");
|
response.setContentType("application/json");
|
||||||
response.getWriter().println(message);
|
response.getWriter().println(message);
|
||||||
response.getWriter().flush();
|
response.getWriter().flush();
|
||||||
response.getWriter().close();
|
response.getWriter().close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
|
|
||||||
package com.google.refine.commands.lang;
|
package com.google.refine.commands.lang;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.google.refine.ProjectManager;
|
import com.google.refine.ProjectManager;
|
||||||
import com.google.refine.commands.Command;
|
import com.google.refine.commands.Command;
|
||||||
import com.google.refine.preference.PreferenceStore;
|
import com.google.refine.preference.PreferenceStore;
|
||||||
|
|
||||||
public class SetLanguageCommand extends Command {
|
public class SetLanguageCommand extends Command {
|
||||||
|
|
||||||
public SetLanguageCommand() {
|
public SetLanguageCommand() {
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
public void doGet(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
doPost(request, response);
|
doPost(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
public void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
String lang = request.getParameter("lng");
|
String lang = request.getParameter("lng");
|
||||||
PreferenceStore pref = ProjectManager.singleton.getPreferenceStore();
|
PreferenceStore pref = ProjectManager.singleton.getPreferenceStore();
|
||||||
|
|
||||||
pref.put("userLang", lang);
|
pref.put("userLang", lang);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
(function(f){f.i18n={dict:null,plural:null,setDictionary:function(a){null===this.dict?this.dict=a:f.extend(this.dict,a)},setPlural:function(a){this.plural=a},_p:function(a,d,e){var c=this.dict[a],b=[];b.push(e);if(void 0===c||null===this.plural)return this.printf(1<e?d:a,b);a=this.plural.replace(/n%/g,e+"%");eval(a);return this.printf(c[plural],b)},_:function(a,d){var e=a;this.dict&&this.dict[a]&&(e=this.dict[a]);return this.printf(e,d)},printf:function(a,d){if(!d)return a;for(var e="",c=/%(\d+)\$s/g,
|
(function(f){f.i18n={dict:null,plural:null,setDictionary:function(a){null===this.dict?this.dict=a:f.extend(this.dict,a)},setPlural:function(a){this.plural=a},_p:function(a,d,e){var c=this.dict[a],b=[];b.push(e);if(void 0===c||null===this.plural)return this.printf(1<e?d:a,b);a=this.plural.replace(/n%/g,e+"%");eval(a);return this.printf(c[plural],b)},_:function(a,d){var e=a;this.dict&&this.dict[a]&&(e=this.dict[a]);return this.printf(e,d)},printf:function(a,d){if(!d)return a;for(var e="",c=/%(\d+)\$s/g,
|
||||||
b=c.exec(a);b;){var f=parseInt(b[1],10)-1;a=a.replace("%"+b[1]+"$s",d[f]);b=c.exec(a)}c=a.split("%s");if(1<c.length)for(b=0;b<d.length;b++)0<c[b].length&&c[b].lastIndexOf("%")==c[b].length-1&&(c[b]+="s"+c.splice(b+1,1)[0]),e+=c[b]+d[b];return e+c[c.length-1]}};f.fn._t=function(a,d){return f(this).text(f.i18n._(a,d))}})(jQuery);
|
b=c.exec(a);b;){var f=parseInt(b[1],10)-1;a=a.replace("%"+b[1]+"$s",d[f]);b=c.exec(a)}c=a.split("%s");if(1<c.length)for(b=0;b<d.length;b++)0<c[b].length&&c[b].lastIndexOf("%")==c[b].length-1&&(c[b]+="s"+c.splice(b+1,1)[0]),e+=c[b]+d[b];return e+c[c.length-1]}};f.fn._t=function(a,d){return f(this).text(f.i18n._(a,d))}})(jQuery);
|
@ -1,21 +1,21 @@
|
|||||||
|
|
||||||
<div class="grid-layout layout-normal" id="project-upload-form">
|
<div class="grid-layout layout-normal" id="project-upload-form">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" bind="or_lang_label"></td>
|
<td colspan="2" bind="or_lang_label"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr></tr>
|
<tr></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><select id="langDD">
|
<td><select id="langDD">
|
||||||
<option value="en" selected>English</option>
|
<option value="en" selected>English</option>
|
||||||
<option value="it">Italian</option>
|
<option value="it">Italian</option>
|
||||||
</select></td>
|
</select></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><input type="submit" id="set-lang-button" bind="set_lan_btn"
|
<td><input type="submit" id="set-lang-button" bind="set_lan_btn"
|
||||||
class="button button-primary" /></td>
|
class="button button-primary" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,35 +1,35 @@
|
|||||||
Refine.SetLanguageUI = function(elmt) {
|
Refine.SetLanguageUI = function(elmt) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
elmt.html(DOM.loadHTML("core", "scripts/index/lang-settings-ui.html"));
|
elmt.html(DOM.loadHTML("core", "scripts/index/lang-settings-ui.html"));
|
||||||
|
|
||||||
this._elmt = elmt;
|
this._elmt = elmt;
|
||||||
this._elmts = DOM.bind(elmt);
|
this._elmts = DOM.bind(elmt);
|
||||||
|
|
||||||
this._elmts.or_lang_label.text($.i18n._('core-index-lang')["label"]+":");
|
this._elmts.or_lang_label.text($.i18n._('core-index-lang')["label"]+":");
|
||||||
this._elmts.set_lan_btn.attr("value", $.i18n._('core-index-lang')["send-req"]);
|
this._elmts.set_lan_btn.attr("value", $.i18n._('core-index-lang')["send-req"]);
|
||||||
|
|
||||||
this._elmts.set_lan_btn.bind('click', function(e) {
|
this._elmts.set_lan_btn.bind('click', function(e) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/set-language?",
|
url : "/command/core/set-language?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
lng : $("#langDD option:selected").val()
|
lng : $("#langDD option:selected").val()
|
||||||
},
|
},
|
||||||
success : function(data) {
|
success : function(data) {
|
||||||
alert($.i18n._('core-index-lang')["page-reload"]);
|
alert($.i18n._('core-index-lang')["page-reload"]);
|
||||||
location.reload(true);
|
location.reload(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Refine.SetLanguageUI.prototype.resize = function() {
|
Refine.SetLanguageUI.prototype.resize = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
Refine.actionAreas.push({
|
Refine.actionAreas.push({
|
||||||
id : "lang-settings",
|
id : "lang-settings",
|
||||||
label : $.i18n._('core-index-lang')["lang-settings"],
|
label : $.i18n._('core-index-lang')["lang-settings"],
|
||||||
uiClass : Refine.SetLanguageUI
|
uiClass : Refine.SetLanguageUI
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user