gae-init/gae-init — pull request #74 by mdxs (2014-02-07 11:13:56+00:00)
Title: Add links macro

Adding a macro file for `_blank` links, named `links.blank_link(url, txt)` and in this PR currently only used in `config_update.html` to show how this would work.

The main advantage will show in `gae-init-babel`, where it would allow using:

```
{{_('For most of the settings you will have to {restart} the {instances}').format(
restart=(links.blank_link(instances_url, _('restart')) if instances_url else _('restart')),
instances=links.blank_link('https://developers.google.com/appengine/docs/adminconsole/instances', _('instances')),
)}}

```

So that translators can deal with "For most of the settings you will have to {restart} the {instances}" part in ways that are important in their language; which could include a different order of "restart" and "instances" in the translated sentence. Which, in this particular case, would sometimes be links and sometimes plain text.

I'm aware that translating Administrator pages is controversial, the above is from my own project based on `gae-init-babel` which does. However, this proposal doesn't do that... it just proposes to have a macro in the `gae-init` core to make links with a `_blank` target. And the explanation provided above is to address (appropriate) "why bother?" questions.