Jump to content
MakeWebGames

Question: Text Editing


gmoore

Recommended Posts

I guess this is just a design question. In the case of the Welcome message.

From welcome module, public.php:

echo Translate("This web game is free to play, and offers lots of fun and activities!<br><br>Join now by pressing the Register button on the left side, or log in using the form at the top of the page!");

Is it normal in the design to just edit the message in public.php OR are you supposed to add a translation for this word grouping? Both seem kind of kludgy. Should there not be a system that does some sort of text replacement like:

echo Translate($global_welcome_message);

Then have an admin module that allow you to edit global messages?

I just want to know if I am missing something before I write this.

Thank you,

Greg

Link to comment
Share on other sites

Admin panel has the admin_language_editor module

In the menu if logged in as admin you can use the bottom link "Enable Text Editor" and edit text directly as you browse the game.

And there is also the translation file at language/en.xml

What I have not figured out yet, is how to add more languages. Only setting Ive found is the main language setting.

Link to comment
Share on other sites

Yeah I saw that, but when you logout to see the welcome screen the permission/option is turned off. So can't edit the public items. Again, or I just don't know where.

Greg

If I'm following correctly:

The admin panel, has a language editor, that allows you to change public facing messages just the same as one would use it to change in-game messages.

Look for the message you want to edit, and click edit.

In the case of the welcome message, it's quite close to the bottom of the list on a fresh install, and looks like "

This web game is free to play, and offers lots of fun and activities!<br><br>Join now" on the preview.

Link to comment
Share on other sites

I was just trying to make a more elegant solution. I mean I may want several paragraphs with images and what not. So I thought a variable or simpler code could make it easier for long text blocks to change. I have no problem changing 'Clan' to 'Group' but big blocks could get out of hand.

(And thank you for the response. I knew it would be edit from the language OR something)

Greg

Link to comment
Share on other sites

  • 2 weeks later...

Currently there is no pre-made support for multiple language. However it's really simple to offer it as it's a single variable to change. Could be done either from the engine itself or an additional module.

For the home page, I would personally go for some sort of "CMS" instead, the current home page is a simple example, but may not be the best one for a live game.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...