Use brand name from config in all strings
This commit is contained in:
parent
bb5107a60b
commit
9085627a28
30 changed files with 325 additions and 160 deletions
|
@ -66,7 +66,10 @@ const customVariables = {
|
|||
},
|
||||
'App Version': {
|
||||
id: 2,
|
||||
expl: _td('The version of Riot'),
|
||||
expl: _td('The version of %(brand)s'),
|
||||
getTextVariables: () => ({
|
||||
brand: SdkConfig.get().brand,
|
||||
}),
|
||||
example: '15.0.0',
|
||||
},
|
||||
'User Type': {
|
||||
|
@ -96,7 +99,10 @@ const customVariables = {
|
|||
},
|
||||
'Touch Input': {
|
||||
id: 8,
|
||||
expl: _td("Whether you're using Riot on a device where touch is the primary input mechanism"),
|
||||
expl: _td("Whether you're using %(brand)s on a device where touch is the primary input mechanism"),
|
||||
getTextVariables: () => ({
|
||||
brand: SdkConfig.get().brand,
|
||||
}),
|
||||
example: 'false',
|
||||
},
|
||||
'Breadcrumbs': {
|
||||
|
@ -106,7 +112,10 @@ const customVariables = {
|
|||
},
|
||||
'Installed PWA': {
|
||||
id: 10,
|
||||
expl: _td("Whether you're using Riot as an installed Progressive Web App"),
|
||||
expl: _td("Whether you're using %(brand)s as an installed Progressive Web App"),
|
||||
getTextVariables: () => ({
|
||||
brand: SdkConfig.get().brand,
|
||||
}),
|
||||
example: 'false',
|
||||
},
|
||||
};
|
||||
|
@ -356,12 +365,17 @@ class Analytics {
|
|||
Modal.createTrackedDialog('Analytics Details', '', ErrorDialog, {
|
||||
title: _t('Analytics'),
|
||||
description: <div className="mx_AnalyticsModal">
|
||||
<div>
|
||||
{ _t('The information being sent to us to help make Riot better includes:') }
|
||||
</div>
|
||||
<div>{_t('The information being sent to us to help make %(brand)s better includes:', {
|
||||
brand: SdkConfig.get().brand,
|
||||
})}</div>
|
||||
<table>
|
||||
{ rows.map((row) => <tr key={row[0]}>
|
||||
<td>{ _t(customVariables[row[0]].expl) }</td>
|
||||
<td>{_t(
|
||||
customVariables[row[0]].expl,
|
||||
customVariables[row[0]].getTextVariables ?
|
||||
customVariables[row[0]].getTextVariables() :
|
||||
null,
|
||||
)}</td>
|
||||
{ row[1] !== undefined && <td><code>{ row[1] }</code></td> }
|
||||
</tr>) }
|
||||
{ otherVariables.map((item, index) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue