Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test automation by adding a translation #3322

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mathesar/templates/registration/superuser_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h2>{% translate "Create Admin User" %}</h2>
function showLoadingStatus(newText) {
const loginButton = document.querySelector('form button[type="submit"]');
loginButton.disabled = true;
loginButton.innerText = newText ?? 'Loading...';
loginButton.innerText = newText ?? '{% translate "Loading..." %}';
}
</script>
{% endblock %}
1 change: 1 addition & 0 deletions mathesar_ui/src/i18n/languages/en/dict.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"copy_and_paste_text": "Copy and Paste Text",
"create_a_table_by_importing": "Create a table by importing your data",
"data_source": "Data Source",
"edit_user": "Edit User",
"import": "Import",
"large_data_takes_time_warning": "Large data sets can sometimes take several minutes to process. Please do not leave this page or close the browser tab while the import is in progress.",
"linking_table": "Linking Table",
Expand Down
3 changes: 2 additions & 1 deletion mathesar_ui/src/pages/admin-users/EditUserPage.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { router } from 'tinro';
import { _ } from 'svelte-i18n';
import { Icon, SpinnerButton } from '@mathesar-component-library';
import { iconDeleteMajor, iconEditUser } from '@mathesar/icons';
import {
Expand Down Expand Up @@ -65,7 +66,7 @@
/>
<h1>
<Icon {...iconEditUser} />
Edit User: <strong>{userModel.username}</strong>
{$_('edit_user')}: <strong>{userModel.username}</strong>
</h1>
<FormBox>
<UserDetailsForm user={userModel.getUser()} on:update={onUserUpdate} />
Expand Down
6 changes: 5 additions & 1 deletion translations/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-11-22 07:32+0000\n"
"POT-Creation-Date: 2023-11-22 10:29+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -124,6 +124,10 @@ msgid ""
"secure location."
msgstr ""

#: mathesar/templates/registration/superuser_create.html:227
msgid "Loading..."
msgstr ""

#: mathesar/templates/users/password_reset_confirmation.html:4
msgid "Update Your Password"
msgstr ""
Expand Down
Loading