Help with translation
Submitted by fernando on Mon, 02/20/2017 - 14:12
Forums:
Hi,
I really tried to not post this, but after more than one hour trying to figure out how to use translations I gave up and decided to ask for help.
I created a github account, I looked for traslation files - didn't find one for PT_BR on the interactive video folder.
I couldn't find the json language files in my H5P WP installation. What am I missing?
How do I change H5P content default language? I want to have a Portuguese language file so I don't have to manually translate everytime I create a content.
Than you, thank you, thank you!
Fernando
otacke
Mon, 02/20/2017 - 14:23
Permalink
Hi, Fernando!git(hub) can in
Hi, Fernando!
git(hub) can in fact be a little tedious. Have you already have time to have a look at "Adding content type translations via GitHub"?
fernando
Mon, 02/20/2017 - 15:45
Permalink
Hi OtackeThanks for replying
Hi Otacke
Thanks for replying.
Yes, I've read many things with little success.
On this link you sent me the file semantics.json is mentioned. If I seach the instalations files in the ftp the only json that shows up is composer.json. Where is the semantics.json? I manually searched all folders. Sorry for my ignorance.
Thank you!
Fernando
otacke
Mon, 02/20/2017 - 16:05
Permalink
Translating the semantics
Translating the semantics.json files is the way to go for H5P content types. Sorry, I didn't notice that you seem to be interested in Wordpress primarily. You can find all available translations for Wordpress in the languages folder. You may want to use software such as Poedit to create new translations.
tim
Tue, 02/21/2017 - 08:29
Permalink
Thanks for helping out otacke
Thanks for helping out otacke :))
fernando
Tue, 02/21/2017 - 20:38
Permalink
Thank you!Now I got it! :)
Thank you!
Now I got it! :)
Just a question, how do I change the language in the front end? or does it follow my WP instalation language?
thanks
otacke
Tue, 02/21/2017 - 22:42
Permalink
Hey Fernando! Great that you
Hey Fernando!
Great that you made it work. The WordPress plugin will retrieve the language that you chose for your WordPress system. For H5P content types, I don't know. I have not yet stumbled upon the corresponding code. Maybe someone from the core teams can help out?
Cheers,
Oliver
fernando
Wed, 02/22/2017 - 00:44
Permalink
Thanks, Oliver!Very much
Thanks, Oliver!
Very much appreciated!
otacke
Wed, 02/22/2017 - 00:59
Permalink
You're welcome! It's great
You're welcome! It's great that you're supporting H5P.