|
|
How to create a Language Pack
|
english(1.0.5).zip (49.07 KB)

|
Why should I create a language pack?
- AEF in your native or preferred language
- Help expand this great project into other languages/countries
- Becoming Moderator for the sub-forum of the language(s) you translate
- Full Recognition and Credit for your efforts
- Thanks from the AEF Team and People who use your lang pack
(Also, you should know the language pretty well because people will need support in that language.. )
Sounds good! Now, how do I create a language pack?
Creating a Language pack is very simple and easy. Just I am going to walk you through translating one file into another language. Attached is the english language pack; Found in {DIRECTORY}\\languages\\english. This is where all language packs will be stored.
Step 1 Download a language pack that has already been made for the language you know; Here, or english is attached to this post or in your directory already by default.
Step 2 Make a copy of the whole folder, and paste it in same directory; {DIRECTORY}\languages\. On Windows, Copy is Ctrl + C and Paste is Ctrl + V.
Step 3 Using a simple text editor like Notepad, or WordPad, on Windows, open the file, logout_lang.php. Be sure not to use an editor like MS Word because it will add unneeded syntax &/or formatting that may mess up the file.* Below is the code for that file with comments, which should be very explanatory and help you to learn to convert other files. If your language uses special characters, please use the HTML Entities code for it. Codes can be found on this chart.
PHP Code <?php
//////////////////////////////////////////////////////////////
//===========================================================
// logout_lang.php(languages/english)
//===========================================================
// AEF : Advanced Electron Forum
// Version : 1.0.5
// Inspired by Pulkit and taken over by Electron
// ----------------------------------------------------------
// Started by: Electron, Ronak Gupta, Pulkit Gupta
// Date: 23rd Jan 2006
// Time: 15:00 hrs
// Site: http://www.anelectron.com/ (Anelectron)
// ----------------------------------------------------------
// Please Read the Terms of use at http://www.anelectron.com
// ----------------------------------------------------------
//===========================================================
// (c)Electron Inc.
//===========================================================
//////////////////////////////////////////////////////////////
/*
- To start, change the 1st line of the code to the language you are converting in
- EVERY file you translate --> logout_lang.php(languages/english)
- You do not need to edit anything before the = sign; Edit Everything in
- between ''. In the examples below, you
- would edit Not Logged In, You are not logged in then how can we log you
- out., Delete Session Error, etc.
- If you come to any variables, HTML, PHP, CSS, etc Code, like in $l['delete_session_error'], leave these alone, as they
- have nothing
- to do with the language, but you may edit Administrator in >Administrator</a> - to any language you want. If you come
- across an issue,
- please ask for support at the AEF Help Board Topic on creating Language
- Packs where this tutorial was created at
- http://www.anelectron.com/board/
*/
// Tutorial created by kab012345 :: http://www.anelectron.com/board/index.php?mid=344
$l['not_logged_in_title'] = 'Not Logged In';
$l['not_logged_in'] = 'You are not logged in then how can we log you out.';
$l['delete_session_error_title'] = 'Delete Session Error';
$l['delete_session_error'] = 'There were some errors while deleting your user session. Please Contact the <a href="mailto:'.$globals['board_email'].'">Administrator</a>.';
$l['guest_session_error_title'] = 'Guest Session Error';
$l['guest_session_error'] = 'There were some errors while creating a guest session for you. Please Contact the <a href="mailto:'.$globals['board_email'].'">Administrator</a>.';
?>
Step 4 Do this to EVERY file in this folder, including any files in sub-folders. If you use a MOD, you will have to do this for every MOD you install and/or make also. (Walk-through coming soon)
Step 5 When you are done editing the file, please remember to save all changes, and go through and inspect files one last time. After, please zip (.zip) the file. On windows, you can Right Click the folder --> Send to --> Compressed (zipped) Folder. If you do not have windows, you can use any other compressors that can create .zip archives.** Please rename your .zip to language(version_of_aef).zip All Contributions should be emailed to pulkit at his email, pulgup@gmail.com as an email attachment or uploaded to a file host. Please use a good subject, like "AEF Language Pack for [LANGUAGE] to prevent your email from being filtered as spam.
NOTE: Comments in /* and */, and // tags can be removed if you feel necessary.
Resources:
Simple FREE Text Editors*
- Notepad 2
- OneTextFile --> Secure Online Editor!
Simple FREE .zip Compressors**
- 7-Zip
- WinAce (Very Good)
- WinRar
- Win Zip --> Trial
If you do not like any of the above, searching these keywords in an engine like Google may be the way to go.
Good luck, and Happy Translating! :))
|
|