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

Committing fix for Issue 1705 #1706

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/nls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

1. Create a subfolder of the `nls` folder whose name is the language or locale you want to
create a translation for.

* If you're creating a general translation for a language, just use its two-letter code
(e.g. `en`, `de`).

* If you're creating a locale-specific translation for a particular country, add a hyphen
and the country code in lowercase (e.g. `en-ca`, `en-gb`).

* If you're creating a general translation for a language, just use its two-letter code
(e.g. `en`, `de`).
* If you're creating a locale-specific translation for a particular country, add a hyphen
and the country code in lowercase (e.g. `en-ca`, `en-gb`).
2. Add an entry for your translation to the `module.exports` object in `nls/strings.js`.
(Eventually, we should remove this requirement and just scan the folder for available languages.)
3. Copy the root `strings.js` file into your subfolder and start translating!

Strings not specified in a given locale will fall back to the language for that locale, if any,
and strings not specified in either the locale or its language will fall back to the `root`
Expand Down
15 changes: 14 additions & 1 deletion src/search/QuickOpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,21 @@ define(function (require, exports, module) {
origSelection = null;
}

// Set dialogLabel depending on which Navigation option is chosen
var dialogLabel = "";
switch (prefix) {
case "":
dialogLabel = Strings.CMD_QUICK_OPEN;
break;
case ":":
dialogLabel = Strings.CMD_GOTO_LINE;
break;
case "@":
dialogLabel = Strings.CMD_GOTO_DEFINITION;
break;
}
// Show the search bar ("dialog")
var dialogHTML = Strings.CMD_QUICK_OPEN + ": <input type='text' autocomplete='off' id='quickOpenSearch' style='width: 30em'>";
var dialogHTML = dialogLabel + ": <input type='text' autocomplete='off' id='quickOpenSearch' style='width: 30em'>";
that._createDialogDiv(dialogHTML);
that.$searchField = $("input#quickOpenSearch");

Expand Down