From 8a0f23be3b842600413b854c5b0d35042051cbdc Mon Sep 17 00:00:00 2001 From: Blakko Date: Tue, 9 Jul 2013 15:57:25 +0200 Subject: [PATCH] Internationalization of the data-table part --- .../add-column-by-fetching-urls-dialog.html | 18 +- .../views/data-table/add-column-dialog.html | 10 +- .../scripts/views/data-table/cell-editor.html | 22 +- .../cell-recon-preview-popup-header.html | 6 +- .../cell-recon-search-for-match.html | 16 +- .../core/scripts/views/data-table/cell-ui.js | 48 +++- .../views/data-table/column-header-ui.js | 69 +++-- .../copy-recon-across-columns-dialog.html | 16 +- .../views/data-table/data-table-view.js | 50 ++-- .../views/data-table/key-value-columnize.html | 12 +- .../views/data-table/menu-edit-cells.js | 97 ++++--- .../views/data-table/menu-edit-column.js | 68 +++-- .../scripts/views/data-table/menu-facets.js | 36 +-- .../views/data-table/menu-reconcile.js | 95 ++++--- .../data-table/sorting-criterion-dialog.html | 24 +- .../views/data-table/split-column-dialog.html | 26 +- .../data-table/text-transform-dialog.html | 14 +- .../transpose-columns-into-rows.html | 34 +-- main/webapp/modules/langs/translation-en.json | 246 +++++++++++++++++- 19 files changed, 634 insertions(+), 273 deletions(-) diff --git a/main/webapp/modules/core/scripts/views/data-table/add-column-by-fetching-urls-dialog.html b/main/webapp/modules/core/scripts/views/data-table/add-column-by-fetching-urls-dialog.html index 4139be353..3c5ea822c 100644 --- a/main/webapp/modules/core/scripts/views/data-table/add-column-by-fetching-urls-dialog.html +++ b/main/webapp/modules/core/scripts/views/data-table/add-column-by-fetching-urls-dialog.html @@ -4,27 +4,27 @@
- + - - + + - + + - +
New column name Throttle delay milliseconds
On error - + -

Formulate the URLs to fetch:

$EXPRESSION_PREVIEW_WIDGET$
\ No newline at end of file diff --git a/main/webapp/modules/core/scripts/views/data-table/add-column-dialog.html b/main/webapp/modules/core/scripts/views/data-table/add-column-dialog.html index c6b613b32..5dddbc06f 100644 --- a/main/webapp/modules/core/scripts/views/data-table/add-column-dialog.html +++ b/main/webapp/modules/core/scripts/views/data-table/add-column-dialog.html @@ -4,18 +4,18 @@
- + - + +
New column name
On error - + - + -
$EXPRESSION_PREVIEW_WIDGET$
diff --git a/main/webapp/modules/core/scripts/views/data-table/cell-editor.html b/main/webapp/modules/core/scripts/views/data-table/cell-editor.html index 505e7cbac..bf9d5f690 100644 --- a/main/webapp/modules/core/scripts/views/data-table/cell-editor.html +++ b/main/webapp/modules/core/scripts/views/data-table/cell-editor.html @@ -1,24 +1,24 @@ - Data type: + + + + - List of integers separated by commas, e.g., 5, 7, 15 +
- + - + - +

After Splitting

\ No newline at end of file diff --git a/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html b/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html index 8fe308a28..e1b4790c1 100644 --- a/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html +++ b/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html @@ -8,20 +8,20 @@ On error -
+
-
+
- + - - + + \ No newline at end of file diff --git a/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html b/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html index c36f1b45d..9959784a2 100644 --- a/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html +++ b/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html @@ -1,12 +1,12 @@
-
Transpose Cells Across Columns into Rows
+
- - - + + + @@ -14,57 +14,57 @@
From ColumnTo ColumnTranspose into
- + - + - + - +
 
- - + + - - + +
Key column (containing original columns' names)
Value column (containing original cells' values)
 
- + -
 followed by + - before the cell's value +
\ No newline at end of file diff --git a/main/webapp/modules/langs/translation-en.json b/main/webapp/modules/langs/translation-en.json index 21ebb5cd8..f6e1919e1 100644 --- a/main/webapp/modules/langs/translation-en.json +++ b/main/webapp/modules/langs/translation-en.json @@ -361,6 +361,244 @@ "working": "Working", "invalid-date": "Invalid date string" }, + "core-views": { + "edit-cell": "Edit this cell", + "choose-match": "Choose new match", + "match-all-cells": "Match this topic to this and all identical cells", + "match-this-cell": "Match this topic to this cell", + "create-topic-cells": "Create a new topic for this and all identical cells", + "create-topic-cell": "Create a new topic for this cell", + "create-topic": "Create new topic", + "search-match": "Search for match", + "not-valid-number": "Not a valid number.", + "not-valid-date": "Not a valid date.", + "search-match": "Search for Match", + "match-this": "Match this cell only", + "match-other": "Match other cells with same content", + "search-for": "Search for", + "match-cell": "Match this Cell", + "match-identical": "Match All Identical Cells", + "matched": "matched", + "new": "new", + "to-be-recon": "to be reconciled", + "facet": "Facet", + "edit-cells": "Edit cells", + "edit-column": "Edit column", + "transpose": "Transpose", + "sort": "Sort", + "collapse-expand": "Collapse/expand columns to make viewing the data more convenient", + "collapse-this": "Collapse this column", + "collapse-all": "Collapse all other columns", + "collapse-left": "Collapse all columns to left", + "collapse-right": "Collapse all columns to right", + "reconcile": "Reconcile", + "match-fb": "Match this column's cells to topics on Freebase", + "reverse": "Reverse", + "remove-sort": "Remove sort", + "sort-by": "Sort by", + "sort-cell": "Sort cell values as", + "pos-blank": "Position blanks and errors", + "text": "text", + "case-sensitive": "case-sensitive", + "numbers": "numbers", + "dates": "dates", + "booleans": "booleans", + "drag-drop": "Drag and drop to re-order", + "forward": "forward", + "reverse": "reverse", + "sort-by-col": "sort by this column alone", + "smallest-first": "smallest first", + "largest-first": "largest first", + "earliest-first": "earliest first", + "latest-first": "latest first", + "false-true": "false then true", + "true-fasle": "true then false", + "valid-values": "Valid values", + "blanks": "Blanks", + "errors": "Errors", + "search-fb-topic": "Search Freebase for a topic to match all filtered cells:", + "copy-recon-judg": "Copy recon judgments from column", + "copy-to-col": "Copy to Columns", + "copy-opt": "Copying Options", + "apply-to-cell": "Apply to judged cells", + "what-to-copy": "What to copy:", + "new-recon": "new recon judgments", + "match-recon": "match recon judgments", + "warning-other-col": "Please select some other column to copy to.", + "warning-sel-judg": "Please select at least one kind of judgment to copy.", + "start-recon": "Start reconciling", + "recon-text-fb": "Reconcile text in this column with topics on Freebase", + "facets": "Facets", + "by-judg": "By judgment", + "best-score": "Best candidate's score", + "best-cand-score": "best candidate's score", + "best-type-match": "Best candidate's type match", + "best-cand-type-match": "best candidate's types match?", + "best-name": "Best candidate's name match", + "best-cand-name": "best candidate's name match?", + "best-edit-dist": "Best candidate's name edit distance", + "best-cand-edit-dist": "best candidate's name edit distance", + "best-word-sim": "Best candidate's name word similarity", + "best-cand-word-sim": "best candidate's name word similarity", + "best-type": "Best candidate's types", + "qa-facets": "QA facets", + "qa-results": "QA results", + "qa-results2": "QA Results", + "judg-actions": "Judgment actions", + "judg-actions2": "Judgment Actions", + "judg-hist": "Judgment history entries", + "hist-entries": "History Entries", + "actions": "Actions", + "best-cand": "Match each cell to its best candidate", + "best-cand2": "Match each cell to its best candidate in this column for all current filtered rows", + "new-topic": "Create a new topic for each cell", + "new-topic2": "Mark to create one new topic for each cell in this column for all current filtered rows", + "one-topic": "Create one new topic for similar cells", + "one-topic2": "Mark to create one new topic for each group of similar cells in this column for all current filtered rows", + "filtered-cell": "Match all filtered cells to...", + "filtered-cell2": "Search for a topic to match all filtered cells to", + "discard-judg": "Discard reconciliation judgments", + "discard-judg2": "Discard reconciliation judgments in this column for all current filtered rows", + "clear-recon": "Clear reconciliation data", + "clear-recon2": "Clear reconciliation data in this column for all current filtered rows", + "copy-recon": "Copy reconciliation data...", + "copy-recon2": "Copy this column's reconciliation data to other columns", + "custom-facet": "Custom Facet on column", + "custom-numeric": "Custom Numeric Facet on column", + "text-facet": "Text facet", + "numeric-facet": "Numeric facet", + "timeline-facet": "Timeline facet", + "scatterplot-facet": "Scatterplot facet", + "custom-facet": "Custom text facet", + "custom-numeric": "Custom numeric facet", + "custom-facets": "Customized facets", + "word-facet": "Word facet", + "duplicates-facet": "Duplicates facet", + "numeric-log-facet": "Numeric log facet", + "bounded-log-facet": "1-bounded numeric log facet", + "text-length-facet": "Text length facet", + "log-length-facet": "Log of text length facet", + "unicode-facet": "Unicode char-code facet", + "facet-error": "Facet by error", + "facet-blank": "Facet by blank", + "text-filter": "Text filter", + "add-col-col": "Add column based on column", + "new-col-name": "New column name", + "on-error": "On error", + "set-blank": "set to blank", + "store-err": "store error", + "copy-val": "copy value from original column", + "warning-col-name": "You must enter a column name.", + "add-col-fetch": "Add column by fetching URLs based on column", + "throttle-delay": "Throttle delay", + "milli": "milliseconds", + "url-fetch": "Formulate the URLs to fetch:", + "enter-col-name": "Enter new column name", + "split-col": "Split column", + "several-col": "into several columns", + "how-split": "How to Split Column", + "by-sep": "by separator", + "separator": "Separator", + "reg-exp": "regular expression", + "split-into": "Split into", + "col-at-most": "columns at most (leave blank for no limit)", + "field-len": "by field lengths", + "list-int": "List of integers separated by commas, e.g., 5, 7, 15", + "after-split": "After Splitting", + "guess-cell": "Guess cell type", + "remove-col": "Remove this column", + "specify-sep": "Please specify a separator.", + "warning-no-length": "No field length is specified.", + "warning-format": "The given field lengths are not properly formatted.", + "split-into-col": "Split into several columns", + "add-based-col": "Add column based on this column", + "add-by-urls": "Add column by fetching URLs", + "rename-col": "Rename this column", + "move-to-beg": "Move column to beginning", + "move-to-end": "Move column to end", + "move-to-left": "Move column left", + "move-to-right": "Move column right", + "show-as": "Show as", + "first": "first", + "previous": "previous", + "next": "next", + "last": "last", + "all": "All", + "facet-star": "Facet by star", + "starred-rows": "Starred Rows", + "facet-flag": "Facet by flag", + "flagged-rows": "Flagged Rows", + "edit-rows": "Edit rows", + "star-rows": "Star rows", + "unstar-rows": "Unstar rows", + "flag-rows": "Flag rows", + "unflag-rows": "Unflag rows", + "remove-matching": "Remove all matching rows", + "edit-col": "Edit columns", + "reorder-remove": "Re-order / remove columns", + "view": "View", + "collapse-all": "Collapse all columns", + "expand-all": "Expand all columns", + "remove-sort": "Remove sort", + "reorder-perma": "Reorder rows permanently", + "by": "By", + "custom-text-trans": "Custom text transform on column", + "keep-or": "keep original", + "re-trans": "Re-transform up to", + "times-chang": "times until no change", + "enter-separator": "Enter separator to use between values", + "what-separator": "What separator currently separates the values?", + "transform": "Transform", + "common-transform": "Common transforms", + "trim-all": "Trim leading and trailing whitespace", + "collapse-white": "Collapse consecutive whitespace", + "unescape-html": "Unescape HTML entities", + "titlecase": "To titlecase", + "uppercase": "To uppercase", + "lowercase": "To lowercase", + "to-number": "To number", + "to-date": "To date", + "to-text": "To text", + "blank-out": "Blank out cells", + "fill-down": "Fill down", + "blank-down": "Blank down", + "split-cells": "Split multi-valued cells", + "join-cells": "Join multi-valued cells", + "cluster-edit": "Cluster and edit", + "transp-cell": "Transpose Cells Across Columns into Rows", + "from-col": "From Column", + "to-col": "To Column", + "transp-into": "Transpose into", + "two-new-col": "Two new columns", + "key-col": "Key Column", + "contain-names": "(containing original columns' names)", + "val-col": "Value Column", + "contain-val": "(containing original cells' values)", + "one-col": "One column", + "prepend-name": "prepend the original column's name to each cell", + "follow-by": "followed by", + "before-val": "before the cell's value", + "ignore-blank": "Ignore blank cells", + "fill-other": "Fill down in other columns", + "spec-new-name": "Please specify the new key column's name.", + "spec-new-val": "Please specify the new value column's name.", + "spec-col-name": "Please specify the new column's name.", + "spec-separator": "Please specify the separator between original column names and cell values.", + "how-many-rows": "How many rows to transpose?", + "expect-two": "Expected an integer at least 2.", + "columnize": "Columnize by Key/Value Columns", + "note-col": "Note Column (optional)", + "sel-col-val": "Please select one key column and one value column that are different from one another.", + "cannot-same": "If specified, the note column cannot be the same as the key column or the value column.", + "transp-cell-row": "Transpose cells across columns into rows", + "transp-cell-col": "Transpose cells in rows into columns", + "columnize-col": "Columnize by key/value columns", + "data-type": "Data type:", + "number": "number", + "boolean": "boolean", + "date": "date", + "ctrl-enter": "Ctrl-Enter" + }, "core-buttons": { "cancel": "Cancel", "ok": "  OK  ", @@ -396,6 +634,12 @@ "add-std-svc": "Add Standard Service", "add-named-svc": "Add Namespaced Service", "start-recon": "Start Reconciling", - "add-service": "Add Service" + "add-service": "Add Service", + "dont-reconcile": "Don't Reconcile Cell", + "new-topic": "New Topic", + "match": "Match", + "copy": "Copy", + "transpose": "Transpose", + "apply-to-all": "Apply to All Identical Cells" } } \ No newline at end of file