-
Notifications
You must be signed in to change notification settings - Fork 0
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
Import terms 3 and 4 into Google drive ready for translation #64
Comments
The instruction for importing the lessions into Google Docs is surprisingly complicated. When you have time, call me over Hangout and I'll show you. |
Ready when you are my man |
OK. First, you'll have to install the Translate Toolkit by running these commands (assuming ur on a Mac and have Homebrew installed): $ brew install python # to get pip
$ pip install translate-toolkit Check that you can call $ txt2po <lesson>.md <lesson>.po
$ po2csv <lesson>.po <lesson>.csv Navigate to the corresponding folder on Google Drive for that lesson and upload the .csv file. Now, for ease of translation, open it then widen the source and target columns. Also select these two columns then turn on Format > Wrap Text in the menubar. Hope that'll help. |
Great instructions. I'm on the case now |
Dang - I'm having a look in the CCWorld github at the lessons and they don't have .md files in them. https://github.com/CodeClub/CodeClubWorld-Projects/tree/gh-pages/en-GB Have I missed something? |
Ignore me! I've found them! https://github.com/CodeClub/webdev-curriculum |
I see what you mean by complicated. Here's my latest error.
I ran all the first bits, imported the repo locally and done this
|
OK - Now I've learnt how to actually use Terminal. I'm in the right directory... Still getting an error though
|
Hmm. Looks like brew installs its own version of Python (together with pip and its own set of libraries) whilst and /usr/local/bin/txt2po is using the system version (hence cannot import the txt2po name). Try removing the brew Python version by
|
Done. New error $ txt2po "01 The Web.md" "01 The Web.po" |
Haha, this is so messed up. OK, I'll run through on my own machine and upload the csv files somewhere you can access. |
ooooooh. I just typed in "install python" |
now I've run the command and voila! No error. No idea where the .po file is though... |
It should be in the same directory that you run the command from. Try running |
oh bollocks. That didn't actually work either. $ txt2po "01 The Web.md" "01 The Web.po |
give me another half hour. I'll try and figure this one out and won't bother you too much I promise! |
Alright I give up. Life is too short for this! Want to take over my computer? If you install all the stuff, I'll run through the donkey work |
I've just checked on my virtual Mac OS X machine. Translate Toolkit is at fault, not you. Anw, here man: https://dl.dropboxusercontent.com/u/20007163/csv.zip |
OK Term 3 is now good to go on drive. Can you work your magic on Term 4 when you get a moment. |
Here, my man: https://dl.dropboxusercontent.com/u/20007163/term4csv.zip. Also, could you tweak the spreadsheets like I said in a previous comment, #64 (comment), so that they look more like this: https://docs.google.com/spreadsheets/d/11lzUbMgI20Knm0lUzP-ckhGMYRtu7jqlNxXKQjy11qE/edit#gid=2096598981? |
Yup I'll tweak and upload this lot. Thanks for the converts. Don't need On 4 June 2014 23:34, Trung Ngo [email protected] wrote:
|
Exactly. The translators can use the rendered version here for reference. |
What about the Volunteer resources and worksheets from term 4? There's an On 5 June 2014 00:27, Trung Ngo [email protected] wrote:
|
All imported and formatted. If you get a chance can you do the volunteer resource in term 4 and then we can close this issue and I can start getting folk onto the translations :-) |
I'm happy to do this (I have lots of time on my hands at the moment) just let me know what needs doing. I intend to amass an army of translators for this. Mwahahahaha
The text was updated successfully, but these errors were encountered: