mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
string update
This commit is contained in:
parent
95c6d034ec
commit
6ca0abe44e
4 changed files with 8767 additions and 7915 deletions
13
boot.php
13
boot.php
|
@ -50,6 +50,9 @@ define ( 'ZOT_REVISION', '6.0' );
|
|||
|
||||
define ( 'DB_UPDATE_VERSION', 1232 );
|
||||
|
||||
define ( 'PLATFORM_NAME', 'zap' );
|
||||
define ( 'PLATFORM_ARCHITECTURE', 'zap' );
|
||||
|
||||
define ( 'PROJECT_BASE', __DIR__ );
|
||||
|
||||
/**
|
||||
|
@ -608,16 +611,6 @@ function sys_boot() {
|
|||
|
||||
@include('.htconfig.php');
|
||||
|
||||
if(defined('NOMADIC')) {
|
||||
define ( 'PLATFORM_NAME', 'zap' );
|
||||
define ( 'PLATFORM_ARCHITECTURE', 'zap' );
|
||||
}
|
||||
else {
|
||||
define ( 'PLATFORM_NAME', 'osada' );
|
||||
define ( 'PLATFORM_ARCHITECTURE', 'osada' );
|
||||
}
|
||||
|
||||
|
||||
// allow somebody to set some initial settings just in case they can't
|
||||
// install without special fiddling
|
||||
|
||||
|
|
12310
util/hmessages.po
12310
util/hmessages.po
File diff suppressed because it is too large
Load diff
4353
util/hstrings.php
4353
util/hstrings.php
File diff suppressed because it is too large
Load diff
|
@ -82,7 +82,7 @@ function po2php_run($argc,$argv) {
|
|||
}
|
||||
if (!$arr) {
|
||||
$arr=True;
|
||||
$out .= "array(\n";
|
||||
$out .= "[\n";
|
||||
}
|
||||
$match=Array();
|
||||
preg_match("|\[([0-9]*)\] (.*)|", $l, $match);
|
||||
|
@ -106,7 +106,7 @@ function po2php_run($argc,$argv) {
|
|||
|
||||
if (substr($l,0,6)=="msgid "){
|
||||
if ($inv) { $inv = False; $out .= '"'.$v.'"'; }
|
||||
if ($k!="") $out .= $arr?");\n":";\n";
|
||||
if ($k!="") $out .= $arr?"];\n":";\n";
|
||||
$arr=False;
|
||||
$k = str_replace("msgid ","",$l);
|
||||
$k = trim_message($k);
|
||||
|
@ -133,7 +133,7 @@ function po2php_run($argc,$argv) {
|
|||
}
|
||||
|
||||
if ($inv) { $inv = False; $out .= '"'.$v.'"'; }
|
||||
if ($k!="") $out .= $arr?");\n":";\n";
|
||||
if ($k!="") $out .= $arr?"];\n":";\n";
|
||||
|
||||
file_put_contents($outfile, $out);
|
||||
|
||||
|
|
Loading…
Reference in a new issue