Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #5553 from SAPlayer/cubic-bezier-translation
Browse files Browse the repository at this point in the history
Provide i18n for InlineBezierCurveEditor
  • Loading branch information
redmunds committed Oct 18, 2013
2 parents c1229c2 + 4c706dd commit d315fef
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
15 changes: 15 additions & 0 deletions src/extensions/default/InlineBezierCurveEditor/Localized.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.bezier-curve-editor .coordinate-plane:after {
content: '{{INLINE_BEZIER_EDITOR_TIME}}';
}

.bezier-curve-editor .coordinate-plane:hover:before {
content: '{{INLINE_BEZIER_EDITOR_PROGRESSION}} (' attr(data-progression) '%)';
}

.bezier-curve-editor .coordinate-plane:before {
content: '{{INLINE_BEZIER_EDITOR_PROGRESSION}}';
}

.bezier-curve-editor .coordinate-plane:hover:after {
content: '{{INLINE_BEZIER_EDITOR_TIME}} (' attr(data-time) '%)';
}
10 changes: 0 additions & 10 deletions src/extensions/default/InlineBezierCurveEditor/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@

.bezier-curve-editor .coordinate-plane:before {
border-bottom: 1px solid transparent;
content: 'Progression';
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
Expand All @@ -89,19 +88,10 @@
}

.bezier-curve-editor .coordinate-plane:after {
content: 'Time';
margin-bottom: -1.5em;
white-space: nowrap;
}

.bezier-curve-editor .coordinate-plane:hover:before {
content: 'Progression (' attr(data-progression) '%)';
}

.bezier-curve-editor .coordinate-plane:hover:after {
content: 'Time (' attr(data-time) '%)';
}

.bezier-curve-editor .control-point {
background: -webkit-linear-gradient(270deg, rgb(249, 249, 249) 50%, rgb(237, 237, 237) 50%);
position: absolute;
Expand Down
7 changes: 5 additions & 2 deletions src/extensions/default/InlineBezierCurveEditor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@
*/

/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, brackets, $, window */
/*global define, brackets, $, window, Mustache */

define(function (require, exports, module) {
"use strict";

// Brackets modules
var EditorManager = brackets.getModule("editor/EditorManager"),
ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
Strings = brackets.getModule("strings"),

InlineBezierCurveEditor = require("InlineBezierCurveEditor").InlineBezierCurveEditor,
BezierCurveUtils = require("BezierCurveUtils");
BezierCurveUtils = require("BezierCurveUtils"),
Localized = require("text!Localized.css");


// Functions
Expand Down Expand Up @@ -152,6 +154,7 @@ define(function (require, exports, module) {
function init() {
// Load our stylesheet
ExtensionUtils.loadStyleSheet(module, "main.css");
ExtensionUtils.addEmbeddedStyleSheet(Mustache.render(Localized, Strings));

EditorManager.registerInlineEditProvider(inlineBezierCurveEditorProvider);
}
Expand Down
4 changes: 4 additions & 0 deletions src/nls/de/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ define({
"LOCALE_ZH_CN" : "Chinesisch, vereinfacht",
"LOCALE_HU" : "Ungarisch",

// extensions/default/InlineBezierCurveEditor
"INLINE_BEZIER_EDITOR_TIME" : "Zeit",
"INLINE_BEZIER_EDITOR_PROGRESSION" : "Verlauf",

// extensions/default/InlineColorEditor
"COLOR_EDITOR_CURRENT_COLOR_SWATCH_TIP" : "Aktuelle Farbe",
"COLOR_EDITOR_ORIGINAL_COLOR_SWATCH_TIP" : "Original-Farbe",
Expand Down
4 changes: 4 additions & 0 deletions src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ define({
"LOCALE_ZH_CN" : "Chinese, simplified",
"LOCALE_HU" : "Hungarian",

// extensions/default/InlineBezierCurveEditor
"INLINE_BEZIER_EDITOR_TIME" : "Time",
"INLINE_BEZIER_EDITOR_PROGRESSION" : "Progression",

// extensions/default/InlineColorEditor
"COLOR_EDITOR_CURRENT_COLOR_SWATCH_TIP" : "Current Color",
"COLOR_EDITOR_ORIGINAL_COLOR_SWATCH_TIP" : "Original Color",
Expand Down

0 comments on commit d315fef

Please sign in to comment.