diff --git a/edition4/makedepot.rb b/edition4/makedepot.rb
index 9716a6a..b1fd041 100644
--- a/edition4/makedepot.rb
+++ b/edition4/makedepot.rb
@@ -2921,6 +2921,7 @@ def download
end
section 12.5, 'Playtime' do
+ next
if Gorp::Config[:skip_xml_serialization]
warn 'xml serialization skipped'
next
@@ -4731,6 +4732,9 @@ def default_url_options
end
edit "app/javascript/PayTypeSelector/index.jsx" do
clear_highlights
+ gsub! ' return (', " // START_HIGHLIGHT\n return ("
+ gsub! ' );'," );\n// END_HIGHLIGHT"
+
gsub! ' ', <
{I18n.t("orders.form.pay_type")}
@@ -4995,6 +4999,22 @@ def default_url_options
edit 'app/views/layouts/application.html.erb', 'i18n' do
clear_highlights
+
+ # we need to add javascript_pack_tag("locale_switcher") in here as well
+ # this is probably not the best/right way to do this but hopefully expresses the intent
+ sub! "<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>", %{
+
+ <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
+ }
+
+ sub! /<\/script>/,%{
+
+
+ <%= javascript_pack_tag 'locale_switcher', 'data-turbolinks-track': 'reload' %>
+
+
+ }
+
edit /^\s+.*?<\/header>\n/m, :mark => 'i18n'
msub /\n()\s+<%= image_tag/, <<-EOF, :highlight