Remove prefix from translations keys

This commit is contained in:
Louis Delbosc 2022-12-09 16:46:03 +01:00
parent 1d97137f11
commit 676c27d6c9
28 changed files with 28 additions and 28 deletions

View File

@ -55,7 +55,7 @@ import {
import {makeT} from 'app/client/lib/localization';
import isEqual = require('lodash/isEqual');
const t = makeT('aclui.AccessRules');
const t = makeT('AccessRules');
// tslint:disable:max-classes-per-file no-console

View File

@ -15,7 +15,7 @@ import {makeT} from 'app/client/lib/localization';
// One of the strings 'read', 'update', etc.
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.

View File

@ -47,7 +47,7 @@ const state = {
DEFAULT: 'default'
};
const t = makeT('components.ActionLog');
const t = makeT('ActionLog');
export class ActionLog extends dispose.Disposable implements IDomComponent {

View File

@ -50,7 +50,7 @@ const DONUT_DEFAULT_TEXT_SIZE = 24;
const testId = makeTestId('test-chart-');
const t = makeT('components.ChartView');
const t = makeT('ChartView');
function isPieLike(chartType: string) {
return ['pie', 'donut'].includes(chartType);

View File

@ -9,7 +9,7 @@ import {makeT} from 'app/client/lib/localization';
const hljs = require('highlight.js/lib/core');
hljs.registerLanguage('python', require('highlight.js/lib/languages/python'));
const t = makeT('components.CodeEditorPanel');
const t = makeT('CodeEditorPanel');
export class CodeEditorPanel extends DisposableWithEvents {
private _schema = Observable.create(this, '');

View File

@ -16,7 +16,7 @@ import {makeT} from 'app/client/lib/localization';
const testId = makeTestId('test-raw-data-');
const t = makeT('components.DataTables');
const t = makeT('DataTables');
export class DataTables extends Disposable {
private _tables: Observable<TableRec[]>;

View File

@ -13,7 +13,7 @@ import {canUpgradeOrg} from 'app/common/roles';
import {Computed, Disposable, dom, DomContents, DomElementArg, makeTestId, styled} from 'grainjs';
import {makeT} from 'app/client/lib/localization';
const t = makeT('components.DocumentUsage');
const t = makeT('DocumentUsage');
const testId = makeTestId('test-doc-usage-');

View File

@ -87,7 +87,7 @@ import * as ko from 'knockout';
import cloneDeepWith = require('lodash/cloneDeepWith');
import isEqual = require('lodash/isEqual');
const t = makeT('components.GristDoc');
const t = makeT('GristDoc');
const G = getBrowserGlobals('document', 'window');

View File

@ -36,7 +36,7 @@ import {labeledSquareCheckbox} from 'app/client/ui2018/checkbox';
import {ACCESS_DENIED, AUTH_INTERRUPTED, canReadPrivateFiles, getGoogleCodeForReading} from 'app/client/ui/googleAuth';
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

View File

@ -7,7 +7,7 @@ import { PluginInstance } from 'app/common/PluginInstance';
import { RenderTarget } from 'app/plugin/RenderOptions';
import { Disposable, dom, DomContents, Observable, styled } from 'grainjs';
const t = makeT('components.PluginScreen');
const t = makeT('PluginScreen');
/**
* Rendering options for the PluginScreen modal.

View File

@ -41,7 +41,7 @@ var {menu} = require('../ui2018/menus');
var {testId} = require('app/client/ui2018/cssVars');
var {contextMenu} = require('app/client/ui/contextMenu');
const t = makeT('components.RecordLayout');
const t = makeT('RecordLayout');
/**
* Construct a RecordLayout.

View File

@ -6,7 +6,7 @@ var {makeT} = require('app/client/lib/localization');
var commands = require('./commands');
var LayoutEditor = require('./LayoutEditor');
const t = makeT('components.RecordLayoutEditor');
const t = makeT('RecordLayoutEditor');
const {basicButton, cssButton, primaryButton} = require('app/client/ui2018/buttons');
const {icon} = require('app/client/ui2018/icons');
const {menu, menuDivider, menuItem} = require('app/client/ui2018/menus');

View File

@ -14,7 +14,7 @@ import ko from 'knockout';
import {menu, menuItem} from 'popweasel';
import {makeT} from 'app/client/lib/localization';
const t = makeT('components.RefSelect');
const t = makeT('RefSelect');
interface Item {
label: string;

View File

@ -16,7 +16,7 @@ import ko from 'knockout';
import {Computed, Disposable, dom, makeTestId, Observable, styled, subscribe} from 'grainjs';
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.

View File

@ -19,7 +19,7 @@ import {UserAction} from 'app/common/DocActions';
import {Computed, dom, fromKo, Observable} from 'grainjs';
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).
/* eslint-disable @typescript-eslint/member-ordering */

View File

@ -7,7 +7,7 @@ var kf = require('../lib/koForm');
var AceEditor = require('./AceEditor');
var {makeT} = require('app/client/lib/localization');
const t = makeT('components.ValidationPanel');
const t = makeT('ValidationPanel');
/**
* Document level configuration settings.

View File

@ -19,7 +19,7 @@ const {makeT} = require('app/client/lib/localization');
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.

View File

@ -15,7 +15,7 @@ import zip = require('lodash/zip');
import zipObject = require('lodash/zipObject');
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.
export async function duplicatePage(gristDoc: GristDoc, pageId: number) {

View File

@ -18,7 +18,7 @@ import {createUserImage, cssUserImage} from "app/client/ui/UserImage";
import {Computed, computed, dom, DomElementArg, Holder, IDisposableOwner, Observable, styled} from "grainjs";
import {cssMenuItem} from "popweasel";
const t = makeT('lib.ACUserManager');
const t = makeT('ACUserManager');
export interface ACUserItem extends ACItem {
value: string;

View File

@ -24,7 +24,7 @@ import {getOrgName, Organization, OrgError, UserAPI, UserAPIImpl} from 'app/comm
import {getUserPrefObs, getUserPrefsObs} from 'app/client/models/UserPrefs';
import {bundleChanges, Computed, Disposable, Observable, subscribe} from 'grainjs';
const t = makeT('models.AppModel');
const t = makeT('AppModel');
// Reexported for convenience.
export {reportError} from 'app/client/models/errors';

View File

@ -29,7 +29,7 @@ import {makeT} from 'app/client/lib/localization';
// tslint:disable:no-console
const t = makeT('models.DocPageModel');
const t = makeT('DocPageModel');
export interface DocInfo extends Document {
isReadonly: boolean;

View File

@ -12,7 +12,7 @@ import {ANONYMOUS_USER_EMAIL, Document, EVERYONE_EMAIL, FullUser, getRealAccess,
import {computed, Computed, Disposable, obsArray, ObsArray, observable, Observable} from 'grainjs';
import some = require('lodash/some');
const t = makeT('models.UserManagerModel');
const t = makeT('UserManagerModel');
export interface UserManagerModel {
initData: PermissionData; // PermissionData used to initialize the UserManager

View File

@ -10,7 +10,7 @@ import {BindableValue, Computed, Disposable, dom, Observable, onKeyDown, styled}
import {defaultMenuOptions, IOpenController, setPopupToCreateDom} from 'popweasel';
import {makeT} from 'app/client/lib/localization';
const t = makeT('ui2018.ColorSelect');
const t = makeT('ColorSelect');
export interface StyleOptions {
textColor: ColorOption,

View File

@ -14,7 +14,7 @@ import { cssLink } from 'app/client/ui2018/links';
import { BindableValue, dom, Observable, styled } from 'grainjs';
import { tooltip } from 'popweasel';
const t = makeT('ui2018.breadcrumbs');
const t = makeT('breadcrumbs');
export const cssBreadcrumbs = styled('div', `
color: ${theme.lightText};

View File

@ -11,7 +11,7 @@ import { BindableValue, Computed, dom, DomElementArg, DomElementMethod, IDomArgs
MaybeObsArray, MutableObsArray, Observable, styled } from 'grainjs';
import * as weasel from 'popweasel';
const t = makeT('ui2018.menus');
const t = makeT('menus');
export interface IOptionFull<T> {
value: T;

View File

@ -12,7 +12,7 @@ import {Computed, Disposable, dom, DomContents, DomElementArg, input, keyframes,
MultiHolder, Observable, styled} from 'grainjs';
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.
export interface IModalControl {

View File

@ -8,7 +8,7 @@ import { hoverTooltip } from 'app/client/ui/tooltips';
import { menu, menuItem, menuText } from "app/client/ui2018/menus";
import { dom, domComputed, DomElementArg, makeTestId, observable, Observable, styled } from "grainjs";
const t = makeT('ui2018.pages');
const t = makeT('pages');
const testId = makeTestId('test-docpage-');

View File

@ -17,7 +17,7 @@ import debounce = require('lodash/debounce');
export * from 'app/client/models/SearchModel';
const t = makeT('ui2018.search');
const t = makeT('search');
const EXPAND_TIME = .5;