Skip to content

Commit 6502c1a

Browse files
author
Joonatan Mäkinen
committed
Improve token modal messages (merge commit)
Merge branch 'feature/improve-decryption-messaging' into 'main' * improve finnish decryption message wording * bump version message for Februaury * Improve token modal messages Closes #1254 See merge request https://gitlab.ci.csc.fi/sds-dev/sd-connect/swift-browser-ui/-/merge_requests/399 Reviewed-by: Joonatan Mäkinen <[email protected]> Approved-by: Joonatan Mäkinen <[email protected]> Co-authored-by: Sampsa Penna <[email protected]> Merged by Joonatan Mäkinen <[email protected]>
2 parents 184afc2 + 597f3cb commit 6502c1a

File tree

7 files changed

+31
-13
lines changed

7 files changed

+31
-13
lines changed

.github/config/.finnishwords.txt

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ aika
22
aikana
33
aina
44
ajaksi
5+
aktiiviset
56
alapuolisesta
67
alaviiva
78
alikansio
@@ -55,8 +56,10 @@ epäonnistui
5556
epäonnistunut
5657
epäonnistuttiin
5758
erikoismerkkejä
59+
erikoismerkkien
5860
erikseen
5961
erillinen
62+
erillisen
6063
erissä
6164
erityyppisiä
6265
esim
@@ -161,6 +164,7 @@ jos
161164
joskus
162165
jota
163166
jotka
167+
jotkin
164168
julkinen
165169
julkiset
166170
julkisia
@@ -405,6 +409,7 @@ ne
405409
niiden
406410
niin
407411
nimellä
412+
nimen
408413
nimet
409414
nimetä
410415
nimeä
@@ -570,6 +575,7 @@ projektitunnukset
570575
pudota
571576
pudotusvalikoissa
572577
puhelin
578+
purettava
573579
purkaa
574580
purkaminen
575581
puutteen
@@ -630,6 +636,7 @@ salasanasta
630636
salataan
631637
salattua
632638
salauksen
639+
salauksenpurun
633640
salaus
634641
salausavaimia
635642
salausohjelma
@@ -844,6 +851,7 @@ uusi
844851
uusia
845852
vaatii
846853
vaatimusten
854+
vaativat
847855
vaihda
848856
vaihtaa
849857
vaihto
@@ -907,6 +915,7 @@ vuoksi
907915
vähintään
908916
väliaikaiseen
909917
väliaikaisten
918+
vältä
910919
yhdelle
911920
yhden
912921
yhdistetty
@@ -919,6 +928,7 @@ yhteystiedot
919928
yhteyttä
920929
yhtään
921930
yksikkö
931+
yksilöllinen
922932
yksityinen
923933
yksityisen
924934
yksityisestä

docs/_static/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: "3.0.3"
22
info:
33
title: "Swift Browser UI"
44
description: "API for querying Openstack Swift as well as working with Openstack Swift ACLs in order to enable sharing action."
5-
version: "2024.10.2"
5+
version: "2025.2.0"
66
license:
77
name: MIT
88
tags:

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
author = "CSC Developers"
2929

3030
# The full version, including alpha/beta/rc tags
31-
version = release = "2024.10.2"
31+
version = release = "2025.2.0"
3232

3333

3434
# -- General configuration ---------------------------------------------------

swift_browser_ui/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"""
66

77
__name__ = "swift_browser_ui"
8-
__version__ = "2024.10.2"
8+
__version__ = "2025.2.0"
99
__author__ = "CSC Developers"
1010
__license__ = "MIT License"

swift_browser_ui_frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swift_browser_ui_frontend_npm",
3-
"version": "2024.10.2",
3+
"version": "2025.2.0",
44
"private": true,
55
"scripts": {
66
"serve": "./build_wasm.sh && vite serve --mode development",

swift_browser_ui_frontend/src/common/lang.js

+15-8
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ let default_translations = {
245245
copysuccess: "Copying in progress",
246246
copytime: "It may take few seconds",
247247
copyfail: "Failed to copy the folder",
248-
notDecryptable: "Some requested files could not be decrypted.",
248+
notDecryptable: "Some downloaded files need manual decryption.",
249249
tagName: "Tags (optional)",
250250
tagPlaceholder: "# Add a tag and press enter",
251251
container_ops: {
@@ -296,8 +296,10 @@ let default_translations = {
296296
tokens: {
297297
empty: "No API tokens created for the project",
298298
title: "Create API tokens",
299-
identifier: "Token identifier",
300-
identLabel: "Insert new token identifier",
299+
identifier: "Active tokens for this project",
300+
identLabel: "Name of the new token",
301+
identHint:
302+
"Token name needs to be unique. Please avoid special characters.",
301303
createToken: "Create token",
302304
latestToken: "Latest token: ",
303305
copy: "Copy token",
@@ -310,7 +312,7 @@ let default_translations = {
310312
"will be deleted after this time period.",
311313
tokenCopied: "Token copied.",
312314
tokenRemoved: "Token removed.",
313-
inUse: "Token identifier already in use.",
315+
inUse: "Token name already in use.",
314316
creationFailed: "Token creation failed.",
315317
},
316318
encrypt: {
@@ -789,7 +791,9 @@ let default_translations = {
789791
copysuccess: "Kansiota kopioidaan",
790792
copytime: "Se voi kestää muutaman sekunnin",
791793
copyfail: "Kansion kopiointi epäonnistui",
792-
notDecryptable: "Salauksen purkaminen epäonnistui osassa tiedostoja.",
794+
notDecryptable:
795+
"Joidenkin tiedostojen salaus on purettava erikseen latauksen " +
796+
"jälkeen.",
793797
tagName: "Asiasanat",
794798
tagPlaceholder: "# Lisää asiasana ja paina rivinvaihtoa",
795799
container_ops: {
@@ -843,8 +847,11 @@ let default_translations = {
843847
tokens: {
844848
empty: "Tälle projektille ei ole luotu API-avaimia",
845849
title: "Luo API-avaimia",
846-
identifier: "Avainten tunnisteet",
847-
identLabel: "Syötä tunniste uudelle API-avaimelle",
850+
identifier: "Tämän projektin aktiiviset API-avaimet",
851+
identLabel: "Uuden avaimen nimi",
852+
identHint:
853+
"Avaimen nimen on oltava yksilöllinen. Vältä erikoismerkkien " +
854+
"käyttöä.",
848855
createToken: "Luo avain",
849856
latestToken: "Viimeisin avain: ",
850857
copy: "Kopioi avain",
@@ -858,7 +865,7 @@ let default_translations = {
858865
tokenCopied: "Avain kopioitu.",
859866
tokenRemoved: "Avain poistettu.",
860867
creationFailed: "Avaimen luonti epäonnistui.",
861-
inUse: "Avaimen tunniste on jo käytössä.",
868+
inUse: "Avaimen nimi on jo käytössä.",
862869
},
863870
encrypt: {
864871
uploadFiles: "Lataa tiedostoja",

swift_browser_ui_frontend/src/components/TokenModal.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
v-model="newIdentifier"
3232
v-csc-control
3333
name="newIdentifier"
34+
:hint="$t('message.tokens.identHint')"
3435
:label="$t('message.tokens.identLabel')"
3536
/>
3637
<c-button
@@ -358,7 +359,7 @@ export default {
358359
359360
#create-token-button {
360361
width: max-content;
361-
margin-top: -2rem;
362+
margin-top: -1rem;
362363
}
363364
364365
#token {

0 commit comments

Comments
 (0)