Skip to content

Extract Text from WASM page into Translation File #824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 28, 2019

Conversation

eignnx
Copy link
Contributor

@eignnx eignnx commented May 28, 2019

Work on #798

The webpage has been visually inspected side-by-side with the live site, and no differences have been found. I compared:

  • Link hrefs
  • Paragraph wrap and spacing
  • Image alt text

wasm-production-cloudflare-quote =
We can compile Rust to WASM, and call it from Serverless functions woven into the very fabric of the Internet. That’s huge and I can’t wait to do more of it.
wasm-production-cloudflare-attribution =
&ndash; Steven Pack, <a href="{ $href }">Serverless Rust with Cloudflare Workers</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the other pages the dash is not in the translation string

</a>

{{#text wasm-production-cloudflare-attribution}}
{{#textparam href}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can just be {{text wasm-production-cloudflare-attribution href="https://..."}}, textparam is for more complex stuff

wasm-production-mozilla-quote =
The JavaScript implementation [of the <code>source-map</code> library] has accumulated convoluted code in the name of performance, and we replaced it with idiomatic Rust. Rust does not force us to choose between clearly expressing intent and runtime performance.
wasm-production-mozilla-attribution =
&ndash; Nick Fitzgerald, <a href="{ $href }">Oxidizing Source Maps with Rust and WebAssembly</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really need the hrefs here, but i guess it doesn't hurt. I should do this to the others.

@Manishearth
Copy link
Member

I need to do some fixups but I'll merge first.

@Manishearth Manishearth merged commit a98040d into rust-lang:i18n May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants