* for php2js, all colons in messages will be replaced by " : ". That's not really...
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 23 Aug 2009 12:53:57 +0000 (12:53 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 23 Aug 2009 12:53:57 +0000 (12:53 +0000)
* update command line output

js2/mwEmbed/php/maintenance/mergeJavascriptMsg.php

index 6760f54..066642c 100644 (file)
@@ -126,14 +126,14 @@ function doJsonMerge( $json_txt ) {
                        if ( file_put_contents( $fname, $str ) ) {
                                print "\nupdated $curFileName from php\n\n";
                        } else {
-                               die( "could not write to: " . $fname );
+                               die( "Could not write to: " . $fname );
                        }
                }
                // return phpOut for building msgSet in outer function
                return $outPhp;
 
        } else {
-               print "could not get any json vars from:$curFileName \n";
+               print "Could not get any json vars from: $curFileName\n";
                return '';
        }
 }
@@ -170,9 +170,11 @@ function jsonReadable( $json ) {
                                                $result .= $char . $newline . str_repeat( $tab, $tabcount );
                                        }
                                break;
+/* FIXME: this will change "key" : "message:" to "key" : "messages : ". Not intended.
+          now "key" : "message" will become "key":"message:", but that's not too big of a problem.
                                        case ':':
                                        $result .= ' ' . $char . ' ';
-                                       break;
+                                       break; */
                                case '"':
                                        $inquote = !$inquote;
                                        $result .= $char;