Skip to content

Commit ada8199

Browse files
committed
Merge branch 'release'
2 parents f4258b2 + 273804e commit ada8199

24 files changed

Lines changed: 408 additions & 138 deletions

File tree

Gruntfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ module.exports = function (grunt) {
7575
'!extensibility/node/node_modules/**/{test,tst}/**/*',
7676
'!extensibility/node/node_modules/**/examples/**/*',
7777
'filesystem/impls/appshell/node/**',
78-
'!filesystem/impls/appshell/node/spec/**'
78+
'!filesystem/impls/appshell/node/spec/**',
79+
'search/node/**'
7980
]
8081
},
8182
/* extensions and CodeMirror modes */

samples/cs/Getting Started/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,4 @@ <h2>Zapojte se</h2>
206206
207207
-->
208208

209-
<!-- Last translated for 14493d0365970664849be5eab75bdd8d257a7bd3 -->
209+
<!-- Last translated for e3ecc9e7ac7b94f1107a8e3ca7064ac39b345280 -->

samples/es/Primeros Pasos/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2>¡Ésta es tu guía!</h2>
3232
más que no vas a encontrar en otros editores. Además, Brackets está escrito en JavaScript, HTML y CSS.
3333
Esto significa que la mayoría de quienes usan Brackets tienen las habilidades necesarias para modificar y
3434
extender el editor. De hecho, nosotros usamos Brackets todos los días para desarrollar Brackets. Para
35-
saber más sobre cómo utilizar estas características únicas, continua leyendo.
35+
saber más sobre cómo utilizar estas características únicas, continúa leyendo.
3636
</p>
3737

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

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

8080
Puedes crear nuevas reglas de la misma manera. Haz clic en una de las etiquetas <!-- <p> --> de más arriba
@@ -101,7 +101,7 @@ <h3>Edición rápida de CSS y JavaScript</h3>
101101
<h3>Visualiza cambios en archivos HTML y CSS en vivo en el navegador</h3>
102102
<p>
103103
¿Conoces ese baile de "guardar/recargar" que llevamos años haciendo? ¿Ése en el que haces cambios en tu
104-
editor, oprimes guardar, cambias al navegador y recargas para por fin poder ver el resultado? Con
104+
editor, oprimes guardar, cambias al navegador y recargas para por fin poder ver el resultado? Con
105105
Brackets, ya no tienes que hacerlo.
106106
</p>
107107
<p>
@@ -161,7 +161,7 @@ <h3>¿Necesitas algo más? ¡Prueba una extensión!</h3>
161161
<p>
162162
Además de todas las bondades naturales de Brackets, nuestra amplia y creciente comunidad de desarrolladores
163163
de extensiones ha creado cientos de extensiones que añaden útiles funcionalidades. Si hay algo que
164-
necesitas que Brackets no soporte, es bastante probable que alguien haya construido una extensión para
164+
necesitas que Brackets no soporta, es bastante probable que alguien haya construido una extensión para
165165
ello. Para navegar o buscar en la lista de extensiones disponibles, selecciona <strong>Archivo >
166166
Gestionar extensiones...</strong> y haz clic en la pestaña "Disponibles". Cuando encuentres una que
167167
quieras, simplemente presiona el botón "Instalar" a su derecha.

samples/root/Getting Started/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ <h3>Need something else? Try an extension!</h3>
157157
extension developers has built hundreds of extensions that add useful functionality. If there's
158158
something you need that Brackets doesn't offer, more than likely someone has built an extension for
159159
it. To browse or search the list of available extensions, choose <strong>File > Extension
160-
Manager</strong> and click on the "Available" tab. When you find an extension you want, just click
160+
Manager</strong> and click on the "Available" tab. When you find an extension you want, just click
161161
the "Install" button next to it.
162162
</p>
163163

src/extensions/default/HealthData/HealthDataManager.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ define(function (require, exports, module) {
3636
uuid = require("thirdparty/uuid");
3737

3838
var prefs = PreferencesManager.getExtensionPrefs("healthData");
39-
var themesPref = PreferencesManager.getExtensionPrefs("themes");
4039

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

7775
HealthDataUtils.getUserInstalledExtensions()
7876
.done(function (userInstalledExtensions) {
7977
oneTimeHealthData.installedExtensions = userInstalledExtensions;
8078
})
8179
.always(function () {
82-
return result.resolve(oneTimeHealthData);
80+
HealthDataUtils.getUserInstalledTheme()
81+
.done(function (bracketsTheme) {
82+
oneTimeHealthData.bracketsTheme = bracketsTheme;
83+
})
84+
.always(function () {
85+
return result.resolve(oneTimeHealthData);
86+
});
87+
8388
});
8489

8590
return result.promise();

src/extensions/default/HealthData/HealthDataUtils.js

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
define(function (require, exports, module) {
2828
"use strict";
2929

30-
var ExtensionManager = brackets.getModule("extensibility/ExtensionManager"),
31-
_ = brackets.getModule("thirdparty/lodash");
30+
var _ = brackets.getModule("thirdparty/lodash"),
31+
ExtensionManager = brackets.getModule("extensibility/ExtensionManager"),
32+
PreferencesManager = brackets.getModule("preferences/PreferencesManager");
33+
34+
var themesPref = PreferencesManager.getExtensionPrefs("themes");
3235

3336

3437
/**
@@ -67,5 +70,43 @@ define(function (require, exports, module) {
6770
return result.promise();
6871
}
6972

70-
exports.getUserInstalledExtensions = getUserInstalledExtensions;
71-
});
73+
/**
74+
* Utility function to get the user installed theme which are present in the registry
75+
*/
76+
function getUserInstalledTheme() {
77+
var result = new $.Deferred();
78+
79+
var installedTheme = themesPref.get("theme"),
80+
bracketsTheme;
81+
82+
if (installedTheme === "light-theme" || installedTheme === "dark-theme") {
83+
return result.resolve(installedTheme);
84+
}
85+
86+
if (!ExtensionManager.hasDownloadedRegistry) {
87+
ExtensionManager.downloadRegistry().done(function () {
88+
bracketsTheme = ExtensionManager.extensions[installedTheme];
89+
if (bracketsTheme && bracketsTheme.installInfo && bracketsTheme.installInfo.locationType === ExtensionManager.LOCATION_USER && bracketsTheme.registryInfo) {
90+
result.resolve(installedTheme);
91+
} else {
92+
result.reject();
93+
}
94+
})
95+
.fail(function () {
96+
result.reject();
97+
});
98+
} else {
99+
bracketsTheme = ExtensionManager.extensions[installedTheme];
100+
if (bracketsTheme && bracketsTheme.installInfo && bracketsTheme.installInfo.locationType === ExtensionManager.LOCATION_USER && bracketsTheme.registryInfo) {
101+
result.resolve(installedTheme);
102+
} else {
103+
result.reject();
104+
}
105+
}
106+
107+
return result.promise();
108+
}
109+
110+
exports.getUserInstalledExtensions = getUserInstalledExtensions;
111+
exports.getUserInstalledTheme = getUserInstalledTheme;
112+
});

src/extensions/default/PrefsCodeHints/main.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,13 @@ define(function (require, exports, module) {
281281
return null;
282282
}
283283

284+
// Convert integers to strings, so StringMatch.stringMatch can match it.
285+
if (option.type === "number" || option.valueType === "number") {
286+
values = values.map(function (val) {
287+
return val.toString();
288+
});
289+
}
290+
284291
// filter through the values.
285292
hints = $.map(values, function (value) {
286293
var match = StringMatch.stringMatch(value, query, stringMatcherOptions);
@@ -332,8 +339,7 @@ define(function (require, exports, module) {
332339
}
333340

334341
// Put quotes around completion.
335-
completion = quoteChar + completion;
336-
completion = completion + quoteChar;
342+
completion = quoteChar + completion + quoteChar;
337343

338344
// Append colon and braces, brackets and quotes.
339345
if (!ctxInfo.shouldReplace) {

src/htmlContent/extension-manager-view-item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
{{Strings.MARKED_FOR_REMOVAL}} (<a class="undo-remove" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_REMOVE}}</a>)
9292
{{/isMarkedForRemoval}}
9393
{{#isMarkedForDisabling}}
94-
Marked for disabling (<a class="undo-disable" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_DISABLE}}</a>)
94+
{{Strings.MARKED_FOR_DISABLING}} (<a class="undo-disable" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_DISABLE}}</a>)
9595
{{/isMarkedForDisabling}}
9696
{{#isMarkedForUpdate}}
9797
{{Strings.MARKED_FOR_UPDATE}} (<a class="undo-update" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_UPDATE}}</a>)

src/nls/cs/strings.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ define({
194194
"FIND_IN_FILES_PAGING" : "{0}&mdash;{1}",
195195
"FIND_IN_FILES_FILE_PATH" : "Soubor <span class='dialog-filename'>{0}</span> ve složce <span class='dialog-path'>{1}</span>",
196196
"FIND_IN_FILES_EXPAND_COLLAPSE" : "Ctrl/Cmd klik pro rozbalení/sbalení všeho",
197+
"FIND_IN_FILES_INDEXING" : "Indexování pro okamžité vyhledávání\u2026",
197198
"REPLACE_IN_FILES_ERRORS_TITLE" : "Nahradit chyby",
198199
"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.",
199200

@@ -741,7 +742,7 @@ define({
741742
"DESCRIPTION_STATIC_SERVER_PORT" : "Síťový port, který by zabudovaný server měl použít pro živý náhled",
742743
"DESCRIPTION_STYLE_ACTIVE_LINE" : "true ke zvýraznění řádku, na kterém se nachází kurzor, barvou na pozadí",
743744
"DESCRIPTION_TAB_SIZE" : "Počet zobrazených mezer místo tabulátoru",
744-
"DESCRIPTION_USE_TAB_CHAR" : "true k použití tabulátorů místo mezer",
745+
"DESCRIPTION_USE_TAB_CHAR" : "true k používání tabulátorů místo mezer",
745746
"DESCRIPTION_UPPERCASE_COLORS" : "true k vygenerování hex barev velkými písmeny v Inline Color Editor",
746747
"DESCRIPTION_WORD_WRAP" : "Zalomit řádky přesahující šířku viewportu",
747748
"DESCRIPTION_DETECTED_EXCLUSIONS" : "Seznam souborů, u kterých bylo zjištěno, že způsobují, že se Tern vymkne kontrole",
@@ -754,11 +755,13 @@ define({
754755
"DESCRIPTION_LINTING_COLLAPSED" : "true ke skrytí panelu linteru",
755756
"DESCRIPTION_FONT_FAMILY" : "Změnit písmo",
756757
"DESCRIPTION_FONT_SIZE" : "Změnit velikost písma, např. 13px",
758+
"DESCRIPTION_FIND_IN_FILES_NODE" : "true k povolení vyhledávání založeného na Node",
759+
"DESCRIPTION_FIND_IN_FILES_INSTANT" : "true k povolení okamžitého vyhledávání",
757760
"DESCRIPTION_FONT_SMOOTHING" : "Pouze pro Mac: \"subpixel-antialiased\" k povolení sub-pixel vyhlazování nebo \"antialiased\" k vyhlazování v odstínech šedi",
758761
"DESCRIPTION_OPEN_PREFS_IN_SPLIT_VIEW" : "false k zamezení otevírání souboru s preferencemi v rozděleném editoru",
759762
"DESCRIPTION_OPEN_USER_PREFS_IN_SECOND_PANE" : "false k otevření souboru s preferencemi v levém/horním panelu",
760763
"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 */",
761764
"DEFAULT_PREFERENCES_JSON_DEFAULT" : "Výchozí"
762765
});
763766

764-
/* Last translated for 473f8f059728c813073732676de6832d04bc94b8 */
767+
/* Last translated for ed57a2cfd8132224ebee91365ba50f8f718f165f */

src/nls/cs/urls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ define({
2929
"GETTING_STARTED" : "cs/Getting Started",
3030
"ADOBE_THIRD_PARTY" : "http://www.adobe.com/go/thirdparty_cz/",
3131
"WEB_PLATFORM_DOCS_LICENSE" : "http://creativecommons.org/licenses/by/3.0/deed.cs"
32-
});
32+
});

0 commit comments

Comments
 (0)