chore: prepare translation

fix #2
pull/36/head
sualko 2020-05-16 14:44:21 +02:00
parent 6d0c3d65a3
commit e1da5ebffc
7 changed files with 18 additions and 11 deletions

9
.tx/config Normal file
View File

@ -0,0 +1,9 @@
[main]
host = https://www.transifex.com
lang_map = bg_BG: bg, cs_CZ: cs, fi_FI: fi, hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja
[nextcloud.bbb]
file_filter = translationfiles/<lang>/bbb.po
source_file = translationfiles/templates/bbb.pot
source_lang = en
type = PO

0
l10n/.gitkeep Normal file
View File

View File

@ -9,8 +9,8 @@ script('bbb', 'admin');
<h2>BigBlueButton</h2>
<form>
<input type="url" name="api.url" value="<?php p($_['api.url']); ?>" placeholder="API url" pattern="https://.*" />
<input type="password" name="api.secret" value="<?php p($_['api.secret']); ?>" placeholder="API secret" />
<input type="url" name="api.url" value="<?php p($_['api.url']); ?>" placeholder="<?php p($l->t('API url')); ?>" pattern="https://.*" />
<input type="password" name="api.secret" value="<?php p($_['api.secret']); ?>" placeholder="<?php p($l->t('API secret')); ?>" />
<input type="submit" value="<?php p($l->t('Save')); ?>" />
</form>
</div>

View File

@ -98,16 +98,16 @@ const App: React.FC<Props> = () => {
<th />
<th />
<th onClick={() => onOrderBy('name')}>
Name <SortArrow name='name' value={orderBy} direction={sortOrder} />
{t('bbb', 'Name')} <SortArrow name='name' value={orderBy} direction={sortOrder} />
</th>
<th onClick={() => onOrderBy('welcome')}>
Welcome <SortArrow name='welcome' value={orderBy} direction={sortOrder} />
{t('bbb', 'Welcome')} <SortArrow name='welcome' value={orderBy} direction={sortOrder} />
</th>
<th onClick={() => onOrderBy('maxParticipants')}>
Max <SortArrow name='maxParticipants' value={orderBy} direction={sortOrder} />
{t('bbb', 'Max')} <SortArrow name='maxParticipants' value={orderBy} direction={sortOrder} />
</th>
<th onClick={() => onOrderBy('record')}>
Record <SortArrow name='record' value={orderBy} direction={sortOrder} />
{t('bbb', 'Record')} <SortArrow name='record' value={orderBy} direction={sortOrder} />
</th>
<th />
</tr>

View File

@ -20,10 +20,10 @@ const NewRoomForm: React.FC<Props> = (props) => {
<input
className="newgroup-name"
value={name}
placeholder="Room name"
placeholder={t('bbb', 'Room name')}
onChange={(event) => {setName(event.target.value);}} />
<input type="submit" value="Create" />
<input type="submit" value={t('bbb', 'Create')} />
</form>
);
};

View File

@ -96,7 +96,7 @@ const RoomRow: React.FC<Props> = (props) => {
<td className="remove icon-col">
<a className="icon icon-delete icon-visible"
onClick={deleteRow as any}
title="Delete" />
title={t('bbb', 'Delete')} />
</td>
</tr>
);

View File

@ -74,8 +74,6 @@ $(() => {
const createResponse = await axios.post(url, {
path,
shareType: OC.Share.SHARE_TYPE_LINK,
note: 'foobar foobar foobar',
expireDate: '2020-07-01',
});
const { meta, data } = createResponse.data.ocs;