languages
[ class tree: languages ] [ index: languages ] [ all elements ]

Procedural File: get_strings.php

Source Location: d:\website\PhpDocumentor\/languages/get_strings.php



Page Details:



Tags:

filesource:  Source Code for this file
version:  

$Header: /cvsroot/bitweaver/_bit_languages/get_strings.php,v 1.2 2005/08/07 17:39:18 squareing Exp $

Copyright (c) 2005 bitweaver.org Tiki is copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. All Rights Reserved. See copyright.txt for details and a complete list of authors. Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.



Includes:

require($origPatch) [line 220]
require("lang/$sel/language.php") [line 225]
require_once('../bit_setup_inc.php') [line 150]






addphpslashes [line 41]

void addphpslashes( lang=xx $string, comments 1, close 2, module 3, patch 4, spelling 5, groupwrite 6)

Update the language.php files

call example: get_strings.php?lang=fr&close




Parameters

comments   1   : generate all comments (equal to close&module)
close   2   : look for similar strings that are allready translated and generate a commet if a 'match' is made
module   3   : generate comments that describes in which .php and/or .tpl\n module(s) a certain string was found (useful for checking translations in context)
patch   4   : looks for the file 'language.patch' in the same directory as the corresponding language.php and overrides any strings in language.php - good if a user does not agree with some translations or if only changes are sent to the maintaner
spelling   5   : generate a file spellcheck_me.txt in the applicable languages directory that contains all the words used in the translated text. This makes it simple to use a spellchecker on the resulting file
groupwrite   6   : Sets the generated files permissions to allow the generated language.php also be group writable. This is good for translators if they do not have root access to tiki but are in the same group as the webserver. Please remember to have write access removed when translation is finished for security reasons. (Run script again whithout this parameter)
lang=xx   $string   : only translate lang 'xx' - if the parameter is not given all languages are translated
[ Top ]



addToWordlist [line 123]

void addToWordlist( &$wordlist, $sentence)



Parameters

   &$wordlist  
   $sentence  
[ Top ]



collect_files [line 92]

void collect_files( $dir)



Parameters

   $dir  
[ Top ]



hardwire_file [line 85]

void hardwire_file( $file)



Parameters

   $file  
[ Top ]



removephpslashes [line 65]

void removephpslashes( $string)



Parameters

   $string  
[ Top ]



writeFile_and_User [line 137]

void writeFile_and_User( $fd, $outstring)



Parameters

   $fd  
   $outstring  
[ Top ]



writeTranslationPair [line 142]

void writeTranslationPair( $fd, $key, $val)



Parameters

   $fd  
   $key  
   $val  
[ Top ]



Documentation generated on Thu, 15 Feb 2007 20:41:04 +0000 by phpDocumentor 1.3.0