From b040366e655fe81b2c865a345d61abfb59cc0447 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 23 Apr 2025 07:41:37 +0200 Subject: [PATCH] Remove translation system that wasn't going anywhere --- _components/loc.php | 24 -------------- _components/navbar.php | 34 ++++--------------- asset-replacements-guide.php | 24 +++++++------- contribute.php | 12 +++---- guide.php | 63 ++++++++++++++++++------------------ import.php | 15 ++++----- index.php | 20 ++++++------ 7 files changed, 70 insertions(+), 122 deletions(-) delete mode 100644 _components/loc.php diff --git a/_components/loc.php b/_components/loc.php deleted file mode 100644 index 191cb2e..0000000 --- a/_components/loc.php +++ /dev/null @@ -1,24 +0,0 @@ - "English", - "de" => "Deutsch", -]; - -$lang_code = $_GET["lang"] ?? "en"; -if (!array_key_exists($lang_code, $lang_names)) -{ - $lang_code = "en"; -} - -$data = json_decode(file_get_contents(__DIR__."/../_lang/$lang_code.json"), true); - -function loc($key) -{ - global $data; - $str = $data[$key]; - if (substr($str, 0, 15) == "[UNTRANSLATED] ") - { - $str = substr($str, 15); - } - return $str; -} diff --git a/_components/navbar.php b/_components/navbar.php index a7a5f97..9907bb3 100644 --- a/_components/navbar.php +++ b/_components/navbar.php @@ -1,46 +1,26 @@ diff --git a/asset-replacements-guide.php b/asset-replacements-guide.php index 9a3b395..ccc403c 100644 --- a/asset-replacements-guide.php +++ b/asset-replacements-guide.php @@ -1,27 +1,25 @@ -
-=loc("arep.desc");?>
+This guide will go through the steps to modify a texture used by Warframe via the OpenWF Bootstrapper.
- =loc("arep.what");?>
- =loc("arep.explore");?>
-
/Lotus/Interface/PolarityPoint.png
as an example, which is the icon for the Vazarin polarity.pluto extract.pluto /Lotus/Interface/PolarityPoint.png
to download & export the texture to the assets
folder.assets
folder until you find PolarityPoint.png.dds
.DXT1
or DXT5
in the 6th row.pluto build.pluto
within the warframe-cache-tools directory.content (managed)
folder from warframe-cache-tools into the OpenWF folder of your client. The Bootstrapper will automatically patch the game to use your modified content, and if you ever wanna stop using it, you can simply remove the client's content (managed)
folder.=loc("contribute.code.desc");?>
-=loc("contribute.trans.desc");?>
+Code contributions would be most welcome, especially on SpaceNinjaServer, with many open issues.
+Most OpenWF software has support for translations:
=str_replace("|DLL|", 'dwmapi.dll', loc("setup.c.simple"));?>
+To use OpenWF, you only need to download the dwmapi.dll and put it in your game's installation folder (the one where Warframe.x64.exe is in).
=loc("setup.c.docshttp");?>
-=loc("setup.c.next");?>
-The DLL is fully documented here, but the most important point is that, while the game is running, you can visit http://localhost:6155/ to manage options, cheats, and scripts.
+Next steps: By default, the DLL redirects requests to localhost — meaning the same machine you're playing on — so you'll either need to set up a server or change the server_host to point to a different machine that's already got a server running.
+git clone https://openwf.io/SpaceNinjaServer.git
in a command prompt to download SpaceNinjaServer in the current working directorycd SpaceNinjaServer
)copy config.json.example config.json
to create a config.json from config.json.examplegit clone https://openwf.io/0.git
in the static/data
foldernpm install --omit=dev
to install library dependenciesnpm run build
to build the servernpm run start
to start the server anytime=loc("setup.s.update.wineasy");?>
+Windows users can simply double-click the UPDATE AND START SERVER.bat
, but otherwise the steps are pretty simple:
git pull
in the SpaceNinjaServer foldergit pull
in the static/data/0
foldernpm install --omit=dev
to synchronize library dependenciesnpm run build
to build the servernpm run start
to start the server again=loc("setup.irc.leadin");?>
+In addition to SpaceNinjaServer, you can also set up an IRC server for the in-game chat:
=loc("import.intro")?>
-This guide will go over how to get your inventory data from live servers and import it in SpaceNinjaServer.
+inventory.json
.=loc("import.import.desc")?>
+Now that you have your inventory, open the SpaceNinjaServer WebUI and locate the "Import" tab. You can simply paste the entire thing in the textbox and press the "Submit" button.
=loc("about.0");?>
+OpenWF is a software suite centered around customizing Warframe, including:
- =loc("preservation.0");?>
- =loc("preservation.1");?>
-
=loc("tm_disclaimer");?>
+Warframe is a registered trademark of Digital Extremes. Its use is for identification purposes only and does not imply any affiliation with or endorsement by Digital Extremes.