g
Printer Friendly Version

editor  
BellaOnline's Digital Art and Design Editor
 

WebCards Language File Changes

We will continue to customize the WebCards system by making some changes to the text on the pages. This default text can be found in the lang folder of the WebCards system. The file we will work on is the en-gb.php file.

webcards/lang/en-gb.php

As you can see, this file contains a list of variables and the text assigned to each variable. You may wish to review each and make changes to match your needs. As for our example, we will make four changes.

On the front page of the system and just under the header graphic we have two links. The first is a link to this page and the second is a link for picking up an ecard. Both of these together take up most of the width of the page. We can change the "Send A Pamela Gladding Ecard" to "Send an Ecard". We will make the same change for the pickup message. Below this is the message "Choose an Image to Send with Your Pamela Gladding Ecard". This is so long that it covers two lines. We can change this to "Choose an Ecard".

  1. To make the first change, find this line of code.

    $lang['send_a_webcard'] = "Send A {{site_title}}";

    Now we will change the "A" to "An" and replace the {{site_title}} with the word "Ecard".

    $lang['send_a_webcard'] = "Send An Ecard";

  2. To make the second change, fine this line of code.

    $lang['pickup_a_webcard'] = "Pickup A {{site_title}}";

    Now we will change the "A" to "An" and replace the {{site_title}} with the word "Ecard".

    $lang['pickup_a_webcard'] = "Pickup An Ecard";

  3. To make the third change, find this line of code.

    $lang['choose_img'] = "Choose an Image to Send with Your {{site_title}}";

    Now we will change the word "Image" with "Ecard" and remove the rest of the text.

    $lang['choose_img'] = "Choose an Ecard";

Let's refresh the browser to see the changes.

On the send form, the instructions are a little too long. We can change the "Fill in the form below to create your own Pamela Gladding Ecard" to just say "Fill in the form below".

    To make this change, find this line of code.

    $lang['form_create_webcard'] = "Fill in the form below to create your own {{site_title}}";

    Change the code to the following.

    $lang['form_create_webcard'] = "Fill in the form below.";

    Now refresh your browser to view the changes.

http://www.mywebcards.net





Join us in the Digital Art and Design forum.

WebCards screenshots used by permission.

Digital Art and Design Site @ BellaOnline
View This Article in Regular Layout

Content copyright © 2013 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Diane Cipollo for details.



| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor