1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-26 03:27:23 +03:00

sorted messages, cleaned up translateParams attributes

This commit is contained in:
Eugene Pankov 2022-02-10 19:10:38 +01:00
parent fe5193d9f1
commit 7b07a67947
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
12 changed files with 87 additions and 29 deletions

View File

@ -7,7 +7,8 @@ msgstr ""
msgid "\"{command}\" is still running. Close?" msgid "\"{command}\" is still running. Close?"
msgstr "" msgstr ""
msgid "A second font family used to display characters missing in the main font" msgid ""
"A second font family used to display characters missing in the main font"
msgstr "" msgstr ""
msgid "Abort all" msgid "Abort all"
@ -843,7 +844,8 @@ msgstr ""
msgid "Parity" msgid "Parity"
msgstr "" msgstr ""
msgid "Partial config sync is not possible when the config is encrypted via Vault." msgid ""
"Partial config sync is not possible when the config is encrypted via Vault."
msgstr "" msgstr ""
msgid "Passphrase for a private key with hash {hash}..." msgid "Passphrase for a private key with hash {hash}..."
@ -1024,8 +1026,8 @@ msgid "SSH connection"
msgstr "" msgstr ""
msgid "" msgid ""
"SSH connection management is now done through the \"Profiles & " "SSH connection management is now done through the \"Profiles & connections\" "
"connections\" tab" "tab"
msgstr "" msgstr ""
msgid "SSH password for {user}@{host}:{port}" msgid "SSH password for {user}@{host}:{port}"
@ -1291,7 +1293,8 @@ msgstr ""
msgid "Thin" msgid "Thin"
msgstr "" msgstr ""
msgid "Tick this if you're experiencing aliasing, ghosting or other visual issues" msgid ""
"Tick this if you're experiencing aliasing, ghosting or other visual issues"
msgstr "" msgstr ""
msgid "Toggle fullscreen mode" msgid "Toggle fullscreen mode"
@ -1364,8 +1367,8 @@ msgid "Vault"
msgstr "" msgstr ""
msgid "" msgid ""
"Vault is an always-encrypted container for secrets such as SSH passwords " "Vault is an always-encrypted container for secrets such as SSH passwords and "
"and private key passphrases." "private key passphrases."
msgstr "" msgstr ""
msgid "Vault is empty" msgid "Vault is empty"
@ -1420,8 +1423,7 @@ msgid "What's new"
msgstr "" msgstr ""
msgid "" msgid ""
"When WinSCP is detected, you can launch an SCP session from the context " "When WinSCP is detected, you can launch an SCP session from the context menu."
"menu."
msgstr "" msgstr ""
msgid "When enabled, links are only clickable while holding this key" msgid "When enabled, links are only clickable while holding this key"

View File

@ -20,4 +20,7 @@ footer.d-flex.align-items-center
i.fas.fa-bug i.fas.fa-bug
span(translate) Report a problem span(translate) Report a problem
.form-control-static.selectable.no-drag {{ 'Version: {version}'|translate:{ version: this.homeBase.appVersion } }} .form-control-static.selectable.no-drag(
translate='Version: {version}',
[translateParams]='{ version: this.homeBase.appVersion }'
)

View File

@ -4,8 +4,10 @@
.ml-auto(ngbDropdown, placement='bottom-right') .ml-auto(ngbDropdown, placement='bottom-right')
button.btn.btn-link(ngbDropdownToggle, (click)='$event.stopPropagation()') button.btn.btn-link(ngbDropdownToggle, (click)='$event.stopPropagation()')
span( span(
*ngIf='rememberFor' *ngIf='rememberFor',
) {{ 'Remember for {time}'|translate:{time: getRememberForDisplay(rememberFor)} }} translate='Remember for {time}',
[translateParams]='{time: getRememberForDisplay(rememberFor)}'
)
span(*ngIf='!rememberFor', translate) Do not remember span(*ngIf='!rememberFor', translate) Do not remember
div(ngbDropdownMenu) div(ngbDropdownMenu)
button.dropdown-item( button.dropdown-item(

View File

@ -14,7 +14,7 @@
option( option(
[value]='lang.code', [value]='lang.code',
*ngFor='let lang of allLanguages' *ngFor='let lang of allLanguages'
) {{lang.name|translate}} ) {{lang.name}}
.form-line .form-line
.header .header

View File

@ -5,7 +5,10 @@
span(translate) Plugins folder span(translate) Plugins folder
.alert.alert-danger(*ngIf='errorMessage') .alert.alert-danger(*ngIf='errorMessage')
strong {{ 'Error in {plugin}:'|translate:{plugin: erroredPlugin} }} strong(
translate='Error in {plugin}:',
[translateParams]='{plugin: erroredPlugin}'
)
pre {{errorMessage}} pre {{errorMessage}}
ul.nav-tabs.mb-2(ngbNav, #nav='ngbNav') ul.nav-tabs.mb-2(ngbNav, #nav='ngbNav')
@ -75,7 +78,10 @@ ul.nav-tabs.mb-2(ngbNav, #nav='ngbNav')
) )
i.fas.fa-fw.fa-arrow-up(*ngIf='busy.get(plugin.name) != BusyState.Installing') i.fas.fa-fw.fa-arrow-up(*ngIf='busy.get(plugin.name) != BusyState.Installing')
i.fas.fa-fw.fa-circle-notch.fa-spin(*ngIf='busy.get(plugin.name) == BusyState.Installing') i.fas.fa-fw.fa-circle-notch.fa-spin(*ngIf='busy.get(plugin.name) == BusyState.Installing')
span {{ 'Upgrade to {version}'|translate:{version: knownUpgrades[plugin.name].version} }} span(
translate='Upgrade to {version}',
[translateParams]='{version: knownUpgrades[plugin.name].version}'
)
ng-template(ngbPanelContent) ng-template(ngbPanelContent)
.row .row

View File

@ -59,7 +59,10 @@ ul.nav-tabs(ngbNav, #nav='ngbNav')
i.fas.fa-fw.fa-file i.fas.fa-fw.fa-file
.ml-2.d-flex.flex-column.align-items-start .ml-2.d-flex.flex-column.align-items-start
div {{cfg.name}} div {{cfg.name}}
small.text-muted {{ 'Modified on {date}'|translate:{date: cfg.modified_at|date:"medium"} }} small.text-muted(
translate='Modified on {date}',
[translateParams]='{date: cfg.modified_at|date:"medium"}'
)
.mr-auto .mr-auto
button.btn.btn-link.ml-1( button.btn.btn-link.ml-1(
(click)='uploadAndSync(cfg)', (click)='uploadAndSync(cfg)',

View File

@ -2,7 +2,10 @@
h3.m-0 {{profile.name}} h3.m-0 {{profile.name}}
.modal-header(*ngIf='defaultsMode') .modal-header(*ngIf='defaultsMode')
h3.m-0 {{ 'Defaults for {type}'|translate:{type: profileProvider.name} }} h3.m-0(
translate='Defaults for {type}',
[translateParams]='{type: profileProvider.name}'
)
.modal-body .modal-body
.row .row

View File

@ -197,7 +197,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
if ((await this.platform.showMessageBox( if ((await this.platform.showMessageBox(
{ {
type: 'warning', type: 'warning',
message: this.translate.instant(`Delete the group's profiles?`), message: this.translate.instant('Delete the group\'s profiles?'),
buttons: [ buttons: [
this.translate.instant('Move to "Ungrouped"'), this.translate.instant('Move to "Ungrouped"'),
this.translate.instant('Delete'), this.translate.instant('Delete'),

View File

@ -74,7 +74,7 @@
option( option(
[value]='lang.code', [value]='lang.code',
*ngFor='let lang of allLanguages' *ngFor='let lang of allLanguages'
) {{lang.name|translate}} ) {{lang.name}}
.form-line(*ngIf='platform.isShellIntegrationSupported()') .form-line(*ngIf='platform.isShellIntegrationSupported()')
.header .header

View File

@ -451,7 +451,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
{ {
type: 'warning', type: 'warning',
detail: data, detail: data,
message: this.translate.instant(`Paste multiple lines?`), message: this.translate.instant('Paste multiple lines?'),
buttons, buttons,
defaultId: 0, defaultId: 0,
cancelId: 1, cancelId: 1,

View File

@ -28,7 +28,10 @@ div.mt-4
.form-line .form-line
.header .header
.title {{ "Use {altKeyName} as the Meta key"|translate:{altKeyName: altKeyName} }} .title(
translate="Use {altKeyName} as the Meta key",
[translateParams]='{altKeyName: altKeyName}'
)
.description(translate) Lets the shell handle Meta key instead of OS .description(translate) Lets the shell handle Meta key instead of OS
toggle( toggle(
[(ngModel)]='config.store.terminal.altIsMeta', [(ngModel)]='config.store.terminal.altIsMeta',

View File

@ -527,6 +527,14 @@
dependencies: dependencies:
"@types/node" "*" "@types/node" "*"
"@types/glob@5 - 7":
version "7.2.0"
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb"
integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==
dependencies:
"@types/minimatch" "*"
"@types/node" "*"
"@types/glob@^7.1.1": "@types/glob@^7.1.1":
version "7.1.3" version "7.1.3"
resolved "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz" resolved "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz"
@ -592,6 +600,11 @@
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
"@types/parse5@^5":
version "5.0.3"
resolved "https://registry.yarnpkg.com/@types/parse5/-/parse5-5.0.3.tgz#e7b5aebbac150f8b5fdd4a46e7f0bd8e65e19109"
integrity sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==
"@types/plist@^3.0.1": "@types/plist@^3.0.1":
version "3.0.2" version "3.0.2"
resolved "https://registry.npmjs.org/@types/plist/-/plist-3.0.2.tgz" resolved "https://registry.npmjs.org/@types/plist/-/plist-3.0.2.tgz"
@ -2296,7 +2309,7 @@ css-loader@^6.5.1:
postcss-value-parser "^4.1.0" postcss-value-parser "^4.1.0"
semver "^7.3.5" semver "^7.3.5"
css-selector-parser@^1.1.0: css-selector-parser@^1.1.0, css-selector-parser@^1.3:
version "1.4.1" version "1.4.1"
resolved "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-1.4.1.tgz" resolved "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-1.4.1.tgz"
integrity sha512-HYPSb7y/Z7BNDCOrakL4raGO2zltZkbeXyAd6Tg9obzix6QhzxCotdBl6VT0Dv4vZfJGVz3WL/xaEI9Ly3ul0g== integrity sha512-HYPSb7y/Z7BNDCOrakL4raGO2zltZkbeXyAd6Tg9obzix6QhzxCotdBl6VT0Dv4vZfJGVz3WL/xaEI9Ly3ul0g==
@ -3623,6 +3636,19 @@ getpass@^0.1.1:
dependencies: dependencies:
assert-plus "^1.0.0" assert-plus "^1.0.0"
gettext-extractor@^3.5.3:
version "3.5.3"
resolved "https://registry.yarnpkg.com/gettext-extractor/-/gettext-extractor-3.5.3.tgz#6ed46931c154a7485a80fa8b91b835ff7b8d0411"
integrity sha512-9EgJ+hmbtAbATdMIvCj4WnrkeDWH6fv1z+IJJ1XCxdcUMGx6JQdVVFTdzJkSyIHh4td53ngoB5EQbavbKJU9Og==
dependencies:
"@types/glob" "5 - 7"
"@types/parse5" "^5"
css-selector-parser "^1.3"
glob "5 - 7"
parse5 "5 - 6"
pofile "1.0.x"
typescript "2 - 4"
gettext-parser@^4.0.3, gettext-parser@^4.0.4: gettext-parser@^4.0.3, gettext-parser@^4.0.4:
version "4.2.0" version "4.2.0"
resolved "https://registry.yarnpkg.com/gettext-parser/-/gettext-parser-4.2.0.tgz#9327140f76b122d44f0e8cb9338fd855667d9434" resolved "https://registry.yarnpkg.com/gettext-parser/-/gettext-parser-4.2.0.tgz#9327140f76b122d44f0e8cb9338fd855667d9434"
@ -3645,7 +3671,7 @@ glob-to-regexp@^0.4.1:
resolved "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz" resolved "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz"
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.0: "glob@5 - 7", glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.0:
version "7.2.0" version "7.2.0"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
@ -6241,16 +6267,16 @@ parse-json@^5.0.0:
json-parse-even-better-errors "^2.3.0" json-parse-even-better-errors "^2.3.0"
lines-and-columns "^1.1.6" lines-and-columns "^1.1.6"
"parse5@5 - 6", parse5@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==
parse5@^5.0.0: parse5@^5.0.0:
version "5.1.1" version "5.1.1"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178"
integrity sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug== integrity sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==
parse5@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==
pascal-case@^3.1.2: pascal-case@^3.1.2:
version "3.1.2" version "3.1.2"
resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb" resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-3.1.2.tgz#b48e0ef2b98e205e7c1dae747d0b1508237660eb"
@ -6430,6 +6456,11 @@ po-gettext-loader@^1.0.0:
dependencies: dependencies:
gettext-parser "^4.0.3" gettext-parser "^4.0.3"
pofile@1.0.x:
version "1.0.11"
resolved "https://registry.yarnpkg.com/pofile/-/pofile-1.0.11.tgz#35aff58c17491d127a07336d5522ebc9df57c954"
integrity sha512-Vy9eH1dRD9wHjYt/QqXcTz+RnX/zg53xK+KljFSX30PvdDMb2z+c6uDUeblUGqqJgz3QFsdlA0IJvHziPmWtQg==
postcss-modules-extract-imports@^3.0.0: postcss-modules-extract-imports@^3.0.0:
version "3.0.0" version "3.0.0"
resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz#cda1f047c0ae80c97dbe28c3e76a43b88025741d" resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz#cda1f047c0ae80c97dbe28c3e76a43b88025741d"
@ -8430,6 +8461,11 @@ typedoc@^0.22.11:
minimatch "^3.0.4" minimatch "^3.0.4"
shiki "^0.10.0" shiki "^0.10.0"
"typescript@2 - 4":
version "4.5.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
typescript@^4.3.5: typescript@^4.3.5:
version "4.3.5" version "4.3.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"