- The Zim file format stores website content for offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.
+ :title="$t('faq.whatIsZim')"
+ :content="$t('faq.whatIsZimDesc')">
- You will need a Zim file reader. This usually means Kiwix, which is available on desktop computers, mobile devices, and more. Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.
+ :title="$t('faq.howToRead')"
+ :content="$t('faq.howToReadDesc')">
- Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: {{ human_size_limit }} file size and {{ human_time_limit }}.
+ :title="$t('faq.missingContent')"
+ :content="$t('faq.missingContentDesc', { human_size_limit: human_size_limit, human_time_limit: human_time_limit })">
- Triple-check the URL you entered, and if it is still not working then open a bug ticket on github. Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on.
+ :title="$t('faq.gotError')"
+ :content="$t('faq.gotErrorDesc')">
Your request has been recorded and is awaiting a slot on our infrastructure to run.
+
{{$t('request.requestingSlot')}}
+
{{$t('request.requestRecorded')}}
-
You request has failed! We are sorry about that.
-
A number of reasons can lead to a ziming failure. Most of the time, it's an inadequate URL… Please triple check it and create a new request. If that doesn't work, open a ticket in github.
You have reached the maximum file size ({{ zimit_size_limit }}) or duration ({{ (zimit_time_limit) }}) allowed for free crawling. Contact us to help us purchase additional server space for you.
One of our servers is currently converting that URL into a nice ZIM file. Depending on the number of pages and resources available, it can be a matter of minutes, hours or even days! Please be patient.
-
You can close this window. You will get an email notification when the task is completed.
+
{{$t('request.beingProcessed')}}
+
{{$t('request.serverConverting')}}
+
{{$t('request.emailNotification')}}
From 1cff42f98cee007ff9f1d65a19f606a2c845066b Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Sun, 10 Mar 2024 18:59:30 +0530
Subject: [PATCH 08/48] Configure Vue I18n in main.js for dynamic translation
loading
---
ui/src/main.js | 40 +++++++++++++++++++++++++++++++++++++---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/ui/src/main.js b/ui/src/main.js
index 015af51..d70847a 100644
--- a/ui/src/main.js
+++ b/ui/src/main.js
@@ -19,6 +19,39 @@ import '../public/styles.css'
import Sugar from 'sugar'
Sugar.extend({namespaces: [Array, Object, Number]});
+// vue-i18n integration starts here
+import VueI18n from 'vue-i18n'
+Vue.use(VueI18n);
+
+// Assuming you have a locales directory with en.json and fr.json for example
+function loadLocaleMessages() {
+ const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i)
+ const messages = {}
+ locales.keys().forEach(key => {
+ const matched = key.match(/([A-Za-z0-9-_]+)\./i)
+ if (matched && matched.length > 1) {
+ const locale = matched[1]
+ messages[locale] = locales(key)
+ }
+ })
+ return messages
+}
+
+// Detect browser language
+const browserLanguage = navigator.language || navigator.userLanguage;
+
+const simplifiedBrowserLanguage = browserLanguage.split('-')[0];
+
+const supportedLanguages = ['en', 'fr']; // Add more supported languages here
+
+const defaultLanguage = supportedLanguages.includes(simplifiedBrowserLanguage) ? simplifiedBrowserLanguage : 'en';
+
+const i18n = new VueI18n({
+ locale: defaultLanguage, // set locale
+ fallbackLocale: 'en', // set fallback locale
+ messages: loadLocaleMessages(), // set locale messages
+});
+
// Own modules
import App from './App.vue'
import Constants from './constants.js'
@@ -39,7 +72,8 @@ Vue.use(VueMatomo, {
});
new Vue({
- store: store,
- router: router,
+ router,
+ store,
+ i18n,
render: h => h(App),
-}).$mount('#app')
+}).$mount('#app');
From 4e3c249f3dc193f226624495ecb744696e8045f9 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Sun, 10 Mar 2024 19:02:20 +0530
Subject: [PATCH 09/48] Add files via upload
---
ui/src/locales/en.json | 55 ++++++++++++++++++++++++++++++++++++++++++
ui/src/locales/fr.json | 54 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 109 insertions(+)
create mode 100644 ui/src/locales/en.json
create mode 100644 ui/src/locales/fr.json
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
new file mode 100644
index 0000000..216453c
--- /dev/null
+++ b/ui/src/locales/en.json
@@ -0,0 +1,55 @@
+{
+ "alertFeedback": {
+ "info": "Information",
+ "success": "Success",
+ "warning": "Warning",
+ "danger": "Danger"
+ },
+ "faq": {
+ "whatIsZim": "What is a Zim file?",
+ "whatIsZimDesc": "The Zim file format stores website content for offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
+ "howToRead": "How do I read my Zim files?",
+ "howToReadDesc": "You will need a Zim file reader. This usually means Kiwix, which is available on desktop computers, mobile devices, and more. Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
+ "missingContent": "The Zim file is incomplete or smaller than the original website",
+ "missingContentDesc": "Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: file size and time.",
+ "gotError": "I got an error message (no zim) or could not read a zim file",
+ "gotErrorDesc": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on github. Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
+ },
+ "loading": {
+ "loading": "Loading…"
+ },
+ "navbar": {
+ "logoAlt": "Youzim.it logo"
+ },
+ "newRequest": {
+ "heading": "Want an offline version of a website? Just",
+ "boldZim": "Zim it",
+ "urlPlaceholder": "Full URL of the website to convert",
+ "emailPlaceholder": "Your e-mail to receive a download link. Address not kept",
+ "submit": "Let's Zim it!",
+ "advancedOptions": "advanced options"
+ },
+ "notFound": {
+ "heading": "Not Found",
+ "description": "Sorry, this content was not found. Maybe you'd like to go back."
+ },
+ "request": {
+ "requestingSlot": "Requesting slot",
+ "zimingOf": "Ziming of ",
+ "requestRecorded": "Your request has been recorded and is awaiting a slot on our infrastructure to run.",
+ "requestFailed": "You request has failed! We are sorry about that.",
+ "failureReasons": "A number of reasons can lead to a ziming failure. Most of the time, it's an inadequate URL… Please triple check it and create a new request. If that doesn't work, open a ticket in github.",
+ "success": "Success!",
+ "linkExpires": "The link below will expire and the file will be deleted after a week.",
+ "download": "Download",
+ "limitHit": "You have reached the maximum file size or duration allowed for free crawling. Contact us to help us purchase additional server space for you.",
+ "beingProcessed": "Your request is being processed",
+ "serverConverting": "One of our servers is currently converting that URL into a nice ZIM file. Depending on the number of pages and resources available, it can be a matter of minutes, hours or even days! Please be patient.",
+ "emailNotification": "You can close this window. You will get an email notification when the task is completed."
+ },
+ "switchButton": {
+ "enabled": "Enabled",
+ "disabled": "Disabled"
+ }
+}
+
\ No newline at end of file
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
new file mode 100644
index 0000000..24a228d
--- /dev/null
+++ b/ui/src/locales/fr.json
@@ -0,0 +1,54 @@
+{
+ "alertFeedback": {
+ "info": "Information",
+ "success": "Succès",
+ "warning": "Avertissement",
+ "danger": "Danger"
+ },
+ "faq": {
+ "whatIsZim": "Qu'est-ce qu'un fichier Zim ?",
+ "whatIsZimDesc": "Le format de fichier Zim stocke le contenu d'un site web pour une utilisation hors ligne. Il assemble les constituants normaux d'un site web dans une seule archive, et le compresse afin de faciliter son enregistrement, partage, et stockage.",
+ "howToRead": "Comment lire mes fichiers Zim ?",
+ "howToReadDesc": "Vous aurez besoin d'un lecteur de fichiers Zim. Cela signifie généralement Kiwix, qui est disponible sur les ordinateurs de bureau, les appareils mobiles, et plus encore. Actuellement, seul Kiwix-serve et Kiwix-Android peuvent lire tous les fichiers générés par Zimit. Si vous utilisez Kiwix-Desktop pour Microsoft Windows et GNU/Linux, alors vous devrez le configurer comme une instance Kiwix-serve dans les paramètres. Nous nous attendons à ce que la plupart des plateformes soient mises à niveau d'ici la fin de 2021.",
+ "missingContent": "Le fichier Zim est incomplet ou plus petit que le site web original",
+ "missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert aux demandes illimitées vers n'importe quel site web. Cela pourrait être préjudiciable à la fois pour notre infrastructure, mais aussi pour les sites web ciblés. Nous imposons actuellement deux limites : taille de fichier et temps.",
+ "gotError": "J'ai reçu un message d'erreur (pas de zim) ou je ne peux pas lire un fichier zim",
+ "gotErrorDesc": "Vérifiez trois fois l'URL que vous avez entrée, et si cela ne fonctionne toujours pas, ouvrez un ticket sur github. Indiquez le site web cible, le numéro de la demande (il est dans l'email que vous avez reçu), et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim."
+ },
+ "loading": {
+ "loading": "Chargement en cours…"
+ },
+ "navbar": {
+ "logoAlt": "Logo de Youzim.it"
+ },
+ "newRequest": {
+ "heading": "Vous voulez une version hors ligne d'un site web ? Juste",
+ "boldZim": "Zimmez-le",
+ "urlPlaceholder": "URL complète du site web à convertir",
+ "emailPlaceholder": "Votre e-mail pour recevoir un lien de téléchargement. Adresse non conservée",
+ "submit": "Zimmons-le !",
+ "advancedOptions": "options avancées"
+ },
+ "notFound": {
+ "heading": "Non trouvé",
+ "description": "Désolé, ce contenu n'a pas été trouvé. Peut-être souhaitez-vous revenir en arrière."
+ },
+ "request": {
+ "requestingSlot": "Demande d'emplacement",
+ "requestRecorded": "Votre demande a été enregistrée et est en attente d'un emplacement sur notre infrastructure pour être exécutée.",
+ "requestFailed": "Votre demande a échoué ! Nous en sommes désolés.",
+ "failureReasons": "Un certain nombre de raisons peuvent conduire à un échec de la zimification. La plupart du temps, c'est une URL inadéquate… Veuillez la vérifier trois fois et créer une nouvelle demande. Si cela ne fonctionne pas, ouvrez un ticket sur github.",
+ "success": "Succès !",
+ "linkExpires": "Le lien ci-dessous expirera et le fichier sera supprimé après une semaine.",
+ "download": "Télécharger",
+ "limitHit": "Vous avez atteint la taille maximale de fichier ({{ zimit_size_limit }}) ou la durée ({{ (zimit_time_limit) }}) autorisée pour le crawling gratuit. Contactez-nous pour nous aider à acheter un espace serveur supplémentaire pour vous.",
+ "beingProcessed": "Votre demande est en cours de traitement",
+ "serverConverting": "L'un de nos serveurs convertit actuellement cette URL en un joli fichier ZIM. Selon le nombre de pages et de ressources disponibles, cela peut prendre quelques minutes, heures ou même jours ! Veuillez être patient.",
+ "emailNotification": "Vous pouvez fermer cette fenêtre. Vous recevrez une notification par e-mail lorsque la tâche sera terminée."
+ },
+ "switchButton": {
+ "enabled": "Activé",
+ "disabled": "Désactivé"
+ }
+}
+
\ No newline at end of file
From aa02f6098542f2229cdcdc8f72f54c28a46709b5 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Mon, 11 Mar 2024 21:29:38 +0530
Subject: [PATCH 10/48] Update NavBar.vue to i18n
---
ui/src/components/NavBar.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/components/NavBar.vue b/ui/src/components/NavBar.vue
index 963d597..76a7092 100644
--- a/ui/src/components/NavBar.vue
+++ b/ui/src/components/NavBar.vue
@@ -1,6 +1,6 @@
-
+
From 96944fe67bcfdc591103841b9de679a2338787b9 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Mon, 11 Mar 2024 21:34:59 +0530
Subject: [PATCH 11/48] Remove strings that are not used
---
ui/src/locales/en.json | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 216453c..3be34bf 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -1,10 +1,4 @@
{
- "alertFeedback": {
- "info": "Information",
- "success": "Success",
- "warning": "Warning",
- "danger": "Danger"
- },
"faq": {
"whatIsZim": "What is a Zim file?",
"whatIsZimDesc": "The Zim file format stores website content for offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
@@ -46,10 +40,6 @@
"beingProcessed": "Your request is being processed",
"serverConverting": "One of our servers is currently converting that URL into a nice ZIM file. Depending on the number of pages and resources available, it can be a matter of minutes, hours or even days! Please be patient.",
"emailNotification": "You can close this window. You will get an email notification when the task is completed."
- },
- "switchButton": {
- "enabled": "Enabled",
- "disabled": "Disabled"
}
}
-
\ No newline at end of file
+
From 6e3b351f6f630ba43a6471c62d541c10d5691081 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Mon, 11 Mar 2024 21:35:17 +0530
Subject: [PATCH 12/48] Remove strings that are not used
---
ui/src/locales/fr.json | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 24a228d..26f60a7 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -1,10 +1,4 @@
{
- "alertFeedback": {
- "info": "Information",
- "success": "Succès",
- "warning": "Avertissement",
- "danger": "Danger"
- },
"faq": {
"whatIsZim": "Qu'est-ce qu'un fichier Zim ?",
"whatIsZimDesc": "Le format de fichier Zim stocke le contenu d'un site web pour une utilisation hors ligne. Il assemble les constituants normaux d'un site web dans une seule archive, et le compresse afin de faciliter son enregistrement, partage, et stockage.",
@@ -45,10 +39,6 @@
"beingProcessed": "Votre demande est en cours de traitement",
"serverConverting": "L'un de nos serveurs convertit actuellement cette URL en un joli fichier ZIM. Selon le nombre de pages et de ressources disponibles, cela peut prendre quelques minutes, heures ou même jours ! Veuillez être patient.",
"emailNotification": "Vous pouvez fermer cette fenêtre. Vous recevrez une notification par e-mail lorsque la tâche sera terminée."
- },
- "switchButton": {
- "enabled": "Activé",
- "disabled": "Désactivé"
}
}
-
\ No newline at end of file
+
From fb67726427778b2ada2d2bb7dbbd46ecf1bb3407 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Mon, 11 Mar 2024 22:38:05 +0530
Subject: [PATCH 13/48] Update App.vue to i18n footer
---
ui/src/App.vue | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index 14d0510..de2c880 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -4,7 +4,9 @@
From ea5114e6c6d49c4c9661541abff7746a9d4158be Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Mon, 11 Mar 2024 22:38:56 +0530
Subject: [PATCH 14/48] Update en.json
---
ui/src/locales/en.json | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 3be34bf..3cc2a84 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -27,6 +27,11 @@
"heading": "Not Found",
"description": "Sorry, this content was not found. Maybe you'd like to go back."
},
+ "app": {
+ "poweredByKiwix": "Powered by Kiwix",
+ "poweredByWebrecorder": "Webrecorder",
+ "thanksToMozilla": "thanks to a Mozilla Open-Source Support Award"
+ },
"request": {
"requestingSlot": "Requesting slot",
"zimingOf": "Ziming of ",
From 647e9d0428a0fd96e0678e1741a753c246330203 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Mon, 11 Mar 2024 22:39:54 +0530
Subject: [PATCH 15/48] Update fr.json
---
ui/src/locales/fr.json | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 26f60a7..cf5a4b2 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -27,6 +27,11 @@
"heading": "Non trouvé",
"description": "Désolé, ce contenu n'a pas été trouvé. Peut-être souhaitez-vous revenir en arrière."
},
+ "app": {
+ "poweredByKiwix": "Propulsé par Kiwix",
+ "poweredByWebrecorder": "Webrecorder",
+ "thanksToMozilla": "grâce à un Prix de soutien Open Source de Mozilla"
+ },
"request": {
"requestingSlot": "Demande d'emplacement",
"requestRecorded": "Votre demande a été enregistrée et est en attente d'un emplacement sur notre infrastructure pour être exécutée.",
From 9f29f54de45986327bcc30320d8c0387404810e1 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Mon, 11 Mar 2024 22:56:03 +0530
Subject: [PATCH 16/48] Add qqq.json for translation instructions
Added qqq.json file containing translation instructions and context in English.
---
ui/src/locales/qqq.json | 49 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 ui/src/locales/qqq.json
diff --git a/ui/src/locales/qqq.json b/ui/src/locales/qqq.json
new file mode 100644
index 0000000..5d00936
--- /dev/null
+++ b/ui/src/locales/qqq.json
@@ -0,0 +1,49 @@
+{
+ "faq": {
+ "whatIsZim": "This is the question asking about the Zim file format.",
+ "whatIsZimDesc": "This provides a brief description of what a Zim file is.",
+ "howToRead": "This is the question asking how to read Zim files.",
+ "howToReadDesc": "This provides instructions on how to read Zim files using Kiwix.",
+ "missingContent": "This is the question about incomplete or missing content in Zim files.",
+ "missingContentDesc": "This provides an explanation for why some content may be missing or incomplete in Zim files.",
+ "gotError": "This is the question about encountering error messages when using Zim files.",
+ "gotErrorDesc": "This provides instructions on what to do if errors are encountered when using Zim files."
+ },
+ "app": {
+ "poweredByKiwix": "This indicates that the application is powered by Kiwix.",
+ "poweredByWebrecorder": "This indicates that the application is powered by Webrecorder.",
+ "thanksToMozilla": "This acknowledges support from Mozilla through an Open-Source Support Award."
+ },
+ "loading": {
+ "loading": "This is the loading message displayed during data loading."
+ },
+ "navbar": {
+ "logoAlt": "This is the alternative text for the logo image."
+ },
+ "newRequest": {
+ "heading": "This is the heading for initiating a new request.",
+ "boldZim": "This highlights the action of creating a Zim file.",
+ "urlPlaceholder": "This is the placeholder text for entering a website URL.",
+ "emailPlaceholder": "This is the placeholder text for entering an email address.",
+ "submit": "This is the label for the submit button.",
+ "advancedOptions": "This indicates a link to advanced options."
+ },
+ "notFound": {
+ "heading": "This is the heading displayed when content is not found.",
+ "description": "This is the description explaining the 404 error."
+ },
+ "request": {
+ "requestingSlot": "This indicates the process of requesting a slot on the server.",
+ "zimingOf": "This indicates the process of converting a website into a ZIM file.",
+ "requestRecorded": "This confirms that a user's request has been recorded.",
+ "requestFailed": "This indicates that a request has failed.",
+ "failureReasons": "This provides reasons for why a request might fail.",
+ "success": "This indicates a successful operation.",
+ "linkExpires": "This explains that the download link will expire after a week.",
+ "download": "This is the label for the download button.",
+ "limitHit": "This indicates that a user has reached a limit.",
+ "beingProcessed": "This indicates that a request is currently being processed.",
+ "serverConverting": "This indicates that a server is converting a URL into a ZIM file.",
+ "emailNotification": "This informs the user about receiving an email notification."
+ }
+}
From f493a1b94f8a23099165b6d0e54a27875f014e26 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Tue, 12 Mar 2024 00:06:18 +0530
Subject: [PATCH 17/48] Add persian
---
ui/src/locales/pers.json | 49 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 ui/src/locales/pers.json
diff --git a/ui/src/locales/pers.json b/ui/src/locales/pers.json
new file mode 100644
index 0000000..0f61f59
--- /dev/null
+++ b/ui/src/locales/pers.json
@@ -0,0 +1,49 @@
+{
+ "faq": {
+ "whatIsZim": "فایل زیم چیست؟",
+ "whatIsZimDesc": "فرمت فایل زیم محتوای وبسایتها را برای استفاده آفلاین ذخیره میکند. این فرمت اجزای معمول یک وبسایت را در یک فایل آرشیو ترکیب میکند و آن را فشردهسازی میکند تا ذخیره، به اشتراک گذاری و ذخیره آسانتر شود.",
+ "howToRead": "چگونه فایلهای زیم خود را بخوانم؟",
+ "howToReadDesc": "شما به یک خواننده فایل زیم نیاز دارید. این معمولا به معنای Kiwix است که بر روی رایانههای رومیزی، دستگاههای تلفن همراه و غیره قابل دسترسی است. در حال حاضر فقط Kiwix-serve و Kiwix-Android میتوانند تمامی فایلهای تولید شده توسط Zimit را بخوانند. اگر از Kiwix-Desktop برای Microsoft Windows و GNU/Linux استفاده میکنید، آنگاه باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. ما انتظار داریم تا پایان سال 2021 بیشتر پلتفرمها ارتقاء یابند.",
+ "missingContent": "فایل زیم ناقص یا کوچکتر از وبسایت اصلی است",
+ "missingContentDesc": "به دلیل طبیعت این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود به هر وبسایتی باز گذاریم. این میتواند هم برای زیرساخت ما مضر باشد و هم برای وبسایتهای هدف. در حال حاضر دو محدودیت را اعمال میکنیم: اندازه فایل و زمان.",
+ "gotError": "یک پیام خطا دریافت کردم (بدون فایل زیم) یا نتوانستم فایل زیم را بخوانم",
+ "gotErrorDesc": "URL وارد شده را سه بار بررسی کنید، و اگر هنوز هم کار نمیکند، یک تیکت اشکال در گیتهاب باز کنید. وبسایت مقصد، شماره درخواست (در ایمیلی که دریافت کردهاید است) و دستگاهی را که سعی کردهاید فایل زیم خود را باز کنید، مشخص کنید."
+ },
+ "app": {
+ "poweredByKiwix": "قدرت گرفته از Kiwix",
+ "poweredByWebrecorder": "Webrecorder",
+ "thanksToMozilla": "با تشکر از جایزه پشتیبانی از منبعباز Mozilla"
+ },
+ "loading": {
+ "loading": "در حال بارگذاری..."
+ },
+ "navbar": {
+ "logoAlt": "لوگوی Youzim.it"
+ },
+ "newRequest": {
+ "heading": "میخواهید یک نسخه آفلاین از یک وبسایت داشته باشید؟ فقط",
+ "boldZim": "زیم کنید",
+ "urlPlaceholder": "آدرس URL کامل وبسایت برای تبدیل",
+ "emailPlaceholder": "آدرس ایمیل خود را برای دریافت لینک دانلود وارد کنید. آدرس نگه دارده نمیشود",
+ "submit": "بیایید آن را زیم کنیم!",
+ "advancedOptions": "گزینههای پیشرفته"
+ },
+ "notFound": {
+ "heading": "یافت نشد",
+ "description": "متاسفیم، این محتوا پیدا نشد. شاید دوست داشته باشید به عقب بروید."
+ },
+ "request": {
+ "requestingSlot": "درخواست اسلات",
+ "zimingOf": "تبدیل شدن به فایل زیم از ",
+ "requestRecorded": "درخواست شما ثبت شده است و منتظر یک اسلات در زیرساخت ما برای اجرا میباشد.",
+ "requestFailed": "درخواست شما انجام نشد! متاسفیم در مورد این.",
+ "failureReasons": "به چندین دلیل میتواند منجر به شکست تبدیل شود. بیشتر زمانها، این یک URL ناکافی است... لطفاً آن را سه بار بررسی کنید و یک درخواست جدید ایجاد کنید. اگر کار نمیکند، یک تیکت در گیتهاب باز کنید.",
+ "success": "موفقیت!",
+ "linkExpires": "لینک زیر پس از یک هفته منقضی میشود و فایل پس از آن حذف میشود.",
+ "download": "دانلود",
+ "limitHit": "شما به حداکثر اندازه فایل یا مدت زمان مجاز برای کرالینگ رایگان رسیدهاید. با ما تماس بگیرید تا به شما در خرید فضای سرور اضافی کمک کنیم.",
+ "beingProcessed": "درخواست شما در حال پردازش است",
+ "serverConverting": "یکی از سرورهای ما در حال تبدیل این URL به یک فایل زیم زیبا است. بستگی به تعداد صفحات و منابع موجود، ممکن است چند دقیقه، ساعت یا حتی روزها طول بکشد! لطفاً صبور باشید.",
+ "emailNotification": "میتوانید این پنجره را ببندید. شما یک اعلان ایمیل دریافت خواهید کرد هنگامی که وظیفه تکمیل شود."
+ }
+}
From 7e65335c601ba106d2fb3db99403685c9b07a1c0 Mon Sep 17 00:00:00 2001
From: Yash Sancheti <32770175+Onyx2406@users.noreply.github.com>
Date: Tue, 12 Mar 2024 00:07:06 +0530
Subject: [PATCH 18/48] Update NavBar.vue to add Persian in dropdown
---
ui/src/components/NavBar.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/src/components/NavBar.vue b/ui/src/components/NavBar.vue
index 76a7092..80c7bc8 100644
--- a/ui/src/components/NavBar.vue
+++ b/ui/src/components/NavBar.vue
@@ -7,6 +7,7 @@
From 632384a09f8ec5aa24a55071487a9b6820b0ba94 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 12 Mar 2024 21:40:31 +0530
Subject: [PATCH 19/48] Fix footer translation, dropdown text.
---
ui/src/App.vue | 25 +++++++++++++----
ui/src/components/NavBar.vue | 1 +
ui/src/locales/en.json | 26 ++++++++++++++----
ui/src/locales/far.json | 53 ++++++++++++++++++++++++++++++++++++
ui/src/locales/fr.json | 26 ++++++++++++++----
ui/src/main.js | 2 +-
6 files changed, 115 insertions(+), 18 deletions(-)
create mode 100644 ui/src/locales/far.json
diff --git a/ui/src/App.vue b/ui/src/App.vue
index de2c880..eb1c335 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -1,13 +1,17 @@
-
@@ -34,4 +38,15 @@ footer {
padding-top: 1em;
padding-bottom: 1em;
}
+
+/* RTL styles */
+[dir="rtl"] #app {
+ direction: rtl;
+ text-align: right;
+}
+
+[dir="rtl"] footer {
+ direction: rtl;
+ text-align: center; /* Keep footer text centered or change as needed */
+}
diff --git a/ui/src/components/NavBar.vue b/ui/src/components/NavBar.vue
index 76a7092..bf1a673 100644
--- a/ui/src/components/NavBar.vue
+++ b/ui/src/components/NavBar.vue
@@ -7,6 +7,7 @@
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 3cc2a84..97772c9 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -1,4 +1,10 @@
{
+ "alertFeedback": {
+ "info": "Information",
+ "success": "Success",
+ "warning": "Warning",
+ "danger": "Danger"
+ },
"faq": {
"whatIsZim": "What is a Zim file?",
"whatIsZimDesc": "The Zim file format stores website content for offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
@@ -9,6 +15,15 @@
"gotError": "I got an error message (no zim) or could not read a zim file",
"gotErrorDesc": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on github. Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
},
+ "app": {
+ "poweredByKiwix": "Powered by",
+ "kiwix": "Kiwix",
+ "kiwixLink": "https://kiwix.org",
+ "and": "and",
+ "webrecorder": "Webrecorder",
+ "webrecorderLink": "https://webrecorder.net",
+ "thanksToMozilla": "thanks to a Mozilla Open-Source Support Award"
+ },
"loading": {
"loading": "Loading…"
},
@@ -27,11 +42,6 @@
"heading": "Not Found",
"description": "Sorry, this content was not found. Maybe you'd like to go back."
},
- "app": {
- "poweredByKiwix": "Powered by Kiwix",
- "poweredByWebrecorder": "Webrecorder",
- "thanksToMozilla": "thanks to a Mozilla Open-Source Support Award"
- },
"request": {
"requestingSlot": "Requesting slot",
"zimingOf": "Ziming of ",
@@ -45,6 +55,10 @@
"beingProcessed": "Your request is being processed",
"serverConverting": "One of our servers is currently converting that URL into a nice ZIM file. Depending on the number of pages and resources available, it can be a matter of minutes, hours or even days! Please be patient.",
"emailNotification": "You can close this window. You will get an email notification when the task is completed."
+ },
+ "switchButton": {
+ "enabled": "Enabled",
+ "disabled": "Disabled"
}
}
-
+
\ No newline at end of file
diff --git a/ui/src/locales/far.json b/ui/src/locales/far.json
new file mode 100644
index 0000000..3ea0a87
--- /dev/null
+++ b/ui/src/locales/far.json
@@ -0,0 +1,53 @@
+{
+ "faq": {
+ "whatIsZim": "فایل زیم چیست؟",
+ "whatIsZimDesc": "فرمت فایل زیم محتوای وبسایتها را برای استفاده آفلاین ذخیره میکند. این فرمت اجزای معمول یک وبسایت را در یک فایل آرشیو ترکیب میکند و آن را فشردهسازی میکند تا ذخیره، به اشتراک گذاری و ذخیره آسانتر شود.",
+ "howToRead": "چگونه فایلهای زیم خود را بخوانم؟",
+ "howToReadDesc": "شما به یک خواننده فایل زیم نیاز دارید. این معمولا به معنای Kiwix است که بر روی رایانههای رومیزی، دستگاههای تلفن همراه و غیره قابل دسترسی است. در حال حاضر فقط Kiwix-serve و Kiwix-Android میتوانند تمامی فایلهای تولید شده توسط Zimit را بخوانند. اگر از Kiwix-Desktop برای Microsoft Windows و GNU/Linux استفاده میکنید، آنگاه باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. ما انتظار داریم تا پایان سال 2021 بیشتر پلتفرمها ارتقاء یابند.",
+ "missingContent": "فایل زیم ناقص یا کوچکتر از وبسایت اصلی است",
+ "missingContentDesc": "به دلیل طبیعت این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود به هر وبسایتی باز گذاریم. این میتواند هم برای زیرساخت ما مضر باشد و هم برای وبسایتهای هدف. در حال حاضر دو محدودیت را اعمال میکنیم: اندازه فایل و زمان.",
+ "gotError": "یک پیام خطا دریافت کردم (بدون فایل زیم) یا نتوانستم فایل زیم را بخوانم",
+ "gotErrorDesc": "URL وارد شده را سه بار بررسی کنید، و اگر هنوز هم کار نمیکند، یک تیکت اشکال در گیتهاب باز کنید. وبسایت مقصد، شماره درخواست (در ایمیلی که دریافت کردهاید است) و دستگاهی را که سعی کردهاید فایل زیم خود را باز کنید، مشخص کنید."
+ },
+ "app": {
+ "poweredByKiwix": "توسط",
+ "kiwix": "Kiwix",
+ "kiwixLink": "https://kiwix.org",
+ "and": "و",
+ "webrecorder": "وبضبط کننده",
+ "webrecorderLink": "https://webrecorder.net",
+ "thanksToMozilla": "با تشکر از جایزه حمایت متن باز Mozilla"
+ },
+ "loading": {
+ "loading": "در حال بارگذاری..."
+ },
+ "navbar": {
+ "logoAlt": "لوگوی Youzim.it"
+ },
+ "newRequest": {
+ "heading": "میخواهید یک نسخه آفلاین از یک وبسایت داشته باشید؟ فقط",
+ "boldZim": "زیم کنید",
+ "urlPlaceholder": "آدرس URL کامل وبسایت برای تبدیل",
+ "emailPlaceholder": "آدرس ایمیل خود را برای دریافت لینک دانلود وارد کنید. آدرس نگه دارده نمیشود",
+ "submit": "بیایید آن را زیم کنیم!",
+ "advancedOptions": "گزینههای پیشرفته"
+ },
+ "notFound": {
+ "heading": "یافت نشد",
+ "description": "متاسفیم، این محتوا پیدا نشد. شاید دوست داشته باشید به عقب بروید."
+ },
+ "request": {
+ "requestingSlot": "درخواست اسلات",
+ "zimingOf": "تبدیل شدن به فایل زیم از ",
+ "requestRecorded": "درخواست شما ثبت شده است و منتظر یک اسلات در زیرساخت ما برای اجرا میباشد.",
+ "requestFailed": "درخواست شما انجام نشد! متاسفیم در مورد این.",
+ "failureReasons": "به چندین دلیل میتواند منجر به شکست تبدیل شود. بیشتر زمانها، این یک URL ناکافی است... لطفاً آن را سه بار بررسی کنید و یک درخواست جدید ایجاد کنید. اگر کار نمیکند، یک تیکت در گیتهاب باز کنید.",
+ "success": "موفقیت!",
+ "linkExpires": "لینک زیر پس از یک هفته منقضی میشود و فایل پس از آن حذف میشود.",
+ "download": "دانلود",
+ "limitHit": "شما به حداکثر اندازه فایل یا مدت زمان مجاز برای کرالینگ رایگان رسیدهاید. با ما تماس بگیرید تا به شما در خرید فضای سرور اضافی کمک کنیم.",
+ "beingProcessed": "درخواست شما در حال پردازش است",
+ "serverConverting": "یکی از سرورهای ما در حال تبدیل این URL به یک فایل زیم زیبا است. بستگی به تعداد صفحات و منابع موجود، ممکن است چند دقیقه، ساعت یا حتی روزها طول بکشد! لطفاً صبور باشید.",
+ "emailNotification": "میتوانید این پنجره را ببندید. شما یک اعلان ایمیل دریافت خواهید کرد هنگامی که وظیفه تکمیل شود."
+ }
+}
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index cf5a4b2..3409a14 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -1,4 +1,10 @@
{
+ "alertFeedback": {
+ "info": "Information",
+ "success": "Succès",
+ "warning": "Avertissement",
+ "danger": "Danger"
+ },
"faq": {
"whatIsZim": "Qu'est-ce qu'un fichier Zim ?",
"whatIsZimDesc": "Le format de fichier Zim stocke le contenu d'un site web pour une utilisation hors ligne. Il assemble les constituants normaux d'un site web dans une seule archive, et le compresse afin de faciliter son enregistrement, partage, et stockage.",
@@ -15,6 +21,15 @@
"navbar": {
"logoAlt": "Logo de Youzim.it"
},
+ "app": {
+ "poweredByKiwix": "Propulsé par",
+ "kiwix": "Kiwix",
+ "kiwixLink": "https://kiwix.org",
+ "and": "et",
+ "webrecorder": "Webrecorder",
+ "webrecorderLink": "https://webrecorder.net",
+ "thanksToMozilla": "grâce à une subvention de soutien open-source de Mozilla"
+ },
"newRequest": {
"heading": "Vous voulez une version hors ligne d'un site web ? Juste",
"boldZim": "Zimmez-le",
@@ -27,11 +42,6 @@
"heading": "Non trouvé",
"description": "Désolé, ce contenu n'a pas été trouvé. Peut-être souhaitez-vous revenir en arrière."
},
- "app": {
- "poweredByKiwix": "Propulsé par Kiwix",
- "poweredByWebrecorder": "Webrecorder",
- "thanksToMozilla": "grâce à un Prix de soutien Open Source de Mozilla"
- },
"request": {
"requestingSlot": "Demande d'emplacement",
"requestRecorded": "Votre demande a été enregistrée et est en attente d'un emplacement sur notre infrastructure pour être exécutée.",
@@ -44,6 +54,10 @@
"beingProcessed": "Votre demande est en cours de traitement",
"serverConverting": "L'un de nos serveurs convertit actuellement cette URL en un joli fichier ZIM. Selon le nombre de pages et de ressources disponibles, cela peut prendre quelques minutes, heures ou même jours ! Veuillez être patient.",
"emailNotification": "Vous pouvez fermer cette fenêtre. Vous recevrez une notification par e-mail lorsque la tâche sera terminée."
+ },
+ "switchButton": {
+ "enabled": "Activé",
+ "disabled": "Désactivé"
}
}
-
+
\ No newline at end of file
diff --git a/ui/src/main.js b/ui/src/main.js
index d70847a..1a0f7d3 100644
--- a/ui/src/main.js
+++ b/ui/src/main.js
@@ -29,7 +29,7 @@ function loadLocaleMessages() {
const messages = {}
locales.keys().forEach(key => {
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
- if (matched && matched.length > 1) {
+ if (matched && matched.length > 1) {code
const locale = matched[1]
messages[locale] = locales(key)
}
From 85534631fbcc274100c7302b09d091ae5ba99aba Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 12 Mar 2024 21:49:15 +0530
Subject: [PATCH 20/48] Remove AlertFeedback, SwitchButton translation strings
---
ui/src/App.vue | 15 +--------------
ui/src/locales/en.json | 10 ----------
ui/src/locales/fr.json | 10 ----------
ui/src/main.js | 2 +-
4 files changed, 2 insertions(+), 35 deletions(-)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index eb1c335..30dcdf7 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -1,5 +1,5 @@
-
@@ -38,15 +36,4 @@ footer {
padding-top: 1em;
padding-bottom: 1em;
}
-
-/* RTL styles */
-[dir="rtl"] #app {
- direction: rtl;
- text-align: right;
-}
-
-[dir="rtl"] footer {
- direction: rtl;
- text-align: center; /* Keep footer text centered or change as needed */
-}
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 97772c9..228e799 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -1,10 +1,4 @@
{
- "alertFeedback": {
- "info": "Information",
- "success": "Success",
- "warning": "Warning",
- "danger": "Danger"
- },
"faq": {
"whatIsZim": "What is a Zim file?",
"whatIsZimDesc": "The Zim file format stores website content for offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
@@ -55,10 +49,6 @@
"beingProcessed": "Your request is being processed",
"serverConverting": "One of our servers is currently converting that URL into a nice ZIM file. Depending on the number of pages and resources available, it can be a matter of minutes, hours or even days! Please be patient.",
"emailNotification": "You can close this window. You will get an email notification when the task is completed."
- },
- "switchButton": {
- "enabled": "Enabled",
- "disabled": "Disabled"
}
}
\ No newline at end of file
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 3409a14..8ec2d6f 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -1,10 +1,4 @@
{
- "alertFeedback": {
- "info": "Information",
- "success": "Succès",
- "warning": "Avertissement",
- "danger": "Danger"
- },
"faq": {
"whatIsZim": "Qu'est-ce qu'un fichier Zim ?",
"whatIsZimDesc": "Le format de fichier Zim stocke le contenu d'un site web pour une utilisation hors ligne. Il assemble les constituants normaux d'un site web dans une seule archive, et le compresse afin de faciliter son enregistrement, partage, et stockage.",
@@ -54,10 +48,6 @@
"beingProcessed": "Votre demande est en cours de traitement",
"serverConverting": "L'un de nos serveurs convertit actuellement cette URL en un joli fichier ZIM. Selon le nombre de pages et de ressources disponibles, cela peut prendre quelques minutes, heures ou même jours ! Veuillez être patient.",
"emailNotification": "Vous pouvez fermer cette fenêtre. Vous recevrez une notification par e-mail lorsque la tâche sera terminée."
- },
- "switchButton": {
- "enabled": "Activé",
- "disabled": "Désactivé"
}
}
\ No newline at end of file
diff --git a/ui/src/main.js b/ui/src/main.js
index 1a0f7d3..a8ff709 100644
--- a/ui/src/main.js
+++ b/ui/src/main.js
@@ -29,7 +29,7 @@ function loadLocaleMessages() {
const messages = {}
locales.keys().forEach(key => {
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
- if (matched && matched.length > 1) {code
+ if (matched && matched.length > 1) {
const locale = matched[1]
messages[locale] = locales(key)
}
From 0624a5e1b674bf703d6dddbd576f099121c38b04 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 12 Mar 2024 21:53:19 +0530
Subject: [PATCH 21/48] Remove pers.json
---
ui/src/locales/pers.json | 49 ----------------------------------------
1 file changed, 49 deletions(-)
delete mode 100644 ui/src/locales/pers.json
diff --git a/ui/src/locales/pers.json b/ui/src/locales/pers.json
deleted file mode 100644
index 0f61f59..0000000
--- a/ui/src/locales/pers.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "faq": {
- "whatIsZim": "فایل زیم چیست؟",
- "whatIsZimDesc": "فرمت فایل زیم محتوای وبسایتها را برای استفاده آفلاین ذخیره میکند. این فرمت اجزای معمول یک وبسایت را در یک فایل آرشیو ترکیب میکند و آن را فشردهسازی میکند تا ذخیره، به اشتراک گذاری و ذخیره آسانتر شود.",
- "howToRead": "چگونه فایلهای زیم خود را بخوانم؟",
- "howToReadDesc": "شما به یک خواننده فایل زیم نیاز دارید. این معمولا به معنای Kiwix است که بر روی رایانههای رومیزی، دستگاههای تلفن همراه و غیره قابل دسترسی است. در حال حاضر فقط Kiwix-serve و Kiwix-Android میتوانند تمامی فایلهای تولید شده توسط Zimit را بخوانند. اگر از Kiwix-Desktop برای Microsoft Windows و GNU/Linux استفاده میکنید، آنگاه باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. ما انتظار داریم تا پایان سال 2021 بیشتر پلتفرمها ارتقاء یابند.",
- "missingContent": "فایل زیم ناقص یا کوچکتر از وبسایت اصلی است",
- "missingContentDesc": "به دلیل طبیعت این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود به هر وبسایتی باز گذاریم. این میتواند هم برای زیرساخت ما مضر باشد و هم برای وبسایتهای هدف. در حال حاضر دو محدودیت را اعمال میکنیم: اندازه فایل و زمان.",
- "gotError": "یک پیام خطا دریافت کردم (بدون فایل زیم) یا نتوانستم فایل زیم را بخوانم",
- "gotErrorDesc": "URL وارد شده را سه بار بررسی کنید، و اگر هنوز هم کار نمیکند، یک تیکت اشکال در گیتهاب باز کنید. وبسایت مقصد، شماره درخواست (در ایمیلی که دریافت کردهاید است) و دستگاهی را که سعی کردهاید فایل زیم خود را باز کنید، مشخص کنید."
- },
- "app": {
- "poweredByKiwix": "قدرت گرفته از Kiwix",
- "poweredByWebrecorder": "Webrecorder",
- "thanksToMozilla": "با تشکر از جایزه پشتیبانی از منبعباز Mozilla"
- },
- "loading": {
- "loading": "در حال بارگذاری..."
- },
- "navbar": {
- "logoAlt": "لوگوی Youzim.it"
- },
- "newRequest": {
- "heading": "میخواهید یک نسخه آفلاین از یک وبسایت داشته باشید؟ فقط",
- "boldZim": "زیم کنید",
- "urlPlaceholder": "آدرس URL کامل وبسایت برای تبدیل",
- "emailPlaceholder": "آدرس ایمیل خود را برای دریافت لینک دانلود وارد کنید. آدرس نگه دارده نمیشود",
- "submit": "بیایید آن را زیم کنیم!",
- "advancedOptions": "گزینههای پیشرفته"
- },
- "notFound": {
- "heading": "یافت نشد",
- "description": "متاسفیم، این محتوا پیدا نشد. شاید دوست داشته باشید به عقب بروید."
- },
- "request": {
- "requestingSlot": "درخواست اسلات",
- "zimingOf": "تبدیل شدن به فایل زیم از ",
- "requestRecorded": "درخواست شما ثبت شده است و منتظر یک اسلات در زیرساخت ما برای اجرا میباشد.",
- "requestFailed": "درخواست شما انجام نشد! متاسفیم در مورد این.",
- "failureReasons": "به چندین دلیل میتواند منجر به شکست تبدیل شود. بیشتر زمانها، این یک URL ناکافی است... لطفاً آن را سه بار بررسی کنید و یک درخواست جدید ایجاد کنید. اگر کار نمیکند، یک تیکت در گیتهاب باز کنید.",
- "success": "موفقیت!",
- "linkExpires": "لینک زیر پس از یک هفته منقضی میشود و فایل پس از آن حذف میشود.",
- "download": "دانلود",
- "limitHit": "شما به حداکثر اندازه فایل یا مدت زمان مجاز برای کرالینگ رایگان رسیدهاید. با ما تماس بگیرید تا به شما در خرید فضای سرور اضافی کمک کنیم.",
- "beingProcessed": "درخواست شما در حال پردازش است",
- "serverConverting": "یکی از سرورهای ما در حال تبدیل این URL به یک فایل زیم زیبا است. بستگی به تعداد صفحات و منابع موجود، ممکن است چند دقیقه، ساعت یا حتی روزها طول بکشد! لطفاً صبور باشید.",
- "emailNotification": "میتوانید این پنجره را ببندید. شما یک اعلان ایمیل دریافت خواهید کرد هنگامی که وظیفه تکمیل شود."
- }
-}
From ae4afb323a17fc092d59acff8a88dac882ec3efd Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 12 Mar 2024 23:24:06 +0530
Subject: [PATCH 22/48] Fix Faq content not showing and internationalize
human_size_limit and human_time_limit
---
ui/src/components/Faq.vue | 32 +++++++++++++++++++++-----------
ui/src/locales/en.json | 6 +++++-
ui/src/locales/far.json | 6 +++++-
ui/src/locales/fr.json | 9 ++++++---
4 files changed, 37 insertions(+), 16 deletions(-)
diff --git a/ui/src/components/Faq.vue b/ui/src/components/Faq.vue
index 7949e05..b325967 100644
--- a/ui/src/components/Faq.vue
+++ b/ui/src/components/Faq.vue
@@ -2,26 +2,34 @@
@@ -35,11 +43,13 @@ export default {
components: { FaqEntry },
computed: {
human_size_limit() {
- return `${parseInt(Constants.zimit_size_limit / 1073741824)} GiB`;
+ const sizeInGiB = parseInt(Constants.zimit_size_limit / 1073741824);
+ return this.$t('units.sizeLimit', { value: sizeInGiB });
},
human_time_limit() {
- return `${parseInt(Constants.zimit_time_limit / 3600)} hours`;
+ const timeInHours = parseInt(Constants.zimit_time_limit / 3600);
+ return this.$t('units.timeLimit', { value: timeInHours });
},
}
}
-
+
\ No newline at end of file
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 228e799..2cbda4e 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -5,10 +5,14 @@
"howToRead": "How do I read my Zim files?",
"howToReadDesc": "You will need a Zim file reader. This usually means Kiwix, which is available on desktop computers, mobile devices, and more. Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
"missingContent": "The Zim file is incomplete or smaller than the original website",
- "missingContentDesc": "Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: file size and time.",
+ "missingContentDesc": "Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: {human_size_limit} file size and {human_time_limit}.",
"gotError": "I got an error message (no zim) or could not read a zim file",
"gotErrorDesc": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on github. Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
},
+ "units": {
+ "sizeLimit": "{value} GiB",
+ "timeLimit": "{value} hours"
+ },
"app": {
"poweredByKiwix": "Powered by",
"kiwix": "Kiwix",
diff --git a/ui/src/locales/far.json b/ui/src/locales/far.json
index 3ea0a87..a8f45a2 100644
--- a/ui/src/locales/far.json
+++ b/ui/src/locales/far.json
@@ -5,10 +5,14 @@
"howToRead": "چگونه فایلهای زیم خود را بخوانم؟",
"howToReadDesc": "شما به یک خواننده فایل زیم نیاز دارید. این معمولا به معنای Kiwix است که بر روی رایانههای رومیزی، دستگاههای تلفن همراه و غیره قابل دسترسی است. در حال حاضر فقط Kiwix-serve و Kiwix-Android میتوانند تمامی فایلهای تولید شده توسط Zimit را بخوانند. اگر از Kiwix-Desktop برای Microsoft Windows و GNU/Linux استفاده میکنید، آنگاه باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. ما انتظار داریم تا پایان سال 2021 بیشتر پلتفرمها ارتقاء یابند.",
"missingContent": "فایل زیم ناقص یا کوچکتر از وبسایت اصلی است",
- "missingContentDesc": "به دلیل طبیعت این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود به هر وبسایتی باز گذاریم. این میتواند هم برای زیرساخت ما مضر باشد و هم برای وبسایتهای هدف. در حال حاضر دو محدودیت را اعمال میکنیم: اندازه فایل و زمان.",
+ "missingContentDesc": "به دلیل طبیعت خاص این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود از هر وبسایتی باز بگذاریم. این امر میتواند هم برای زیرساخت ما و هم برای وبسایتهای هدف مضر باشد. ما در حال حاضر دو محدودیت را اعمال میکنیم: {human_size_limit} اندازه فایل و {human_time_limit}.",
"gotError": "یک پیام خطا دریافت کردم (بدون فایل زیم) یا نتوانستم فایل زیم را بخوانم",
"gotErrorDesc": "URL وارد شده را سه بار بررسی کنید، و اگر هنوز هم کار نمیکند، یک تیکت اشکال در گیتهاب باز کنید. وبسایت مقصد، شماره درخواست (در ایمیلی که دریافت کردهاید است) و دستگاهی را که سعی کردهاید فایل زیم خود را باز کنید، مشخص کنید."
},
+ "units": {
+ "sizeLimit": "{value} گیبیبایت",
+ "timeLimit": "{value} ساعت"
+ },
"app": {
"poweredByKiwix": "توسط",
"kiwix": "Kiwix",
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 8ec2d6f..ec1b66c 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -5,10 +5,14 @@
"howToRead": "Comment lire mes fichiers Zim ?",
"howToReadDesc": "Vous aurez besoin d'un lecteur de fichiers Zim. Cela signifie généralement Kiwix, qui est disponible sur les ordinateurs de bureau, les appareils mobiles, et plus encore. Actuellement, seul Kiwix-serve et Kiwix-Android peuvent lire tous les fichiers générés par Zimit. Si vous utilisez Kiwix-Desktop pour Microsoft Windows et GNU/Linux, alors vous devrez le configurer comme une instance Kiwix-serve dans les paramètres. Nous nous attendons à ce que la plupart des plateformes soient mises à niveau d'ici la fin de 2021.",
"missingContent": "Le fichier Zim est incomplet ou plus petit que le site web original",
- "missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert aux demandes illimitées vers n'importe quel site web. Cela pourrait être préjudiciable à la fois pour notre infrastructure, mais aussi pour les sites web ciblés. Nous imposons actuellement deux limites : taille de fichier et temps.",
+ "missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert à des demandes illimitées envers n'importe quel site web. Cela pourrait être nuisible à la fois pour notre infrastructure, mais aussi pour les sites web ciblés. Nous appliquons actuellement deux limites : {human_size_limit} de taille de fichier et {human_time_limit}.",
"gotError": "J'ai reçu un message d'erreur (pas de zim) ou je ne peux pas lire un fichier zim",
"gotErrorDesc": "Vérifiez trois fois l'URL que vous avez entrée, et si cela ne fonctionne toujours pas, ouvrez un ticket sur github. Indiquez le site web cible, le numéro de la demande (il est dans l'email que vous avez reçu), et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim."
},
+ "units": {
+ "sizeLimit": "{value} Gio",
+ "timeLimit": "{value} heures"
+ },
"loading": {
"loading": "Chargement en cours…"
},
@@ -49,5 +53,4 @@
"serverConverting": "L'un de nos serveurs convertit actuellement cette URL en un joli fichier ZIM. Selon le nombre de pages et de ressources disponibles, cela peut prendre quelques minutes, heures ou même jours ! Veuillez être patient.",
"emailNotification": "Vous pouvez fermer cette fenêtre. Vous recevrez une notification par e-mail lorsque la tâche sera terminée."
}
-}
-
\ No newline at end of file
+}
\ No newline at end of file
From c393a5e41a534117af21dc0720bb90e8fdefab9e Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 12 Mar 2024 23:42:16 +0530
Subject: [PATCH 23/48] Change far.json to fa.json
---
ui/src/App.vue | 2 +-
ui/src/locales/{far.json => fa.json} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename ui/src/locales/{far.json => fa.json} (100%)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index 30dcdf7..ce63be9 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/ui/src/locales/far.json b/ui/src/locales/fa.json
similarity index 100%
rename from ui/src/locales/far.json
rename to ui/src/locales/fa.json
From 632a388aa87f218d85bcf87fec6e8a57a61ac4d1 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 12 Mar 2024 23:43:24 +0530
Subject: [PATCH 24/48] Change far.json to fa.json
---
ui/src/App.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index ce63be9..30dcdf7 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -1,5 +1,5 @@
-
+
From 96a34d50c68e2f0efd7f953bc972cce90a7f873d Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 12 Mar 2024 23:51:48 +0530
Subject: [PATCH 25/48] Load fa.json
---
ui/src/components/NavBar.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/components/NavBar.vue b/ui/src/components/NavBar.vue
index bf1a673..5910b1c 100644
--- a/ui/src/components/NavBar.vue
+++ b/ui/src/components/NavBar.vue
@@ -7,7 +7,7 @@
From a33d73d42d427d4817e3ad2f5cfe6ed59e39897c Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Thu, 14 Mar 2024 23:55:56 +0530
Subject: [PATCH 26/48] Add dynamic RTL support for Farsi language
---
ui/src/main.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/ui/src/main.js b/ui/src/main.js
index a8ff709..a4b8486 100644
--- a/ui/src/main.js
+++ b/ui/src/main.js
@@ -76,4 +76,18 @@ new Vue({
store,
i18n,
render: h => h(App),
+ created() {
+ this.setPageDirection(this.$i18n.locale);
+ },
+ methods: {
+ setPageDirection(locale) {
+ const dir = locale === 'fa' ? 'rtl' : 'ltr';
+ document.documentElement.setAttribute('dir', dir);
+ },
+ },
+ watch: {
+ '$i18n.locale'(newLocale) {
+ this.setPageDirection(newLocale);
+ },
+ },
}).$mount('#app');
From b15e04665a6eb67a911087706427a2cf9e2ca2d9 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sat, 16 Mar 2024 01:01:50 +0530
Subject: [PATCH 27/48] i18 NewRequest and Request Component
---
ui/src/components/NewRequest.vue | 271 +++++++++++++++----------------
ui/src/components/Request.vue | 199 +++++++++++------------
ui/src/locales/en.json | 27 ++-
ui/src/locales/fa.json | 41 +++--
ui/src/locales/fr.json | 39 ++++-
5 files changed, 320 insertions(+), 257 deletions(-)
diff --git a/ui/src/components/NewRequest.vue b/ui/src/components/NewRequest.vue
index 966fbd2..e6bb321 100644
--- a/ui/src/components/NewRequest.vue
+++ b/ui/src/components/NewRequest.vue
@@ -20,7 +20,6 @@
v-model="form.email" />
-
From 5ef22f595223bbeae80c03f58650d6c86e74179a Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sun, 7 Apr 2024 00:30:11 +0530
Subject: [PATCH 31/48] Fix links not showing in FAQ entries
---
et --hard e3a1b35 | 27 +++++++++++++++++++++++++++
ui/src/components/Faq.vue | 29 ++++++++++++++++-------------
ui/src/locales/en.json | 23 +++++++++++++++++------
ui/src/locales/fa.json | 16 ++++++++++------
ui/src/locales/fr.json | 20 ++++++++++++--------
5 files changed, 82 insertions(+), 33 deletions(-)
create mode 100644 et --hard e3a1b35
diff --git a/et --hard e3a1b35 b/et --hard e3a1b35
new file mode 100644
index 0000000..2e08e91
--- /dev/null
+++ b/et --hard e3a1b35
@@ -0,0 +1,27 @@
+[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{0}: reset: moving to HEAD~1
+[33mea66868[m[33m ([m[1;31morigin/my-dev-branch[m[33m)[m HEAD@{1}: checkout: moving from dev to my-dev-branch
+[33m5689c00[m[33m ([m[1;31morigin/dev[m[33m, [m[1;32mdev[m[33m)[m HEAD@{2}: merge my-dev-branch: Merge made by the 'ort' strategy.
+[33mbb738ba[m HEAD@{3}: checkout: moving from my-dev-branch to dev
+[33mea66868[m[33m ([m[1;31morigin/my-dev-branch[m[33m)[m HEAD@{4}: checkout: moving from my-dev-branch to my-dev-branch
+[33mea66868[m[33m ([m[1;31morigin/my-dev-branch[m[33m)[m HEAD@{5}: commit: Fix footer text
+[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{6}: checkout: moving from my-dev-branch to my-dev-branch
+[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{7}: reset: moving to HEAD
+[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{8}: checkout: moving from dev to my-dev-branch
+[33mbb738ba[m HEAD@{9}: commit: Fix footer text
+[33mb5e7c88[m HEAD@{10}: commit: Update Request.vue
+[33mb15e046[m HEAD@{11}: commit: i18 NewRequest and Request Component
+[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{12}: checkout: moving from my-dev-branch to dev
+[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{13}: commit: Add dynamic RTL support for Farsi language
+[33m96a34d5[m HEAD@{14}: commit: Load fa.json
+[33m632a388[m HEAD@{15}: commit: Change far.json to fa.json
+[33mc393a5e[m HEAD@{16}: commit: Change far.json to fa.json
+[33mae4afb3[m HEAD@{17}: commit (amend): Fix Faq content not showing and internationalize human_size_limit and human_time_limit
+[33mfda70c4[m HEAD@{18}: commit (amend): Fix Faq content not showing and internationalize human_size_limit and human_time_limit
+[33me5bb3f2[m HEAD@{19}: commit: Fix Faq content not showing
+[33m0624a5e[m HEAD@{20}: commit: Remove pers.json
+[33m8553463[m HEAD@{21}: commit: Remove AlertFeedback, SwitchButton translation strings
+[33m0993ce6[m HEAD@{22}: commit (merge): Resolve merge conflicts
+[33m632384a[m HEAD@{23}: commit: Fix footer translation, dropdown text.
+[33m9f29f54[m HEAD@{24}: checkout: moving from 9f29f54de45986327bcc30320d8c0387404810e1 to my-dev-branch
+[33m9f29f54[m HEAD@{25}: checkout: moving from main to refs/remotes/origin/dev
+[33m502fc8b[m[33m ([m[1;31morigin/main[m[33m, [m[1;31morigin/HEAD[m[33m, [m[1;32mmain[m[33m)[m HEAD@{26}: clone: from https://github.com/Onyx2406/zimit-frontend.git
diff --git a/ui/src/components/Faq.vue b/ui/src/components/Faq.vue
index b325967..7870757 100644
--- a/ui/src/components/Faq.vue
+++ b/ui/src/components/Faq.vue
@@ -1,18 +1,20 @@
@@ -52,4 +54,5 @@ export default {
},
}
}
-
\ No newline at end of file
+
+
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 2cb56fe..168df6a 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -1,14 +1,18 @@
{
"faq": {
"whatIsZim": "What is a Zim file?",
- "whatIsZimDesc": "The Zim file format stores website content for offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
+ "whatIsZimDesc1": "The Zim file format stores website content for ",
+ "whatIsZimDesc2": " offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
"howToRead": "How do I read my Zim files?",
- "howToReadDesc": "You will need a Zim file reader. This usually means Kiwix, which is available on desktop computers, mobile devices, and more. Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
+ "howToReadDesc1": "You will need a Zim file reader. This usually means ",
+ "howToReadDesc2": ", which is available on ",
+ "howToReadDesc3": "desktop computers, mobile devices, and more. Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
"missingContent": "The Zim file is incomplete or smaller than the original website",
"missingContentDesc": "Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: {human_size_limit} file size and {human_time_limit}.",
"gotError": "I got an error message (no zim) or could not read a zim file",
- "gotErrorDesc": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on github. Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
- },
+ "gotErrorDesc1": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on ",
+ "gotErrorDesc2": ". Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
+ },
"errorMessages": {
"unableToRequestZIMCreation": "Unable to request ZIM creation:"
},
@@ -37,7 +41,14 @@
"urlPlaceholder": "Full URL of the website to convert",
"emailPlaceholder": "Your e-mail to receive a download link. Address not kept",
"submit": "Let's Zim it!",
- "advancedOptions": "advanced options"
+ "advancedOptions": "advanced options",
+ "true": "True",
+ "notSet": "Not set",
+ "fetchingDefinition": "Fetching definition…",
+ "creatingSchedule": "Creating schedule…",
+ "standardHTTPError": "An error occurred: {error}",
+ "noTaskIdReceived": "Didn't receive task ID.",
+ "unableToRequestZIM": "Unable to request ZIM creation: {error}"
},
"notFound": {
"heading": "Not Found",
@@ -47,7 +58,7 @@
"requestingSlot": "Requesting slot",
"zimingOf": "Ziming of ",
"requestRecorded": "Your request has been recorded and is awaiting a slot on our infrastructure to run.",
- "requestFailed": "You request has failed! We are sorry about that.",
+ "requestFailed": "Your request has failed! We are sorry about that.",
"failureReasons": "A number of reasons can lead to a ziming failure. Most of the time, it's an inadequate URL… Please triple check it and create a new request. If that doesn't work, open a ticket in github.",
"success": "Success!",
"linkExpires": "The link below will expire and the file will be deleted after a week.",
diff --git a/ui/src/locales/fa.json b/ui/src/locales/fa.json
index 54f7d1a..7919fb8 100644
--- a/ui/src/locales/fa.json
+++ b/ui/src/locales/fa.json
@@ -1,13 +1,17 @@
{
"faq": {
"whatIsZim": "فایل زیم چیست؟",
- "whatIsZimDesc": "فرمت فایل زیم محتوای وبسایتها را برای استفاده آفلاین ذخیره میکند. این فرمت اجزای معمول یک وبسایت را در یک فایل آرشیو ترکیب میکند و آن را فشردهسازی میکند تا ذخیره، به اشتراک گذاری و ذخیره آسانتر شود.",
+ "whatIsZimDesc1": "فرمت فایل زیم محتوای وبسایت را برای استفاده ",
+ "whatIsZimDesc2": "آفلاین ذخیره میکند. این فرمت اجزای عادی یک وبسایت را در یک آرشیو واحد جمعآوری و فشردهسازی میکند تا ذخیرهسازی، به اشتراکگذاری، و نگهداری آن راحتتر شود.",
"howToRead": "چگونه فایلهای زیم خود را بخوانم؟",
- "howToReadDesc": "شما به یک خواننده فایل زیم نیاز دارید. این معمولا به معنای Kiwix است که بر روی رایانههای رومیزی، دستگاههای تلفن همراه و غیره قابل دسترسی است. در حال حاضر فقط Kiwix-serve و Kiwix-Android میتوانند تمامی فایلهای تولید شده توسط Zimit را بخوانند. اگر از Kiwix-Desktop برای Microsoft Windows و GNU/Linux استفاده میکنید، آنگاه باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. ما انتظار داریم تا پایان سال 2021 بیشتر پلتفرمها ارتقاء یابند.",
- "missingContent": "فایل زیم ناقص یا کوچکتر از وبسایت اصلی است",
- "missingContentDesc": "به دلیل طبیعت خاص این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود از هر وبسایتی باز بگذاریم. این امر میتواند هم برای زیرساخت ما و هم برای وبسایتهای هدف مضر باشد. ما در حال حاضر دو محدودیت را اعمال میکنیم: {human_size_limit} اندازه فایل و {human_time_limit}.",
- "gotError": "یک پیام خطا دریافت کردم (بدون فایل زیم) یا نتوانستم فایل زیم را بخوانم",
- "gotErrorDesc": "URL وارد شده را سه بار بررسی کنید، و اگر هنوز هم کار نمیکند، یک تیکت اشکال در گیتهاب باز کنید. وبسایت مقصد، شماره درخواست (در ایمیلی که دریافت کردهاید است) و دستگاهی را که سعی کردهاید فایل زیم خود را باز کنید، مشخص کنید."
+ "howToReadDesc1": "شما به یک خواننده فایل زیم نیاز دارید. این معمولاً به معنای ",
+ "howToReadDesc2": "است که بر روی ",
+ "howToReadDesc3": "کامپیوترهای رومیزی، دستگاههای موبایل و موارد دیگر موجود است. در حال حاضر تنها Kiwix-serve و Kiwix-Android قادر به خواندن تمام فایلهای تولید شده توسط Zimit هستند. اگر از Kiwix-Desktop برای ویندوز مایکروسافت و گنو/لینوکس استفاده میکنید، باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. انتظار میرود که اکثر پلتفرمها تا پایان سال 2021 بهروزرسانی شوند.",
+ "missingContent": "فایل زیم ناقص است یا ک kleiner از وبسایت اصلی",
+ "missingContentDesc": "به دلیل ماهیت این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود به هر وبسایتی باز بگذاریم. این میتواند هم برای زیرساخت ما و هم برای وبسایتهای هدف مضر باشد. ما در حال حاضر دو محدودیت را اعمال میکنیم: {human_size_limit} اندازه فایل و {human_time_limit}.",
+ "gotError": "پیام خطایی دریافت کردم (بدون زیم) یا نتوانستم فایل زیم را بخوانم",
+ "gotErrorDesc1": "URL وارد شده را سه بار بررسی کنید، و اگر همچنان کار نکرد سپس یک تیکت باگ در ",
+ "gotErrorDesc2": "باز کنید. وبسایت هدف، شماره درخواست (در ایمیلی که دریافت کردهاید است)، و دستگاهی که سعی کردهاید فایل زیم خود را روی آن باز کنید را ذکر کنید."
},
"errorMessages": {
"unableToRequestZIMCreation": "درخواست ایجاد ZIM ممکن نیست:"
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 90a7224..5231a4b 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -1,13 +1,17 @@
{
"faq": {
- "whatIsZim": "Qu'est-ce qu'un fichier Zim?",
- "whatIsZimDesc": "Le format de fichier Zim stocke le contenu d'un site web pour une utilisation hors ligne. Il assemble les constituants normaux d'un site web dans une seule archive, et le compresse afin de faciliter son enregistrement, partage, et stockage.",
- "howToRead": "Comment lire mes fichiers Zim?",
- "howToReadDesc": "Vous aurez besoin d'un lecteur de fichiers Zim. Cela signifie généralement Kiwix, qui est disponible sur les ordinateurs de bureau, les appareils mobiles, et plus encore. Actuellement, seul Kiwix-serve et Kiwix-Android peuvent lire tous les fichiers générés par Zimit. Si vous utilisez Kiwix-Desktop pour Microsoft Windows et GNU/Linux, alors vous devrez le configurer comme une instance Kiwix-serve dans les paramètres. Nous nous attendons à ce que la plupart des plateformes soient mises à niveau d'ici la fin de 2021.",
- "missingContent": "Le fichier Zim est incomplet ou plus petit que le site web original",
- "missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert à des demandes illimitées envers n'importe quel site web. Cela pourrait être nuisible à la fois pour notre infrastructure, mais aussi pour les sites web ciblés. Nous appliquons actuellement deux limites : {human_size_limit} de taille de fichier et {human_time_limit}.",
- "gotError": "J'ai reçu un message d'erreur (pas de zim) ou je ne peux pas lire un fichier zim",
- "gotErrorDesc": "Vérifiez trois fois l'URL que vous avez entrée, et si cela ne fonctionne toujours pas, ouvrez un ticket sur github. Indiquez le site web cible, le numéro de la demande (il est dans l'email que vous avez reçu), et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim."
+ "whatIsZim": "Qu'est-ce qu'un fichier Zim ?",
+ "whatIsZimDesc1": "Le format de fichier Zim stocke le contenu d'un site Web pour une utilisation ",
+ "whatIsZimDesc2": "hors ligne. Il assemble les composants normaux d'un site Web dans une seule archive et le compresse afin de faciliter son enregistrement, son partage et son stockage.",
+ "howToRead": "Comment puis-je lire mes fichiers Zim ?",
+ "howToReadDesc1": "Vous aurez besoin d'un lecteur de fichiers Zim. Cela signifie généralement ",
+ "howToReadDesc2": ", qui est disponible sur ",
+ "howToReadDesc3": "les ordinateurs de bureau, les appareils mobiles et plus encore. Actuellement, seuls Kiwix-serve et Kiwix-Android peuvent lire tous les fichiers générés par Zimit. Si vous utilisez Kiwix-Desktop pour Microsoft Windows et GNU/Linux, alors vous devrez le configurer comme une instance Kiwix-serve dans les paramètres. Nous nous attendons à ce que la plupart des plateformes soient mises à niveau d'ici la fin de 2021.",
+ "missingContent": "Le fichier Zim est incomplet ou plus petit que le site Web original",
+ "missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert aux demandes illimitées envers n'importe quel site Web. Cela pourrait être nuisible à la fois pour notre infrastructure, mais aussi pour les sites Web ciblés. Nous appliquons actuellement deux limites : {human_size_limit} taille de fichier et {human_time_limit}.",
+ "gotError": "J'ai reçu un message d'erreur (pas de zim) ou je n'ai pas pu lire un fichier zim",
+ "gotErrorDesc1": "Vérifiez trois fois l'URL que vous avez saisie, et si cela ne fonctionne toujours pas, ouvrez un ticket de bug sur ",
+ "gotErrorDesc2": ". Indiquez le site Web cible, le numéro de la demande (il est dans l'e-mail que vous avez reçu) et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim."
},
"errorMessages": {
"unableToRequestZIMCreation": "Impossible de demander la création de ZIM :"
From 9983a7a53cd3510c2c5e3012af9ce2c8bd54903f Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sun, 7 Apr 2024 00:33:23 +0530
Subject: [PATCH 32/48] Update en.json
---
ui/src/components/Faq.vue | 3 +--
ui/src/locales/en.json | 9 +--------
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/ui/src/components/Faq.vue b/ui/src/components/Faq.vue
index 7870757..05e4c1c 100644
--- a/ui/src/components/Faq.vue
+++ b/ui/src/components/Faq.vue
@@ -54,5 +54,4 @@ export default {
},
}
}
-
-
+
\ No newline at end of file
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 168df6a..b96a957 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -41,14 +41,7 @@
"urlPlaceholder": "Full URL of the website to convert",
"emailPlaceholder": "Your e-mail to receive a download link. Address not kept",
"submit": "Let's Zim it!",
- "advancedOptions": "advanced options",
- "true": "True",
- "notSet": "Not set",
- "fetchingDefinition": "Fetching definition…",
- "creatingSchedule": "Creating schedule…",
- "standardHTTPError": "An error occurred: {error}",
- "noTaskIdReceived": "Didn't receive task ID.",
- "unableToRequestZIM": "Unable to request ZIM creation: {error}"
+ "advancedOptions": "advanced options"
},
"notFound": {
"heading": "Not Found",
From 6bbd6df5c72dbc79b9bc059010581f26d1607fe8 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sun, 7 Apr 2024 00:34:10 +0530
Subject: [PATCH 33/48] Remove et --hard e3a1b35
---
et --hard e3a1b35 | 27 ---------------------------
1 file changed, 27 deletions(-)
delete mode 100644 et --hard e3a1b35
diff --git a/et --hard e3a1b35 b/et --hard e3a1b35
deleted file mode 100644
index 2e08e91..0000000
--- a/et --hard e3a1b35
+++ /dev/null
@@ -1,27 +0,0 @@
-[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{0}: reset: moving to HEAD~1
-[33mea66868[m[33m ([m[1;31morigin/my-dev-branch[m[33m)[m HEAD@{1}: checkout: moving from dev to my-dev-branch
-[33m5689c00[m[33m ([m[1;31morigin/dev[m[33m, [m[1;32mdev[m[33m)[m HEAD@{2}: merge my-dev-branch: Merge made by the 'ort' strategy.
-[33mbb738ba[m HEAD@{3}: checkout: moving from my-dev-branch to dev
-[33mea66868[m[33m ([m[1;31morigin/my-dev-branch[m[33m)[m HEAD@{4}: checkout: moving from my-dev-branch to my-dev-branch
-[33mea66868[m[33m ([m[1;31morigin/my-dev-branch[m[33m)[m HEAD@{5}: commit: Fix footer text
-[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{6}: checkout: moving from my-dev-branch to my-dev-branch
-[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{7}: reset: moving to HEAD
-[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{8}: checkout: moving from dev to my-dev-branch
-[33mbb738ba[m HEAD@{9}: commit: Fix footer text
-[33mb5e7c88[m HEAD@{10}: commit: Update Request.vue
-[33mb15e046[m HEAD@{11}: commit: i18 NewRequest and Request Component
-[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{12}: checkout: moving from my-dev-branch to dev
-[33ma33d73d[m[33m ([m[1;36mHEAD -> [m[1;32mmy-dev-branch[m[33m)[m HEAD@{13}: commit: Add dynamic RTL support for Farsi language
-[33m96a34d5[m HEAD@{14}: commit: Load fa.json
-[33m632a388[m HEAD@{15}: commit: Change far.json to fa.json
-[33mc393a5e[m HEAD@{16}: commit: Change far.json to fa.json
-[33mae4afb3[m HEAD@{17}: commit (amend): Fix Faq content not showing and internationalize human_size_limit and human_time_limit
-[33mfda70c4[m HEAD@{18}: commit (amend): Fix Faq content not showing and internationalize human_size_limit and human_time_limit
-[33me5bb3f2[m HEAD@{19}: commit: Fix Faq content not showing
-[33m0624a5e[m HEAD@{20}: commit: Remove pers.json
-[33m8553463[m HEAD@{21}: commit: Remove AlertFeedback, SwitchButton translation strings
-[33m0993ce6[m HEAD@{22}: commit (merge): Resolve merge conflicts
-[33m632384a[m HEAD@{23}: commit: Fix footer translation, dropdown text.
-[33m9f29f54[m HEAD@{24}: checkout: moving from 9f29f54de45986327bcc30320d8c0387404810e1 to my-dev-branch
-[33m9f29f54[m HEAD@{25}: checkout: moving from main to refs/remotes/origin/dev
-[33m502fc8b[m[33m ([m[1;31morigin/main[m[33m, [m[1;31morigin/HEAD[m[33m, [m[1;32mmain[m[33m)[m HEAD@{26}: clone: from https://github.com/Onyx2406/zimit-frontend.git
From c6fe8af2c6f9e965e05760f3d9fa7ac3845d8ede Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sun, 7 Apr 2024 00:46:46 +0530
Subject: [PATCH 34/48] Fix repeating strings in FAQ Entries
---
ui/src/components/Faq.vue | 4 ++--
ui/src/locales/en.json | 33 +++++++++++++++++++++------------
ui/src/locales/fa.json | 35 ++++++++++++++++++++++-------------
ui/src/locales/fr.json | 37 +++++++++++++++++++++++--------------
4 files changed, 68 insertions(+), 41 deletions(-)
diff --git a/ui/src/components/Faq.vue b/ui/src/components/Faq.vue
index 05e4c1c..90a360d 100644
--- a/ui/src/components/Faq.vue
+++ b/ui/src/components/Faq.vue
@@ -11,9 +11,9 @@
{{ $t('faq.howToReadDesc1') }}
- Kiwix
+ Kiwix,
{{ $t('faq.howToReadDesc2') }}
- desktop computers, mobile devices, and more
+ desktop computers, mobile devices, and more.
{{ $t('faq.howToReadDesc3') }}
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index b96a957..8ce5472 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -1,26 +1,30 @@
{
- "faq": {
+ "faq":
+ {
"whatIsZim": "What is a Zim file?",
"whatIsZimDesc1": "The Zim file format stores website content for ",
- "whatIsZimDesc2": " offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
+ "whatIsZimDesc2": " usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
"howToRead": "How do I read my Zim files?",
"howToReadDesc1": "You will need a Zim file reader. This usually means ",
"howToReadDesc2": ", which is available on ",
- "howToReadDesc3": "desktop computers, mobile devices, and more. Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
+ "howToReadDesc3": "Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
"missingContent": "The Zim file is incomplete or smaller than the original website",
"missingContentDesc": "Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: {human_size_limit} file size and {human_time_limit}.",
"gotError": "I got an error message (no zim) or could not read a zim file",
- "gotErrorDesc1": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on ",
+ "gotErrorDesc1": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on",
"gotErrorDesc2": ". Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
},
- "errorMessages": {
+ "errorMessages":
+ {
"unableToRequestZIMCreation": "Unable to request ZIM creation:"
},
- "units": {
+ "units":
+ {
"sizeLimit": "{value} GiB",
"timeLimit": "{value} hours"
},
- "app": {
+ "app":
+ {
"poweredBy": "Powered by",
"kiwix": "Kiwix",
"kiwixLink": "https://kiwix.org",
@@ -29,13 +33,16 @@
"webrecorderLink": "https://webrecorder.net",
"thanksToMozilla": "thanks to a Mozilla Open-Source Support Award "
},
- "loading": {
+ "loading":
+ {
"loading": "Loading…"
},
- "navbar": {
+ "navbar":
+ {
"logoAlt": "Youzim.it logo"
},
- "newRequest": {
+ "newRequest":
+ {
"heading": "Want an offline version of a website? Just",
"boldZim": "Zim it",
"urlPlaceholder": "Full URL of the website to convert",
@@ -43,11 +50,13 @@
"submit": "Let's Zim it!",
"advancedOptions": "advanced options"
},
- "notFound": {
+ "notFound":
+ {
"heading": "Not Found",
"description": "Sorry, this content was not found. Maybe you'd like to go back."
},
- "request": {
+ "request":
+ {
"requestingSlot": "Requesting slot",
"zimingOf": "Ziming of ",
"requestRecorded": "Your request has been recorded and is awaiting a slot on our infrastructure to run.",
diff --git a/ui/src/locales/fa.json b/ui/src/locales/fa.json
index 7919fb8..28585dc 100644
--- a/ui/src/locales/fa.json
+++ b/ui/src/locales/fa.json
@@ -1,26 +1,30 @@
{
- "faq": {
+ "faq":
+ {
"whatIsZim": "فایل زیم چیست؟",
- "whatIsZimDesc1": "فرمت فایل زیم محتوای وبسایت را برای استفاده ",
- "whatIsZimDesc2": "آفلاین ذخیره میکند. این فرمت اجزای عادی یک وبسایت را در یک آرشیو واحد جمعآوری و فشردهسازی میکند تا ذخیرهسازی، به اشتراکگذاری، و نگهداری آن راحتتر شود.",
+ "whatIsZimDesc1": "فرمت فایل زیم محتوای وبسایت را برای ",
+ "whatIsZimDesc2": "استفاده ذخیره میکند. این فرمت اجزای اصلی یک وبسایت را در یک آرشیو واحد جمعآوری و فشردهسازی میکند تا ذخیرهسازی، به اشتراکگذاری، و نگهداری آن آسانتر شود.",
"howToRead": "چگونه فایلهای زیم خود را بخوانم؟",
"howToReadDesc1": "شما به یک خواننده فایل زیم نیاز دارید. این معمولاً به معنای ",
"howToReadDesc2": "است که بر روی ",
- "howToReadDesc3": "کامپیوترهای رومیزی، دستگاههای موبایل و موارد دیگر موجود است. در حال حاضر تنها Kiwix-serve و Kiwix-Android قادر به خواندن تمام فایلهای تولید شده توسط Zimit هستند. اگر از Kiwix-Desktop برای ویندوز مایکروسافت و گنو/لینوکس استفاده میکنید، باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. انتظار میرود که اکثر پلتفرمها تا پایان سال 2021 بهروزرسانی شوند.",
- "missingContent": "فایل زیم ناقص است یا ک kleiner از وبسایت اصلی",
+ "howToReadDesc3": "در دسترس است. فعلاً تنها Kiwix-serve و Kiwix-Android قادر به خواندن تمام فایلهای تولیدشده توسط Zimit هستند. اگر از Kiwix-Desktop برای ویندوز مایکروسافت و گنو/لینوکس استفاده میکنید، باید آن را به عنوان یک نمونه Kiwix-serve در تنظیمات پیکربندی کنید. انتظار میرود که اکثر پلتفرمها تا پایان سال 2021 بهروزرسانی شوند.",
+ "missingContent": "فایل زیم ناقص است یا کوچکتر از وبسایت اصلی",
"missingContentDesc": "به دلیل ماهیت این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود به هر وبسایتی باز بگذاریم. این میتواند هم برای زیرساخت ما و هم برای وبسایتهای هدف مضر باشد. ما در حال حاضر دو محدودیت را اعمال میکنیم: {human_size_limit} اندازه فایل و {human_time_limit}.",
"gotError": "پیام خطایی دریافت کردم (بدون زیم) یا نتوانستم فایل زیم را بخوانم",
"gotErrorDesc1": "URL وارد شده را سه بار بررسی کنید، و اگر همچنان کار نکرد سپس یک تیکت باگ در ",
"gotErrorDesc2": "باز کنید. وبسایت هدف، شماره درخواست (در ایمیلی که دریافت کردهاید است)، و دستگاهی که سعی کردهاید فایل زیم خود را روی آن باز کنید را ذکر کنید."
},
- "errorMessages": {
+ "errorMessages":
+ {
"unableToRequestZIMCreation": "درخواست ایجاد ZIM ممکن نیست:"
},
- "units": {
+ "units":
+ {
"sizeLimit": "{value} گیبیبایت",
"timeLimit": "{value} ساعت"
},
- "app": {
+ "app":
+ {
"poweredBy": "به قدرت از",
"kiwix": "کیویکس",
"kiwixLink": "https://kiwix.org",
@@ -29,13 +33,16 @@
"webrecorderLink": "https://webrecorder.net",
"thanksToMozilla": "با تشکر از جایزه پشتیبانی منبعباز موزیلا "
},
- "loading": {
+ "loading":
+ {
"loading": "در حال بارگذاری..."
},
- "navbar": {
+ "navbar":
+ {
"logoAlt": "لوگوی Youzim.it"
},
- "newRequest": {
+ "newRequest":
+ {
"heading": "میخواهید یک نسخه آفلاین از یک وبسایت داشته باشید؟ فقط",
"boldZim": "زیم کنید",
"urlPlaceholder": "آدرس URL کامل وبسایت برای تبدیل",
@@ -43,11 +50,13 @@
"submit": "بیایید آن را زیم کنیم!",
"advancedOptions": "گزینههای پیشرفته"
},
- "notFound": {
+ "notFound":
+ {
"heading": "یافت نشد",
"description": "متاسفیم، این محتوا پیدا نشد. شاید دوست داشته باشید به عقب بروید."
},
- "request": {
+ "request":
+ {
"requestingSlot": "درخواست اسلات",
"zimingOf": "تبدیل شدن به فایل زیم از ",
"requestRecorded": "درخواست شما ثبت شده است و منتظر یک اسلات در زیرساخت ما برای اجرا میباشد.",
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 5231a4b..5e36fee 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -1,32 +1,38 @@
{
- "faq": {
+ "faq":
+ {
"whatIsZim": "Qu'est-ce qu'un fichier Zim ?",
- "whatIsZimDesc1": "Le format de fichier Zim stocke le contenu d'un site Web pour une utilisation ",
- "whatIsZimDesc2": "hors ligne. Il assemble les composants normaux d'un site Web dans une seule archive et le compresse afin de faciliter son enregistrement, son partage et son stockage.",
+ "whatIsZimDesc1": "Le format de fichier Zim stocke le contenu d'un site Web pour ",
+ "whatIsZimDesc2": "l'utilisation. Il assemble les constituants normaux d'un site Web dans une seule archive et le compresse pour faciliter l'enregistrement, le partage et le stockage.",
"howToRead": "Comment puis-je lire mes fichiers Zim ?",
"howToReadDesc1": "Vous aurez besoin d'un lecteur de fichiers Zim. Cela signifie généralement ",
"howToReadDesc2": ", qui est disponible sur ",
- "howToReadDesc3": "les ordinateurs de bureau, les appareils mobiles et plus encore. Actuellement, seuls Kiwix-serve et Kiwix-Android peuvent lire tous les fichiers générés par Zimit. Si vous utilisez Kiwix-Desktop pour Microsoft Windows et GNU/Linux, alors vous devrez le configurer comme une instance Kiwix-serve dans les paramètres. Nous nous attendons à ce que la plupart des plateformes soient mises à niveau d'ici la fin de 2021.",
+ "howToReadDesc3": "Actuellement, seuls Kiwix-serve et Kiwix-Android peuvent lire tous les fichiers générés par Zimit. Si vous utilisez Kiwix-Desktop pour Microsoft Windows et GNU/Linux, alors vous aurez besoin de le configurer comme une instance Kiwix-serve dans les paramètres. Nous nous attendons à ce que la plupart des plateformes soient mises à jour d'ici la fin de 2021.",
"missingContent": "Le fichier Zim est incomplet ou plus petit que le site Web original",
- "missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert aux demandes illimitées envers n'importe quel site Web. Cela pourrait être nuisible à la fois pour notre infrastructure, mais aussi pour les sites Web ciblés. Nous appliquons actuellement deux limites : {human_size_limit} taille de fichier et {human_time_limit}.",
+ "missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert aux demandes illimitées vers n'importe quel site Web. Cela pourrait être nuisible à la fois pour notre infrastructure et pour les sites Web ciblés. Nous appliquons actuellement deux limites : {human_size_limit} pour la taille de fichier et {human_time_limit}.",
"gotError": "J'ai reçu un message d'erreur (pas de zim) ou je n'ai pas pu lire un fichier zim",
"gotErrorDesc1": "Vérifiez trois fois l'URL que vous avez saisie, et si cela ne fonctionne toujours pas, ouvrez un ticket de bug sur ",
- "gotErrorDesc2": ". Indiquez le site Web cible, le numéro de la demande (il est dans l'e-mail que vous avez reçu) et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim."
+ "gotErrorDesc2": "Indiquez le site Web cible, le numéro de la demande (il est dans l'e-mail que vous avez reçu), et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim."
},
- "errorMessages": {
+ "errorMessages":
+ {
"unableToRequestZIMCreation": "Impossible de demander la création de ZIM :"
},
- "units": {
+ "units":
+ {
"sizeLimit": "{value} Gio",
"timeLimit": "{value} heures"
},
- "loading": {
+ "loading":
+ {
"loading": "Chargement en cours…"
},
- "navbar": {
+ "navbar":
+ {
"logoAlt": "Logo de Youzim.it"
},
- "app": {
+ "app":
+ {
"poweredBy": "Propulsé par",
"kiwix": "Kiwix",
"kiwixLink": "https://kiwix.org",
@@ -35,7 +41,8 @@
"webrecorderLink": "https://webrecorder.net",
"thanksToMozilla": "grâce à un Prix du soutien à l'open-source de Mozilla "
},
- "newRequest": {
+ "newRequest":
+ {
"heading": "Vous voulez une version hors ligne d'un site web ? Juste",
"boldZim": "Zimmez-le",
"urlPlaceholder": "URL complète du site web à convertir",
@@ -43,11 +50,13 @@
"submit": "Zimmons-le !",
"advancedOptions": "options avancées"
},
- "notFound": {
+ "notFound":
+ {
"heading": "Non trouvé",
"description": "Désolé, ce contenu n'a pas été trouvé. Peut-être souhaitez-vous revenir en arrière."
},
- "request": {
+ "request":
+ {
"requestingSlot": "Demande d'emplacement",
"requestRecorded": "Votre demande a été enregistrée et est en attente d'un emplacement sur notre infrastructure pour être exécutée.",
"requestFailed": "Votre demande a échoué ! Nous en sommes désolés.",
From e750147947c90f544f177520f07dc9963a654e79 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sun, 7 Apr 2024 01:09:41 +0530
Subject: [PATCH 35/48] Handle Pluralization
---
ui/src/components/Faq.vue | 13 +++++++------
ui/src/locales/en.json | 12 ++++++++----
ui/src/locales/fa.json | 8 ++++++--
ui/src/locales/fr.json | 8 ++++++--
4 files changed, 27 insertions(+), 14 deletions(-)
diff --git a/ui/src/components/Faq.vue b/ui/src/components/Faq.vue
index 90a360d..2ad028c 100644
--- a/ui/src/components/Faq.vue
+++ b/ui/src/components/Faq.vue
@@ -18,11 +18,12 @@
-
+
- {{ $t('faq.missingContentDesc', { human_size_limit: human_size_limit, human_time_limit: human_time_limit }) }}
+ {{ $t('faq.missingContentDesc', {
+ human_size_limit: human_size_limit,
+ human_time_limit: human_time_limit + ' ' + (human_time_limit === 1 ? $t('units.timeLimit.singular') : $t('units.timeLimit.plural'))
+ }) }}
@@ -46,11 +47,11 @@ export default {
computed: {
human_size_limit() {
const sizeInGiB = parseInt(Constants.zimit_size_limit / 1073741824);
- return this.$t('units.sizeLimit', { value: sizeInGiB });
+ return `${sizeInGiB} GiB`;
},
human_time_limit() {
const timeInHours = parseInt(Constants.zimit_time_limit / 3600);
- return this.$t('units.timeLimit', { value: timeInHours });
+ return timeInHours;
},
}
}
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 8ce5472..7bf5a6f 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -18,10 +18,14 @@
{
"unableToRequestZIMCreation": "Unable to request ZIM creation:"
},
- "units":
- {
- "sizeLimit": "{value} GiB",
- "timeLimit": "{value} hours"
+ "units":
+ {
+ "sizeLimit": "GiB",
+ "timeLimit":
+ {
+ "singular": "hour",
+ "plural": "hours"
+ }
},
"app":
{
diff --git a/ui/src/locales/fa.json b/ui/src/locales/fa.json
index 28585dc..22362bf 100644
--- a/ui/src/locales/fa.json
+++ b/ui/src/locales/fa.json
@@ -20,8 +20,12 @@
},
"units":
{
- "sizeLimit": "{value} گیبیبایت",
- "timeLimit": "{value} ساعت"
+ "sizeLimit": "گیگابایت",
+ "timeLimit":
+ {
+ "singular": "ساعت",
+ "plural": "ساعت"
+ }
},
"app":
{
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 5e36fee..31d19a4 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -20,8 +20,12 @@
},
"units":
{
- "sizeLimit": "{value} Gio",
- "timeLimit": "{value} heures"
+ "sizeLimit": "GiB",
+ "timeLimit":
+ {
+ "singular": "heure",
+ "plural": "heures"
+ }
},
"loading":
{
From f20692f42f81e07e776e2c2b22e52b038e124016 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sun, 7 Apr 2024 01:14:30 +0530
Subject: [PATCH 36/48] Remove sizeLimit in locales
---
ui/src/locales/en.json | 1 -
ui/src/locales/fa.json | 1 -
ui/src/locales/fr.json | 1 -
3 files changed, 3 deletions(-)
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 7bf5a6f..de22deb 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -20,7 +20,6 @@
},
"units":
{
- "sizeLimit": "GiB",
"timeLimit":
{
"singular": "hour",
diff --git a/ui/src/locales/fa.json b/ui/src/locales/fa.json
index 22362bf..96e4969 100644
--- a/ui/src/locales/fa.json
+++ b/ui/src/locales/fa.json
@@ -20,7 +20,6 @@
},
"units":
{
- "sizeLimit": "گیگابایت",
"timeLimit":
{
"singular": "ساعت",
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 31d19a4..1d0bf3a 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -20,7 +20,6 @@
},
"units":
{
- "sizeLimit": "GiB",
"timeLimit":
{
"singular": "heure",
From f57657828e9a38c6658bf3d127fffa23839fdf99 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Sun, 7 Apr 2024 01:42:43 +0530
Subject: [PATCH 37/48] Update faq.vue
---
ui/src/components/Faq.vue | 4 ++--
ui/src/locales/en.json | 4 +++-
ui/src/locales/fa.json | 4 +++-
ui/src/locales/fr.json | 4 +++-
4 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/ui/src/components/Faq.vue b/ui/src/components/Faq.vue
index 2ad028c..ce7edb5 100644
--- a/ui/src/components/Faq.vue
+++ b/ui/src/components/Faq.vue
@@ -3,7 +3,7 @@
{{ $t('faq.whatIsZimDesc1') }}
- offline
+ {{ $t('faq.offline') }}
{{ $t('faq.whatIsZimDesc2') }}
@@ -13,7 +13,7 @@
{{ $t('faq.howToReadDesc1') }}
Kiwix,
{{ $t('faq.howToReadDesc2') }}
- desktop computers, mobile devices, and more.
+ {{ $t('faq.desktopMobileAndMore') }}.
{{ $t('faq.howToReadDesc3') }}
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index de22deb..7fbc73e 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -12,7 +12,9 @@
"missingContentDesc": "Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: {human_size_limit} file size and {human_time_limit}.",
"gotError": "I got an error message (no zim) or could not read a zim file",
"gotErrorDesc1": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on",
- "gotErrorDesc2": ". Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
+ "gotErrorDesc2": ". Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on.",
+ "desktopMobileAndMore": "desktop computers, mobile devices, and more",
+ "offline": "offline"
},
"errorMessages":
{
diff --git a/ui/src/locales/fa.json b/ui/src/locales/fa.json
index 96e4969..967d3c2 100644
--- a/ui/src/locales/fa.json
+++ b/ui/src/locales/fa.json
@@ -12,7 +12,9 @@
"missingContentDesc": "به دلیل ماهیت این ابزار، نمیتوانیم آن را برای درخواستهای نامحدود به هر وبسایتی باز بگذاریم. این میتواند هم برای زیرساخت ما و هم برای وبسایتهای هدف مضر باشد. ما در حال حاضر دو محدودیت را اعمال میکنیم: {human_size_limit} اندازه فایل و {human_time_limit}.",
"gotError": "پیام خطایی دریافت کردم (بدون زیم) یا نتوانستم فایل زیم را بخوانم",
"gotErrorDesc1": "URL وارد شده را سه بار بررسی کنید، و اگر همچنان کار نکرد سپس یک تیکت باگ در ",
- "gotErrorDesc2": "باز کنید. وبسایت هدف، شماره درخواست (در ایمیلی که دریافت کردهاید است)، و دستگاهی که سعی کردهاید فایل زیم خود را روی آن باز کنید را ذکر کنید."
+ "gotErrorDesc2": "باز کنید. وبسایت هدف، شماره درخواست (در ایمیلی که دریافت کردهاید است)، و دستگاهی که سعی کردهاید فایل زیم خود را روی آن باز کنید را ذکر کنید.",
+ "desktopMobileAndMore": "رایانههای دسکتاپ، دستگاههای موبایل و بیشتر",
+ "offline": "آفلاین"
},
"errorMessages":
{
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 1d0bf3a..026c903 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -12,7 +12,9 @@
"missingContentDesc": "En raison de la nature même de cet outil, nous ne pouvons pas le laisser ouvert aux demandes illimitées vers n'importe quel site Web. Cela pourrait être nuisible à la fois pour notre infrastructure et pour les sites Web ciblés. Nous appliquons actuellement deux limites : {human_size_limit} pour la taille de fichier et {human_time_limit}.",
"gotError": "J'ai reçu un message d'erreur (pas de zim) ou je n'ai pas pu lire un fichier zim",
"gotErrorDesc1": "Vérifiez trois fois l'URL que vous avez saisie, et si cela ne fonctionne toujours pas, ouvrez un ticket de bug sur ",
- "gotErrorDesc2": "Indiquez le site Web cible, le numéro de la demande (il est dans l'e-mail que vous avez reçu), et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim."
+ "gotErrorDesc2": "Indiquez le site Web cible, le numéro de la demande (il est dans l'e-mail que vous avez reçu), et l'appareil sur lequel vous avez essayé d'ouvrir votre fichier zim.",
+ "desktopMobileAndMore": "ordinateurs de bureau, appareils mobiles et plus encore",
+ "offline": "hors ligne"
},
"errorMessages":
{
From 6343c26b18cc089a2f1bb3948486f2ac20d1b679 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Mon, 8 Apr 2024 23:54:10 +0530
Subject: [PATCH 38/48] Updated en.json, including qqq.json. Standardized HTML
code placement within translation strings for better clarity and ease of
translation. Properly handled limits and implemented pluralization in
Request.vue. Fixed missing localized strings in Request.vue and
NewRequest.vue
---
ui/src/App.vue | 9 +----
ui/src/components/Faq.vue | 14 ++-----
ui/src/components/Request.vue | 14 +++++--
ui/src/locales/en.json | 76 ++++++++++++++++-------------------
ui/src/locales/fa.json | 30 +++++---------
ui/src/locales/fr.json | 30 +++++---------
ui/src/locales/qqq.json | 42 ++++++++++++++-----
7 files changed, 101 insertions(+), 114 deletions(-)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index 59852bf..9c10892 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -3,14 +3,7 @@
-
+
diff --git a/ui/src/components/Request.vue b/ui/src/components/Request.vue
index 1a4a112..e110dd9 100644
--- a/ui/src/components/Request.vue
+++ b/ui/src/components/Request.vue
@@ -115,11 +115,17 @@ export default {
!(key === "time_limit" && val >= Constants.zimit_time_limit))
.reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {});
},
- human_size_limit() {
- return this.$t('request.humanSizeLimit', { size: `${parseInt(Constants.zimit_size_limit / 1073741824)}` });
+ human_size_limit() {
+ const sizeInGiB = parseInt(Constants.zimit_size_limit / 1073741824);
+ return this.$t('request.humanSizeLimit', { size: sizeInGiB });
},
- human_time_limit() {
- return this.$t('request.humanTimeLimit', { hours: `${parseInt(Constants.zimit_time_limit / 3600)}` });
+ human_time_limit() {
+ const timeInHours = parseInt(Constants.zimit_time_limit / 3600);
+ const unitKey = `units.timeLimit.${timeInHours === 1 ? 'hour' : 'hours'}`;
+ return this.$t('request.humanTimeLimit', {
+ hours: timeInHours,
+ unit: this.$t(unitKey)
+ });
},
limit_hit() {
return this.task.container && this.task.container.progress && this.task.container.progress.limit && this.task.container.progress.limit.hit;
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 7fbc73e..0a39c23 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -1,79 +1,73 @@
{
- "faq":
- {
+ "faq": {
"whatIsZim": "What is a Zim file?",
- "whatIsZimDesc1": "The Zim file format stores website content for ",
- "whatIsZimDesc2": " usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
+ "whatIsZimDesc": "The Zim file format stores website content for offline usage. It assembles the normal constituent of a website into a single archive, and compresses it so as to make it easier to save, share, and store.",
"howToRead": "How do I read my Zim files?",
- "howToReadDesc1": "You will need a Zim file reader. This usually means ",
- "howToReadDesc2": ", which is available on ",
- "howToReadDesc3": "Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
+ "howToReadDesc": "You will need a Zim file reader. This usually means Kiwix, which is available on desktop computers, mobile devices, and more. Currently only Kiwix-serve and Kiwix-Android can read all Zimit-generated files. If using Kiwix-Desktop for Microsoft Windows and GNU/Linux, then you will need to configure it as a Kiwix-serve instance in the settings. We expect most platforms to be upgraded by the end of 2021.",
"missingContent": "The Zim file is incomplete or smaller than the original website",
"missingContentDesc": "Because of the very nature of this tool, we can’t leave it open for unlimited requests towards any website. That could be harmful both for our infrastructure, but also for the target websites. We currently enforce two limits: {human_size_limit} file size and {human_time_limit}.",
"gotError": "I got an error message (no zim) or could not read a zim file",
- "gotErrorDesc1": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on",
- "gotErrorDesc2": ". Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on.",
- "desktopMobileAndMore": "desktop computers, mobile devices, and more",
- "offline": "offline"
- },
- "errorMessages":
- {
+ "gotErrorDesc": "Triple-check the URL you entered, and if it is still not working then open a bug ticket on github. Indicate the target website, the request number (it’s in the email you received), and the device you tried to open your zim file on."
+ },
+ "errorMessages": {
"unableToRequestZIMCreation": "Unable to request ZIM creation:"
},
- "units":
- {
- "timeLimit":
- {
+ "units": {
+ "timeLimit":{
"singular": "hour",
"plural": "hours"
}
},
- "app":
- {
- "poweredBy": "Powered by",
- "kiwix": "Kiwix",
- "kiwixLink": "https://kiwix.org",
- "and": "and",
- "webrecorder": "Webrecorder",
- "webrecorderLink": "https://webrecorder.net",
- "thanksToMozilla": "thanks to a Mozilla Open-Source Support Award "
+ "footer": {
+ "str": "Powered by Kiwix and Webrecorder, thanks to a Mozilla Open-Source Support Award ❤️"
},
- "loading":
- {
+ "loading": {
"loading": "Loading…"
},
- "navbar":
- {
+ "navbar": {
"logoAlt": "Youzim.it logo"
},
- "newRequest":
- {
+ "newRequest": {
"heading": "Want an offline version of a website? Just",
"boldZim": "Zim it",
"urlPlaceholder": "Full URL of the website to convert",
"emailPlaceholder": "Your e-mail to receive a download link. Address not kept",
"submit": "Let's Zim it!",
- "advancedOptions": "advanced options"
+ "advancedOptions": "advanced options",
+ "notSet": "Not set",
+ "fetchingDefinition": "fetching definition…",
+ "standardHTTPError": "Unable to request ZIM creation: %{error}",
+ "creatingSchedule": "Creating schedule…",
+ "noTaskIdReceived": "Didn't receive task_id",
+ "unableToRequestZIM": "Unable to request ZIM creation: %{error}"
},
- "notFound":
- {
+ "notFound": {
"heading": "Not Found",
"description": "Sorry, this content was not found. Maybe you'd like to go back."
},
- "request":
- {
- "requestingSlot": "Requesting slot",
+ "request": {
"zimingOf": "Ziming of ",
+ "requestingSlot": "Requesting slot",
"requestRecorded": "Your request has been recorded and is awaiting a slot on our infrastructure to run.",
"requestFailed": "Your request has failed! We are sorry about that.",
"failureReasons": "A number of reasons can lead to a ziming failure. Most of the time, it's an inadequate URL… Please triple check it and create a new request. If that doesn't work, open a ticket in github.",
+ "openTicket": "open a ticket in github",
"success": "Success!",
"linkExpires": "The link below will expire and the file will be deleted after a week.",
"download": "Download",
"limitHit": "You have reached the maximum file size or duration allowed for free crawling. Contact us to help us purchase additional server space for you.",
"beingProcessed": "Your request is being processed",
- "serverConverting": "One of our servers is currently converting that URL into a nice ZIM file. Depending on the number of pages and resources available, it can be a matter of minutes, hours or even days! Please be patient.",
- "emailNotification": "You can close this window. You will get an email notification when the task is completed."
+ "serverConverting": "One of our servers is currently converting that URL into a nice ZIM file. Depending on the number of pages and resources available, it can be a matter of minutes, hours, or even days! Please be patient.",
+ "emailNotification": "You can close this window. You will get an email notification when the task is completed.",
+ "pending": "pending",
+ "inProgress": "in progress",
+ "humanSizeLimit": "You have reached the maximum file size of {size} GiB.",
+ "humanTimeLimit": "You have reached the maximum duration of {hours} {unit}.",
+ "loadingTask": "Retrieving task…",
+ "noDataReceived": "Didn't receive task data.",
+ "taskNotFound": "No task found with this ID. It probably has expired.",
+ "taskRetrieveError": "Unable to retrieve task: {error}",
+ "title": "Settings"
}
}
\ No newline at end of file
diff --git a/ui/src/locales/fa.json b/ui/src/locales/fa.json
index 967d3c2..2f83acd 100644
--- a/ui/src/locales/fa.json
+++ b/ui/src/locales/fa.json
@@ -1,6 +1,5 @@
{
- "faq":
- {
+ "faq":{
"whatIsZim": "فایل زیم چیست؟",
"whatIsZimDesc1": "فرمت فایل زیم محتوای وبسایت را برای ",
"whatIsZimDesc2": "استفاده ذخیره میکند. این فرمت اجزای اصلی یک وبسایت را در یک آرشیو واحد جمعآوری و فشردهسازی میکند تا ذخیرهسازی، به اشتراکگذاری، و نگهداری آن آسانتر شود.",
@@ -16,20 +15,16 @@
"desktopMobileAndMore": "رایانههای دسکتاپ، دستگاههای موبایل و بیشتر",
"offline": "آفلاین"
},
- "errorMessages":
- {
+ "errorMessages":{
"unableToRequestZIMCreation": "درخواست ایجاد ZIM ممکن نیست:"
},
- "units":
- {
- "timeLimit":
- {
+ "units":{
+ "timeLimit":{
"singular": "ساعت",
"plural": "ساعت"
}
},
- "app":
- {
+ "app":{
"poweredBy": "به قدرت از",
"kiwix": "کیویکس",
"kiwixLink": "https://kiwix.org",
@@ -38,16 +33,13 @@
"webrecorderLink": "https://webrecorder.net",
"thanksToMozilla": "با تشکر از جایزه پشتیبانی منبعباز موزیلا "
},
- "loading":
- {
+ "loading":{
"loading": "در حال بارگذاری..."
},
- "navbar":
- {
+ "navbar":{
"logoAlt": "لوگوی Youzim.it"
},
- "newRequest":
- {
+ "newRequest":{
"heading": "میخواهید یک نسخه آفلاین از یک وبسایت داشته باشید؟ فقط",
"boldZim": "زیم کنید",
"urlPlaceholder": "آدرس URL کامل وبسایت برای تبدیل",
@@ -55,13 +47,11 @@
"submit": "بیایید آن را زیم کنیم!",
"advancedOptions": "گزینههای پیشرفته"
},
- "notFound":
- {
+ "notFound":{
"heading": "یافت نشد",
"description": "متاسفیم، این محتوا پیدا نشد. شاید دوست داشته باشید به عقب بروید."
},
- "request":
- {
+ "request":{
"requestingSlot": "درخواست اسلات",
"zimingOf": "تبدیل شدن به فایل زیم از ",
"requestRecorded": "درخواست شما ثبت شده است و منتظر یک اسلات در زیرساخت ما برای اجرا میباشد.",
diff --git a/ui/src/locales/fr.json b/ui/src/locales/fr.json
index 026c903..cae03b5 100644
--- a/ui/src/locales/fr.json
+++ b/ui/src/locales/fr.json
@@ -1,6 +1,5 @@
{
- "faq":
- {
+ "faq":{
"whatIsZim": "Qu'est-ce qu'un fichier Zim ?",
"whatIsZimDesc1": "Le format de fichier Zim stocke le contenu d'un site Web pour ",
"whatIsZimDesc2": "l'utilisation. Il assemble les constituants normaux d'un site Web dans une seule archive et le compresse pour faciliter l'enregistrement, le partage et le stockage.",
@@ -16,28 +15,22 @@
"desktopMobileAndMore": "ordinateurs de bureau, appareils mobiles et plus encore",
"offline": "hors ligne"
},
- "errorMessages":
- {
+ "errorMessages":{
"unableToRequestZIMCreation": "Impossible de demander la création de ZIM :"
},
- "units":
- {
- "timeLimit":
- {
+ "units":{
+ "timeLimit":{
"singular": "heure",
"plural": "heures"
}
},
- "loading":
- {
+ "loading":{
"loading": "Chargement en cours…"
},
- "navbar":
- {
+ "navbar":{
"logoAlt": "Logo de Youzim.it"
},
- "app":
- {
+ "app":{
"poweredBy": "Propulsé par",
"kiwix": "Kiwix",
"kiwixLink": "https://kiwix.org",
@@ -46,8 +39,7 @@
"webrecorderLink": "https://webrecorder.net",
"thanksToMozilla": "grâce à un Prix du soutien à l'open-source de Mozilla "
},
- "newRequest":
- {
+ "newRequest":{
"heading": "Vous voulez une version hors ligne d'un site web ? Juste",
"boldZim": "Zimmez-le",
"urlPlaceholder": "URL complète du site web à convertir",
@@ -55,13 +47,11 @@
"submit": "Zimmons-le !",
"advancedOptions": "options avancées"
},
- "notFound":
- {
+ "notFound":{
"heading": "Non trouvé",
"description": "Désolé, ce contenu n'a pas été trouvé. Peut-être souhaitez-vous revenir en arrière."
},
- "request":
- {
+ "request":{
"requestingSlot": "Demande d'emplacement",
"requestRecorded": "Votre demande a été enregistrée et est en attente d'un emplacement sur notre infrastructure pour être exécutée.",
"requestFailed": "Votre demande a échoué ! Nous en sommes désolés.",
diff --git a/ui/src/locales/qqq.json b/ui/src/locales/qqq.json
index 5d00936..8008063 100644
--- a/ui/src/locales/qqq.json
+++ b/ui/src/locales/qqq.json
@@ -1,18 +1,25 @@
{
"faq": {
"whatIsZim": "This is the question asking about the Zim file format.",
- "whatIsZimDesc": "This provides a brief description of what a Zim file is.",
+ "whatIsZimDesc": "This provides the description of what a Zim file is.",
"howToRead": "This is the question asking how to read Zim files.",
- "howToReadDesc": "This provides instructions on how to read Zim files using Kiwix.",
+ "howToReadDesc": "This provides the instructions on how to read Zim files.",
"missingContent": "This is the question about incomplete or missing content in Zim files.",
"missingContentDesc": "This provides an explanation for why some content may be missing or incomplete in Zim files.",
"gotError": "This is the question about encountering error messages when using Zim files.",
- "gotErrorDesc": "This provides instructions on what to do if errors are encountered when using Zim files."
+ "gotErrorDesc": "This provides the instructions on what to do if errors are encountered when using Zim files."
},
- "app": {
- "poweredByKiwix": "This indicates that the application is powered by Kiwix.",
- "poweredByWebrecorder": "This indicates that the application is powered by Webrecorder.",
- "thanksToMozilla": "This acknowledges support from Mozilla through an Open-Source Support Award."
+ "errorMessages": {
+ "unableToRequestZIMCreation": "This indicates an error message when unable to request ZIM creation."
+ },
+ "units": {
+ "timeLimit": {
+ "singular": "This indicates the singular form of the time unit.",
+ "plural": "This indicates the plural form of the time unit."
+ }
+ },
+ "footer": {
+ "str": "This indicates the footer message."
},
"loading": {
"loading": "This is the loading message displayed during data loading."
@@ -26,24 +33,39 @@
"urlPlaceholder": "This is the placeholder text for entering a website URL.",
"emailPlaceholder": "This is the placeholder text for entering an email address.",
"submit": "This is the label for the submit button.",
- "advancedOptions": "This indicates a link to advanced options."
+ "advancedOptions": "This indicates a link to advanced options.",
+ "notSet": "This indicates that a value is not set.",
+ "fetchingDefinition": "This indicates the message while fetching the definition.",
+ "standardHTTPError": "This indicates an error message for standard HTTP errors.",
+ "creatingSchedule": "This indicates the message while creating a schedule.",
+ "noTaskIdReceived": "This indicates that the task ID was not received.",
+ "unableToRequestZIM": "This indicates an error message when unable to request ZIM creation."
},
"notFound": {
"heading": "This is the heading displayed when content is not found.",
"description": "This is the description explaining the 404 error."
},
"request": {
- "requestingSlot": "This indicates the process of requesting a slot on the server.",
"zimingOf": "This indicates the process of converting a website into a ZIM file.",
+ "requestingSlot": "This indicates the process of requesting a slot on the server.",
"requestRecorded": "This confirms that a user's request has been recorded.",
"requestFailed": "This indicates that a request has failed.",
"failureReasons": "This provides reasons for why a request might fail.",
+ "openTicket": "This indicates to open a ticket in GitHub.",
"success": "This indicates a successful operation.",
"linkExpires": "This explains that the download link will expire after a week.",
"download": "This is the label for the download button.",
"limitHit": "This indicates that a user has reached a limit.",
"beingProcessed": "This indicates that a request is currently being processed.",
"serverConverting": "This indicates that a server is converting a URL into a ZIM file.",
- "emailNotification": "This informs the user about receiving an email notification."
+ "emailNotification": "This informs the user about receiving an email notification.",
+ "pending": "This indicates that a task is pending.",
+ "inProgress": "This indicates that a task is in progress.",
+ "humanSizeLimit": "This indicates the maximum file size limit in human-readable form.",
+ "humanTimeLimit": "This indicates the maximum time limit in human-readable form.",
+ "loadingTask": "This indicates the message while retrieving a task.",
+ "noDataReceived": "This indicates that no data was received for the task.",
+ "taskNotFound": "This indicates that the task was not found.",
+ "taskRetrieveError": "This indicates an error while retrieving the task."
}
}
From ac1bb17488c4001e12bcf104af2c3b661bc11285 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 9 Apr 2024 00:32:25 +0530
Subject: [PATCH 39/48] RTL Support for buttons of the FAQ
---
ui/src/components/FaqEntry.vue | 55 +++++++++++++++++++++-------------
1 file changed, 35 insertions(+), 20 deletions(-)
diff --git a/ui/src/components/FaqEntry.vue b/ui/src/components/FaqEntry.vue
index 92e101f..5aeaa50 100644
--- a/ui/src/components/FaqEntry.vue
+++ b/ui/src/components/FaqEntry.vue
@@ -1,41 +1,54 @@
-
-
- {{ title }}
-
-
-
-
-
-
-
-
-
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+ .language-selector {
+ padding: .5rem 1rem;
+ border-radius: .25rem;
+ border: 1px solid #ced4da;
+ appearance: none; /* Remove default styling */
+ background-color: #fff;
+ background-image: url('data:image/svg+xml;charset=UTF8,'); /* Add a custom dropdown arrow */
+ background-repeat: no-repeat;
+ background-position: right .75rem center;
+ background-size: 16px 12px;
+ }
+
\ No newline at end of file
diff --git a/ui/src/components/NewRequest.vue b/ui/src/components/NewRequest.vue
index e6bb321..3216e8e 100644
--- a/ui/src/components/NewRequest.vue
+++ b/ui/src/components/NewRequest.vue
@@ -1,6 +1,6 @@
+
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 0a39c23..1f7976d 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -28,8 +28,7 @@
"logoAlt": "Youzim.it logo"
},
"newRequest": {
- "heading": "Want an offline version of a website? Just",
- "boldZim": "Zim it",
+ "heading": "Want an offline version of a website? Just Zim it!",
"urlPlaceholder": "Full URL of the website to convert",
"emailPlaceholder": "Your e-mail to receive a download link. Address not kept",
"submit": "Let's Zim it!",
diff --git a/ui/src/locales/qqq.json b/ui/src/locales/qqq.json
index 8008063..6d9f644 100644
--- a/ui/src/locales/qqq.json
+++ b/ui/src/locales/qqq.json
@@ -28,8 +28,7 @@
"logoAlt": "This is the alternative text for the logo image."
},
"newRequest": {
- "heading": "This is the heading for initiating a new request.",
- "boldZim": "This highlights the action of creating a Zim file.",
+ "heading": "This is the heading.",
"urlPlaceholder": "This is the placeholder text for entering a website URL.",
"emailPlaceholder": "This is the placeholder text for entering an email address.",
"submit": "This is the label for the submit button.",
From 44bc44777996b3ec8c823b806d33a706679bc6c7 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Tue, 9 Apr 2024 22:21:00 +0530
Subject: [PATCH 41/48] CSS Refactor in FaqEntry.vue
---
ui/src/components/FaqEntry.vue | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/ui/src/components/FaqEntry.vue b/ui/src/components/FaqEntry.vue
index 6b9975c..1ffa6f0 100644
--- a/ui/src/components/FaqEntry.vue
+++ b/ui/src/components/FaqEntry.vue
@@ -23,7 +23,7 @@ export default {
}
-
+
\ No newline at end of file
From adcb06cabbef8d53e310e3596efdf18c67e3c287 Mon Sep 17 00:00:00 2001
From: Onyx2406
Date: Thu, 11 Apr 2024 13:37:09 +0530
Subject: [PATCH 42/48] Keep only logo at the center, not the dropdown button
---
ui/src/components/NavBar.vue | 35 ++++++++++++++++++++++++++---------
1 file changed, 26 insertions(+), 9 deletions(-)
diff --git a/ui/src/components/NavBar.vue b/ui/src/components/NavBar.vue
index 0167e60..1e8095b 100644
--- a/ui/src/components/NavBar.vue
+++ b/ui/src/components/NavBar.vue
@@ -1,8 +1,10 @@
-
-
-
-
+
+
+
+
+
+
---
ui/src/components/NavBar.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/src/components/NavBar.vue b/ui/src/components/NavBar.vue
index 19f30a2..9b9dd7b 100644
--- a/ui/src/components/NavBar.vue
+++ b/ui/src/components/NavBar.vue
@@ -1,10 +1,10 @@
-