|Kongregate Registration for Free Flash Games and Chat with solprovider|
"New Document" Creates All Language Versions
20050911: Bug was fixed. The languages must be hard-coded.
This will create every language version when creating a new document. It is a hack. Lenya should check the available languages for the publication, create the default language, then create all the other language versions. This "patch" hardcodes the languages. Even worse, it is a server-wide change.
If your Lenya has publications that do not use identical available languages, you should modify global-sitemap.xmap so usecase.xmap uses fallback. I did not do that because I have only one publication per Lenya instance.
Hide language on "New Document" Form so always creates default language
With the other <input type="hidden" ..., add:
Change the value if "en" is not your default language.
Delete the line:
There is other code later that can be removed if you want a clean file.
Add this line once, changing "en" to your default language:
Paste the following code once for additional language. In each copy, change the "en" to your default language (must match the above line), and the "xx" to the another additional language: