Add fr translation and fix some translation on the go

This commit is contained in:
Louis Delbosc
2022-12-19 19:53:26 +01:00
parent c18c6cb264
commit 78a1c2d890
7 changed files with 637 additions and 653 deletions

View File

@@ -1396,7 +1396,7 @@ class ObsRulePart extends Disposable {
placeholder: dom.text((use) => {
return (
this._ruleSet.isSoleCondition(use, this) ? t('Everyone') :
this._ruleSet.isLastCondition(use, this) ? t('EveryoneElse') :
this._ruleSet.isLastCondition(use, this) ? t('Everyone Else') :
t('EnterCondition')
);
}),
@@ -1445,7 +1445,7 @@ class ObsRulePart extends Disposable {
wide ? cssCell4.cls('') : null,
this._memoEditor = aclMemoEditor(this._memo,
{
placeholder: t('MemoEditorPlaceholder'),
placeholder: t("Type a message..."),
},
dom.onKeyDown({
// Match the behavior of the formula editor.

View File

@@ -93,13 +93,13 @@ RecordLayoutEditor.prototype.buildEditorDom = function() {
};
return cssControls(
basicButton(t('AddField'), cssCollapseIcon('Collapse'),
basicButton(t('Add Field'), cssCollapseIcon('Collapse'),
menu((ctl) => [
menuItem(() => addNewField(), t('CreateNewField')),
menuItem(() => addNewField(), t('Create New Field')),
dom.maybe((use) => use(this._hiddenColumns).length > 0,
() => menuDivider()),
dom.forEach(this._hiddenColumns, (col) =>
menuItem(() => showField(col), t("ShowField", {label:col.label()}))
menuItem(() => showField(col), t("Show field {{- label}}", {label:col.label()}))
),
testId('edit-layout-add-menu'),
]),
@@ -113,7 +113,7 @@ RecordLayoutEditor.prototype.buildEditorDom = function() {
RecordLayoutEditor.prototype.buildFinishButtons = function() {
return [
primaryButton(t('SaveLayout'),
primaryButton(t('Save Layout'),
dom.on('click', () => commands.allCommands.accept.run()),
),
basicButton(t('Cancel'),

View File

@@ -293,8 +293,8 @@ function buildOtherSites(home: HomeModel) {
const siteName = home.app.currentOrgName;
return [
dom('div',
personal ? t("You are on the {{siteName}} site. You also have access to the following sites:", {siteName}) :
t("You are on your personal site. You also have access to the following sites:"),
personal ? t("You are on your personal site. You also have access to the following sites:") :
t("You are on the {{siteName}} site. You also have access to the following sites:", {siteName}),
testId('other-sites-message')
),
css.otherSitesButtons(
@@ -306,7 +306,7 @@ function buildOtherSites(home: HomeModel) {
)
),
testId('other-sites-buttons')
)
),
];
})
);

View File

@@ -47,7 +47,7 @@ export async function replaceTrunkWithFork(user: FullUser|null, doc: Document, a
buttonText = t("Overwrite");
warningText = `${warningText} ${t("It will be overwritten, losing any content not in this document.")}`;
} else if (cmp.summary === 'same') {
titleText = 'Original Looks Identical';
titleText = t('Original Looks Identical');
warningText = `${warningText} ${t("However, it appears to be already identical.")}`;
}
confirmModal(titleText, buttonText,

View File

@@ -65,16 +65,16 @@ export function showWelcomeQuestions(userPrefsObs: Observable<UserPrefs>): boole
}
const choices: Array<{icon: IconName, color: string, textKey: string}> = [
{icon: 'UseProduct', color: `${colors.lightGreen}`, textKey: 'ProductDevelopment' },
{icon: 'UseFinance', color: '#0075A2', textKey: 'FinanceAccounting' },
{icon: 'UseMedia', color: '#F7B32B', textKey: 'MediaProduction' },
{icon: 'UseMonitor', color: '#F2545B', textKey: 'ITTechnology' },
{icon: 'UseChart', color: '#7141F9', textKey: 'Marketing' },
{icon: 'UseScience', color: '#231942', textKey: 'Research' },
{icon: 'UseSales', color: '#885A5A', textKey: 'Sales' },
{icon: 'UseEducate', color: '#4A5899', textKey: 'Education' },
{icon: 'UseHr', color: '#688047', textKey: 'HRManagement' },
{icon: 'UseOther', color: '#929299', textKey: 'Other' },
{icon: 'UseProduct', color: `${colors.lightGreen}`, textKey: 'Product Development' },
{icon: 'UseFinance', color: '#0075A2', textKey: 'Finance & Accounting' },
{icon: 'UseMedia', color: '#F7B32B', textKey: 'Media Production' },
{icon: 'UseMonitor', color: '#F2545B', textKey: 'IT & Technology' },
{icon: 'UseChart', color: '#7141F9', textKey: 'Marketing' },
{icon: 'UseScience', color: '#231942', textKey: 'Research' },
{icon: 'UseSales', color: '#885A5A', textKey: 'Sales' },
{icon: 'UseEducate', color: '#4A5899', textKey: 'Education' },
{icon: 'UseHr', color: '#688047', textKey: 'HR & Management' },
{icon: 'UseOther', color: '#929299', textKey: 'Other' },
];
function buildInfoForm(selection: Observable<boolean>[], otherText: Observable<string>) {