Ignore:
Timestamp:
22 Feb 2012, 08:27:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement Language switch in the topbar and add some German translations for demonstration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r7665 r7674  
    3636  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    3737  ...Welcome to the...
     38  ...
     39
     40We can change to German::
     41  >>> browser.getLink('de').click()
     42  >>> print browser.contents
     43  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     44  ...Anfragen...
     45  ...
     46
     47And then change back to English by clicking on the third link containing 'en'
     48behind 'Anfragen' and 'Einloggen'::
     49  >>> browser.getLink('en', index=2).click()
     50  >>> print browser.contents
     51  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     52  ...Enquiries...
    3853  ...
    3954
Note: See TracChangeset for help on using the changeset viewer.