Files
RomhackPlaza/app/Helpers/FormHelpers.php

123 lines
5.2 KiB
PHP
Raw Permalink Normal View History

2026-05-20 18:25:15 +02:00
<?php
namespace App\Helpers;
class FormHelpers {
private static array $formWords = [
'translations' => [
'page_title' => "Submit a translation",
'about_the' => "About the translation",
'entry_title' => "Custom title",
'entry_title_helper' => "If the translation have a custom title. If not, leave it blank and the game title will be taken.",
'version' => "Patch version",
'status' => "Status",
'release_date' => "Release date",
'release_date_helper' => "If only initial release exist, the release date.",
'description' => "Description",
'about_game' => "Game Information",
'attachments' => "Attachments",
'authors' => "Team members",
'related_links' => "Related links",
'release_site' => "Release site",
'release_site_helper' => "Project entry on site/blog/forum/Github.",
'youtube_video' => "YouTube video",
],
'romhacks' => [
'page_title' => "Submit a romhack",
'about_the' => "About the romhack",
'entry_title' => "Hack title",
'type_of_hack' => "Type of hack",
'version' => "Patch version",
'status' => "Status",
'release_date' => "Release date",
'release_date_helper' => "If only initial release exist, the release date.",
'description' => "Description",
'about_game' => "Game Information",
'attachments' => "Attachments",
'authors' => "Team members",
'related_links' => "Related links",
'release_site' => "Release site",
'release_site_helper' => "Project entry on site/blog/forum/Github.",
'youtube_video' => "YouTube video",
],
2026-06-09 11:45:59 +02:00
'homebrew' => [
'page_title' => "Submit an homebrew",
'about_the' => "About the homebrew",
2026-06-10 11:04:26 +02:00
'version' => "Version",
'status' => "Status",
'release_date' => "Release date",
'release_date_helper' => "If only initial release exist, the release date.",
'description' => "Description",
'about_game' => "Game Information",
'attachments' => "Attachments",
'authors' => "Team members",
'related_links' => "Related links",
'release_site' => "Release site",
'release_site_helper' => "Project entry on site/blog/forum/Github.",
'youtube_video' => "YouTube video",
],
'utilities' => [
'page_title' => "Submit a utility",
'entry_title' => "Title",
'about_the' => "About the utility",
'version' => "Version",
'status' => "Status",
'system' => "OS",
'categories' => "Categories",
'level' => "Experience Level",
'release_date' => "Release date",
'release_date_helper' => "If only initial release exist, the release date.",
'description' => "Description",
'about_game' => "Game Information",
'attachments' => "Attachments",
'authors' => "Team members",
'related_links' => "Related links",
'release_site' => "Release site",
'release_site_helper' => "Project entry on site/blog/forum/Github.",
'youtube_video' => "YouTube video",
],
'documents' => [
'page_title' => "Submit a document",
'entry_title' => "Title",
'about_the' => "About the document",
'version' => "Version",
'status' => "Status",
'categories' => "Categories",
'level' => "Experience Level",
'release_date' => "Release date",
'release_date_helper' => "If only initial release exist, the release date.",
'description' => "Description",
'about_game' => "Game Information",
'attachments' => "Attachments",
'authors' => "Team members",
'related_links' => "Related links",
'release_site' => "Release site",
'release_site_helper' => "Project entry on site/blog/forum/Github.",
'youtube_video' => "YouTube video",
],
'lua-scripts' => [
'page_title' => "Submit a LUA Script",
'about_the' => "About the script",
'entry_title' => "Title",
'type_of_hack' => "Modifications",
'version' => "Version",
2026-06-09 11:45:59 +02:00
'status' => "Status",
'release_date' => "Release date",
'release_date_helper' => "If only initial release exist, the release date.",
'description' => "Description",
'about_game' => "Game Information",
'attachments' => "Attachments",
'authors' => "Team members",
'related_links' => "Related links",
'release_site' => "Release site",
'release_site_helper' => "Project entry on site/blog/forum/Github.",
'youtube_video' => "YouTube video",
],
2026-05-20 18:25:15 +02:00
];
public static function getEntryFormWords( string $section ){
return self::$formWords[$section] ?? [];
}
}