Add translators guide

Project:Documentation
Component:Development Documentation
Category:task
Priority:normal
Assigned:Unassigned
Status:new
Description

There needs to be a page written up that details the process for creating a new translation.

I think there is already a holding page for this in the dev handbook.

Related to this in some regards, we should also figure out the best way to generate a list of the available translation strings.

You mean something like this?

$lang = array();
$files = array();

$handle=opendir("./en_us");
while ($file = readdir($handle))
{
if (is_file($file))
{
$files[$file] =  include($file);
$lang = array_merge($lang, $files[$file]);
}
}
closedir($handle);

You can then dump the language entries by file, or every language string available.

Not quite - what i'm looking for is something that will find all the instances of the translation function and the string parameter passed to it which in turn would create the original files.

I would really appreciate help on that script if you're keen, but should probably be put in a different issue since this is primarily about adding documentation.

That should be added to have a per-user language setting (http://projectpier.org/node/298).

Also, I think somebody mentioned having some script to get the strings that needed to be changed or something like that. I mentioned that myself a couple of times too :) A script that would go over all the calls to lang() check that the strings exist for all the languages.