Procedural File: get_strings.php
Source Location: /languages/get_strings.php
Page Details:
Tags:
Includes:
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 |
addToWordlist [line 123]
void addToWordlist(
&$wordlist, $sentence)
|
|
Parameters
collect_files [line 92]
void collect_files(
$dir)
|
|
Parameters
hardwire_file [line 85]
void hardwire_file(
$file)
|
|
Parameters
removephpslashes [line 65]
void removephpslashes(
$string)
|
|
Parameters
writeFile_and_User [line 137]
void writeFile_and_User(
$fd, $outstring)
|
|
Parameters
writeTranslationPair [line 142]
void writeTranslationPair(
$fd, $key, $val)
|
|
Parameters
|
|