mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Remove prefix from translations keys
This commit is contained in:
parent
1d97137f11
commit
676c27d6c9
@ -55,7 +55,7 @@ import {
|
|||||||
import {makeT} from 'app/client/lib/localization';
|
import {makeT} from 'app/client/lib/localization';
|
||||||
import isEqual = require('lodash/isEqual');
|
import isEqual = require('lodash/isEqual');
|
||||||
|
|
||||||
const t = makeT('aclui.AccessRules');
|
const t = makeT('AccessRules');
|
||||||
|
|
||||||
// tslint:disable:max-classes-per-file no-console
|
// tslint:disable:max-classes-per-file no-console
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import {makeT} from 'app/client/lib/localization';
|
|||||||
// One of the strings 'read', 'update', etc.
|
// One of the strings 'read', 'update', etc.
|
||||||
export type PermissionKey = keyof PartialPermissionSet;
|
export type PermissionKey = keyof PartialPermissionSet;
|
||||||
|
|
||||||
const t = makeT('aclui.PermissionsWidget');
|
const t = makeT('PermissionsWidget');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a box for each of availableBits, and a dropdown with a description and some shortcuts.
|
* Renders a box for each of availableBits, and a dropdown with a description and some shortcuts.
|
||||||
|
@ -47,7 +47,7 @@ const state = {
|
|||||||
DEFAULT: 'default'
|
DEFAULT: 'default'
|
||||||
};
|
};
|
||||||
|
|
||||||
const t = makeT('components.ActionLog');
|
const t = makeT('ActionLog');
|
||||||
|
|
||||||
export class ActionLog extends dispose.Disposable implements IDomComponent {
|
export class ActionLog extends dispose.Disposable implements IDomComponent {
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ const DONUT_DEFAULT_TEXT_SIZE = 24;
|
|||||||
|
|
||||||
const testId = makeTestId('test-chart-');
|
const testId = makeTestId('test-chart-');
|
||||||
|
|
||||||
const t = makeT('components.ChartView');
|
const t = makeT('ChartView');
|
||||||
|
|
||||||
function isPieLike(chartType: string) {
|
function isPieLike(chartType: string) {
|
||||||
return ['pie', 'donut'].includes(chartType);
|
return ['pie', 'donut'].includes(chartType);
|
||||||
|
@ -9,7 +9,7 @@ import {makeT} from 'app/client/lib/localization';
|
|||||||
const hljs = require('highlight.js/lib/core');
|
const hljs = require('highlight.js/lib/core');
|
||||||
hljs.registerLanguage('python', require('highlight.js/lib/languages/python'));
|
hljs.registerLanguage('python', require('highlight.js/lib/languages/python'));
|
||||||
|
|
||||||
const t = makeT('components.CodeEditorPanel');
|
const t = makeT('CodeEditorPanel');
|
||||||
|
|
||||||
export class CodeEditorPanel extends DisposableWithEvents {
|
export class CodeEditorPanel extends DisposableWithEvents {
|
||||||
private _schema = Observable.create(this, '');
|
private _schema = Observable.create(this, '');
|
||||||
|
@ -16,7 +16,7 @@ import {makeT} from 'app/client/lib/localization';
|
|||||||
|
|
||||||
const testId = makeTestId('test-raw-data-');
|
const testId = makeTestId('test-raw-data-');
|
||||||
|
|
||||||
const t = makeT('components.DataTables');
|
const t = makeT('DataTables');
|
||||||
|
|
||||||
export class DataTables extends Disposable {
|
export class DataTables extends Disposable {
|
||||||
private _tables: Observable<TableRec[]>;
|
private _tables: Observable<TableRec[]>;
|
||||||
|
@ -13,7 +13,7 @@ import {canUpgradeOrg} from 'app/common/roles';
|
|||||||
import {Computed, Disposable, dom, DomContents, DomElementArg, makeTestId, styled} from 'grainjs';
|
import {Computed, Disposable, dom, DomContents, DomElementArg, makeTestId, styled} from 'grainjs';
|
||||||
import {makeT} from 'app/client/lib/localization';
|
import {makeT} from 'app/client/lib/localization';
|
||||||
|
|
||||||
const t = makeT('components.DocumentUsage');
|
const t = makeT('DocumentUsage');
|
||||||
|
|
||||||
const testId = makeTestId('test-doc-usage-');
|
const testId = makeTestId('test-doc-usage-');
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ import * as ko from 'knockout';
|
|||||||
import cloneDeepWith = require('lodash/cloneDeepWith');
|
import cloneDeepWith = require('lodash/cloneDeepWith');
|
||||||
import isEqual = require('lodash/isEqual');
|
import isEqual = require('lodash/isEqual');
|
||||||
|
|
||||||
const t = makeT('components.GristDoc');
|
const t = makeT('GristDoc');
|
||||||
|
|
||||||
const G = getBrowserGlobals('document', 'window');
|
const G = getBrowserGlobals('document', 'window');
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ import {labeledSquareCheckbox} from 'app/client/ui2018/checkbox';
|
|||||||
import {ACCESS_DENIED, AUTH_INTERRUPTED, canReadPrivateFiles, getGoogleCodeForReading} from 'app/client/ui/googleAuth';
|
import {ACCESS_DENIED, AUTH_INTERRUPTED, canReadPrivateFiles, getGoogleCodeForReading} from 'app/client/ui/googleAuth';
|
||||||
import debounce = require('lodash/debounce');
|
import debounce = require('lodash/debounce');
|
||||||
|
|
||||||
const t = makeT('components.Importer');
|
const t = makeT('Importer');
|
||||||
|
|
||||||
|
|
||||||
// We expect a function for creating the preview GridView, to avoid the need to require the
|
// We expect a function for creating the preview GridView, to avoid the need to require the
|
||||||
|
@ -7,7 +7,7 @@ import { PluginInstance } from 'app/common/PluginInstance';
|
|||||||
import { RenderTarget } from 'app/plugin/RenderOptions';
|
import { RenderTarget } from 'app/plugin/RenderOptions';
|
||||||
import { Disposable, dom, DomContents, Observable, styled } from 'grainjs';
|
import { Disposable, dom, DomContents, Observable, styled } from 'grainjs';
|
||||||
|
|
||||||
const t = makeT('components.PluginScreen');
|
const t = makeT('PluginScreen');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rendering options for the PluginScreen modal.
|
* Rendering options for the PluginScreen modal.
|
||||||
|
@ -41,7 +41,7 @@ var {menu} = require('../ui2018/menus');
|
|||||||
var {testId} = require('app/client/ui2018/cssVars');
|
var {testId} = require('app/client/ui2018/cssVars');
|
||||||
var {contextMenu} = require('app/client/ui/contextMenu');
|
var {contextMenu} = require('app/client/ui/contextMenu');
|
||||||
|
|
||||||
const t = makeT('components.RecordLayout');
|
const t = makeT('RecordLayout');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a RecordLayout.
|
* Construct a RecordLayout.
|
||||||
|
@ -6,7 +6,7 @@ var {makeT} = require('app/client/lib/localization');
|
|||||||
var commands = require('./commands');
|
var commands = require('./commands');
|
||||||
var LayoutEditor = require('./LayoutEditor');
|
var LayoutEditor = require('./LayoutEditor');
|
||||||
|
|
||||||
const t = makeT('components.RecordLayoutEditor');
|
const t = makeT('RecordLayoutEditor');
|
||||||
const {basicButton, cssButton, primaryButton} = require('app/client/ui2018/buttons');
|
const {basicButton, cssButton, primaryButton} = require('app/client/ui2018/buttons');
|
||||||
const {icon} = require('app/client/ui2018/icons');
|
const {icon} = require('app/client/ui2018/icons');
|
||||||
const {menu, menuDivider, menuItem} = require('app/client/ui2018/menus');
|
const {menu, menuDivider, menuItem} = require('app/client/ui2018/menus');
|
||||||
|
@ -14,7 +14,7 @@ import ko from 'knockout';
|
|||||||
import {menu, menuItem} from 'popweasel';
|
import {menu, menuItem} from 'popweasel';
|
||||||
import {makeT} from 'app/client/lib/localization';
|
import {makeT} from 'app/client/lib/localization';
|
||||||
|
|
||||||
const t = makeT('components.RefSelect');
|
const t = makeT('RefSelect');
|
||||||
|
|
||||||
interface Item {
|
interface Item {
|
||||||
label: string;
|
label: string;
|
||||||
|
@ -16,7 +16,7 @@ import ko from 'knockout';
|
|||||||
import {Computed, Disposable, dom, makeTestId, Observable, styled, subscribe} from 'grainjs';
|
import {Computed, Disposable, dom, makeTestId, Observable, styled, subscribe} from 'grainjs';
|
||||||
import {makeT} from 'app/client/lib/localization';
|
import {makeT} from 'app/client/lib/localization';
|
||||||
|
|
||||||
const t = makeT('components.SelectionSummary');
|
const t = makeT('SelectionSummary');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A beginning and end index for a range of columns or rows.
|
* A beginning and end index for a range of columns or rows.
|
||||||
|
@ -19,7 +19,7 @@ import {UserAction} from 'app/common/DocActions';
|
|||||||
import {Computed, dom, fromKo, Observable} from 'grainjs';
|
import {Computed, dom, fromKo, Observable} from 'grainjs';
|
||||||
import {makeT} from 'app/client/lib/localization';
|
import {makeT} from 'app/client/lib/localization';
|
||||||
|
|
||||||
const t = makeT('components.TypeTransformation');
|
const t = makeT('TypeTransformation');
|
||||||
|
|
||||||
// To simplify diff (avoid rearranging methods to satisfy private/public order).
|
// To simplify diff (avoid rearranging methods to satisfy private/public order).
|
||||||
/* eslint-disable @typescript-eslint/member-ordering */
|
/* eslint-disable @typescript-eslint/member-ordering */
|
||||||
|
@ -7,7 +7,7 @@ var kf = require('../lib/koForm');
|
|||||||
var AceEditor = require('./AceEditor');
|
var AceEditor = require('./AceEditor');
|
||||||
var {makeT} = require('app/client/lib/localization');
|
var {makeT} = require('app/client/lib/localization');
|
||||||
|
|
||||||
const t = makeT('components.ValidationPanel');
|
const t = makeT('ValidationPanel');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Document level configuration settings.
|
* Document level configuration settings.
|
||||||
|
@ -19,7 +19,7 @@ const {makeT} = require('app/client/lib/localization');
|
|||||||
|
|
||||||
const testId = makeTestId('test-vconfigtab-');
|
const testId = makeTestId('test-vconfigtab-');
|
||||||
|
|
||||||
const t = makeT('components.ViewConfigTab');
|
const t = makeT('ViewConfigTab');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class that combines one ViewSection's data for building dom.
|
* Helper class that combines one ViewSection's data for building dom.
|
||||||
|
@ -15,7 +15,7 @@ import zip = require('lodash/zip');
|
|||||||
import zipObject = require('lodash/zipObject');
|
import zipObject = require('lodash/zipObject');
|
||||||
import {makeT} from 'app/client/lib/localization';
|
import {makeT} from 'app/client/lib/localization';
|
||||||
|
|
||||||
const t = makeT('components.duplicatePage');
|
const t = makeT('duplicatePage');
|
||||||
|
|
||||||
// Duplicate page with pageId. Starts by prompting user for a new name.
|
// Duplicate page with pageId. Starts by prompting user for a new name.
|
||||||
export async function duplicatePage(gristDoc: GristDoc, pageId: number) {
|
export async function duplicatePage(gristDoc: GristDoc, pageId: number) {
|
||||||
|
@ -18,7 +18,7 @@ import {createUserImage, cssUserImage} from "app/client/ui/UserImage";
|
|||||||
import {Computed, computed, dom, DomElementArg, Holder, IDisposableOwner, Observable, styled} from "grainjs";
|
import {Computed, computed, dom, DomElementArg, Holder, IDisposableOwner, Observable, styled} from "grainjs";
|
||||||
import {cssMenuItem} from "popweasel";
|
import {cssMenuItem} from "popweasel";
|
||||||
|
|
||||||
const t = makeT('lib.ACUserManager');
|
const t = makeT('ACUserManager');
|
||||||
|
|
||||||
export interface ACUserItem extends ACItem {
|
export interface ACUserItem extends ACItem {
|
||||||
value: string;
|
value: string;
|
||||||
|
@ -24,7 +24,7 @@ import {getOrgName, Organization, OrgError, UserAPI, UserAPIImpl} from 'app/comm
|
|||||||
import {getUserPrefObs, getUserPrefsObs} from 'app/client/models/UserPrefs';
|
import {getUserPrefObs, getUserPrefsObs} from 'app/client/models/UserPrefs';
|
||||||
import {bundleChanges, Computed, Disposable, Observable, subscribe} from 'grainjs';
|
import {bundleChanges, Computed, Disposable, Observable, subscribe} from 'grainjs';
|
||||||
|
|
||||||
const t = makeT('models.AppModel');
|
const t = makeT('AppModel');
|
||||||
|
|
||||||
// Reexported for convenience.
|
// Reexported for convenience.
|
||||||
export {reportError} from 'app/client/models/errors';
|
export {reportError} from 'app/client/models/errors';
|
||||||
|
@ -29,7 +29,7 @@ import {makeT} from 'app/client/lib/localization';
|
|||||||
|
|
||||||
// tslint:disable:no-console
|
// tslint:disable:no-console
|
||||||
|
|
||||||
const t = makeT('models.DocPageModel');
|
const t = makeT('DocPageModel');
|
||||||
|
|
||||||
export interface DocInfo extends Document {
|
export interface DocInfo extends Document {
|
||||||
isReadonly: boolean;
|
isReadonly: boolean;
|
||||||
|
@ -12,7 +12,7 @@ import {ANONYMOUS_USER_EMAIL, Document, EVERYONE_EMAIL, FullUser, getRealAccess,
|
|||||||
import {computed, Computed, Disposable, obsArray, ObsArray, observable, Observable} from 'grainjs';
|
import {computed, Computed, Disposable, obsArray, ObsArray, observable, Observable} from 'grainjs';
|
||||||
import some = require('lodash/some');
|
import some = require('lodash/some');
|
||||||
|
|
||||||
const t = makeT('models.UserManagerModel');
|
const t = makeT('UserManagerModel');
|
||||||
|
|
||||||
export interface UserManagerModel {
|
export interface UserManagerModel {
|
||||||
initData: PermissionData; // PermissionData used to initialize the UserManager
|
initData: PermissionData; // PermissionData used to initialize the UserManager
|
||||||
|
@ -10,7 +10,7 @@ import {BindableValue, Computed, Disposable, dom, Observable, onKeyDown, styled}
|
|||||||
import {defaultMenuOptions, IOpenController, setPopupToCreateDom} from 'popweasel';
|
import {defaultMenuOptions, IOpenController, setPopupToCreateDom} from 'popweasel';
|
||||||
import {makeT} from 'app/client/lib/localization';
|
import {makeT} from 'app/client/lib/localization';
|
||||||
|
|
||||||
const t = makeT('ui2018.ColorSelect');
|
const t = makeT('ColorSelect');
|
||||||
|
|
||||||
export interface StyleOptions {
|
export interface StyleOptions {
|
||||||
textColor: ColorOption,
|
textColor: ColorOption,
|
||||||
|
@ -14,7 +14,7 @@ import { cssLink } from 'app/client/ui2018/links';
|
|||||||
import { BindableValue, dom, Observable, styled } from 'grainjs';
|
import { BindableValue, dom, Observable, styled } from 'grainjs';
|
||||||
import { tooltip } from 'popweasel';
|
import { tooltip } from 'popweasel';
|
||||||
|
|
||||||
const t = makeT('ui2018.breadcrumbs');
|
const t = makeT('breadcrumbs');
|
||||||
|
|
||||||
export const cssBreadcrumbs = styled('div', `
|
export const cssBreadcrumbs = styled('div', `
|
||||||
color: ${theme.lightText};
|
color: ${theme.lightText};
|
||||||
|
@ -11,7 +11,7 @@ import { BindableValue, Computed, dom, DomElementArg, DomElementMethod, IDomArgs
|
|||||||
MaybeObsArray, MutableObsArray, Observable, styled } from 'grainjs';
|
MaybeObsArray, MutableObsArray, Observable, styled } from 'grainjs';
|
||||||
import * as weasel from 'popweasel';
|
import * as weasel from 'popweasel';
|
||||||
|
|
||||||
const t = makeT('ui2018.menus');
|
const t = makeT('menus');
|
||||||
|
|
||||||
export interface IOptionFull<T> {
|
export interface IOptionFull<T> {
|
||||||
value: T;
|
value: T;
|
||||||
|
@ -12,7 +12,7 @@ import {Computed, Disposable, dom, DomContents, DomElementArg, input, keyframes,
|
|||||||
MultiHolder, Observable, styled} from 'grainjs';
|
MultiHolder, Observable, styled} from 'grainjs';
|
||||||
import {cssMenuElem} from 'app/client/ui2018/menus';
|
import {cssMenuElem} from 'app/client/ui2018/menus';
|
||||||
|
|
||||||
const t = makeT('ui2018.modals');
|
const t = makeT('modals');
|
||||||
|
|
||||||
// IModalControl is passed into the function creating the body of the modal.
|
// IModalControl is passed into the function creating the body of the modal.
|
||||||
export interface IModalControl {
|
export interface IModalControl {
|
||||||
|
@ -8,7 +8,7 @@ import { hoverTooltip } from 'app/client/ui/tooltips';
|
|||||||
import { menu, menuItem, menuText } from "app/client/ui2018/menus";
|
import { menu, menuItem, menuText } from "app/client/ui2018/menus";
|
||||||
import { dom, domComputed, DomElementArg, makeTestId, observable, Observable, styled } from "grainjs";
|
import { dom, domComputed, DomElementArg, makeTestId, observable, Observable, styled } from "grainjs";
|
||||||
|
|
||||||
const t = makeT('ui2018.pages');
|
const t = makeT('pages');
|
||||||
|
|
||||||
const testId = makeTestId('test-docpage-');
|
const testId = makeTestId('test-docpage-');
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ import debounce = require('lodash/debounce');
|
|||||||
|
|
||||||
export * from 'app/client/models/SearchModel';
|
export * from 'app/client/models/SearchModel';
|
||||||
|
|
||||||
const t = makeT('ui2018.search');
|
const t = makeT('search');
|
||||||
|
|
||||||
const EXPAND_TIME = .5;
|
const EXPAND_TIME = .5;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user