Skip to content

Commit

Permalink
chore: prepare translation
Browse files Browse the repository at this point in the history
fix #2
  • Loading branch information
sualko committed May 16, 2020
1 parent 6d0c3d6 commit e1da5eb
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
9 changes: 9 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -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
Empty file added l10n/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<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>
8 changes: 4 additions & 4 deletions ts/Manager/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions ts/Manager/NewRoomForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
};
Expand Down
2 changes: 1 addition & 1 deletion ts/Manager/RoomRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down
2 changes: 0 additions & 2 deletions ts/filelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e1da5eb

Please # to comment.