Translating Soholaunch

From Sohowiki
(Difference between revisions)
Jump to: navigation, search
(Make a copy of the current english.php strings file)
 
(35 intermediate revisions by 7 users not shown)
Line 1: Line 1:
=Translating Soholaunch into another language=
 
  
 
For purposes of example, let's say we want to translate Soholaunch into Piglatin.
 
For purposes of example, let's say we want to translate Soholaunch into Piglatin.
  
==Make a copy of the current english.php strings file==
+
==Basic overview==
 
1. Make a copy of the current english.php strings file
 
1. Make a copy of the current english.php strings file
 +
 
2. Rename file to mylanguage.php, open it up, translate
 
2. Rename file to mylanguage.php, open it up, translate
 +
 
3. Send it to us so we can integrate it into the next product build
 
3. Send it to us so we can integrate it into the next product build
  
 +
==Detailed instructions==
 
Grab this file from one of your soho sites (make sure it's on the latest available version so you get the most up-to-date strings file)...
 
Grab this file from one of your soho sites (make sure it's on the latest available version so you get the most up-to-date strings file)...
 
<pre>sohoadmin/language/english.php</pre>
 
<pre>sohoadmin/language/english.php</pre>
Line 22: Line 24:
  
 
...into something like this:
 
...into something like this:
<pre>$lang["Main Menu"] = "Hoofd Menu";</pre>
+
<pre>$lang["Main Menu"] = "Ainmay Enumay";</pre>
  
 
When you're finished, send your translated language file to tech.team at soholaunch.com and we'll integrate it into the next product build.
 
When you're finished, send your translated language file to tech.team at soholaunch.com and we'll integrate it into the next product build.
 +
 +
==Notes/Tips==
 +
*Make sure your language strings file (e.g., piglatin.php) does not have any trailing spaces or line breaks after the closing "?>" at the bottom or certain site elements could go haywire (e.g., pages protected with a security group are completely blank).

Latest revision as of 16:54, 23 May 2007

For purposes of example, let's say we want to translate Soholaunch into Piglatin.

Basic overview

1. Make a copy of the current english.php strings file

2. Rename file to mylanguage.php, open it up, translate

3. Send it to us so we can integrate it into the next product build

Detailed instructions

Grab this file from one of your soho sites (make sure it's on the latest available version so you get the most up-to-date strings file)...

sohoadmin/language/english.php

Rename your copy to "mylanguage.php", like so:

piglatin.php

Open the file (piglatin.php) in some kind of text/code editor. Plain-ol' Windows' Notepad will work, but I'd recommend something that has syntax highlighting for php files (for the sake of readability).

Now it's just a matter of going through and translating every line.

For example, you'd change this line...

$lang["Main Menu"] = "Main Menu";

...into something like this:

$lang["Main Menu"] = "Ainmay Enumay";

When you're finished, send your translated language file to tech.team at soholaunch.com and we'll integrate it into the next product build.

Notes/Tips

  • Make sure your language strings file (e.g., piglatin.php) does not have any trailing spaces or line breaks after the closing "?>" at the bottom or certain site elements could go haywire (e.g., pages protected with a security group are completely blank).
Personal tools