Completed
Push — master ( 14d2bd...06e609 )
by mw
81:37 queued 59:24
created

languages/SMW_LanguageHe.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * @file
4
 * @ingroup SMWLanguage
5
 */
6
7
/**
8
 * Protect against register_globals vulnerabilities.
9
 * This line must be present before any global variable is referenced.
10
 */
11
if ( !defined( 'MEDIAWIKI' ) ) {
12
	die();
13
}
14
15
global $smwgIP;
0 ignored issues
show
Compatibility Best Practice introduced by
Use of global functionality is not recommended; it makes your code harder to test, and less reusable.

Instead of relying on global state, we recommend one of these alternatives:

1. Pass all data via parameters

function myFunction($a, $b) {
    // Do something
}

2. Create a class that maintains your state

class MyClass {
    private $a;
    private $b;

    public function __construct($a, $b) {
        $this->a = $a;
        $this->b = $b;
    }

    public function myFunction() {
        // Do something
    }
}
Loading history...
16
include_once ( $smwgIP . 'languages/SMW_Language.php' );
17
18
/**
19
 * Hebrew language labels for important SMW labels (namespaces, datatypes,...).
20
 *
21
 * @author Udi Oron אודי אורון
22
 * @author eranroz
23
 * @ingroup SMWLanguage
24
 * @ingroup Language
25
 */
26
class SMWLanguageHe extends SMWLanguage {
27
28
	protected $m_DatatypeLabels = array(
29
		'_wpg' => 'עמוד', // name of page datatype
30
		'_txt' => 'טקסט',  // name of the text type (very long strings)
31
		'_cod' => 'קוד',  // name of the (source) code type
32
		'_boo' => 'נכוןלאנכון',  // name of the boolean type
33
		'_num' => 'מספר', // name for the datatype of numbers
34
		'_geo' => 'קורדינטות גיאוגרפיות', // name of the geocoord type
35
		'_tem' => 'טמפרטורה',  // name of the temperature type
36
		'_dat' => 'תאריך',  // name of the datetime (calendar) type
37
		'_ema' => 'דואל',  // name of the email (URI) type
38
		'_uri' => 'כתובת כללית',  // name of the URL type
39
		'_anu' => 'מזהה יחודי לפירוש',  // name of the annotation URI type (OWL annotation property)
40
		'_tel' => 'Telephone number',  // name of the telephone (URI) type //TODO: translate
41
		'_rec' => 'Record', // name of record data type //TODO: translate
42
		'_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
43
		'_mlt_rec' => 'Monolingual text',
44
	);
45
46
	protected $m_DatatypeAliases = array(
47
		/*LTR hint for text editors*/ 'מזהה יחודי' => '_uri',
48
		/*LTR hint for text editors*/ 'שלם' => '_num',
49
		/*LTR hint for text editors*/ 'נקודהצפה' => '_num',
50
		/*LTR hint for text editors*/ 'מחרוזת' => '_txt', // old name of the string type
51
	);
52
53
	protected $m_SpecialProperties = array(
54
		// always start upper-case
55
		'_TYPE' => 'מטיפוס',
56
		'_URI'  => 'מזהה יחודי תואם',
57
		'_SUBP' => 'רכוש כפוף ל',
58
		'_SUBC' => 'תת קטגוריה של',
59
		'_UNIT' => 'יחידות מידה',
60
		'_IMPO' => 'יובא מ',
61
		'_CONV' => 'מתורגם ל',
62
		'_SERV' => 'מספק שירות',
63
		'_PVAL' => 'ערך אפשרי',
64
		'_MDAT' => 'תאריך לשינוי',
65
		'_CDAT' => 'תאריך יצירה',
66
		'_NEWP' => 'האם הדף חדש',
67
		'_LEDT' => 'העורך האחרון ',
68
		'_ERRP' => 'יש ערך תקין בשביל',
69
		'_LIST' => 'Has fields', // TODO: translate
70
		'_SOBJ' => 'Has subobject', // TODO: translate
71
		'_ASK'  => 'Has query', // TODO: translate
72
		'_ASKST'=> 'מחרוזת השאילתא',
73
		'_ASKFO'=> 'פורמט השאילתא',
74
		'_ASKSI'=> 'גודל השאילתא',
75
		'_ASKDE'=> 'עומק שאילתא',
76
		'_ASKDU'=> 'Query duration', // TODO: translate
77
		'_MEDIA'=> 'Media type',
78
		'_MIME' => 'Mime type',
79
		'_ERRC' => 'Has processing error',
80
		'_ERRT' => 'Has processing error text',
81
		'_PREC'  => 'Display precision of',
82
		'_LCODE' => 'Language code',
83
		'_TEXT'  => 'Text',
84
		'_PDESC' => 'Has property description',
85
		'_PVAP'  => 'Allows pattern',
86
		'_DTITLE' => 'Display title of',
87
		'_PVUC' => 'Has uniqueness constraint',
88
	);
89
90
	protected $m_SpecialPropertyAliases = array(
91
		'יחידת הצגה'
92
		                    => '_UNIT',
93
	);
94
95
96
	protected $m_Namespaces = array(
97
		SMW_NS_PROPERTY       => 'תכונה',
98
		SMW_NS_PROPERTY_TALK  => 'שיחת_תכונה',
99
		SMW_NS_TYPE           => 'טיפוס',
100
		SMW_NS_TYPE_TALK      => 'שיחת_טיפוס',
101
		SMW_NS_CONCEPT        => 'רעיון',
102
		SMW_NS_CONCEPT_TALK   => 'שיחת_רעיון'
103
	);
104
105
106
	protected $m_dateformats = array( array( SMW_Y ), array( SMW_MY, SMW_YM ), array( SMW_DMY, SMW_MDY, SMW_YMD, SMW_YDM ) );
107
108
	protected $m_months = array( "ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר" );
109
110
	protected $m_monthsshort = array( "ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר" );
111
112
}
113