mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
download ankidroid titles too and save them (if different from english version) into ankidroid-titles.txt
This commit is contained in:
parent
49d40921e8
commit
38a5034d39
@ -1 +0,0 @@
|
|||||||
The description is displayed in the Market. People decide to install AnkiDroid or not based on this description, so let's be convincing :-) 325 characters maximum.
|
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<string name="AndroidMarketTitle">AnkiDroid flashcards</string>
|
|
||||||
<string name="AndroidMarketDescription">AnkiDroid lets you learn flashcards very efficiently by showing them just before you forget. It is fully compatible with the spaced repetition software Anki (incl. sync).
|
|
||||||
|
|
||||||
Great for learning languages, studying for all kinds of exams or memorizing anything else.
|
|
||||||
|
|
||||||
Download premade decks or create/modify them by your own.</string>
|
|
||||||
<string name="AndroidMarketPromo">Memorize anything efficiently with AnkiDroid!
|
|
||||||
Many free decks available.</string>
|
|
||||||
</resources>
|
|
15
docs/marketing/localized description/ankidroid-titles.txt
Normal file
15
docs/marketing/localized description/ankidroid-titles.txt
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
AnkiDroid Flashcards
|
||||||
|
ar: البطاقات التعليميةآنكيدرويد
|
||||||
|
ca: AnkiDroid fitxes per memoritzar
|
||||||
|
de: AnkiDroid Karteikarten
|
||||||
|
fi: AnkiDroid-muistikortit
|
||||||
|
hu: AnkiDroid tanuló kártyák
|
||||||
|
id: Kad imbas AnkiDroid
|
||||||
|
ja: AnkiDroid単語帳
|
||||||
|
nl: AnkiDroid flitskaarten
|
||||||
|
ru: AnkiDroid флэш-карты
|
||||||
|
th: บัตรคำ AnkiDroid
|
||||||
|
tr: AnkiDroid bilgi kartları
|
||||||
|
vi: Thẻ thông minh AnkiDroid
|
||||||
|
zh-CN: AnkiDroid 记忆卡片
|
||||||
|
zh-TW: AnkiDroid 單字卡
|
@ -2,7 +2,9 @@ Memorize anything with AnkiDroid!
|
|||||||
|
|
||||||
AnkiDroid lets you learn flashcards very efficiently by showing them just before you will forget. It is fully compatible with the spaced repetition software Anki (including synchronization), which is available for Windows, Linux and MacOS.
|
AnkiDroid lets you learn flashcards very efficiently by showing them just before you will forget. It is fully compatible with the spaced repetition software Anki (including synchronization), which is available for Windows, Linux and MacOS.
|
||||||
|
|
||||||
Learn and review things wherever and whenever you want. Make good use of idle times on bus trips, in supermarket queues or any other waiting situation!
|
Study all sorts of things wherever and whenever you want. Make good use of idle times on bus trips, in supermarket queues or any other waiting situation!
|
||||||
|
|
||||||
|
Create your own flashcard decks or download free decks compiled for many languages and topics (more than 6000 available).
|
||||||
|
|
||||||
Add material through the desktop application Anki or directly through Ankidroid. The application even supports adding material automatically from a dictionary!
|
Add material through the desktop application Anki or directly through Ankidroid. The application even supports adding material automatically from a dictionary!
|
||||||
|
|
||||||
@ -19,15 +21,15 @@ Add material through the desktop application Anki or directly through Ankidroid.
|
|||||||
★ Additional features:
|
★ Additional features:
|
||||||
• write answers (optional)
|
• write answers (optional)
|
||||||
• whiteboard
|
• whiteboard
|
||||||
• card browser
|
|
||||||
• card editor/adder
|
• card editor/adder
|
||||||
• dictionary integration (ColorDict, Goldendict, Leo.org, Aedict, diverse web dictionaries)
|
• card browser
|
||||||
|
• dictionary integration (ColorDict, GoldenDict, Leo.org, Aedict, diverse web dictionaries)
|
||||||
• add cards by intent from other applications like dictionaries
|
• add cards by intent from other applications like dictionaries
|
||||||
• custom font support
|
• custom font support
|
||||||
• full backup system
|
• full backup system
|
||||||
• navigation by swipe, tap, shake
|
• navigation by swipe, tap, shake
|
||||||
• fully customisable
|
• fully customisable
|
||||||
• limit by tag, time or cards
|
• limit studying by tag, time or cards
|
||||||
• cram mode
|
• cram mode
|
||||||
• night mode
|
• night mode
|
||||||
• zeemote support
|
• zeemote support
|
||||||
|
1
docs/marketing/markettitle.txt
Normal file
1
docs/marketing/markettitle.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
AnkiDroid Flashcards
|
@ -26,8 +26,11 @@
|
|||||||
languages = ['ar', 'ca', 'cs', 'de', 'el', 'es-ES', 'fi', 'fr', 'hu', 'id', 'it', 'ja', 'ko', 'nl', 'pl', 'pt-PT', 'ro', 'ru', 'sr', 'sv-SE', 'th', 'tr', 'vi', 'zh-CN', 'zh-TW'];
|
languages = ['ar', 'ca', 'cs', 'de', 'el', 'es-ES', 'fi', 'fr', 'hu', 'id', 'it', 'ja', 'ko', 'nl', 'pl', 'pt-PT', 'ro', 'ru', 'sr', 'sv-SE', 'th', 'tr', 'vi', 'zh-CN', 'zh-TW'];
|
||||||
#languages = ['ar', 'ca', 'cs', 'de', 'el', 'es-ES', 'fi', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'pl', 'pt-PT', 'ro', 'ru', 'sr', 'sv-SE', 'vi', 'zh-CN', 'zh-TW', 'th', 'sk', 'da', 'ko', 'he', 'uk'];
|
#languages = ['ar', 'ca', 'cs', 'de', 'el', 'es-ES', 'fi', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'pl', 'pt-PT', 'ro', 'ru', 'sr', 'sv-SE', 'vi', 'zh-CN', 'zh-TW', 'th', 'sk', 'da', 'ko', 'he', 'uk'];
|
||||||
|
|
||||||
fileNames = ['01-core', '02-strings', '03-dialogs', '04-network', '05-feedback', '06-statistics', '07-cardbrowser', '08-widget', '09-backup', '10-preferences', '11-arrays', '12-tutorial', '13-newfeatures', '14-marketdescription']
|
fileNames = ['01-core', '02-strings', '03-dialogs', '04-network', '05-feedback', '06-statistics', '07-cardbrowser', '08-widget', '09-backup', '10-preferences', '11-arrays', '12-tutorial', '13-newfeatures', '14-marketdescription', '15-markettitle']
|
||||||
anyError = False
|
anyError = False
|
||||||
|
titleFile = '../docs/marketing/localized description/ankidroid-titles.txt'
|
||||||
|
titleString = 'AnkiDroid Flashcards'
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import zipfile
|
import zipfile
|
||||||
@ -103,6 +106,8 @@ def fileExtFor(f):
|
|||||||
return '.csv'
|
return '.csv'
|
||||||
elif f == '14-marketdescription':
|
elif f == '14-marketdescription':
|
||||||
return '.txt'
|
return '.txt'
|
||||||
|
elif f == '15-markettitle':
|
||||||
|
return '.txt'
|
||||||
else:
|
else:
|
||||||
return '.xml'
|
return '.xml'
|
||||||
|
|
||||||
@ -111,7 +116,7 @@ def createIfNotExisting(directory):
|
|||||||
os.mkdir(directory)
|
os.mkdir(directory)
|
||||||
|
|
||||||
def update(valuesDirectory, f, source, fileExt, isCrowdin, language=''):
|
def update(valuesDirectory, f, source, fileExt, isCrowdin, language=''):
|
||||||
if fileExt == '.txt':
|
if f == '14-marketdescription':
|
||||||
newfile = '../docs/marketing/localized description/marketdescription' + '-' + language + fileExt
|
newfile = '../docs/marketing/localized description/marketdescription' + '-' + language + fileExt
|
||||||
file(newfile, 'w').write(source)
|
file(newfile, 'w').write(source)
|
||||||
oldContent = open('../docs/marketing/localized description/marketdescription' + fileExt).readlines()
|
oldContent = open('../docs/marketing/localized description/marketdescription' + fileExt).readlines()
|
||||||
@ -123,6 +128,18 @@ def update(valuesDirectory, f, source, fileExt, isCrowdin, language=''):
|
|||||||
os.remove(newfile)
|
os.remove(newfile)
|
||||||
print 'file marketdescription is not translated into language ' + language
|
print 'file marketdescription is not translated into language ' + language
|
||||||
return True
|
return True
|
||||||
|
elif f == '15-markettitle':
|
||||||
|
# newfile = '../docs/marketing/localized description/marketdescription' + '-' + language + fileExt
|
||||||
|
# file(newfile, 'w').write(source)
|
||||||
|
translatedTitle = source.replace("\n", "")
|
||||||
|
if titleString != translatedTitle:
|
||||||
|
s = open(titleFile, 'a')
|
||||||
|
s.write("\n" + language + ': ' + translatedTitle)
|
||||||
|
s.close()
|
||||||
|
print 'added translated title'
|
||||||
|
else:
|
||||||
|
print 'title not translated'
|
||||||
|
return True
|
||||||
else:
|
else:
|
||||||
newfile = valuesDirectory + f + '.xml'
|
newfile = valuesDirectory + f + '.xml'
|
||||||
file(newfile, 'w').write(source)
|
file(newfile, 'w').write(source)
|
||||||
@ -137,6 +154,11 @@ req.close()
|
|||||||
|
|
||||||
zip = zipfile.ZipFile(zipname, "r")
|
zip = zipfile.ZipFile(zipname, "r")
|
||||||
|
|
||||||
|
#create title file
|
||||||
|
t = open(titleFile, 'w')
|
||||||
|
t.write(titleString)
|
||||||
|
t.close()
|
||||||
|
|
||||||
for language in languages:
|
for language in languages:
|
||||||
if language == 'zh-TW':
|
if language == 'zh-TW':
|
||||||
androidLanguage = 'zh-rTW'
|
androidLanguage = 'zh-rTW'
|
||||||
|
Loading…
Reference in New Issue
Block a user