All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Tutorial - How to translate Projectfork
PostPosted: September 22nd, 2008, 8:20 am 
Offline
PF lead dev
PF lead dev
User avatar

Joined: March 3rd, 2008, 2:19 pm
Posts: 1552
Location: Germany, Saarbruecken
In this tutorial I will show you how to translate Projectfork into your language and how to create an installable package.

Translate the original language file
The best way to start your translation is to copy the original language file "english.php" somewhere to your PC. You can find this file in:
"<joomla root>/administrator/components/com_projectfork/languages/"

Then rename the copy to the name of your language (for example: "german.php"). Now open the file and translate all the language tokens.

Create the XML file
Once you're done translating, all you have to do now is create the XML file needed for the installation. To start, download the XML template below and then open the file and edit it accordingly:

[ Download XML template ]

Code:
Field name       Status       Description

name             Required     Enter the name of your language file without the file extension. Example: german
title            Required     Enter the native name of your language. Example: Deutsch
author           Optional     Enter your name
email            Optional     Enter your email address
website          Optional     Enter your website
update_website   Optional     Enter a link to your website where people can quickly check for updates
version          Optional     Enter the the version of your language file
license          Optional     Enter the license under which you are publishing your work
copyright        Optional     Enter copyright information
date             Optional     Enter the release date of your work
files - file     Required     Enter the name of your language file. For example german.php


Create the install package
The final step is to put both files into a ZIP package. Then you should try to install the package to see if it works.
And remember, to install a language package, navigate to: "Projectfork -> Config -> Languages"

_________________
Image Check out the Projectfork PowerPack!
Image Download community extension
Image Review Projectfork on JED!


Last edited by eaxs on September 30th, 2009, 6:37 am, edited 4 times in total.

Top
 Profile  
 
 Post subject: How to update an existing translation
PostPosted: October 15th, 2009, 4:36 am 
Offline
PF lead dev
PF lead dev
User avatar

Joined: March 3rd, 2008, 2:19 pm
Posts: 1552
Location: Germany, Saarbruecken
In this second part of the tutorial I will explain how to update a translation from 2.0 to 2.1

Download the translated 2.0 language file
If you don't have a copy of the latest translation, you can check the 2.0 archive. Once you have the language file that you would like to update, open then corresponding PHP file (for example: german.php).

Download the language compare report
Now you need the "language compare report". Download the package and open the "language.htm" with any web browser. What you see now is a comparison between the Projectfork 2.0 and the Projectfork 2.1 language file.
The left column shows the 2.0 file, and the right column shows the 2.1 file.

Doing the update
The compare report shows you what is new or what has changed in the 2.1 language file. All you have to do is copy the missing language strings over to the file that you want to update and translate them into your language. Also make sure you update any changed strings! Simply go through the report line by line.

Once you're done, re-pack the language PHP file with the XML file (you might want to update the version info there). And that's it!

_________________
Image Check out the Projectfork PowerPack!
Image Download community extension
Image Review Projectfork on JED!


Top
 Profile  
 
 Post subject: Re: Tutorial - How to translate Projectfork
PostPosted: December 18th, 2009, 1:45 pm 
Offline

Joined: December 9th, 2009, 10:56 am
Posts: 1
We translated projectFork to spanish. We'd like to share the file with you. Where can we do that :?:


Top
 Profile  
 
 Post subject: Re: Tutorial - How to translate Projectfork
PostPosted: December 18th, 2009, 3:00 pm 
Offline
Site Admin
User avatar

Joined: February 13th, 2008, 2:59 pm
Posts: 2973
Location: Austin, TX
Hi,
You can attach in a post here viewforum.php?f=33
Thanks!

_________________
-Kyle Ledbetter
My Projects:
AdminPraise
Projectfork
TapTheme new!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: