collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 202
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Recent topic/post block for SMF 2.1 by Dylert
[Yesterday at 03:42:59 PM]


Re: numero de post en portal by gonto333
[August 09, 2019, 03:58:17 PM]


Re: Adding Forums Button to Nav bar by ccbtimewiz
[August 08, 2019, 01:26:38 AM]


numero de post en portal by gonto333
[August 06, 2019, 07:31:17 PM]


Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: READ ME: About SimplePortal Translation.  (Read 14091 times)

0 Members and 1 Guest are viewing this topic.

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
READ ME: About SimplePortal Translation.
« on: February 06, 2010, 08:00:41 PM »
Hi there, this post will help you translate SimplePortal into your language.

There are three language files that can be found in the "languages" folder of the SimplePortal package:
  • SPortal.english.php
    This file contains some general language strings, the error strings and any block strings. These strings can appear anywhere.

  • SPortalAdmin.english.php
    This file contains all the admin strings, including the strings for the block settings, article settings, block descriptions, block parameters, etc.

  • SPortalHelp.english.php
    This file contains the necessary help language strings.These help strings give the user important information about every aspect of SimplePortal's settings and configuration.

So, how do I translate SimplePortal?

If you want to translate SimplePortal, then you just have to translate the language strings in each of those files, here's an example:

Code: [Select]
$txt['var'] = 'Translate Me!';  
You have to translate the value of the string, that means, all the content within simple quotes '  Translate Me!  '

The strings in each file are separated according to the location where the string is displayed.

UTF-8

Most of the languages currently supported by smf have their own utf8 versions, these files need to be encoded with "UTF-8 witout BOM", with this encoding they can contain special utf8 characters (such as á) instead of HTML entities, very useful with some languages. Each SMF and SimplePortal translation file has its own utf8 version, these files need to be encoded with "UTF-8 witout BOM", to convert a normal file to utf8 you have to encode the utf8 file with "utf-8 witout BOM", this is easily done with a source code editor, for example, with notepad++ go to Format, select "convert to utf8 witout BOM", save the file and you're done. You can then use special utf8 characters in this file, for example you can put á instead of the HTML entity &aacute; Also note that you can easily convert from HTML entities to special characters using a code editor with a find and replace feature 

If you have more questions regarding encoding, please contact the language team.

Tools

While working on the translation, we recommend the using of a source code editor, such as notepad++, EditPlus 3, etc. Using a source code editor will help you to easily find the strings that need to be translated. They also have some very useful utilities that can help you to save time and translate faster without losing quality.

Notes

If you are planning to use single quotes inside the value of a string, you have to escape them using a backslash \' for example:

Code: [Select]
$txt['var'] = 'I'm going to your house.';
should be like this:

Code: [Select]
$txt['var'] = 'I\'m going to your house.';
This is necessary to avoid php errors.

Some strings also have variables inside them:

Code: [Select]
  $txt['var'] = 'Viewing the <a href="' . $scripturl . '">Portal</a>.';
In this case the variable is inside quotes:

$txt['var'] = 'translate me' . $do_not_touch_me . ' again translate me';   

There's no need to translate the variable, in fact, you shouldn't do that, just the text within the single quotes. You shouldn't translate the html either (the text in-between the < and > symbols).

I'm done with the translation, what's next?

If you have already made a translation for SimplePortal or you are interested in translating SimplePortal for your language, please contact the Language coordinator or create a new topic in the International Support board.