Difference between revisions of "Editing Site Text"

From AWBS Wiki
Jump to: navigation, search
Line 3: Line 3:
 
Location: includes/language/english
 
Location: includes/language/english
  
If you wish to offer more/other languages, create a new directory in the includes/language directory.  
+
In the includes/language/english directory, there is a list of language files. The language files are named the same as the corresponding website page files.
  
Name it how you wish it to appear for users to select their language.
+
The global.php language file contains text content from multiple pages or that needed to be globally included.
Example: If you want to add spanish, you would create the spanish directory in the includes/language directory.
+
  
Copy all contents of the english directory to the new directory and translate all files within that directory to the chosen language.
+
Look for the filename of the page you want to change the text content and edit the text you want to change.
  
 +
Wordpad or a basic text editor should be used.
 +
[[Note:]] It is important that no extra spaces or line breaks are at the end of the file. This can cause blank pages or incorrectly displayed website pages.
  
In each language directory, there is a list of language files. The language files are named the same as the corresponding website page files.
+
 +
If you offer multiple languages, be sure to edit all languages when you edit.
  
The global.php language file contains text content from multiple pages or that needed to be globally included.
 
  
Look for the filename of the page you want to change the text content and edit the text you want to change.
+
== Adding a new language ==
  
Use a text editor for editing the language files.
+
If you wish to offer more/other languages, create a new directory in the includes/language directory.  
  
+
Name it how you wish it to appear for users to select their language.
 +
Example: If you want to add spanish, you would create the spanish directory in the includes/language directory.
  
If you offer multiple languages, be sure to edit all languages when you edit.
+
Copy all contents of the english directory to the new directory and translate all files within that directory to the chosen language. Wordpad or a basic text editor should be used.
 +
[[Note:]] It is important that no extra spaces or line breaks are at the end of the file. This can cause blank pages or incorrectly displayed website pages.
  
  
 
== Changing site character set ==
 
== Changing site character set ==

Revision as of 11:24, April 17, 2008

Language files are responsible for the text content on the site.

Location: includes/language/english

In the includes/language/english directory, there is a list of language files. The language files are named the same as the corresponding website page files.

The global.php language file contains text content from multiple pages or that needed to be globally included.

Look for the filename of the page you want to change the text content and edit the text you want to change.

Wordpad or a basic text editor should be used. Note: It is important that no extra spaces or line breaks are at the end of the file. This can cause blank pages or incorrectly displayed website pages.


If you offer multiple languages, be sure to edit all languages when you edit.


Adding a new language

If you wish to offer more/other languages, create a new directory in the includes/language directory.

Name it how you wish it to appear for users to select their language. Example: If you want to add spanish, you would create the spanish directory in the includes/language directory.

Copy all contents of the english directory to the new directory and translate all files within that directory to the chosen language. Wordpad or a basic text editor should be used. Note: It is important that no extra spaces or line breaks are at the end of the file. This can cause blank pages or incorrectly displayed website pages.


Changing site character set