-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove double underscores from smw-pa-property-predefined__* #58
Comments
`smw-pa-property-predefined__sci_cite_key`. These are not supported by
MediaWiki and cannot be customised in MediaWiki namespace. They also cause
As you might imagine (from the key context) those are related to
predefined properties and the key is responsible for generating a text
[0, 1] on a property page. This has been a convention key at least
since 2.0 [2] meaning for the last 3+ years.
[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/src/PropertySpecificationLookup.php#L380-L387
[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/ce42dce6dfc27bee8bb6b3c95d35e500fef4b1a2/src/PropertySpecificationReqMsgBuilder.php#L208-L241
[2] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/2.0.x/includes/articlepages/SMW_PropertyPage.php
…On 12/5/17, Niklas Laxström ***@***.***> wrote:
Please remove the double underscores in messages such as
`smw-pa-property-predefined__sci_cite_key`. These are not supported by
MediaWiki and cannot be customised in MediaWiki namespace. They also cause
issues at translatewiki.net: https://phabricator.wikimedia.org/T181981
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#58
|
I can drop these keys on translatewiki.net config so that they won't cause issues, but then they cannot be translated anymore :( |
I can drop these keys on translatewiki.net config so that they won't cause
issues, but then they cannot be translated anymore :(
Surely that defies the idea of having those keys in the first place, doesn't it!
What about converting `smw-pa-property-predefined__sci_cite_key` to
something like `smw-pa-property-predefined--sci-cite-key` does this
work, or does this create other issues?
In case the above is a reasonable middle ground then SMW-core needs to
be changed on the cited sources with something like `... str_replace(
'_', '-', strtolower( $key ) )` and all i18n keys pertaining
`smw-pa-property-predefined` are required to be modified.
Now that we change the overall matching, change
`smw-pa-property-predefined` to `smw-property-predefined` (as
convention key).
Mentioned changes are not backwards compatible and therefore would
require SMW 3.0 for all SMW hosted repositories!
@kghbln Any input?
…On 12/5/17, Niklas Laxström ***@***.***> wrote:
I can drop these keys on translatewiki.net config so that they won't cause
issues, but then they cannot be translated anymore :(
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#58 (comment)
|
|
The current system has worked for some time now but it was probably only a matter of time until something like what was reported here happened. However, since we are breaking many other things with SMW 3.0.0 anyways it appears to be a good point in time to make these backwards incompatible changes. I believe that all extensions providing special properties are affected, i.e. SBL, SESP and SIL. These should see major version changes in the event of the fix to avoid compat issues for system adminiatrators. @mwjames Sould I open individual issues for these? I guess this will be good. @Nikerabbit Thanks for confirming that On the event of changing the message keys it will be nice if the respective messages and their existing translations can also be moved on twn at the same time. We have already lost translations on "regular" message key changes lately and here it will be a shame if this happens here too. |
Renames are still handled manually, so it is possible that I have missed some. Best to leave me a note if you are doing rename so that I am aware. Old renames can still be performed if you know specific keys. |
translatewiki behaviour seems ok now. Christian (Wladek92). |
Will do.
Good to hear, however this still an open window to put this on more solid ground. |
No need for a major (i.e.
Probably the best. |
Ah, ok, I thought the changes might be more dramatic. However we should do a minor release as soon as SMW 3.0.0 is out.
Will do. |
I have created the issues an believe to have covered all extensions using the same logic. |
Also noted SemanticMediaWiki/SemanticMediaWiki#1365 |
Please remove the double underscores in messages such as
smw-pa-property-predefined__sci_cite_key
. These are not supported by MediaWiki and cannot be customised in MediaWiki namespace. They also cause issues at translatewiki.net: https://phabricator.wikimedia.org/T181981The text was updated successfully, but these errors were encountered: