Index: trunk/extensions/Wikidata/SpecialLanguages.i18n.php |
— | — | @@ -69,6 +69,7 @@ |
70 | 70 | 'ow_AlternativeDefinitions' => 'Alternative definitions', |
71 | 71 | 'ow_Annotation' => 'Annotation', |
72 | 72 | 'ow_ApproximateMeanings' => 'Approximate meanings', |
| 73 | + 'ow_Class' => 'Class', |
73 | 74 | 'ow_ClassAttributeAttribute' => 'Attribute', |
74 | 75 | 'ow_ClassAttributes' => 'Class attributes', |
75 | 76 | 'ow_ClassAttributeLevel' => 'Level', |
— | — | @@ -90,6 +91,8 @@ |
91 | 92 | 'ow_GotoSource' => 'Go to source', |
92 | 93 | 'ow_Language' => 'Language', |
93 | 94 | 'ow_LevelAnnotation' => 'Annotation', |
| 95 | + 'ow_Multiple_meanings' => 'Multiple meanings:', |
| 96 | + 'ow_NewExactMeaning' => 'New exact meaning', |
94 | 97 | 'ow_OptionAttribute' => 'Property', |
95 | 98 | 'ow_OptionAttributeOption' => 'Option', |
96 | 99 | 'ow_OptionAttributeOptions' => 'Options', |
Index: trunk/extensions/Wikidata/OmegaWiki/ExpressionPage.php |
— | — | @@ -136,10 +136,10 @@ |
137 | 137 | |
138 | 138 | public function getTitle() { |
139 | 139 | global |
140 | | - $wgTitle, $wgExpressionPageTitlePrefix; |
| 140 | + $wgTitle, $wgUseExpressionPageTitlePrefix; |
141 | 141 | |
142 | | - if ($wgExpressionPageTitlePrefix != "") |
143 | | - $prefix = $wgExpressionPageTitlePrefix . ": "; |
| 142 | + if ($wgUseExpressionPageTitlePrefix) |
| 143 | + $prefix = wfMsg('ow_Multiple_meanings') . ' '; |
144 | 144 | else |
145 | 145 | $prefix = ""; |
146 | 146 | |
Index: trunk/extensions/Wikidata/OmegaWiki/WikiDataGlobals.php |
— | — | @@ -153,10 +153,12 @@ |
154 | 154 | |
155 | 155 | global |
156 | 156 | $wgDefinedMeaningPageTitlePrefix, |
157 | | - $wgExpressionPageTitlePrefix; |
| 157 | + //$wgExpressionPageTitlePrefix; |
| 158 | + $wgUseExpressionPageTitlePrefix; |
158 | 159 | |
159 | 160 | $wgDefinedMeaningPageTitlePrefix = ""; |
160 | | -$wgExpressionPageTitlePrefix = "Multiple meanings"; |
| 161 | +//$wgExpressionPageTitlePrefix = "Multiple meanings"; # Now it's localizable |
| 162 | +$wgUseExpressionPageTitlePrefix = true; # malafaya: Use the expression prefix "Multiple meanings:" from message ow_Multiple_meanings |
161 | 163 | |
162 | 164 | // Search page |
163 | 165 | |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php |
— | — | @@ -458,8 +458,8 @@ |
459 | 459 | $o=OmegaWikiAttributes::getInstance(); |
460 | 460 | |
461 | 461 | $dbr =& wfGetDB(DB_SLAVE); |
462 | | - $classAttribute = new Attribute("class", "Class", "short-text"); |
463 | | - $collectionAttribute = new Attribute("collection", "Collection", "short-text"); |
| 462 | + $classAttribute = new Attribute("class", wfMsg('ow_Class'), "short-text"); |
| 463 | + $collectionAttribute = new Attribute("collection", wfMsg('ow_Collection'), "short-text"); |
464 | 464 | |
465 | 465 | $recordSet = new ArrayRecordSet(new Structure($o->id, $classAttribute, $collectionAttribute), new Structure($o->id)); |
466 | 466 | |
Index: trunk/extensions/Wikidata/OmegaWiki/OmegaWikiAttributes.php |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | $t->collectionMembershipStructure = new Structure("collection-membership",$t->collectionId, $t->collectionMeaning, $t->sourceIdentifier); |
137 | 137 | $t->collectionMembership = new Attribute(null, wfMsgSc("CollectionMembership"), $t->collectionMembershipStructure); |
138 | 138 | $t->classMembershipId = new Attribute("class-membership-id", "Class membership id", "integer"); |
139 | | - $t->class = new Attribute("class", "Class", $t->definedMeaningReferenceStructure); |
| 139 | + $t->class = new Attribute("class", wfMsg('ow_Class'), $t->definedMeaningReferenceStructure); |
140 | 140 | $t->classMembershipStructure = new Structure("class-membership", $t->classMembershipId, $t->class); |
141 | 141 | $t->classMembership = new Attribute(null, wfMsgSc("ClassMembership"), $t->classMembershipStructure); |
142 | 142 | |
Index: trunk/extensions/Wikidata/OmegaWiki/OmegaWikiEditors.php |
— | — | @@ -730,7 +730,7 @@ |
731 | 731 | $definedMeaningEditor = getDefinedMeaningEditor($viewInformation); |
732 | 732 | |
733 | 733 | $definedMeaningCaptionEditor = new DefinedMeaningHeaderEditor($o->definedMeaningId, new SimplePermissionController(false), true, 75); |
734 | | - $definedMeaningCaptionEditor->setAddText("New exact meaning"); |
| 734 | + $definedMeaningCaptionEditor->setAddText(wfMsg('ow_NewExactMeaning')); |
735 | 735 | |
736 | 736 | $expressionMeaningsEditor = new RecordSetListEditor($attribute, new SimplePermissionController(true), new ShowEditFieldChecker(true), new AllowAddController($allowAdd), false, $allowAdd, new ExpressionMeaningController($viewInformation->filterLanguageId), 3, false); |
737 | 737 | $expressionMeaningsEditor->setCaptionEditor($definedMeaningCaptionEditor); |
Index: trunk/extensions/Wikidata/OmegaWiki/OmegaWiki.php |
— | — | @@ -92,10 +92,10 @@ |
93 | 93 | |
94 | 94 | public function getTitle() { |
95 | 95 | global |
96 | | - $wgTitle, $wgExpressionPageTitlePrefix; |
| 96 | + $wgTitle, $wgUseExpressionPageTitlePrefix; |
97 | 97 | |
98 | | - if ($wgExpressionPageTitlePrefix != "") |
99 | | - $prefix = $wgExpressionPageTitlePrefix . ": "; |
| 98 | + if ($wgUseExpressionPageTitlePrefix) |
| 99 | + $prefix = wfMsg('ow_Multiple_meanings') . ' '; |
100 | 100 | else |
101 | 101 | $prefix = ""; |
102 | 102 | |