markoheijnen / WordPress-Karuta

The best card game in the WORLD
GNU General Public License v2.0
7 stars 4 forks source link

Automatic script for importing CSV #1

Closed markoheijnen closed 9 years ago

markoheijnen commented 9 years ago

Currently reading cards should be translated but what about given cards?

Some discussion on: https://github.com/markoheijnen/WordPress-Karuta/commit/db264b408a73b5470754a5475b806669ff024841

ShinichiNishikawa commented 9 years ago

Mika and I talked of how we do this entire project. She said for now we show the english version of the current Japanese one so that people know what this game is like. Mika was happy also to write a "How to play WordPress Karuta" document :)

Eventually, there should be different types, combinations and versions of cards. So the script will be something which allows users to ...

ShinichiNishikawa commented 9 years ago

I don't know very well about the GlotPress structure, so can you give me a starting point structure of the process?

markoheijnen commented 9 years ago

I rather don't update card information with an external format due the fact that we do need to add translatable function around text and it will be guessing. You can check the current code and see how that looks.

When we use the WordPress functions to mark translatable text then GlotPress will pick it up directly. The only thing we need to do now is fix the default card deck to have all Japanese to English. We should still keep the original text so I could manually (faster then creating a script) copy/paste it.

markoheijnen commented 9 years ago

When all strings are English between the __() function calls then I will enable this project on http://wp-translate.org/projects/games/karuta

Ipstenu commented 9 years ago

I think all the answer cards are already in English and would not need translating today. That said, I know the future would be to translate the repo so I don't know if we'd eventually need to. We'll always have wp_enqueue_script() as a function, so it's sort of English Default :/ I think we're okay not to translate the answer.

ShinichiNishikawa commented 9 years ago

I will have an translator to work on the /card-decks/default.php. Maybe Shoko Matsuo, who had the leadership on the Japanse 2014 one and was at Karaoke too, wants to get involved.

Japanese text will be saved some where and the translator can manually do that.

showw commented 9 years ago

I translated reading cards and sent pull request. I thought that we need to check Japanese and English side by side before editing /card-decks/default.php. So I edited 2014.csv in this way. Is that all right?

ShinichiNishikawa commented 9 years ago

Thank you. Let's get this proof-read.

Noel said he also wants to get involved. I'll contact him :)

markoheijnen commented 9 years ago

I had to make some changes of the script from ShinichiNishikawa. Everything should be fine now. Loading GlotPress with all current strings :)

markoheijnen commented 9 years ago

I did imported Japanese now too. I will check if everything is still correctly done. I do have to say that some English sentences are long.