Skip to content

Commit

Permalink
load crowdin key from external file
Browse files Browse the repository at this point in the history
  • Loading branch information
nobnago committed Oct 24, 2011
1 parent a76d1c8 commit 862a55d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gen/
/testbin/com/ichi2/anki/AnkiDroidTest.class
/test/com/ichi2/anki/AllTests.java
/test/com/ichi2/anki/AnkiDroidTest.java
tools/manage-crowdin.py
tools/crowdin_key.txt

.idea/
out/
Expand Down
Binary file removed assets/country-capitals.anki
Binary file not shown.
9 changes: 7 additions & 2 deletions tools/manage-crowdin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import StringIO
import sys

CROWDIN_KEY = 'YOUR_IDENTIFIER'
CROWDIN_KEY = ''
PROJECT_IDENTIFIER = 'ankidroid'

path = '../res/values/'
Expand Down Expand Up @@ -81,7 +81,12 @@ def updateMasterFile(selu):
c.close()
print b.getvalue()


try:
c = open("crowdin_key.txt","r+")
CROWDIN_KEY = c.readline();
c.close()
except IOError as e:
CROWDIN_KEY = raw_input("please enter your crowdin key or create \'crowdin_key.txt\': ")

sel = raw_input("update (m)aster file, update (t)ranslation or (r)efresh builds? ")

Expand Down

0 comments on commit 862a55d

Please sign in to comment.