From 7d2787d26b3a64cbc128fb2cb3871b43b41912fe Mon Sep 17 00:00:00 2001 From: phellinger Date: Wed, 11 Dec 2024 13:08:01 +0100 Subject: [PATCH 1/2] feat: complete Hungarian translation of Puter #972 --- src/gui/src/i18n/translations/hu.js | 95 ++++++++++++++--------------- 1 file changed, 46 insertions(+), 49 deletions(-) diff --git a/src/gui/src/i18n/translations/hu.js b/src/gui/src/i18n/translations/hu.js index 8c8966b1b..22937d883 100644 --- a/src/gui/src/i18n/translations/hu.js +++ b/src/gui/src/i18n/translations/hu.js @@ -349,55 +349,52 @@ const hu = { "You can't share with yourself.": "Nem oszthatod meg magaddal.", // In English: "You can't share with yourself." "This user already has access to this item": "Ez a felhasználó már hozzáfér ehhez az elemhez", // In English: "This user already has access to this item" - // ---------------------------------------- - // Missing translations: - // ---------------------------------------- - "billing.change_payment_method": undefined, // In English: "Change" - "billing.cancel": undefined, // In English: "Cancel" - "billing.download_invoice": undefined, // In English: "Download" - "billing.payment_method": undefined, // In English: "Payment Method" - "billing.payment_method_updated": undefined, // In English: "Payment method updated!" - "billing.confirm_payment_method": undefined, // In English: "Confirm Payment Method" - "billing.payment_history": undefined, // In English: "Payment History" - "billing.refunded": undefined, // In English: "Refunded" - "billing.paid": undefined, // In English: "Paid" - "billing.ok": undefined, // In English: "OK" - "billing.resume_subscription": undefined, // In English: "Resume Subscription" - "billing.subscription_cancelled": undefined, // In English: "Your subscription has been canceled." - "billing.subscription_cancelled_description": undefined, // In English: "You will still have access to your subscription until the end of this billing period." - "billing.offering.free": undefined, // In English: "Free" - "billing.offering.pro": undefined, // In English: "Professional" - "billing.offering.business": undefined, // In English: "Business" - "billing.cloud_storage": undefined, // In English: "Cloud Storage" - "billing.ai_access": undefined, // In English: "AI Access" - "billing.bandwidth": undefined, // In English: "Bandwidth" - "billing.apps_and_games": undefined, // In English: "Apps & Games" - "billing.upgrade_to_pro": undefined, // In English: "Upgrade to %strong%" - "billing.switch_to": undefined, // In English: "Switch to %strong%" - "billing.payment_setup": undefined, // In English: "Payment Setup" - "billing.back": undefined, // In English: "Back" - "billing.you_are_now_subscribed_to": undefined, // In English: "You are now subscribed to %strong% tier." - "billing.you_are_now_subscribed_to_without_tier": undefined, // In English: "You are now subscribed" - "billing.subscription_cancellation_confirmation": undefined, // In English: "Are you sure you want to cancel your subscription?" - "billing.subscription_setup": undefined, // In English: "Subscription Setup" - "billing.cancel_it": undefined, // In English: "Cancel It" - "billing.keep_it": undefined, // In English: "Keep It" - "billing.subscription_resumed": undefined, // In English: "Your %strong% subscription has been resumed!" - "billing.upgrade_now": undefined, // In English: "Upgrade Now" - "billing.upgrade": undefined, // In English: "Upgrade" - "billing.currently_on_free_plan": undefined, // In English: "You are currently on the free plan." - "billing.download_receipt": undefined, // In English: "Download Receipt" - "billing.subscription_check_error": undefined, // In English: "A problem occurred while checking your subscription status." - "billing.email_confirmation_needed": undefined, // In English: "Your email has not been confirmed. We'll send you a code to confirm it now." - "billing.sub_cancelled_but_valid_until": undefined, // In English: "You have cancelled your subscription and it will automatically switch to the free tier at the end of the billing period. You will not be charged again unless you re-subscribe." - "billing.current_plan_until_end_of_period": undefined, // In English: "Your current plan until the end of this billing period." - "billing.current_plan": undefined, // In English: "Current plan" - "billing.cancelled_subscription_tier": undefined, // In English: "Cancelled Subscription (%%)" - "billing.manage": undefined, // In English: "Manage" - "billing.limited": undefined, // In English: "Limited" - "billing.expanded": undefined, // In English: "Expanded" - "billing.accelerated": undefined, // In English: "Accelerated" - "billing.enjoy_msg": undefined, // In English: "Enjoy %% of Cloud Storage plus other benefits." + "billing.change_payment_method": "Módosítás", // In English: "Change" + "billing.cancel": "Mégsem", // In English: "Cancel" + "billing.download_invoice": "Letöltés", // In English: "Download" + "billing.payment_method": "Fizetési mód", // In English: "Payment Method" + "billing.payment_method_updated": "Fizetési mód frissítve!", // In English: "Payment method updated!" + "billing.confirm_payment_method": "Fizetési mód jóváhagyása", // In English: "Confirm Payment Method" + "billing.payment_history": "Fizetési történet", // In English: "Payment History" + "billing.refunded": "Visszatérítve", // In English: "Refunded" + "billing.paid": "Fizetve", // In English: "Paid" + "billing.ok": "OK", // In English: "OK" + "billing.resume_subscription": "Előfizetés visszaállítása", // In English: "Resume Subscription" + "billing.subscription_cancelled": "Az előfizetésed megszűnt.", // In English: "Your subscription has been canceled." + "billing.subscription_cancelled_description": "Az előfizetésed a számlázási időszak végéig továbbra is elérhető marad.", // In English: "You will still have access to your subscription until the end of this billing period." + "billing.offering.free": "Ingyenes", // In English: "Free" + "billing.offering.pro": "Professzionális", // In English: "Professional" + "billing.offering.business": "Üzleti", // In English: "Business" + "billing.cloud_storage": "Tárolás a felhőben", // In English: "Cloud Storage" + "billing.ai_access": "AI hozzáférés", // In English: "AI Access" + "billing.bandwidth": "Sávszélesség", // In English: "Bandwidth" + "billing.apps_and_games": "Alkalmazások & Játékok", // In English: "Apps & Games" + "billing.upgrade_to_pro": "Frissítés: %strong%", // In English: "Upgrade to %strong%" + "billing.switch_to": "Váltás: %strong%", // In English: "Switch to %strong%" + "billing.payment_setup": "Fizetés beállítása", // In English: "Payment Setup" + "billing.back": "Vissza", // In English: "Back" + "billing.you_are_now_subscribed_to": "Elindítottad %strong% szintű előfizetésedet.", // In English: "You are now subscribed to %strong% tier." + "billing.you_are_now_subscribed_to_without_tier": "Előfizetésed elindult", // In English: "You are now subscribed" + "billing.subscription_cancellation_confirmation": "Biztosan le akarod mondani az előfizetésedet?", // In English: "Are you sure you want to cancel your subscription?" + "billing.subscription_setup": "Előfizetés beállítása", // In English: "Subscription Setup" + "billing.cancel_it": "Megszüntetés", // In English: "Cancel It" + "billing.keep_it": "Megtartás", // In English: "Keep It" + "billing.subscription_resumed": "Visszaállítottuk %strong% szintű előfizetésedet!", // In English: "Your %strong% subscription has been resumed!" + "billing.upgrade_now": "Frissítés most", // In English: "Upgrade Now" + "billing.upgrade": "Frissítés", // In English: "Upgrade" + "billing.currently_on_free_plan": "Jelenlegi előfizetésed ingyenes.", // In English: "You are currently on the free plan." + "billing.download_receipt": "Nyugta letöltése", // In English: "Download Receipt" + "billing.subscription_check_error": "Hiba történt az előfizetésed ellenőrzésekor.", // In English: "A problem occurred while checking your subscription status." + "billing.email_confirmation_needed": "Az email-címed megerősítése nem történt meg. Küldünk most egy kódot a megerősítéshez.", // In English: "Your email has not been confirmed. We'll send you a code to confirm it now." + "billing.sub_cancelled_but_valid_until": "Lemondtad az előfizetésedet, amely így automatikusan az ingyenes szintre változik a számlázási időszak végén. Nem fogunk többet díjat felszámolni, csak ha újra az előfizetést választod.", // In English: "You have cancelled your subscription and it will automatically switch to the free tier at the end of the billing period. You will not be charged again unless you re-subscribe." + "billing.current_plan_until_end_of_period": "Jelenlegi előfizetésed a számlázási időszak végéig.", // In English: "Your current plan until the end of this billing period." + "billing.current_plan": "Jelenlegi előfizetésed", // In English: "Current plan" + "billing.cancelled_subscription_tier": "Előfizetés lemondása (%%)", // In English: "Cancelled Subscription (%%)" + "billing.manage": "Kezelés", // In English: "Manage" + "billing.limited": "Korlátozott", // In English: "Limited" + "billing.expanded": "Kiterjesztett", // In English: "Expanded" + "billing.accelerated": "Gyorsított", // In English: "Accelerated" + "billing.enjoy_msg": "Használhatod %% felhő tárhelyedet és egyéb előnyöket.", // In English: "Enjoy %% of Cloud Storage plus other benefits." } }; From ed48a16ced95a50d7b916994936960ccd03407b4 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Wed, 11 Dec 2024 12:10:28 -0500 Subject: [PATCH 2/2] clean: remove newly-unused imports --- src/backend/src/routers/filesystem_api/copy.js | 4 ---- src/backend/src/routers/filesystem_api/readdir.js | 6 ------ src/backend/src/routers/filesystem_api/search.js | 2 -- 3 files changed, 12 deletions(-) diff --git a/src/backend/src/routers/filesystem_api/copy.js b/src/backend/src/routers/filesystem_api/copy.js index 16d454f2a..e8b0c1929 100644 --- a/src/backend/src/routers/filesystem_api/copy.js +++ b/src/backend/src/routers/filesystem_api/copy.js @@ -19,12 +19,8 @@ "use strict" const eggspress = require('../../api/eggspress.js'); const FSNodeParam = require('../../api/filesystem/FSNodeParam.js'); -const _path = require('path'); -const { NodeUIDSelector } = require('../../filesystem/node/selectors.js'); const { HLCopy } = require('../../filesystem/hl_operations/hl_copy.js'); const { Context } = require('../../util/context.js'); -const { DatabaseFSEntryService } = require('../../modules/puterfs/DatabaseFSEntryService.js'); -const { ProxyContainer } = require('../../services/Container.js'); // -----------------------------------------------------------------------// // POST /copy diff --git a/src/backend/src/routers/filesystem_api/readdir.js b/src/backend/src/routers/filesystem_api/readdir.js index 0356c4ebd..0476cca11 100644 --- a/src/backend/src/routers/filesystem_api/readdir.js +++ b/src/backend/src/routers/filesystem_api/readdir.js @@ -17,16 +17,10 @@ * along with this program. If not, see . */ "use strict" -const express = require('express'); -const router = express.Router(); -const auth = require('../../middleware/auth.js'); -const config = require('../../config.js'); -const PerformanceMonitor = require('../../monitor/PerformanceMonitor.js'); const { Context } = require('../../util/context.js'); const eggspress = require('../../api/eggspress.js'); const FSNodeParam = require('../../api/filesystem/FSNodeParam.js'); const FlagParam = require('../../api/filesystem/FlagParam.js'); -const { LLReadDir } = require('../../filesystem/ll_operations/ll_readdir.js'); const { HLReadDir } = require('../../filesystem/hl_operations/hl_readdir.js'); // -----------------------------------------------------------------------// diff --git a/src/backend/src/routers/filesystem_api/search.js b/src/backend/src/routers/filesystem_api/search.js index 379823b1e..7241de957 100644 --- a/src/backend/src/routers/filesystem_api/search.js +++ b/src/backend/src/routers/filesystem_api/search.js @@ -1,7 +1,5 @@ const eggspress = require("../../api/eggspress"); const { HLNameSearch } = require("../../filesystem/hl_operations/hl_name_search"); -const { subdomain } = require("../../helpers"); -const verified = require("../../middleware/verified"); module.exports = eggspress('/search', { subdomain: 'api',