SemanticMediaWiki / SemanticCite

Allows to manage citation resources using semantic annotations
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Cite
Other
24 stars 13 forks source link

Input field label on "Special:FindCitableMetadata" should be localizable #45

Closed kghbln closed 7 years ago

kghbln commented 7 years ago

Setup and configuration

Issue

The input field label on special page "FindCitableMetadata" should be localizable and probably be called "Source" instead of "Type"

Steps to reproduce the observation (recommendation is to use the sandbox):

See here.

mwjames commented 7 years ago

The input field label on special page "FindCitableMetadata" should be localizable and probably be called "Source" instead of "Type"

Well, currently this is hard-coded https://github.com/SemanticMediaWiki/SemanticCite/blob/master/src/Specials/CitableMetadata/PageBuilder.php#L139.

kghbln commented 7 years ago

Well, currently this is hard-coded https://github.com/SemanticMediaWiki/SemanticCite/blob/master/src/Specials/CitableMetadata/PageBuilder.php#L139.

Probably addOptionSelectList()just needs to be an array together with replacing "Type:" by $messageBuilder->getMessage( 'sci-metadata-search-type-label' )->text()?

mwjames commented 7 years ago

Probably addOptionSelectList()just needs to be an array together with replacing "Type:" by

Only Type: needs to replaced by something like $messageBuilder->getMessage( 'sci-metadata-search-type-label' )->text().

kghbln commented 7 years ago

Only Type: needs to replaced by something like $messageBuilder->getMessage( 'sci-metadata-search-type-label' )->text()

Ah ok, since the whole content is already treated as an array.