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
Add ExtraneousLanguage JSON format, refs #1691, #1561 #1848
Conversation
I have been re-basing this PR for months and I hope that we can have it merged rather soon. It mostly brings fallback and partial fallback support. This PR needs extra care therefore I'd like @kghbln (I know its a pain) to test this more thoroughly to ensure that we do not introduce any regression.
PS: A script has transformed content that resided in PHP files and copied them into a JSON file to match the specification but I kept the "old" PHP files for now to make it possible to compare entries with that of the JSON format. Once merged changes should only happen to the new files. |
The issue is that it is impossible to install development branches of SMW with master of other software on sandbox via composer. I am getting the usual "Your requirements could not be resolved to an installable set of packages". I currently need sandbox including the other semantic software to prepare my second presentation and probably the two tutorials for SMWCon. I currently have not other testsite at hand. |
Sorry for being extremely grumpy this morning. Early this week I had a server upgrade and you wouldn't believe how unstable PHP opcaching can be - pretty disappointing. Well I still suffering from time comsuming aftermaths. |
Don't worry about it. I wanted to draw attention to a PR that has the potential for a regression and I'd like at least a second pair of eyes (some integration tests complained in an earlier iteration) to look at this from a "I worked with it and it doesn't seem to be broken". Anyway, if I find time (in my weekly support window) then I will just merge it later today and we can observe the results on the sandbox. |
I am sorry that I had to let you down on this. :( |
- Moves SMW specific language elements from PHP to JSON - Support for partial fallback - If a json file (e.g. `zh-hant.json`) contains `isLanguageRedirect` then only a `fallbackLanguage` is required - The `CanonicalFallbackLanguage` is `en` - Adds `LanguageContents`, `LanguageFallbackFinder`, and `LanguageFileContentsReader`
@kghbln This requires a follow-up on removing all the PHP lang. related scripts from the Somehow I want to remove the [0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/DefaultSettings.php#L26 |
@mwjames I have not tested thoroughly yet but sandbox did not change to bellies up mode so far and a fast look though did not show anomalies. Will have a second peep at it soon. I am not sure if MediaWiki core requires the language information for namespaces, magic words etc. to be in the languages directory. If it does not which I think is the case it may only be a matter of changing twn cannot handle this workflow anyway so ... |
I think it is a matter of customization:
I would appreciate if you could take the lead on this. |
Which is good.
It looks like not a lot of brain is needed to do this so this Saturday ... |
You mean [0] or something else? [0] https://www.semantic-mediawiki.org/wiki/Extraneous_language |
I meant in connection with |
I did a super quick write up in c158446, hope this helps. |
Cool - all on wiki now! |
This PR is made in reference to: #1691, #1561
This PR addresses or contains:
zh-hant.json
) containsisLanguageRedirect
then only afallbackLanguage
is requiredCanonicalFallbackLanguage
isen
LanguageFallbackFinder
,LanguageFileContentsReader
This PR includes: