diff --git a/rurusetto/wiki/locale/en/LC_MESSAGES/django.po b/rurusetto/wiki/locale/en/LC_MESSAGES/django.po index 8a5a26b8..520fd7f1 100644 --- a/rurusetto/wiki/locale/en/LC_MESSAGES/django.po +++ b/rurusetto/wiki/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2022.410.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-06 01:33+0700\n" +"POT-Creation-Date: 2022-12-06 02:25+0700\n" "PO-Revision-Date: 2022-04-24 01:55+0700\n" "Last-Translator: Phawit Pornwattanakul \n" "Language-Team: Rūrusetto \n" @@ -105,11 +105,11 @@ msgid "create" msgstr "Create" #: .\templates\wiki\archived_rulesets.html:10 .\templates\wiki\listing.html:24 -#: .\views.py:846 +#: .\views.py:867 msgid "archived_rulesets" msgstr "Archived rulesets" -#: .\templates\wiki\archived_rulesets.html:11 .\views.py:849 +#: .\templates\wiki\archived_rulesets.html:11 .\views.py:870 msgid "archived_rulesets_description" msgstr "" "The list of rulesets that's stop update or archived by rulesets creator." @@ -597,6 +597,7 @@ msgstr "" "the desired ruleset." #: .\templates\wiki\install.html:55 +#: .\templates\wiki\localisation_how_to.html:55 msgid "" "The changelog and download link will automatically update when a ruleset is " "updated." @@ -609,10 +610,12 @@ msgid "import rulesets to osu!lazer" msgstr "import rulesets to osu!lazer" #: .\templates\wiki\install.html:64 +#: .\templates\wiki\localisation_how_to.html:64 msgid "step 1: navigate to osu! data directory" msgstr "step 1: navigate to osu! data directory" #: .\templates\wiki\install.html:65 +#: .\templates\wiki\localisation_how_to.html:65 #, fuzzy, python-format #| msgid "" #| "In osu!lazer’s setting panel, there is a button to Open osu! " @@ -634,6 +637,7 @@ msgstr "" "application itself." #: .\templates\wiki\install.html:68 +#: .\templates\wiki\localisation_how_to.html:68 msgid "open_osu_folder" msgstr "Open osu! folder" @@ -654,10 +658,12 @@ msgstr "" "directory, do make sure that duplicate copies of the ruleset are overwritten." #: .\templates\wiki\install.html:78 +#: .\templates\wiki\localisation_how_to.html:78 msgid "Other rulesets also could share the same folder." msgstr "Other rulesets also could share the same folder." #: .\templates\wiki\install.html:83 +#: .\templates\wiki\localisation_how_to.html:83 msgid "step 3: have fun!" msgstr "step 3: have fun!" @@ -699,11 +705,109 @@ msgstr "Your hidden rulesets" msgid "all_rulesets" msgstr "All rulesets" -#: .\templates\wiki\maintainer.html:11 .\views.py:723 +#: .\templates\wiki\localisation_how_to.html:9 .\views.py:716 +msgid "install_and_update_localization" +msgstr "install and update the localization files" + +#: .\templates\wiki\localisation_how_to.html:11 .\views.py:719 +msgid "install_and_update_localization_description" +msgstr "install and update the localization files in osu!lazer with rūrusetto" + +#: .\templates\wiki\localisation_how_to.html:40 +#, fuzzy +#| msgid "download_localisation_file" +msgid "download localization file" +msgstr "Download localization file" + +#: .\templates\wiki\localisation_how_to.html:47 +#, python-format +msgid "" +"Localisation files can be obtained at " +"rulesets status page and then clicking on the Download " +"localisation file on the desired ruleset." +msgstr "" +"Localisation files can be obtained at " +"rulesets status page and then clicking on the Download " +"localisation file on the desired ruleset." + +#: .\templates\wiki\localisation_how_to.html:59 +#, fuzzy +#| msgid "download_localisation_file" +msgid "import localization file to osu!lazer" +msgstr "import localization file to osu!lazer" + +#: .\templates\wiki\localisation_how_to.html:73 +msgid "move_localization_file" +msgstr "Move localization file" + +#: .\templates\wiki\localisation_how_to.html:76 +#, fuzzy +#| msgid "step 2: installing the ruleset" +msgid "step 2: installing the localization file" +msgstr "step 2: installing the localization file" + +#: .\templates\wiki\localisation_how_to.html:77 +#, fuzzy +#| msgid "" +#| "Extract the zip that you just downloaded, the folder(s) for languages are " +#| "set by their ISO codes. To install your desire language, " +#| "get in the folder of your language, grab .dll file inside the folder and " +#| "paste it inside the language folder." +msgid "" +"Extract the zip that you just downloaded, the folder(s) for languages are " +"set by their ISO codes. To install your desire language, " +"get in the folder of your language, grab .dll file inside the folder and " +"paste it inside the language folder." +msgstr "" +"Extract the zip that you just downloaded, the folder(s) for languages are " +"set by their ISO codes. To install your desire language, " +"get in the folder of your language, grab .dll file inside the folder and " +"paste it inside the language folder." + +#: .\templates\wiki\localisation_how_to.html:84 +msgid "" +"After completing the above steps, you may need to restart osu!lazer if it is " +"already open. Once restarted, you should see the localized text in the " +"rulesets setting part. You can change the osu!lazer's language in the " +"General > Language section of osu!lazer's settings." +msgstr "" +"After completing the above steps, you may need to restart osu!lazer if it is " +"already open. Once restarted, you should see the localized text in the " +"rulesets setting part. You can change the osu!lazer's language in the " +"General > Language section of osu!lazer's settings." + +#: .\templates\wiki\localisation_how_to.html:87 +msgid "lazer_language_setting" +msgstr "osu!lazer language settings" + +#: .\templates\wiki\localisation_how_to.html:93 +#, fuzzy +#| msgid "download_localisation_file" +msgid "update localization files" +msgstr "Download localisation file" + +#: .\templates\wiki\localisation_how_to.html:96 +msgid "" +"To update localization files, just do the same step and overwrite the old " +"localization files." +msgstr "" +"To update localization files, just do the same step and overwrite the old " +"localization files." + +#: .\templates\wiki\maintainer.html:11 .\views.py:744 msgid "maintainer_menu" msgstr "Maintainer Menu" -#: .\templates\wiki\maintainer.html:12 .\views.py:726 +#: .\templates\wiki\maintainer.html:12 .\views.py:747 msgid "maintainer_menu_description" msgstr "Menu for maintainer only!" @@ -979,7 +1083,9 @@ msgstr "Download localisation file" #: .\templates\wiki\status.html:109 msgid "support_localisation_no_filename" -msgstr "This ruleset is support localisation but no filename provided on our database, you can download it from GitHub release page." +msgstr "" +"This ruleset is support localisation but no filename provided on our " +"database, you can download it from GitHub release page." #: .\templates\wiki\status.html:112 .\templates\wiki\status.html:147 msgid "github_release_page" @@ -1049,7 +1155,9 @@ msgstr "Recommend beatmaps" #: .\templates\wiki\wiki_page.html:81 msgid "localisation_support" -msgstr "This ruleset support localisation function! See more info on how to setup here." +msgstr "" +"This ruleset support localisation function! See more info on how to setup here." #: .\templates\wiki\wiki_page.html:100 msgid "subpage_index" diff --git a/rurusetto/wiki/locale/fr/LC_MESSAGES/django.po b/rurusetto/wiki/locale/fr/LC_MESSAGES/django.po index ab97043d..4c0cfba8 100644 --- a/rurusetto/wiki/locale/fr/LC_MESSAGES/django.po +++ b/rurusetto/wiki/locale/fr/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: Rūrusetto\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-06 01:33+0700\n" +"POT-Creation-Date: 2022-12-06 02:25+0700\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -99,11 +99,11 @@ msgid "create" msgstr "Créer" #: .\templates\wiki\archived_rulesets.html:10 .\templates\wiki\listing.html:24 -#: .\views.py:846 +#: .\views.py:867 msgid "archived_rulesets" msgstr "Rulesets archivés" -#: .\templates\wiki\archived_rulesets.html:11 .\views.py:849 +#: .\templates\wiki\archived_rulesets.html:11 .\views.py:870 msgid "archived_rulesets_description" msgstr "" "La liste des rulesets non mis à jours ou archivés par le créateur du ruleset." @@ -598,6 +598,7 @@ msgstr "" "Télécharger la dernière version sur le ruleset souhaité." #: .\templates\wiki\install.html:55 +#: .\templates\wiki\localisation_how_to.html:55 msgid "" "The changelog and download link will automatically update when a ruleset is " "updated." @@ -610,10 +611,12 @@ msgid "import rulesets to osu!lazer" msgstr "importer des rulesets dans osu!lazer" #: .\templates\wiki\install.html:64 +#: .\templates\wiki\localisation_how_to.html:64 msgid "step 1: navigate to osu! data directory" msgstr "étape 1 : allez dans votre dossier contenant les données d'osu!" #: .\templates\wiki\install.html:65 +#: .\templates\wiki\localisation_how_to.html:65 #, fuzzy, python-format #| msgid "" #| "In osu!lazer’s setting panel, there is a button to Open osu! " @@ -635,6 +638,7 @@ msgstr "" "Sur MacOS, son chemin est dans l'application elle-même." #: .\templates\wiki\install.html:68 +#: .\templates\wiki\localisation_how_to.html:68 msgid "open_osu_folder" msgstr "Ouvrez le dossier osu!" @@ -656,10 +660,12 @@ msgstr "" "écrasées." #: .\templates\wiki\install.html:78 +#: .\templates\wiki\localisation_how_to.html:78 msgid "Other rulesets also could share the same folder." msgstr "D'autres rulesets peuvent également partager le même dossier." #: .\templates\wiki\install.html:83 +#: .\templates\wiki\localisation_how_to.html:83 msgid "step 3: have fun!" msgstr "étape 3 : amusez-vous !" @@ -701,11 +707,119 @@ msgstr "Vos rulesets masqués" msgid "all_rulesets" msgstr "Tous les rulesets" -#: .\templates\wiki\maintainer.html:11 .\views.py:723 +#: .\templates\wiki\localisation_how_to.html:9 .\views.py:716 +#, fuzzy +#| msgid "install_and_update_rulesets_description" +msgid "install_and_update_localization" +msgstr "installer et mettre à jour les rulesets dans osu!lazer avec rūrusetto." + +#: .\templates\wiki\localisation_how_to.html:11 .\views.py:719 +#, fuzzy +#| msgid "install_and_update_rulesets_description" +msgid "install_and_update_localization_description" +msgstr "installer et mettre à jour les rulesets dans osu!lazer avec rūrusetto." + +#: .\templates\wiki\localisation_how_to.html:40 +#, fuzzy +#| msgid "download rulesets file" +msgid "download localization file" +msgstr "télécharger un fichier de ruleset" + +#: .\templates\wiki\localisation_how_to.html:47 +#, fuzzy, python-format +#| msgid "" +#| "Ruleset files can be obtained at rulesets status page and then clicking on the Download " +#| "latest version on the desired ruleset." +msgid "" +"Localisation files can be obtained at " +"rulesets status page and then clicking on the Download " +"localisation file on the desired ruleset." +msgstr "" +"Les fichiers de rulesets peuvent être obtenus à la page de statut des rulesets, puis cliquez sur " +"Télécharger la dernière version sur le ruleset souhaité." + +#: .\templates\wiki\localisation_how_to.html:59 +#, fuzzy +#| msgid "download rulesets file" +msgid "import localization file to osu!lazer" +msgstr "télécharger un fichier de ruleset" + +#: .\templates\wiki\localisation_how_to.html:73 +#, fuzzy +#| msgid "move_rulesets_file" +msgid "move_localization_file" +msgstr "Déplacez le fichier de ruleset" + +#: .\templates\wiki\localisation_how_to.html:76 +#, fuzzy +#| msgid "step 2: installing the ruleset" +msgid "step 2: installing the localization file" +msgstr "étape 2 : installer le ruleset" + +#: .\templates\wiki\localisation_how_to.html:77 +msgid "" +"Extract the zip that you just downloaded, the folder(s) for languages are " +"set by their ISO codes. To install your desire language, " +"get in the folder of your language, grab .dll file inside the folder and " +"paste it inside the language folder." +msgstr "" + +#: .\templates\wiki\localisation_how_to.html:84 +#, fuzzy +#| msgid "" +#| "After completing the above steps, you may need to restart osu!lazer if it " +#| "is already open. Once restarted, you should see the ruleset alongside the " +#| "standard rulesets." +msgid "" +"After completing the above steps, you may need to restart osu!lazer if it is " +"already open. Once restarted, you should see the localized text in the " +"rulesets setting part. You can change the osu!lazer's language in the " +"General > Language section of osu!lazer's settings." +msgstr "" +"Après avoir terminé les étapes ci-dessus, il se peut que vous deviez " +"redémarrer osu!lazer s'il est déjà ouvert. Une fois redémarré, vous devriez " +"voir le ruleset parmi les rulesets standard." + +#: .\templates\wiki\localisation_how_to.html:87 +#, fuzzy +#| msgid "site_languages_description" +msgid "lazer_language_setting" +msgstr "" +"Settings for global site languages. (This function is under test phase)" + +#: .\templates\wiki\localisation_how_to.html:93 +#, fuzzy +#| msgid "download rulesets file" +msgid "update localization files" +msgstr "télécharger un fichier de ruleset" + +#: .\templates\wiki\localisation_how_to.html:96 +#, fuzzy +#| msgid "" +#| "To update rulesets, just do the same step and overwrite the old rulesets " +#| "file." +msgid "" +"To update localization files, just do the same step and overwrite the old " +"localization files." +msgstr "" +"Pour mettre à jour des rulesets, recommencez les étapes précédentes et " +"écrasez l'ancien fichier de ruleset." + +#: .\templates\wiki\maintainer.html:11 .\views.py:744 msgid "maintainer_menu" msgstr "Menu du mainteneur" -#: .\templates\wiki\maintainer.html:12 .\views.py:726 +#: .\templates\wiki\maintainer.html:12 .\views.py:747 msgid "maintainer_menu_description" msgstr "Un menu uniquement pour le mainteneur !" @@ -1505,10 +1619,6 @@ msgstr "Deny beatmap successfully!" #~ msgid "site_languages" #~ msgstr "Site Languages" -#~ msgid "site_languages_description" -#~ msgstr "" -#~ "Settings for global site languages. (This function is under test phase)" - #~ msgid "Your settings has been updated!" #~ msgstr "Your settings has been updated!" diff --git a/rurusetto/wiki/locale/th/LC_MESSAGES/django.po b/rurusetto/wiki/locale/th/LC_MESSAGES/django.po index 61da40aa..ff96f61f 100644 --- a/rurusetto/wiki/locale/th/LC_MESSAGES/django.po +++ b/rurusetto/wiki/locale/th/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2022.410.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-06 01:33+0700\n" +"POT-Creation-Date: 2022-12-06 02:25+0700\n" "PO-Revision-Date: 2022-04-24 02:13+0700\n" "Last-Translator: Phawit Pornwattanakul \n" "Language-Team: Rūrusetto \n" @@ -100,11 +100,11 @@ msgid "create" msgstr "สร้าง" #: .\templates\wiki\archived_rulesets.html:10 .\templates\wiki\listing.html:24 -#: .\views.py:846 +#: .\views.py:867 msgid "archived_rulesets" msgstr "rulesets ที่ถูกเก็บแล้ว" -#: .\templates\wiki\archived_rulesets.html:11 .\views.py:849 +#: .\templates\wiki\archived_rulesets.html:11 .\views.py:870 msgid "archived_rulesets_description" msgstr "รายการของ rulesets ที่หยุดอัพเดทหรือถูกเก็บโดยผู้สร้าง rulesets" @@ -577,6 +577,7 @@ msgstr "" "ruleset และคลิกไปที่ ดาวน์โหลดเวอร์ชั่นล่าสุด บน ruleset ที่ต้องการได้เลย" #: .\templates\wiki\install.html:55 +#: .\templates\wiki\localisation_how_to.html:55 msgid "" "The changelog and download link will automatically update when a ruleset is " "updated." @@ -587,10 +588,12 @@ msgid "import rulesets to osu!lazer" msgstr "นำ rulesets เข้าใน osu!lazer" #: .\templates\wiki\install.html:64 +#: .\templates\wiki\localisation_how_to.html:64 msgid "step 1: navigate to osu! data directory" msgstr "ขั้นตอนที่ 1: ไปที่โฟลเดอร์ข้อมูลของ osu!" #: .\templates\wiki\install.html:65 +#: .\templates\wiki\localisation_how_to.html:65 #, python-format msgid "" "In osu!lazer’s setting panel, there is a button to Open osu! folder. ใน MacOS โฟลเดอร์นี้จะอยู่ที่ภายในแอป" #: .\templates\wiki\install.html:68 +#: .\templates\wiki\localisation_how_to.html:68 msgid "open_osu_folder" msgstr "เปิดโฟลเดอร์ osu!" @@ -625,10 +629,12 @@ msgstr "" "ตรวจสอบให้มั่นใจด้วยว่าไฟล์ ruleset ที่ซ้ำกันถูกเขียนทับแล้ว" #: .\templates\wiki\install.html:78 +#: .\templates\wiki\localisation_how_to.html:78 msgid "Other rulesets also could share the same folder." msgstr "rulesets อื่นสามารถใช้โฟลเดอร์เดียวกันได้" #: .\templates\wiki\install.html:83 +#: .\templates\wiki\localisation_how_to.html:83 msgid "step 3: have fun!" msgstr "ขั้นตอนที่ 3: เล่นให้สนุก!" @@ -667,11 +673,112 @@ msgstr "Ruleset ที่คุณซ่อนไว้อยู่" msgid "all_rulesets" msgstr "Ruleset ทุกอัน" -#: .\templates\wiki\maintainer.html:11 .\views.py:723 +#: .\templates\wiki\localisation_how_to.html:9 .\views.py:716 +#, fuzzy +#| msgid "install_and_update_rulesets_description" +msgid "install_and_update_localization" +msgstr "ติดตั้งและอัพเดท rulesets ใน osu!lazer ด้วย rūrusetto" + +#: .\templates\wiki\localisation_how_to.html:11 .\views.py:719 +#, fuzzy +#| msgid "install_and_update_rulesets_description" +msgid "install_and_update_localization_description" +msgstr "ติดตั้งและอัพเดท rulesets ใน osu!lazer ด้วย rūrusetto" + +#: .\templates\wiki\localisation_how_to.html:40 +#, fuzzy +#| msgid "download_localisation_file" +msgid "download localization file" +msgstr "ดาวน์โหลดไฟล์ภาษา" + +#: .\templates\wiki\localisation_how_to.html:47 +#, fuzzy, python-format +#| msgid "" +#| "Ruleset files can be obtained at rulesets status page and then clicking on the Download " +#| "latest version on the desired ruleset." +msgid "" +"Localisation files can be obtained at " +"rulesets status page and then clicking on the Download " +"localisation file on the desired ruleset." +msgstr "" +"ไฟล์ ruleset สามารถหาได้จาก หน้าสถานะของ " +"ruleset และคลิกไปที่ ดาวน์โหลดเวอร์ชั่นล่าสุด บน ruleset ที่ต้องการได้เลย" + +#: .\templates\wiki\localisation_how_to.html:59 +#, fuzzy +#| msgid "download_localisation_file" +msgid "import localization file to osu!lazer" +msgstr "ดาวน์โหลดไฟล์ภาษา" + +#: .\templates\wiki\localisation_how_to.html:73 +#, fuzzy +#| msgid "download_localisation_file" +msgid "move_localization_file" +msgstr "ดาวน์โหลดไฟล์ภาษา" + +#: .\templates\wiki\localisation_how_to.html:76 +#, fuzzy +#| msgid "step 2: installing the ruleset" +msgid "step 2: installing the localization file" +msgstr "ขั้นตอนที่ 2: ติดตั้ง ruleset" + +#: .\templates\wiki\localisation_how_to.html:77 +msgid "" +"Extract the zip that you just downloaded, the folder(s) for languages are " +"set by their ISO codes. To install your desire language, " +"get in the folder of your language, grab .dll file inside the folder and " +"paste it inside the language folder." +msgstr "" + +#: .\templates\wiki\localisation_how_to.html:84 +#, fuzzy +#| msgid "" +#| "After completing the above steps, you may need to restart osu!lazer if it " +#| "is already open. Once restarted, you should see the ruleset alongside the " +#| "standard rulesets." +msgid "" +"After completing the above steps, you may need to restart osu!lazer if it is " +"already open. Once restarted, you should see the localized text in the " +"rulesets setting part. You can change the osu!lazer's language in the " +"General > Language section of osu!lazer's settings." +msgstr "" +"หลังจากเสร็จทุกขั้นตอนแล้วคุณอาจจะต้องปิดและเปิด osu!lazer " +"ใหม่ถ้ามันเปิดอยู่แล้วหลังจากที่ปิดและเปิดใหม่แล้วคุณจะเห็น ruleset ใหม่อยู่ข้างๆ ruleset มาตรฐาน" + +#: .\templates\wiki\localisation_how_to.html:87 +msgid "lazer_language_setting" +msgstr "" + +#: .\templates\wiki\localisation_how_to.html:93 +#, fuzzy +#| msgid "download_localisation_file" +msgid "update localization files" +msgstr "ดาวน์โหลดไฟล์ภาษา" + +#: .\templates\wiki\localisation_how_to.html:96 +#, fuzzy +#| msgid "" +#| "To update rulesets, just do the same step and overwrite the old rulesets " +#| "file." +msgid "" +"To update localization files, just do the same step and overwrite the old " +"localization files." +msgstr "ในการอัพเดท rulesets เพียงแค่ทำขั้นตอนเดิมและเขียนทับไฟล์ rulesets เก่า" + +#: .\templates\wiki\maintainer.html:11 .\views.py:744 msgid "maintainer_menu" msgstr "เมนูผู้ดูแล" -#: .\templates\wiki\maintainer.html:12 .\views.py:726 +#: .\templates\wiki\maintainer.html:12 .\views.py:747 msgid "maintainer_menu_description" msgstr "เมนูสำหรับผู้ดูแลเท่านั้น" @@ -941,7 +1048,9 @@ msgstr "ดาวน์โหลดไฟล์ภาษา" #: .\templates\wiki\status.html:109 msgid "support_localisation_no_filename" -msgstr "Ruleset นี้รองรับการใช้งานหลายภาษาแต่ไม่มีชื่อไฟล์ภาษาในฐานข้อมูลของเรา คุณสามารถดาวน์โหลดมันได้จากหน้า release ของ GitHub" +msgstr "" +"Ruleset นี้รองรับการใช้งานหลายภาษาแต่ไม่มีชื่อไฟล์ภาษาในฐานข้อมูลของเรา " +"คุณสามารถดาวน์โหลดมันได้จากหน้า release ของ GitHub" #: .\templates\wiki\status.html:112 .\templates\wiki\status.html:147 msgid "github_release_page" @@ -1014,7 +1123,8 @@ msgstr "บีทแมปแนะนำ" #: .\templates\wiki\wiki_page.html:81 msgid "localisation_support" -msgstr "Ruleset นี้รองรับการใช้งานหลายภาษา สามารถศึกษาต้อเกี่ยวกับฟังก์ชั่นนี้ได้ที่นี่." +msgstr "" +"Ruleset นี้รองรับการใช้งานหลายภาษา สามารถศึกษาต้อเกี่ยวกับฟังก์ชั่นนี้ได้ที่นี่." #: .\templates\wiki\wiki_page.html:100 msgid "subpage_index" diff --git a/rurusetto/wiki/static/img/download-localization.png b/rurusetto/wiki/static/img/download-localization.png new file mode 100644 index 00000000..abd3ae8a Binary files /dev/null and b/rurusetto/wiki/static/img/download-localization.png differ diff --git a/rurusetto/wiki/static/img/install-localization-cover-light.png b/rurusetto/wiki/static/img/install-localization-cover-light.png new file mode 100644 index 00000000..9d56b510 Binary files /dev/null and b/rurusetto/wiki/static/img/install-localization-cover-light.png differ diff --git a/rurusetto/wiki/static/img/install-localization-cover-night.jpg b/rurusetto/wiki/static/img/install-localization-cover-night.jpg new file mode 100644 index 00000000..d8efa531 Binary files /dev/null and b/rurusetto/wiki/static/img/install-localization-cover-night.jpg differ diff --git a/rurusetto/wiki/static/img/installing-localization.png b/rurusetto/wiki/static/img/installing-localization.png new file mode 100644 index 00000000..043bab2f Binary files /dev/null and b/rurusetto/wiki/static/img/installing-localization.png differ diff --git a/rurusetto/wiki/static/img/localization-complete.png b/rurusetto/wiki/static/img/localization-complete.png new file mode 100644 index 00000000..d9ea545e Binary files /dev/null and b/rurusetto/wiki/static/img/localization-complete.png differ diff --git a/rurusetto/wiki/templates/wiki/localisation_how_to.html b/rurusetto/wiki/templates/wiki/localisation_how_to.html new file mode 100644 index 00000000..4b8cbbc0 --- /dev/null +++ b/rurusetto/wiki/templates/wiki/localisation_how_to.html @@ -0,0 +1,101 @@ +{% extends "wiki/base.html" %} +{% load static %} +{% load i18n %} +{% block content %} + +
+ +

+

{% trans "install_and_update_localization" %}

+
+

{% trans "install_and_update_localization_description" %}

+
+
+ +

+ +
+ {% if messages %} + {% for message in messages %} + {% if message.tags == "success"%} +
+ {{ message }} +
+ {% endif %} + {% if message.tags == "error"%} +
+ {{ message }} +
+ {% endif %} + {% endfor %} + {% endif %} +
+
+
+ +

+ +
+
+

{% blocktrans %}download localization file{% endblocktrans %}

+
+
+
+
+

+ {% url 'status' as url_status %} +

{% blocktrans %}Localisation files can be obtained at rulesets status page and then clicking on the Download localisation file on the desired ruleset.{% endblocktrans %}

+
+
+ Download the rulesets file +
+
+
+
+

{% blocktrans %}The changelog and download link will automatically update when a ruleset is updated.{% endblocktrans %}

+
+

+
+

{% blocktrans %}import localization file to osu!lazer{% endblocktrans %}

+
+
+
+
+

{% blocktrans %}step 1: navigate to osu! data directory{% endblocktrans %}

+

{% blocktrans %}In osu!lazer’s setting panel, there is a button to Open osu! folder within the “General” section. On windows you could navigate to the data folder directly via Windows Explorer, by default this location is %AppData%/osu!/rulesets. On MacOS default this location is in application itself.{% endblocktrans %}

+
+
+ {% trans 'open_osu_folder' %} +
+
+
+
+ {% trans +
+
+

{% blocktrans %}step 2: installing the localization file{% endblocktrans %}

+

{% blocktrans %}Extract the zip that you just downloaded, the folder(s) for languages are set by their ISO codes. To install your desire language, get in the folder of your language, grab .dll file inside the folder and paste it inside the language folder.{% endblocktrans %}

+

{% blocktrans %}Other rulesets also could share the same folder.{% endblocktrans %}

+
+
+
+
+

{% blocktrans %}step 3: have fun!{% endblocktrans %}

+

{% blocktrans %}After completing the above steps, you may need to restart osu!lazer if it is already open. Once restarted, you should see the localized text in the rulesets setting part. You can change the osu!lazer's language in the General > Language section of osu!lazer's settings.{% endblocktrans %}

+
+
+ {% trans +
+
+
+

+
+

{% blocktrans %}update localization files{% endblocktrans %}

+
+
+

{% blocktrans %}To update localization files, just do the same step and overwrite the old localization files.{% endblocktrans %}

+
+
+ +
+{% endblock content %} \ No newline at end of file diff --git a/rurusetto/wiki/urls.py b/rurusetto/wiki/urls.py index 53046677..23da60c8 100644 --- a/rurusetto/wiki/urls.py +++ b/rurusetto/wiki/urls.py @@ -18,7 +18,8 @@ path('rulesets//manage/beatmaps', views.recommend_beatmap_approval, name='recommend_beatmap_approval'), path('rulesets//manage/beatmaps/approve/', views.approve_recommend_beatmap, name='approve_recommend_beatmap'), path('rulesets//manage/beatmaps/deny/', views.deny_recommend_beatmap, name='deny_recommend_beatmap'), - path('install', views.install, name='install'), + path('install/rulesets', views.install, name='install'), + path('install/localization', views.install_localization_page, name='install_localization_page'), path('status', views.status, name='status'), path('maintainer', views.maintainer_menu, name='maintainer'), path('action/maintainer/update-beatmap', views.update_beatmap_action, name='update_beatmap_action'), diff --git a/rurusetto/wiki/views.py b/rurusetto/wiki/views.py index d9a67738..5b21ded0 100644 --- a/rurusetto/wiki/views.py +++ b/rurusetto/wiki/views.py @@ -703,6 +703,27 @@ def status(request): return render(request, 'wiki/status.html', context) +def install_localization_page(request): + """ + View for how to install localisation file page. This page is static so nothing much here. + + :param request: WSGI request from user. + :return: Render the install page and pass the value from context to the template (localisation_how_to.html) + """ + hero_image = 'img/install-localization-cover-night.jpg' + hero_image_light = 'img/install-localization-cover-light.png' + context = { + 'title': gettext('install_and_update_localization'), + 'hero_image': static(hero_image), + 'hero_image_light': static(hero_image_light), + 'opengraph_description': gettext('install_and_update_localization_description'), + 'opengraph_url': resolve_url('install_localization_page'), + } + if request.user.is_authenticated: + translation.activate(request.user.config.language) + return render(request, 'wiki/localisation_how_to.html', context) + + @user_passes_test(lambda u: u.is_superuser or u.is_staff) def maintainer_menu(request): """