When in the admin area and editing, the admin bar now switches you between translations. Closes #24. When editing a post in admin, provide a "Create for %s" admin bar link for missing translations. New API function `sil_get_new_translation_url` which provides an admin area URL to create a translation for a given language.
When a new post screen is passed a term_id as a GET param of `sil_transid` that transid is associated with the new post, and the post is set to the appropriate shadow post type (if not in the default language). If the new post is in the default language, a new transid is generated in the post_translation tax and associated with the post. Closes #22. Also renames SIL_DEFAULT_LANGUAGE to SIL_DEFAULT_LANG.
Add taxonomy `term_translation` and ensure it applies to all default post_types, and our shadow post_types. Closes #7. New API function: sil_get_post_translations which gets all posts with the same translation term as the provided post ID (i.e. all translations of a given piece of content, as specified by the post ID of one of the translations). New (AND ALREADY DEPRECATED) API function: sil_get_translation_permalink which will be removed ASAP. Remove metabox for the translation reference. Broken: The fallback content routines no longer work.
Adds a menu to the admin bar to select the language from the available languages in the site. Some changes to the parse_request functionality which allows us to switch between the translated shadow post_types dependant on the current language. Adds a taxonomy, post_translation, in preparation for moving the linking of translated versions of a post in the default language into a taxonomy rather than storing the relationship in post_meta.
Added doc block to `sil_rewrite_rules_filter`. Added @FIXME note for if/when we want to support non-pretty permalinks Prepend a string to the title/excerpt/content to make it obvious when we are deliberately falling back to default language content.
Maintain translated content for posts: Every public post_type has a shadow post_type for each of the site languages. In time these shadow post_types will not have a public UI in the admin area. Swap content by hooking parse_request to target the appropriate shadow post type. Link each translated post to the source post in the default language: Each post/page/whatever which is not in the default language can be linked back to it's original version in the default language. Currently this process is manual; you type in a post ID in a metabox, in time this will be maintained by the plugin. Fallback to content in default language where translations are not available: When a post is shown in a language which is not the default language, if the title, content or excerpt for that post is not available in that language the title/content/excerpt from the default language is substituted.