Skip to content

Commit 6d182cf

Browse files
committed
Language: Add language terms declaration
1 parent 93b7565 commit 6d182cf

File tree

20 files changed

+272
-38
lines changed

20 files changed

+272
-38
lines changed

assets/locales/en.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,5 +1198,23 @@
11981198
"Admin Incomplete Courses": "Admin Incomplete Courses",
11991199
"Admin Restart Courses": "Admin Restart Courses",
12001200
"Admin Dashboard": "Admin Dashboard",
1201-
"New messages": "New messages"
1202-
}
1201+
"New messages": "New messages",
1202+
"Authentication source": "Authentication source",
1203+
"Assign authentication sources to users": "Assign authentication sources to users",
1204+
"Back to user assignment page": "Back to user assignment page",
1205+
"Authentication sources assigned successfully": "Authentication sources assigned successfully",
1206+
"Tip: choose “— Just upload —” to store without sending to anyone.": "Tip: choose “— Just upload —” to store without sending to anyone.",
1207+
"Please select at least one recipient (“— Just upload —” or any user)": "Please select at least one recipient (“— Just upload —” or any user)",
1208+
"Sharing": "Sharing",
1209+
"Overwrite previous versions of same document?": "Overwrite previous versions of same document?",
1210+
"Selected files": "Selected files",
1211+
"Hide password": "Hide password",
1212+
"Show password": "Show password",
1213+
"Upload SVG logo for e-mails": "Upload SVG logo for e-mails",
1214+
"You must move or remove all learning paths from this category before deleting it.": "You must move or remove all learning paths from this category before deleting it.",
1215+
"Clear filters": "Clear filters",
1216+
"Attendances (tablet)": "Attendances (tablet)",
1217+
"Exit tablet mode": "Exit tablet mode",
1218+
"Attended": "Attended",
1219+
"No members found.": "No members found."
1220+
}

assets/vue/components/admin/BrandingSection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@
182182

183183
<section class="grid grid-cols-1 gap-3">
184184
<div>
185-
<label class="text-xs block mb-1">{{ t('Upload email SVG') }}</label>
185+
<label class="text-xs block mb-1">{{ t('Upload SVG logo for e-mails') }}</label>
186186
<input type="file" accept=".svg,image/svg+xml" @change="onPick($event, 'emailSvg')" />
187187
</div>
188188
<div>
189-
<label class="text-xs block mb-1">{{ t('Upload email PNG (~540 px width)') }}</label>
189+
<label class="text-xs block mb-1">{{ t('Upload PNG logo for e-mails (~540 px width)') }}</label>
190190
<input type="file" accept="image/png" @change="onPick($event, 'emailPng', { recommendW:540 })" />
191191
</div>
192192
</section>

assets/vue/components/basecomponents/BaseCalendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const onCancelClick = () => {
178178
class="base-calendar-footer__button base-calendar-footer__button--primary"
179179
@click="onApplyClick"
180180
>
181-
{{ t("Ok") }}
181+
{{ t("OK") }}
182182
</button>
183183
</div>
184184
</template>

assets/vue/views/accessurl/AccessUrlAuthSourcesAssign.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function assignAuthSources() {
5353
true,
5454
)
5555
56-
showSuccessNotification(t("Auth sources assigned successfully"))
56+
showSuccessNotification(t("Authentication sources assigned successfully"))
5757
5858
userFinder.value.selectedUsers = []
5959
} catch (e) {
@@ -67,7 +67,7 @@ listAccessUrl().then((items) => (accessUrlList.value = items))
6767
</script>
6868

6969
<template>
70-
<SectionHeader :title="t('Assign auth sources to users')" />
70+
<SectionHeader :title="t('Assign authentication sources to users')" />
7171

7272
<BaseToolbar>
7373
<template #start>
@@ -102,7 +102,7 @@ listAccessUrl().then((items) => (accessUrlList.value = items))
102102
id="auth_source"
103103
v-model="authSource"
104104
:disabled="0 === authSourceList.length"
105-
:label="t('Auth source')"
105+
:label="t('Authentication source')"
106106
:options="authSourceList"
107107
/>
108108

assets/vue/views/attendance/AttendanceSheetTablet.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
2-
<SectionHeader :title="t('Attendance (tablet)')" />
2+
<SectionHeader :title="t('Attendances (tablet)')" />
33

44
<div class="p-4 space-y-4">
55
<!-- Loading state -->
66
<div
77
v-if="isLoading"
88
class="flex items-center justify-center py-10 text-gray-600"
99
>
10-
{{ t("Loading attendance...") }}
10+
{{ t("Loading...") }}
1111
</div>
1212

1313
<!-- Main content -->
@@ -62,7 +62,7 @@
6262
<th class="p-3 text-left">{{ t("Photo") }}</th>
6363
<th class="p-3 text-left">{{ t("Last name") }}</th>
6464
<th class="p-3 text-left">{{ t("First name") }}</th>
65-
<th class="p-3 text-center">{{ t("Presence") }}</th>
65+
<th class="p-3 text-center">{{ t("Attended") }}</th>
6666
<th
6767
class="p-3 text-center"
6868
v-if="allowComments"
@@ -149,7 +149,7 @@
149149
<!-- Comment Dialog -->
150150
<BaseDialog
151151
v-model:isVisible="showCommentDialog"
152-
:title="t('Add Comment')"
152+
:title="t('Add comment')"
153153
>
154154
<textarea
155155
class="w-full h-32 border rounded p-2"

assets/vue/views/dropbox/DropboxCreate.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</div>
6262

6363
<div v-else class="mt-3 text-sm text-gray-500">
64-
{{ t("No files selected yet.") }}
64+
{{ t("No file selected.") }}
6565
</div>
6666
</div>
6767
</div>
@@ -71,15 +71,15 @@
7171
<div class="p-4">
7272
<BaseInputText
7373
id="dbx-desc"
74-
:label="t('Description (optional)')"
74+
:label="t('Description')"
7575
v-model="description"
7676
:form-submitted="submitted"
7777
:is-invalid="false"
7878
/>
7979

8080
<label class="inline-flex items-center gap-3 mt-3">
8181
<input id="overwrite" type="checkbox" v-model="overwrite" />
82-
<span class="text-sm">{{ t("Overwrite previous versions with same name?") }}</span>
82+
<span class="text-sm">{{ t("Overwrite previous versions of same document?") }}</span>
8383
</label>
8484
</div>
8585
</div>
@@ -108,7 +108,7 @@
108108
{{ t('Tip: choose “— Just upload —” to store without sending to anyone.') }}
109109
</small>
110110
<div v-if="submitted && !hasSelectedRecipient" class="text-sm text-red-600 mt-1">
111-
{{ t('Please select at least one recipient (“— Just upload —” or a user).') }}
111+
{{ t('Please select at least one recipient (“— Just upload —” or any user)') }}
112112
</div>
113113

114114
<div class="flex justify-end gap-2 mt-6">

public/main/admin/access_urls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_course_category_to_url.php'
172172
);
173173
$actions .= Display::url(
174-
Display::getMdiIcon('clipboard-account', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Assign auth source to users')),
174+
Display::getMdiIcon('clipboard-account', 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Assign authentication sources to users')),
175175
"/access-url/auth-sources"
176176
);
177177
}

public/main/admin/sub_language_add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
} catch (Exception $e) {
135135
Display::addFlash(
136136
Display::return_message(
137-
get_lang('The /main/lang directory, used on this portal to store the languages, is not writable. Please contact your platform administrator and report this message.'),
137+
get_lang('The var/translations directory, used on this portal to store the languages, is not writable. Please contact your platform administrator and report this message.'),
138138
'error'
139139
)
140140
);

public/main/gradebook/certificate_report.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
'ch-tool-icon',
449449
null,
450450
32,
451-
get_lang('Export all certificates')
451+
get_lang('Export all certificates to PDF')
452452
),
453453
$exportAllLink
454454
);

public/main/inc/lib/exercise.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6633,7 +6633,7 @@ public static function exportExerciseAllResultsZip(
66336633
return false;
66346634
}
66356635
if (!$quiz) {
6636-
Display::addFlash(Display::return_message(get_lang('Test not found'), 'warning', false));
6636+
Display::addFlash(Display::return_message(get_lang('Test not found or not visible'), 'warning', false));
66376637
return false;
66386638
}
66396639
if ($sessionId > 0) {

0 commit comments

Comments
 (0)