backface / turtlestitch

visual, blocks-based programming for turtle graphics and generative embroidery
http://www.turtlestitch.org
GNU Affero General Public License v3.0
52 stars 14 forks source link

More translations needed #61

Open backface opened 5 years ago

UrticaDesign commented 4 years ago

I can help with translation to both Norwegian and Danish. And I can help with the writing of the Wiki in English, Norwegian and Danish too. My problem is that I do not know how to start...

backface commented 4 years ago

This sounds great! For a starter, you could get the German translation and turn it into Norwegian and Danish. get it here: https://raw.githubusercontent.com/backface/turtlestitch/master/stitchcode/locales/lang-de.js and save it as lang-dk.js and lang-no.js after translations.

You need to encode special characters with special strings. And you might need more than the German file provides. These should be appropriate for Danish and Norwegian:

/* Special characters: (see http://0xcc.net/jsescape/)

€, Š   \u00c4, \u00e4
…, š   \u00d6, \u00f6
†, Ÿ   \u00dc, \u00fc
§      \u00df
Æ,æ     \u00C6,\u00E6
Ø,ø \u00D8,\u00F8
Å,å \u00C5,\u00E5

*/

/* Special characters: (see http://0xcc.net/jsescape/)

ø , \u00F8
æ , \u00E6
å , \u00E5
Ø , \u00D8
Æ ; \u00C6
Å , \u00C5

*/