REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 2.43 KB
Close
/home/godevadmin/public_html/upload_images/home/000~ROOT~000/usr/share/gettext/msgunfmt.tcl
Text
Base64
# Reading tcl/msgcat .msg files. # Copyright (C) 2002, 2015-2016 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. namespace eval msgcat { namespace export mcset mcdump variable header "" } proc msgcat::puts_po_string {str} { # Replace " with \" regsub -all "\"" $str "\\\"" str # Replace \ with \\ regsub -all "\\\\" $str "\\\\\\" str # Replace newline with \n regsub -all [subst "\n"] $str "\\n" str regsub -all [subst "\a"] $str "\\a" str regsub -all [subst "\b"] $str "\\b" str regsub -all [subst "\f"] $str "\\f" str regsub -all [subst "\r"] $str "\\r" str regsub -all [subst "\t"] $str "\\t" str regsub -all [subst "\v"] $str "\\v" str # Output it. puts -nonewline "\"$str\"" } proc msgcat::write_po_message {msgid msgstr} { puts -nonewline "msgid " puts_po_string $msgid puts "" puts -nonewline "msgstr " puts_po_string $msgstr puts "" puts "" } # This gets called once for each message in the .msg catalog. proc msgcat::mcset {locale src {dest ""}} { msgcat::write_po_message $src $dest } # Main function. proc msgcat::mcdump {langfile} { if {[file exists $langfile]} { # msgunfmt expects the output in UTF-8 encoding. fconfigure stdout -encoding utf-8 set msgcat::header "" set fd [open $langfile r] # In newer tcl versions, the .msg files are in UTF-8 encoding. fconfigure $fd -encoding utf-8 eval [read $fd] close $fd if {$msgcat::header == ""} { # Provide a minimal header. set msgcat::header [subst "MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\n"] } msgcat::write_po_message "" $msgcat::header } else { # Tell msgunfmt to emit an internationalized error message. exit 2 } } # Main code: call the main function on the first and only argument. msgcat::mcdump [lindex $argv 0] exit 0
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 5 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
intl
DIR
-
drwxr-xr-x
2025-01-08 05:07:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
its
DIR
-
drwxr-xr-x
2025-01-08 05:07:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
po
DIR
-
drwxr-xr-x
2024-08-07 14:16:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
projects
DIR
-
drwxr-xr-x
2025-01-08 05:07:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
styles
DIR
-
drwxr-xr-x
2024-08-07 14:16:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ABOUT-NLS
91.81 KB
lrw-r--r--
2016-06-09 22:56:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
archive.dir.tar.xz
388.59 KB
lrw-r--r--
2019-11-18 17:12:17
Edit
Download
Rename
Chmod
Change Date
Unzip here
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
config.rpath
18.14 KB
lrwxr-xr-x
2016-06-11 12:59:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gettext.h
9.93 KB
lrw-r--r--
2016-06-11 12:59:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
javaversion.class
510 B
lrw-r--r--
2016-06-11 12:59:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
msgunfmt.tcl
2.43 KB
lrw-r--r--
2016-03-20 07:37:53
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).