|
Class: AutoUpdater (private in ResourcePack
This class is only visible from within
ResourcePack.
Object
|
+--ResourcePack::AutoUpdater
- Package:
- stx:libview
- Category:
- Interface-Internationalization
- Owner:
- ResourcePack
used by ResourcePack autoUpdatingMissingTranslations:aBoolean
instance creation
-
new
-
return an initialized instance
setup
-
addIgnoredWord: aWord
-
-
initializeIgnoredWords
-
accessing
-
callback: aTwoArgBlock
-
if set, that is called with the original and xlation as args;
makes this useful for non-resourcePack related xlations
initialization
-
initialize
-
Invoked when a new instance is created.
task entry
-
addTask: aTask
-
-
addUpdateTaskFor: aKey inFile: resourceFile resourcePack: resourcePackOrNil language: aLanguage cacheIn: cacheOrNil
-
-
translate: aKey language: aLanguage into: aTwoArgBlock
-
-
verifiedKey: aKey
-
-
verifiedLanguage: aLanguage
-
update process
-
doUpdate: task
-
update a missing entry
an entry consists of:
{ key: aKey .
file: resourceFile .
language: aLanguage }
Notice, that resourceFile might be 'resources.rs',
which actually includes the real language specific resource file.
Notice: Google kicks you, if you send too many requests too fast;
therefore, wait some random time in-between translations
-
processTranslation: xlationIn forTask: entry language: language
-
a single camel case word?
-
startUpdateProcess
-
-
stopUpdateProcess
-
-
update: entry
-
fetch individual xlations and pack them into one longer task
(to reduce the number of translation requests)
-
updateProcess
-
fetch individual xlations and pack them into one longer task
(to reduce the number of translation requests)
CallbackUpdateTask
ResourcePackUpdateTask
|