Welcome to mirror list, hosted at ThFree Co, Russian Federation.

translationcontroller.php « controller - github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30138949ccb580eae2efb58f00ed9bcca6004081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<?php
/**
 * Nextcloud - passman
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Sander Brand <brantje@gmail.com>
 * @copyright Sander Brand 2016
 */

namespace OCA\Passman\Controller;

use OCP\IRequest;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\ApiController;
use OCP\IL10N;

class TranslationController extends ApiController {
	private $trans;

	public function __construct($AppName,
								IRequest $request,
								IL10N $trans
	) {
		parent::__construct($AppName, $request);
		$this->trans = $trans;
	}


	/**
	 * @NoAdminRequired
	 * @NoCSRFRequired
	 * @PublicPage
	 */
	public function getLanguageStrings($lang) {
		$translations = array(
			// js/app/controllers/bookmarklet.js
			'generating.sharing.keys' =>  $this->trans->t('Generating sharing keys ( %step / 2)'),
			'invalid.vault.key' => $this->trans->t('Incorrect vault password!'),
			'password.do.not.match' => $this->trans->t('Passwords do not match'),
			'general' => $this->trans->t('General'),
			'custom.fields' => $this->trans->t('Custom Fields'),
			'error.no.label' => $this->trans->t('Please fill in a label!'),
			'error.no.value' => $this->trans->t('Please fill in a value!'),
			'error.loading.file' => $this->trans->t('Error loading file'),

			// js/app/controllers/credential.js
			'error.decrypt' => $this->trans->t('An error happend during decryption'),
			'credential.created' => $this->trans->t('Credential created!'),
			'credential.deleted' => $this->trans->t('Credential deleted'),
			'credential.updated' => $this->trans->t('Credential updated'),
			'credential.recovered' => $this->trans->t('Credential recovered'),
			'credential.destroyed' => $this->trans->t('Credential recovered'),
			'error.loading.file.perm' => $this->trans->t('Error downloading file, you probably don\'t have enough permissions'),

			// js/app/controllers/edit_credential.js


			// js/app/controllers/export.js
			'export.starting' => $this->trans->t('Starting export'),
			'export.decrypt' => $this->trans->t('Decrypting credentials'),
			'done' => $this->trans->t('Done'),

			// js/app/controllers/import.js
			'import.file.read' => $this->trans->t('File read successfully!'),

			'import.no.label' => $this->trans->t('Credential has no label, skipping'),
			'import.adding' => $this->trans->t('Adding {{credential}}'),
			'import.added' => $this->trans->t('Added {{credential}}'),
			'import.loaded' => $this->trans->t('Parsed {{num}} credentials, starting to import'),

			// js/app/controllers/revision.js
			'revision.deleted' => $this->trans->t('Revision deleted'),
			'revision.restored' => $this->trans->t('Revision restored'),

			// js/app/controllers/settings.js
			'bookmarklet.text' => $this->trans->t('Save in passman'),
			'settings.saved' => $this->trans->t('Settings saved'),
			'settings.general' => $this->trans->t('General settings'),
			'settings.audit' => $this->trans->t('Password Audit'),
			'settings.password' => $this->trans->t('Password settings'),
			'settings.import' => $this->trans->t('Import credentials'),
			'settings.export' => $this->trans->t('Export credentials'),
			'settings.sharing' => $this->trans->t('Sharing'),
			'changepw.navigate.away.warning' => $this->trans->t('Are you sure you want to leave? This WILL corrupt all your credentials'),
			'incorrect.password' => $this->trans->t('Your old password is incorrect!'),
			'password.no.match' => $this->trans->t('New passwords do not match!'),
			'login.new.pass' => $this->trans->t('Please login with your new vault password'),

			// js/app/controllers/share.js
			'share.u.g' => $this->trans->t('Share with users and groups'),
			'share.link' => $this->trans->t('Share link'),
			'share.navigate.away.warning' => $this->trans->t('Are you sure you want to leave? This will corrupt this credential'),
			'credential.unshared' => $this->trans->t('Credential unshared'),
			'credential.shared' => $this->trans->t('Credential shared'),
			'saved' => $this->trans->t('Saved!'),

			// js/app/directives/credentialfield.js
			'toggle.visibility' => $this->trans->t('Toggle visibility'),
			'copy.field' => $this->trans->t('Copy to clipboard'),
			'copied' => $this->trans->t('Copied to clipboard!'),

			// js/app/directives/passwordgen.js
			'password.gen' => $this->trans->t('Generate password'),
			'password.copy' => $this->trans->t('Copy password to clipboard'),
			'password.copied' => $this->trans->t('Password copied to clipboard!'),

			// js/app/directives/progressbar.js
			'complete' => $this->trans->t('Complete'),


			// templates/views/partials/edit_credential/basics.html
			'username' => $this->trans->t('Username'),
			'password.r' => $this->trans->t('Repeat password'),
			'add.tag' => $this->trans->t('Add Tag'),

			// templates/views/partials/edit_credential/custom_fields.html
			'field.label' => $this->trans->t('Field label'),
			'field.value' => $this->trans->t('Field value'),
			'select.file' => $this->trans->t('Choose a file'),
			'text' => $this->trans->t('Text'),
			'file' => $this->trans->t('File'),
			'add' => $this->trans->t('Add'),
			'value' => $this->trans->t('Value'),
			'type' => $this->trans->t('Type'),
			'actions' => $this->trans->t('Actions'),
			'empty' => $this->trans->t('Empty'),

			// templates/views/partials/edit_credential/files.html
			'file.name' => $this->trans->t('Filename'),
			'upload.date' => $this->trans->t('Upload date'),
			'size' => $this->trans->t('Size'),


			// templates/views/partials/edit_credential/otp.html
			'upload.qr' => $this->trans->t('Upload your OTP qr code'),
			'current.qr' => $this->trans->t('Current OTP settings'),
			'issuer' => $this->trans->t('Issuer'),
			'secret' => $this->trans->t('Secret'),


			// templates/views/partials/edit_credential/password.html
			'expire.date' => $this->trans->t('Expire date'),
			'no.expire.date' => $this->trans->t('No expire date set'),
			'renew.interval' => $this->trans->t('Renew interval'),
			'disabled' => $this->trans->t('Disabled'),
			'days' => $this->trans->t('Day(s)'),
			'weeks' => $this->trans->t('Week(s)'),
			'months' => $this->trans->t('Month(s)'),
			'years' => $this->trans->t('Year(s)'),
			'generation.settings' => $this->trans->t('Password generation settings'),
			'password.generation.length' => $this->trans->t('Password length'),
			'password.generation.min_digits' => $this->trans->t('Minimum amount of digits'),
			'password.generation.uppercase' => $this->trans->t('Use uppercase letters'),
			'password.generation.lowercase' => $this->trans->t('Use lowercase letters'),
			'password.generation.digits' => $this->trans->t('Use numbers'),
			'password.generation.special' => $this->trans->t('Use special characters'),
			'password.generation.ambiguous' => $this->trans->t('Avoid ambiguous characters'),
			'password.generation.require_same' => $this->trans->t('Require every character type'),


			// templates/views/partials/forms/settings/export.html
			'export.type' => $this->trans->t('Export type'),
			'export' => $this->trans->t('Export'),

			// templates/views/partials/forms/settings/general_settings.html
			'rename.vault' => $this->trans->t('Rename vault'),
			'rename.vault.name' => $this->trans->t('New vault name'),
			'change' => $this->trans->t('Change'),
			'change.vault.key' => $this->trans->t('Change vault key'),
			'old.vault.password' => $this->trans->t('Old vault password'),
			'new.vault.password' => $this->trans->t('New vault password'),
			'new.vault.pw.r' => $this->trans->t('New vault password repeat'),
			'warning.leave' => $this->trans->t('Please wait your vault is being updated, do not leave this page.'),
			'processing' => $this->trans->t('Processing'),
			'total.progress' => $this->trans->t('Total progress'),
			'about.passman' => $this->trans->t('About Passman'),
			'version' => $this->trans->t('Version'),
			'donate.support' => $this->trans->t('Donate to support development'),
			'bookmarklet' => $this->trans->t('Bookmarklet'),
			'bookmarklet.info1' => $this->trans->t('Save your passwords with 1 click!'),
			'bookmarklet.info2' => $this->trans->t('Drag below button to your bookmark toolbar.'),


			// templates/views/partials/forms/settings/import.html
			'import.type' => $this->trans->t('Import type'),
			'import' => $this->trans->t('Import'),
			'read.progress' => $this->trans->t('Read progress'),
			'upload.progress' => $this->trans->t('Upload progress'),

			// templates/views/partials/forms/settings/password_settings.html
			// inherent from other pages

			// templates/views/partials/forms/settings/sharing.html
			'priv.key' => $this->trans->t('Private Key'),
			'pub.key' => $this->trans->t('Public key'),
			'key.size' => $this->trans->t('Key size'),
			'save.keys' => $this->trans->t('Save keys'),
			'gen.keys' => $this->trans->t('Generate sharing keys'),
			'generating.keys' => $this->trans->t('Generating sharing keys'),

			// templates/views/partials/forms/settings/tool.html
			'tool.intro' => $this->trans->t('The password tool will scan your password, calculate the avarage crack time and, if below the threshold, show them'),
			'min.strength' => $this->trans->t('Minimum password stength'),
			'scan.result.msg' => $this->trans->t('Passman scanned your passwords, and here is the result.'),
			'scan.result' => $this->trans->t('A total of {{scan_result}} weak credentials.'),
			'score' => $this->trans->t('Score'),
			'action' => $this->trans->t('Action'),

			// templates/vieuws/partials/forms/share_credential/basics.html
			'search.u.g' => $this->trans->t('Search users or groups...'),
			'cyphering' => $this->trans->t('Cyphering'),
			'uploading' => $this->trans->t('Uploading'),
			'user' => $this->trans->t('User'),
			'crypto.time' => $this->trans->t('Crypto time'),
			'crypto.total.time' => $this->trans->t('Total time spent cyphering'),
			'perm.read' => $this->trans->t('Read'),
			'perm.write' => $this->trans->t('Write'),
			'perm.files' => $this->trans->t('Files'),
			'perm.revisions' => $this->trans->t('Revisions'),
			'pending' => $this->trans->t('Pending'),


			// templates/vieuws/partials/forms/share_credential/link_sharing.html
			'enable.link.sharing' => $this->trans->t('Enable link sharing'),
			'share.until.date' => $this->trans->t('Share until date'),
			'expire.views' => $this->trans->t('Expire after views'),
			'click.share' => $this->trans->t('Click share first'),
			'show.files' => $this->trans->t('Show files'),


			// templates/views/partials/password-meter.html
			'details' => $this->trans->t('Details'),
			'hide.details' => $this->trans->t('Hide details'),
			'password.score' => $this->trans->t('Password score'),
			'cracking.times' => $this->trans->t('Cracking times'),
			'cracking.time.100h' => $this->trans->t('100 / hour'),
			'cracking.time.100h.desc' => $this->trans->t('Throttled online attack'),
			'cracking.time.10s' => $this->trans->t('10 / second'),
			'cracking.time.10s.desc' => $this->trans->t('Unthrottled online attack'),
			'cracking.time.10ks' => $this->trans->t('10k / second'),
			'cracking.time.10ks.desc' => $this->trans->t('Offline attack, slow hash, many cores'),
			'cracking.time.10Bs' => $this->trans->t('10B / second'),
			'cracking.time.10Bs.desc' => $this->trans->t('Offline attack, fast hash, many cores'),
			'match.sequence' => $this->trans->t('Match sequence'),
			'match.sequence.link' => $this->trans->t('See match sequence'),
			'pattern' => $this->trans->t('Pattern'),
			'matched.word' => $this->trans->t('Matched word'),
			'dictionary.name' => $this->trans->t('Dictionary name'),
			'rank' => $this->trans->t('Rank'),
			'reversed' => $this->trans->t('Reversed'),
			'guesses' => $this->trans->t('Guesses'),
			'base.guesses' => $this->trans->t('Base guesses'),
			'uppercase.variations' => $this->trans->t('Uppercase variations'),
			'leet.variations' => $this->trans->t('l33t-variations'),

			// templates/views/credential_revisions.html
			'showing.revisions' => $this->trans->t('Showing revisions of'),
			'revision.of' => $this->trans->t('Revision of'),
			'revision.edited.by' => $this->trans->t('by'),
			'no.revisions' => $this->trans->t('No revisions found.'),
			'label' => $this->trans->t('Label'),
			'restore.revision' => $this->trans->t('Restore revision'),
			'delete.revision' => $this->trans->t('Delete revision'),

			// templates/views/edit_credential.html
			'edit.credential' => $this->trans->t('Edit credential'),
			'create.credential' => $this->trans->t('Create new credential'),
			'save' => $this->trans->t('Save'),
			'cancel' => $this->trans->t('Cancel'),

			// templates/views/settings.html
			'settings' => $this->trans->t('Settings'),

			// templates/views/share_credential.html
			'share.credential' => $this->trans->t('Share credential {{credential}}'),
			'unshare' => $this->trans->t('Unshare'),


			// templates/views/show_vault.html
			'deleted.since' => $this->trans->t('Showing deleted since'),
			'alltime' => $this->trans->t('All time'),
			'number.filtered' => $this->trans->t('Showing {{number_filtered}} of {{credential_number}} credentials'),
			'search.credential' => $this->trans->t('Search credential...'),
			'account' => $this->trans->t('Account'),
			'password' => $this->trans->t('Password'),
			'otp' => $this->trans->t('OTP'),
			'email' => $this->trans->t('E-mail'),
			'url' => $this->trans->t('URL'),
			'notes' => $this->trans->t('Notes'),
			'files' => $this->trans->t('Files'),
			'expire.time' => $this->trans->t('Expire time'),
			'changed' => $this->trans->t('Changed'),
			'created' => $this->trans->t('Created'),
			'edit' => $this->trans->t('Edit'),
			'delete' => $this->trans->t('Delete'),
			'share' => $this->trans->t('Share'),
			'revisions' => $this->trans->t('Revisions'),
			'recover' => $this->trans->t('Recover'),
			'destroy' => $this->trans->t('Destroy'),

			'sharereq.title' => $this->trans->t('You have incoming share requests.'),
			'sharereq.line1' => $this->trans->t('If you want to the credential in a other vault,'),
			'sharereq.line2' => $this->trans->t('logout of this vault and login to the vault you want the shared credential in.'),
			'permissions' => $this->trans->t('Permissions'),
			'received.from' => $this->trans->t('Received from'),
			'date' => $this->trans->t('Date'),
			'accept' => $this->trans->t('Accept'),
			'decline' => $this->trans->t('Decline'),

			// templates/views/vaults.html
			'last.access' => $this->trans->t('Last accessed'),
			'never' => $this->trans->t('Never'),
			'no.vaults' => $this->trans->t('No vaults found, why not create one?'),

			'new.vault.name' => $this->trans->t('Please give your new vault a name.'),
			'new.vault.pass' => $this->trans->t('Vault password'),
			'new.vault.passr' => $this->trans->t('Repeat vault password'),
			'new.vault.sharing_key_notice' => $this->trans->t('Your sharing key\'s will have a strength of 1024 bit, which you can change later in settings.'),
			'new.vault.create' => $this->trans->t('Create vault'),
			'go.back.vaults' => $this->trans->t('Go back to vaults'),
			'input.vault.password' => $this->trans->t('Please input the password for'),
			'vault.default' => $this->trans->t('Set this vault as default.'),
			'vault.auto.login' => $this->trans->t('Login automatically to this vault.'),
			'vault.decrypt' => $this->trans->t('Decrypt vault'),

			// templates/bookmarklet.php
			'http.warning' => $this->trans->t('Warning! Adding credentials over http can be insecure!'),
			'bm.active.vault' => $this->trans->t('Logged in to {{vault_name}}'),
			'change.vault' => $this->trans->t('Change vault'),

			// templates/main.php
			'deleted.credentials' => $this->trans->t('Deleted credentials'),
			'logout' => $this->trans->t('Logout'),
			'donate' => $this->trans->t('Donate'),

			// templates/public_share.php
			'share.page.text' => $this->trans->t('Someone has shared a credential with you.'),
			'share.page.link' => $this->trans->t('Click here to request it'),
			'share.page.link_loading' => $this->trans->t('Loading...'),
			'expired.share' => $this->trans->t('Awwhh.... credential not found. Maybe it expired'),

		);
		return new JSONResponse($translations);
	}
}