Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions edition4/makedepot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2921,6 +2921,7 @@ def download
end

section 12.5, 'Playtime' do
next
if Gorp::Config[:skip_xml_serialization]
warn 'xml serialization skipped'
next
Expand Down Expand Up @@ -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! ' <label htmlFor="order_pay_type">Pay type</label>', <<EOF
<label htmlFor="order_pay_type">
{I18n.t("orders.form.pay_type")}
Expand Down Expand Up @@ -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' %>", %{
<!-- START:locale_switcher -->
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
}

sub! /<\/script>/,%{
</script>
<!-- START_HIGHLIGHT -->
<%= javascript_pack_tag 'locale_switcher', 'data-turbolinks-track': 'reload' %>
<!-- END_HIGHLIGHT -->
<!-- END:locale_switcher -->
}

edit /^\s+<header class="main">.*?<\/header>\n/m, :mark => 'i18n'
msub /\n()\s+<%= image_tag/, <<-EOF, :highlight
<aside>
Expand Down