Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
nethip committed Jul 27, 2015
2 parents f4258b2 + 273804e commit ada8199
Show file tree
Hide file tree
Showing 24 changed files with 408 additions and 138 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ module.exports = function (grunt) {
'!extensibility/node/node_modules/**/{test,tst}/**/*',
'!extensibility/node/node_modules/**/examples/**/*',
'filesystem/impls/appshell/node/**',
'!filesystem/impls/appshell/node/spec/**'
'!filesystem/impls/appshell/node/spec/**',
'search/node/**'
]
},
/* extensions and CodeMirror modes */
Expand Down
2 changes: 1 addition & 1 deletion samples/cs/Getting Started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ <h2>Zapojte se</h2>
-->

<!-- Last translated for 14493d0365970664849be5eab75bdd8d257a7bd3 -->
<!-- Last translated for e3ecc9e7ac7b94f1107a8e3ca7064ac39b345280 -->
12 changes: 6 additions & 6 deletions samples/es/Primeros Pasos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2>¡Ésta es tu guía!</h2>
más que no vas a encontrar en otros editores. Además, Brackets está escrito en JavaScript, HTML y CSS.
Esto significa que la mayoría de quienes usan Brackets tienen las habilidades necesarias para modificar y
extender el editor. De hecho, nosotros usamos Brackets todos los días para desarrollar Brackets. Para
saber más sobre cómo utilizar estas características únicas, continua leyendo.
saber más sobre cómo utilizar estas características únicas, continúa leyendo.
</p>

<!--
Expand Down Expand Up @@ -63,18 +63,18 @@ <h2>Estamos intentando algunas cosas nuevas</h2>
-->
<h3>Edición rápida de CSS y JavaScript</h3>
<p>
Se acabó el estar saltando de documento en documento perdiendo de vista lo que estás haciendo. Mientras
Se acabó aquello de estar saltando de documento en documento perdiendo de vista lo que estás haciendo. Mientras
estás escribiendo HTML, usa el atajo de teclado <kbd>Cmd/Ctrl + E</kbd> para abrir un editor rápido en
línea con todo el contenido CSS relacionado. Ajusta tu CSS y oprime <kbd>ESC</kbd> para volver a tu HTML,
o simplemente mantenga las reglas CSS abiertas para que pasen a formar parte de tu editor de HTML. Si
pulsas <kbd>ESC</kbd> fuera de un editor rápido, todos se cerrarán a la vez. La edición rápida también
funciona con archivos LESS y SCSS files, incluyendo las reglas anidadas.
funciona con archivos LESS y SCSS, incluyendo las reglas anidadas.
</p>

<samp>
¿Quieres verlo funcionando? Coloca tu cursor sobre la etiqueta <!-- <samp> --> y oprime
<kbd>Cmd/Ctrl + E</kbd>. Deberías ver aparecer un editor rápido de CSS más arriba, mostrando la regla de
CSS que le afecta. La edición rápida funciona también en atributos de de tipo clase e id. También puedes
CSS que le afecta. La edición rápida funciona también en atributos de tipo clase e id. También puedes
utilizarlo en tus archivos LESS o SCSS.

Puedes crear nuevas reglas de la misma manera. Haz clic en una de las etiquetas <!-- <p> --> de más arriba
Expand All @@ -101,7 +101,7 @@ <h3>Edición rápida de CSS y JavaScript</h3>
<h3>Visualiza cambios en archivos HTML y CSS en vivo en el navegador</h3>
<p>
¿Conoces ese baile de "guardar/recargar" que llevamos años haciendo? ¿Ése en el que haces cambios en tu
editor, oprimes guardar, cambias al navegador y recargas para por fin poder ver el resultado? Con
editor, oprimes guardar, cambias al navegador y recargas para por fin poder ver el resultado? Con
Brackets, ya no tienes que hacerlo.
</p>
<p>
Expand Down Expand Up @@ -161,7 +161,7 @@ <h3>¿Necesitas algo más? ¡Prueba una extensión!</h3>
<p>
Además de todas las bondades naturales de Brackets, nuestra amplia y creciente comunidad de desarrolladores
de extensiones ha creado cientos de extensiones que añaden útiles funcionalidades. Si hay algo que
necesitas que Brackets no soporte, es bastante probable que alguien haya construido una extensión para
necesitas que Brackets no soporta, es bastante probable que alguien haya construido una extensión para
ello. Para navegar o buscar en la lista de extensiones disponibles, selecciona <strong>Archivo >
Gestionar extensiones...</strong> y haz clic en la pestaña "Disponibles". Cuando encuentres una que
quieras, simplemente presiona el botón "Instalar" a su derecha.
Expand Down
2 changes: 1 addition & 1 deletion samples/root/Getting Started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h3>Need something else? Try an extension!</h3>
extension developers has built hundreds of extensions that add useful functionality. If there's
something you need that Brackets doesn't offer, more than likely someone has built an extension for
it. To browse or search the list of available extensions, choose <strong>File > Extension
Manager</strong> and click on the "Available" tab. When you find an extension you want, just click
Manager</strong> and click on the "Available" tab. When you find an extension you want, just click
the "Install" button next to it.
</p>

Expand Down
11 changes: 8 additions & 3 deletions src/extensions/default/HealthData/HealthDataManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ define(function (require, exports, module) {
uuid = require("thirdparty/uuid");

var prefs = PreferencesManager.getExtensionPrefs("healthData");
var themesPref = PreferencesManager.getExtensionPrefs("themes");

prefs.definePreference("healthDataTracking", "boolean", true, {
description: Strings.DESCRIPTION_HEALTH_DATA_TRACKING
Expand Down Expand Up @@ -71,15 +70,21 @@ define(function (require, exports, module) {
oneTimeHealthData.osLanguage = brackets.app.language;
oneTimeHealthData.bracketsLanguage = brackets.getLocale();
oneTimeHealthData.bracketsVersion = brackets.metadata.version;
oneTimeHealthData.bracketsTheme = themesPref.get("theme");
$.extend(oneTimeHealthData, HealthLogger.getAggregatedHealthData());

HealthDataUtils.getUserInstalledExtensions()
.done(function (userInstalledExtensions) {
oneTimeHealthData.installedExtensions = userInstalledExtensions;
})
.always(function () {
return result.resolve(oneTimeHealthData);
HealthDataUtils.getUserInstalledTheme()
.done(function (bracketsTheme) {
oneTimeHealthData.bracketsTheme = bracketsTheme;
})
.always(function () {
return result.resolve(oneTimeHealthData);
});

});

return result.promise();
Expand Down
49 changes: 45 additions & 4 deletions src/extensions/default/HealthData/HealthDataUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
define(function (require, exports, module) {
"use strict";

var ExtensionManager = brackets.getModule("extensibility/ExtensionManager"),
_ = brackets.getModule("thirdparty/lodash");
var _ = brackets.getModule("thirdparty/lodash"),
ExtensionManager = brackets.getModule("extensibility/ExtensionManager"),
PreferencesManager = brackets.getModule("preferences/PreferencesManager");

var themesPref = PreferencesManager.getExtensionPrefs("themes");


/**
Expand Down Expand Up @@ -67,5 +70,43 @@ define(function (require, exports, module) {
return result.promise();
}

exports.getUserInstalledExtensions = getUserInstalledExtensions;
});
/**
* Utility function to get the user installed theme which are present in the registry
*/
function getUserInstalledTheme() {
var result = new $.Deferred();

var installedTheme = themesPref.get("theme"),
bracketsTheme;

if (installedTheme === "light-theme" || installedTheme === "dark-theme") {
return result.resolve(installedTheme);
}

if (!ExtensionManager.hasDownloadedRegistry) {
ExtensionManager.downloadRegistry().done(function () {
bracketsTheme = ExtensionManager.extensions[installedTheme];
if (bracketsTheme && bracketsTheme.installInfo && bracketsTheme.installInfo.locationType === ExtensionManager.LOCATION_USER && bracketsTheme.registryInfo) {
result.resolve(installedTheme);
} else {
result.reject();
}
})
.fail(function () {
result.reject();
});
} else {
bracketsTheme = ExtensionManager.extensions[installedTheme];
if (bracketsTheme && bracketsTheme.installInfo && bracketsTheme.installInfo.locationType === ExtensionManager.LOCATION_USER && bracketsTheme.registryInfo) {
result.resolve(installedTheme);
} else {
result.reject();
}
}

return result.promise();
}

exports.getUserInstalledExtensions = getUserInstalledExtensions;
exports.getUserInstalledTheme = getUserInstalledTheme;
});
10 changes: 8 additions & 2 deletions src/extensions/default/PrefsCodeHints/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,13 @@ define(function (require, exports, module) {
return null;
}

// Convert integers to strings, so StringMatch.stringMatch can match it.
if (option.type === "number" || option.valueType === "number") {
values = values.map(function (val) {
return val.toString();
});
}

// filter through the values.
hints = $.map(values, function (value) {
var match = StringMatch.stringMatch(value, query, stringMatcherOptions);
Expand Down Expand Up @@ -332,8 +339,7 @@ define(function (require, exports, module) {
}

// Put quotes around completion.
completion = quoteChar + completion;
completion = completion + quoteChar;
completion = quoteChar + completion + quoteChar;

// Append colon and braces, brackets and quotes.
if (!ctxInfo.shouldReplace) {
Expand Down
2 changes: 1 addition & 1 deletion src/htmlContent/extension-manager-view-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{{Strings.MARKED_FOR_REMOVAL}} (<a class="undo-remove" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_REMOVE}}</a>)
{{/isMarkedForRemoval}}
{{#isMarkedForDisabling}}
Marked for disabling (<a class="undo-disable" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_DISABLE}}</a>)
{{Strings.MARKED_FOR_DISABLING}} (<a class="undo-disable" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_DISABLE}}</a>)
{{/isMarkedForDisabling}}
{{#isMarkedForUpdate}}
{{Strings.MARKED_FOR_UPDATE}} (<a class="undo-update" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_UPDATE}}</a>)
Expand Down
7 changes: 5 additions & 2 deletions src/nls/cs/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ define({
"FIND_IN_FILES_PAGING" : "{0}&mdash;{1}",
"FIND_IN_FILES_FILE_PATH" : "Soubor <span class='dialog-filename'>{0}</span> ve složce <span class='dialog-path'>{1}</span>",
"FIND_IN_FILES_EXPAND_COLLAPSE" : "Ctrl/Cmd klik pro rozbalení/sbalení všeho",
"FIND_IN_FILES_INDEXING" : "Indexování pro okamžité vyhledávání\u2026",
"REPLACE_IN_FILES_ERRORS_TITLE" : "Nahradit chyby",
"REPLACE_IN_FILES_ERRORS" : "Následující soubory nebyly změněny, protože se změnily po hledání nebo do nich nelze zapisovat.",

Expand Down Expand Up @@ -741,7 +742,7 @@ define({
"DESCRIPTION_STATIC_SERVER_PORT" : "Síťový port, který by zabudovaný server měl použít pro živý náhled",
"DESCRIPTION_STYLE_ACTIVE_LINE" : "true ke zvýraznění řádku, na kterém se nachází kurzor, barvou na pozadí",
"DESCRIPTION_TAB_SIZE" : "Počet zobrazených mezer místo tabulátoru",
"DESCRIPTION_USE_TAB_CHAR" : "true k použití tabulátorů místo mezer",
"DESCRIPTION_USE_TAB_CHAR" : "true k používání tabulátorů místo mezer",
"DESCRIPTION_UPPERCASE_COLORS" : "true k vygenerování hex barev velkými písmeny v Inline Color Editor",
"DESCRIPTION_WORD_WRAP" : "Zalomit řádky přesahující šířku viewportu",
"DESCRIPTION_DETECTED_EXCLUSIONS" : "Seznam souborů, u kterých bylo zjištěno, že způsobují, že se Tern vymkne kontrole",
Expand All @@ -754,11 +755,13 @@ define({
"DESCRIPTION_LINTING_COLLAPSED" : "true ke skrytí panelu linteru",
"DESCRIPTION_FONT_FAMILY" : "Změnit písmo",
"DESCRIPTION_FONT_SIZE" : "Změnit velikost písma, např. 13px",
"DESCRIPTION_FIND_IN_FILES_NODE" : "true k povolení vyhledávání založeného na Node",
"DESCRIPTION_FIND_IN_FILES_INSTANT" : "true k povolení okamžitého vyhledávání",
"DESCRIPTION_FONT_SMOOTHING" : "Pouze pro Mac: \"subpixel-antialiased\" k povolení sub-pixel vyhlazování nebo \"antialiased\" k vyhlazování v odstínech šedi",
"DESCRIPTION_OPEN_PREFS_IN_SPLIT_VIEW" : "false k zamezení otevírání souboru s preferencemi v rozděleném editoru",
"DESCRIPTION_OPEN_USER_PREFS_IN_SECOND_PANE" : "false k otevření souboru s preferencemi v levém/horním panelu",
"DEFAULT_PREFERENCES_JSON_HEADER_COMMENT" : "/*\n * Toto je soubor pouze ke čtení s preferencemi podporovanými\n * v {APP_NAME}.\n * Použijte tento soubor jako doporučení pro úpravu vašeho souboru s preferencemi\n * \"brackets.json\" otevřeném ve druhém panelu.\n * Pro více informací o úpravě preferencí\n * v {APP_NAME} se podívejte na webovou stránku https://github.com/adobe/brackets/wiki/How-to-Use-Brackets#preferences\n */",
"DEFAULT_PREFERENCES_JSON_DEFAULT" : "Výchozí"
});

/* Last translated for 473f8f059728c813073732676de6832d04bc94b8 */
/* Last translated for ed57a2cfd8132224ebee91365ba50f8f718f165f */
2 changes: 1 addition & 1 deletion src/nls/cs/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ define({
"GETTING_STARTED" : "cs/Getting Started",
"ADOBE_THIRD_PARTY" : "http://www.adobe.com/go/thirdparty_cz/",
"WEB_PLATFORM_DOCS_LICENSE" : "http://creativecommons.org/licenses/by/3.0/deed.cs"
});
});
Loading

0 comments on commit ada8199

Please sign in to comment.