YAMS 1.1.0 alpha is now available for download from my server. This download is NOT recommended for everyone. It contains a preliminary implementation of multilingual aliases that can be used for testing.
To see the multilingual aliases in action, have a browse around the different language versions of the pages on
http://nashi.podzone.org/. Note that YAMS will correctly encode aliases containing multi-byte characters. (Note, given that I was able to achieve this with about 10 lines of code - I don’t understand what the transalias plugin is about with all its mapping tables etc. Am I missing something?)
I haven’t updated any of the documentation within YAMS to explain how it works, so here’s a brief summary:
- Currently you can only use multilingual aliases in conjunction with language dependent server names or root names (or both), but in future I hope to be able to relax this.
- To activate multilingual aliases, go to
Modules>YAMS>Other Params.
- There are two parameters relevant to multilingual aliases.
The first says whether you want them on or not.
The second says whether you intend for the aliases to be unique or not.
You need to decide on the values of both parameters before you select update, because once you have done that YAMS will automatically create your multilingual alias template variables and populate them with default data. If you choose non-unique, then each language variant will be given the same alias as the original document alias. If you choose unique aliases then the aliases will be prefixed by {langId}- where {langId} is the language group id.
At present, that’s all that the unique/non-unique setting does, but in future it will
a) allow you to be warned if you were intending to create unique aliases but have failed.
b) allow YAMS to determine the document and language uniquely from the alias without having to use server name or root name modes to achieve that.
That’s all there is to it really. There will be an extra alias field when you edit your documents that you can change. Put whatever you like in there. The URLs generated by YAMS *should* be correctly encoded. I don’t know if there are many people out there not using UTF-8, but if there is anyone, it would be useful to know if this all works with non-UTF-8 encodings.
mgbowman, thanks for all your hard work developing the guts of the multilingual alias code. It would have taken me a lot longer to get to this stage without your help!