Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed for localization issue #594

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion i18n/fra/src/security.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"security.restrictAsciidoctorExtensionsAuthors.description": "Désactive l'exécution du code des extensions Asciidoctor.js.",
"security.trustAsciidoctorExtensionsAuthors.title": "Approuvé",
"security.trustAsciidoctorExtensionsAuthors.description": "Autorise l'exécution du code des extensions Asciidoctor.js.",
"security.asciidoctorExtensionsTrustModeSelector.title": "Séléctionner le niveau de confiance adapté aux extensions Asciidoctor.js présentes sur cet espace de travail."
"security.asciidoctorExtensionsTrustModeSelector.title": "Séléctionner le niveau de confiance adapté aux extensions Asciidoctor.js présentes sur cet espace de travail.",
"security.toggleSecurityWarning.description": "Please note that it does not affect the content security level."
ggrossetie marked this conversation as resolved.
Show resolved Hide resolved
}
3 changes: 2 additions & 1 deletion i18n/jpn/src/security.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"security.restrictAsciidoctorExtensionsAuthors.description": "Asciidoctor.js拡張を無効にして、コードの実行を抑止します。",
"security.trustAsciidoctorExtensionsAuthors.title": "信頼済み",
"security.trustAsciidoctorExtensionsAuthors.description": "Asciidoctor.js拡張を有効化して、コードの実行を許可します。",
"security.asciidoctorExtensionsTrustModeSelector.title": "Asciidoctor.js拡張の信頼モードの選択"
"security.asciidoctorExtensionsTrustModeSelector.title": "Asciidoctor.js拡張の信頼モードの選択",
"security.toggleSecurityWarning.description": "コンテンツのセキュリティレベルには影響しませんので、ご注意ください。"
}
4 changes: 3 additions & 1 deletion src/asciidoctorWebViewConverter.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import vscode from 'vscode'
import { localize } from './i18n'
import { dirname, isAbsolute, join } from './util/path'
import { AsciidocPreviewSecurityLevel, ContentSecurityPolicyArbiter } from './security'
import { AsciidocPreviewConfiguration, AsciidocPreviewConfigurationManager } from './features/previewConfig'
import { WebviewResourceProvider } from './util/resources'
import { Asciidoctor } from '@asciidoctor/core'
import { SkinnyTextDocument } from './util/document'
import * as nls from 'vscode-nls'

const localize = nls.loadMessageBundle()

const { Opal } = require('asciidoctor-opal-runtime')
const processor = require('@asciidoctor/core')()
Expand Down
4 changes: 3 additions & 1 deletion src/features/documentLinkProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { localize } from '../i18n'
import * as path from 'path'
import * as vscode from 'vscode'
import { OpenDocumentLinkCommand } from '../commands/openDocumentLink'
import { getUriForLinkWithKnownExternalScheme } from '../util/links'
import { similarArrayMatch } from '../similarArrayMatch'
import { isSchemeBlacklisted } from '../linkSanitizer'
import * as nls from 'vscode-nls'

const localize = nls.loadMessageBundle()

export interface AsciidoctorLinkRegexes {
[key: string]: RegExp
Expand Down
4 changes: 3 additions & 1 deletion src/features/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { localize } from '../i18n'
import * as vscode from 'vscode'
import * as path from 'path'

Expand All @@ -15,6 +14,9 @@ import { AsciidocPreviewConfigurationManager } from './previewConfig'
import { AsciidocContributions } from '../asciidocExtensions'
import { isAsciidocFile } from '../util/file'
import { resolveLinkToAsciidocFile } from '../commands/openDocumentLink'
import * as nls from 'vscode-nls'

const localize = nls.loadMessageBundle()

export class AsciidocPreview extends Disposable implements WebviewResourceProvider {
public static viewType = 'asciidoc.preview'
Expand Down
2 changes: 0 additions & 2 deletions src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ import * as nls from 'vscode-nls'

// configure once
nls.config({ messageFormat: nls.MessageFormat.file })()

export const localize = nls.loadMessageBundle()
4 changes: 3 additions & 1 deletion src/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { localize } from './i18n'
import * as vscode from 'vscode'
import { AsciidocPreviewManager } from './features/previewManager'
import * as nls from 'vscode-nls'

const localize = nls.loadMessageBundle()

export const enum AsciidocPreviewSecurityLevel {
Strict = 0,
Expand Down