/var/www/hkosl.com/demo_google/application/vendor/gettext/languages/src/Exporter/Docs.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
namespace Gettext\Languages\Exporter;

class 
Docs extends Html
{
    
/**
     * @see Exporter::toStringDo
     */
    
protected static function toStringDo($languages)
    {
        
$result = <<<EOT
<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="author" content="Michele Locati">
        <title>gettext plural rules - built from CLDR</title>
        <meta name="description" content="List of all language rules for gettext .po files automatically generated from the Unicode CLDR data" />
        <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <a href="https://github.com/mlocati/cldr-to-gettext-plural-rules" class="hidden-xs"><img style="position: fixed; top: 0; right: 0; border: 0; z-index: 2000" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
        <div class="container-fluid">

EOT;
        
$result .= static::buildTable($languagestrue);
        
$result .= <<<EOT

        </div>
        <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
        <script src="script.js"></script>
    </body>
</html>
EOT;

        return 
$result;
    }
    
/**
     * @see Exporter::isForPublicUse
     */
    
public static function isForPublicUse()
    {
        return 
false;
    }
    
/**
     * @see Exporter::getDescription
     */
    
public static function getDescription()
    {
        return 
'Build the page http://mlocati.github.io/cldr-to-gettext-plural-rules';
    }
}