eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ResourcePack::AutoUpdater':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: AutoUpdater (private in ResourcePack

This class is only visible from within ResourcePack.

Inheritance:

   Object
   |
   +--ResourcePack::AutoUpdater

Package:
stx:libview
Category:
Interface-Internationalization
Owner:
ResourcePack

Description:


used by ResourcePack autoUpdatingMissingTranslations:aBoolean


Class protocol:

instance creation
o  new
return an initialized instance

setup
o  addIgnoredWord: aWord

o  initializeIgnoredWords


Instance protocol:

accessing
o  callback: aTwoArgBlock
if set, that is called with the original and xlation as args;
makes this useful for non-resourcePack related xlations

initialization
o  initialize
Invoked when a new instance is created.

task entry
o  addTask: aTask

o  addUpdateTaskFor: aKey inFile: resourceFile resourcePack: resourcePackOrNil language: aLanguage cacheIn: cacheOrNil

o  translate: aKey language: aLanguage into: aTwoArgBlock

o  verifiedKey: aKey

o  verifiedLanguage: aLanguage

update process
o  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

o  processTranslation: xlationIn forTask: entry language: language
a single camel case word?

o  startUpdateProcess

o  stopUpdateProcess

o  update: entry
fetch individual xlations and pack them into one longer task
(to reduce the number of translation requests)

o  updateProcess
fetch individual xlations and pack them into one longer task
(to reduce the number of translation requests)


Private classes:

    CallbackUpdateTask
    ResourcePackUpdateTask


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:25:44 GMT