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

Procedural File: get_strings.php

Source Location: /languages/get_strings.php



Page Details:



Tags:

version:  

$Header$

Copyright (c) 2005 bitweaver.org Tiki is copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. All Rights Reserved. See below for details and a complete list of authors. Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.

filesource:  Source Code for this file


Includes:

require($origPatch) [line 220]
require("lang/$sel/language.php") [line 225]
require_once('../kernel/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 Wed, 29 Jul 2015 13:56:40 +0000 by phpDocumentor 1.5.0-lsces