1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
Commit graph

15 commits

Author SHA1 Message Date
Paul McMahon
4fe0732713
Cleanup of how fixtures customize a fixture (#2342)
* Use "Given" instead of "And" as first scenario step

* Remove unnecessary step

The following step already invokes this step

* Remove setup in feature that doesn't do anything

As this referenced "i18n-test-app", but later we run
"i18n-mixed-sources", these steps weren't doing anything.

* Avoid referencing the same fixture twice

The step "the Server is running at" invokes the "a fixture app" step,
followed by "the Server is running" step.
2020-06-15 11:19:39 -07:00
Paul McMahon
d59d0389e6
Fix linking of external urls when i18n is enabled (#2343)
The Internationalization extension is redefining url_for to localize url
paths. However, this redefinition was also acting on external urls,
causing them to sometimes have an "/index.html" appended to them.

This path uses the presence of a host in the parsed URI object to
determine whether or not a URL is "external". This is the same method
for determining this as is already used in the base url_for.
2020-06-15 09:07:53 -07:00
Maarten
3d359378b3 Fix i18n with anchor (#2288)
* Fix bug where anchor gets added to i18n links in the wrong place

* also fix Kramdown ignoring attributes

* add tests for changes to i18n_link_to and kramdown

* Pass &:to_sym as an argument to transform_keys! instead of a block.
2019-08-09 11:00:15 -07:00
Markus Fenske
6b88e315aa Reimplement the i18n lookup table (#2263) 2019-05-24 12:49:09 -07:00
Julian Schneider
fde9e8c04a I18n: Keep fragment and query in url_for (#2062)
* Add Cucumber Feature for url_for with query and fragment

* Keep query and fragment when i18n-ing a path
2017-04-27 19:24:04 -07:00
Markus Fenske
448e179542 Add support for locale suffixes to link_to (#2065)
There is a bug in the I18n part which does not link paths including a
locale suffix (e.g. foobar.en.html.erb) correctly. This patch fixes it
and also adds tests.
2017-04-27 19:22:54 -07:00
Thomas Reynolds
ccc1cc1288 Fix ordering in tests 2016-05-11 11:48:21 -07:00
Thomas Reynolds
5630395b40 allow bad paths in i18n links. for #850 2015-06-02 13:48:23 -07:00
Thomas Reynolds
ca8655744a Support relative urls in i18n links. For #850 2015-06-01 13:53:39 -07:00
Thomas Reynolds
5e30ef98a1 Fix new link_to i18n w.r.t. index pages. For #850 2015-06-01 11:51:27 -07:00
Thomas Reynolds
f7ba4ada20 More i18n tests and make sure templates with locale in file name take precedence over the default. 2015-05-16 13:53:09 -07:00
Thomas Reynolds
d3c7436647 Tweak locale links 2015-05-16 13:21:12 -07:00
Thomas Reynolds
6502b37934 Use locale for link_to flag 2015-05-16 12:50:39 -07:00
Thomas Reynolds
ed5236ef37 Fix bone-headed link_to change 2015-05-15 16:20:47 -07:00
Thomas Reynolds
9de1f16f3b Empower link_to in a i18n context 2015-05-11 09:13:04 -07:00