Ruby on Rails Monday, July 16, 2018



On Monday, July 16, 2018 at 3:46:54 PM UTC-4, Brandon McClelland wrote:
I would not copy the entire yml file into Translate - it's going to arbitrarily try to translate both keys and values and introduce other artifacts, as you've already witnessed. You will probably get much better results with the extra effort of copying line by line the individual values into Translate; only translating the actual phrase in the Value itself then matching it to the correct key in your new translation yml file. 

It's a pretty standard practice to encode your files with UTF-8. The only reason I came across to not do so is if you're using UTF-16 for primarily Asian language sites. Handling that is probably better asked in a non-English Rails group. Your responses make it sound like you haven't set the default encoding in your text editor or IDE and are getting weird results when Google spits back translations in UTF-8 and you copy the result back into a file.

On Mon, Jul 16, 2018 at 1:54 PM fugee ohu <fuge...@gmail.com> wrote:


On Thursday, July 12, 2018 at 12:44:50 PM UTC-4, Hassan Schroeder wrote:
On Thu, Jul 12, 2018 at 8:14 AM, fugee ohu <fuge...@gmail.com> wrote:

> The keys aren't supposed to be utf8 I meant the whole yaml file It doesn't
> work in google translate, the keys get converted to utf8 along with white
> space and quotes My question is exactly what I asked

I have no idea what any of that is supposed to mean.

YAML keys can be UTF8.

Any google-translate-provided strings that I've tried work in locale files.

If you can't provide something to demonstrate the actual "problem",
then  ¯\_(ツ)_/¯

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Just wanna remind you that I asked this question because you can't do it with google translate  

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a3e2d123-bf30-4424-aca0-ddb316862a7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

My editor defaults to utf-8 So you're saying if the whole file was utf-8 it would be ok?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0d53c12d-ae1f-4214-8829-a7b6b47fad26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment